Changeset 3114 in products for quintagroup.plonecomments/trunk/quintagroup/plonecomments/patch.py
- Timestamp:
- Apr 14, 2011 4:45:57 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.plonecomments/trunk/quintagroup/plonecomments/patch.py
r3112 r3114 2 2 try: 3 3 from App.class_init import InitializeClass 4 InitializeClass 4 5 except ImportError: 5 6 from Globals import InitializeClass … … 18 19 19 20 id = int(DateTime().timeTime()) 20 while self._container.get(str(id), None) is not None:21 while container.get(str(id), None) is not None: 21 22 id += 1 22 23 id = str(id) … … 30 31 item.creator = Creator 31 32 32 self._container[id] = item33 container[id] = item 33 34 item = item.__of__(self) 34 35 … … 45 46 if getProp(self, 'enable_moderation', marker=False): 46 47 roles = [role['name'] for role in self.acl_users.rolesOfPermission('Moderate Discussion') 47 if role['selected'] == 'SELECTED']48 if role['selected'] == 'SELECTED'] 48 49 roles.append('DiscussionManager') 49 50 item.manage_permission('Delete objects', roles, acquire=1) … … 57 58 return id 58 59 59 def getReplies( self):60 def getReplies(self): 60 61 """Return a sequence of the DiscussionResponse objects which are 61 62 associated with this Discussable.
Note: See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/trac/chrome/common/qtrac_logo.png)