page_group backend:
Thomas help:
- the other option would be to continue concentrating on groups (and keep other stuff running using wikidicts code)
- write a group_page backend
- most code you need is somewhat there in wikidicts, but don't get too close to the current crap implementation
- but I think you could reuse some of the group page parsing code
- e.g. the group page parsing is expensive and shouldn't be done all the time
Reuse from wikidicts:
- * regex = re.compile(ur'^ (?P<key>.+?)
(?P<val>.*?) *$', re.MULTILINE | re.UNICODE)
isdict = self.cfg.cache.page_dict_regexact.search dictpages = request.rootpage.getPageList(user='', filter=isdict) for pagename in dictpages: self.adddict(request, pagename) isgroup = self.cfg.cache.page_group_regexact.search grouppages = request.rootpage.getPageList(user='', filter=isgroup) for pagename in grouppages: self.addgroup(request, pagename)
page_dict_* & page_group_* are used in:
- wikidicts
- defined in multiconfig.py
/xmlrpc/UpdateGroup.py -> if not self.request.cfg.cache.page_group_regexact.search(groupname):
- /userform/admin.py: isgroup = request.cfg.cache.page_group_regexact.search
- ./wikiutil.py: return request.cfg.cache.page_group_regexact.search(pagename)
- addgroup and adddict do I need to have ti?