Changeset 3111 in products
- Timestamp:
- Apr 14, 2011 3:03:01 PM (14 years ago)
- Location:
- quintagroup.plonecomments/branches/jquery/quintagroup/plonecomments
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.plonecomments/branches/jquery/quintagroup/plonecomments/patch.py
r3107 r3111 79 79 perms = DiscussionItemContainer.__ac_permissions__ 80 80 new_perms = [] 81 for item in perms:82 perm_name = item[0]83 funcs = item[1]81 for perm in perms: 82 perm_name = perm[0] 83 funcs = perm[1] 84 84 if 'deleteReply' in funcs: 85 85 new_perms.append((perm_name, [f for f in funcs if f != 'deleteReply'])) 86 86 new_perms.append(('Moderate Discussion', ('deleteReply',))) 87 87 else: 88 new_perms.append( item)88 new_perms.append(perm) 89 89 90 90 DiscussionItemContainer.__ac_permissions__ = new_perms -
quintagroup.plonecomments/branches/jquery/quintagroup/plonecomments/setuphandlers.py
r3107 r3111 1 1 from Products.CMFCore.utils import getToolByName 2 from config import LOGGER2 from quintagroup.plonecomments.config import LOGGER 3 3 4 4 -
quintagroup.plonecomments/branches/jquery/quintagroup/plonecomments/tests/base.py
r3107 r3111 8 8 from Products.PloneTestCase.layer import onsetup 9 9 10 from config import PRODUCT10 from quintagroup.plonecomments.tests.config import PRODUCT 11 11 12 12 -
quintagroup.plonecomments/branches/jquery/quintagroup/plonecomments/tests/testQPloneCommentsNotification.py
r3110 r3111 5 5 from Products.CMFCore.utils import getToolByName 6 6 import re 7 from helperNotify import setProperties, testMailExistance 7 from quintagroup.plonecomments.tests.helperNotify import setProperties, \ 8 testMailExistance 8 9 from quintagroup.plonecomments.utils import getMsg 9 10 from quintagroup.plonecomments.tests.base import FunctionalTestCase -
quintagroup.plonecomments/branches/jquery/quintagroup/plonecomments/tests/testQPloneCommentsPermission.py
r3107 r3111 3 3 # 4 4 5 from base import TestCase6 from config import PERM_NAME5 from quintagroup.plonecomments.tests.base import TestCase 6 from quintagroup.plonecomments.tests.config import PERM_NAME 7 7 8 8 -
quintagroup.plonecomments/branches/jquery/quintagroup/plonecomments/tests/testQPloneCommentsReportAbuse.py
r3107 r3111 1 from testQPloneCommentsCommenting import TestCommBase 1 from quintagroup.plonecomments.tests.testQPloneCommentsCommenting import \ 2 TestCommBase 2 3 3 4
Note: See TracChangeset
for help on using the changeset viewer.