Changeset 3120 in products for quintagroup.plonecomments/trunk
- Timestamp:
- Apr 14, 2011 6:31:43 PM (13 years ago)
- Location:
- quintagroup.plonecomments/trunk/quintagroup/plonecomments
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.plonecomments/trunk/quintagroup/plonecomments/Extensions/Install.py
r3119 r3120 1 1 from Products.CMFCore.utils import getToolByName 2 2 from StringIO import StringIO 3 3 4 4 5 def install(self): … … 10 11 return out.getvalue() 11 12 13 12 14 def uninstall(self): 13 15 out = StringIO() -
quintagroup.plonecomments/trunk/quintagroup/plonecomments/browser/comments.py
r3118 r3120 23 23 24 24 def is_moderation_enabled(self): 25 """ Returns a boolean indicating whether the user has enabled moderation26 in the qPloneComments configlet25 """ Returns a boolean indicating whether the user has enabled 26 moderation in the qPloneComments configlet 27 27 """ 28 28 portal_properties = getToolByName(self.context, 'portal_properties') -
quintagroup.plonecomments/trunk/quintagroup/plonecomments/tests/helperNotify.py
r3119 r3120 3 3 ######################################################### 4 4 5 ALL_PROPS = ['enable_approve_user_notification', 'enable_reply_user_notification', 6 'enable_rejected_user_notification','enable_moderation', 7 'require_email', 'enable_anonymous_commenting', 8 'enable_published_notification', 'enable_approve_notification'] 5 ALL_PROPS = [ 6 'enable_approve_user_notification', 'enable_reply_user_notification', 7 'enable_rejected_user_notification', 'enable_moderation', 'require_email', 8 'enable_anonymous_commenting', 'enable_published_notification', 9 'enable_approve_notification', 10 ] 11 9 12 10 13 def setProperties(prop_sheet, *props): 11 14 for p in ALL_PROPS: 12 15 prop_sheet._updateProperty(p, p in props) 16 13 17 14 18 def testMailExistance(sel): -
quintagroup.plonecomments/trunk/quintagroup/plonecomments/tests/testQPloneCommentsCommenting.py
r3119 r3120 76 76 77 77 # All users CAN ADD COMMENTS 78 not_anonym_users = [u for u in self.all_users_id if not u =='anonym']78 not_anonym_users = [u for u in self.all_users_id if not u == 'anonym'] 79 79 failed_users = [] 80 80 for u in not_anonym_users: -
quintagroup.plonecomments/trunk/quintagroup/plonecomments/tests/testQPloneCommentsNotification.py
r3119 r3120 76 76 def test_bug_parent_reply(self): 77 77 setProperties(self.prefs, 'enable_reply_user_notification') 78 self.my_doc.discussion_reply('A Reply for my_doc' ,'text of reply for my_doc')78 self.my_doc.discussion_reply('A Reply for my_doc', 'text of reply for my_doc') 79 79 parent_reply = self.discussion.getDiscussionFor(self.my_doc).getReplies()[0] 80 80 parent_reply.discussion_reply('reply', 'text') -
quintagroup.plonecomments/trunk/quintagroup/plonecomments/tests/testQPloneCommentsReportAbuse.py
r3117 r3120 19 19 doc_obj.REQUEST.set('comment_id', comment.id) 20 20 try: 21 doc_obj.report_abuse("Anonymous Report Abuse") 21 doc_obj.report_abuse("Anonymous Report Abuse") 22 22 except: 23 23 raise "Anonymous user CAN'T report abuse in turned ON *Anonymous report abuse mode*." … … 35 35 self.login(u) 36 36 try: 37 doc_obj.report_abuse("Anonymous Report Abuse") 37 doc_obj.report_abuse("Anonymous Report Abuse") 38 38 except: 39 39 failed_users.append(u)
Note: See TracChangeset
for help on using the changeset viewer.