Load and call merge on DW.
This commit is contained in:
parent
dfb60f9682
commit
8d6ad646c3
3 changed files with 11 additions and 3 deletions
|
@ -61,7 +61,7 @@
|
||||||
(email (cadddr row))
|
(email (cadddr row))
|
||||||
(groupstr (list-ref row 4))
|
(groupstr (list-ref row 4))
|
||||||
(groups (string-split groupstr ",")))
|
(groups (string-split groupstr ",")))
|
||||||
(print "u=" username " n=" name " e=" email " g=" groups)
|
;;(print "u=" username " n=" name " e=" email " g=" groups)
|
||||||
(loop (cdr lines)
|
(loop (cdr lines)
|
||||||
(cons (list username name email groups)
|
(cons (list username name email groups)
|
||||||
users))))))))
|
users))))))))
|
||||||
|
|
|
@ -47,7 +47,8 @@
|
||||||
util-dict-list
|
util-dict-list
|
||||||
util-stdout
|
util-stdout
|
||||||
table
|
table
|
||||||
export-web-static)
|
export-web-static
|
||||||
|
dokuwiki)
|
||||||
|
|
||||||
;; Command-line options and configurable parameters
|
;; Command-line options and configurable parameters
|
||||||
(define -needs-bank- (make-parameter #f))
|
(define -needs-bank- (make-parameter #f))
|
||||||
|
@ -237,7 +238,8 @@
|
||||||
(values #f #f)))
|
(values #f #f)))
|
||||||
|
|
||||||
;; Load DokuWiki users
|
;; Load DokuWiki users
|
||||||
(define MB MB1)
|
(define DW (dokuwiki-load-users))
|
||||||
|
(define-values (MB dw-other) (mbase-merge-dokuwiki MB1 DW))
|
||||||
|
|
||||||
;; If a member is specified by either id or nick, get its record
|
;; If a member is specified by either id or nick, get its record
|
||||||
(define mr
|
(define mr
|
||||||
|
|
|
@ -58,6 +58,7 @@
|
||||||
mbase-active-emails
|
mbase-active-emails
|
||||||
|
|
||||||
mbase-merge-mailman
|
mbase-merge-mailman
|
||||||
|
mbase-merge-dokuwiki
|
||||||
|
|
||||||
do-with-mbase-progress%
|
do-with-mbase-progress%
|
||||||
with-mbase-progress%
|
with-mbase-progress%
|
||||||
|
@ -310,6 +311,11 @@
|
||||||
(add1 i))))
|
(add1 i))))
|
||||||
(progress%-advance 1)))))
|
(progress%-advance 1)))))
|
||||||
|
|
||||||
|
;; Adds dokuwiki information to all users found, returns new mbase
|
||||||
|
;; and list of remaining users.
|
||||||
|
(define (mbase-merge-dokuwiki mb dw)
|
||||||
|
(values mb dw))
|
||||||
|
|
||||||
;; Simple syntax wrapper
|
;; Simple syntax wrapper
|
||||||
(define-syntax with-mbase-progress%
|
(define-syntax with-mbase-progress%
|
||||||
(syntax-rules ()
|
(syntax-rules ()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue