diff --git a/browser/action.py b/browser/action.py index a964fe2..68176d9 100644 --- a/browser/action.py +++ b/browser/action.py @@ -81,7 +81,7 @@ class DialogAction(Action): @Lazy def onClick(self): - urlParams = dict(dialog=self.dialogName) + urlParams = dict(dialog=self.dialogName, version='this') if self.qualifier: urlParams['qualifier'] = self.qualifier if self.typeToken: diff --git a/integrator/README.txt b/integrator/README.txt index 0d2e225..4d84425 100644 --- a/integrator/README.txt +++ b/integrator/README.txt @@ -231,7 +231,7 @@ Extracting Document Properties from MS Office Files >>> path = os.path.join(dataDir, 'office') >>> fn = os.path.join(path, 'example.docx') >>> os.path.getsize(fn) - 20337L + 20337... >>> officeFile = addAndConfigureObject(resources, Resource, 'test.docx', ... title=u'Example Word File', resourceType=tOfficeFile, diff --git a/organize/member.py b/organize/member.py index ed0f0d1..b08a7f2 100644 --- a/organize/member.py +++ b/organize/member.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2009 Helmut Merz helmutm@cy55.de +# Copyright (c) 2012 Helmut Merz helmutm@cy55.de # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -18,8 +18,6 @@ """ Member registration adapter(s). - -$Id$ """ from zope import interface, component, schema @@ -65,14 +63,16 @@ class MemberRegistrationManager(object): self.context = context def register(self, userId, password, lastName, firstName=u'', - groups=[], useExisting=False, **kw): + groups=[], useExisting=False, pfName=None, **kw): concepts = self.context.getConceptManager() personType = adapted(concepts[self.person_typeName]) options = IOptions(personType) - pfName = options(self.principalfolder_key, - (self.default_principalfolder,))[0] + if pfName is None: + pfName = options(self.principalfolder_key, + (self.default_principalfolder,))[0] self.createPrincipal(pfName, userId, password, lastName, firstName) - groups = options(self.groups_key, ()) + if not groups: + groups = options(self.groups_key, ()) self.setGroupsForPrincipal(pfName, userId, groups=groups) self.createPersonForPrincipal(pfName, userId, lastName, firstName, useExisting, **kw)