Author: rmarianski
Date: 2007-11-14 16:11:49 -0500 (Wed, 14 Nov 2007)
New Revision: 11027
Modified:
opencore/branches/rb-0.9.7.3/opencore/nui/setup.py
Log:
update the author on the migration for mailing lists to the creator of the
project
Modified: opencore/branches/rb-0.9.7.3/opencore/nui/setup.py
===================================================================
--- opencore/branches/rb-0.9.7.3/opencore/nui/setup.py 2007-11-14 21:09:17 UTC
(rev 11026)
+++ opencore/branches/rb-0.9.7.3/opencore/nui/setup.py 2007-11-14 21:11:49 UTC
(rev 11027)
@@ -278,13 +278,20 @@
def create_auto_discussion_lists(portal):
cat = getToolByName(portal, 'portal_catalog')
+ # event is not used in handler
+ evt = None
for brain in cat(portal_type='OpenProject'):
proj = brain.getObject()
if IListenFeatureletInstalled.providedBy(proj):
- evt = None
# call the event handler, simulating the featurelet was just added
listen_featurelet_installed(proj, evt)
+ # set the creator to the creator of the project
+ # not the admin that ran the migration
+ ml = proj.lists._getOb('%s-discussion' % proj.getId())
+ proj_creator = proj.Creator()
+ ml.setCreators((proj_creator,))
+
from Products.Archetypes.utils import OrderedDict
# make rest of names readable (maybe use config system)
--
Archive:
http://www.openplans.org/projects/opencore/lists/openplans-svn/archive/2007/11/1195074710307
To unsubscribe send an email with subject unsubscribe to [EMAIL PROTECTED]
Please contact [EMAIL PROTECTED] for questions.