Changeset 3120 in products for quintagroup.plonecomments


Ignore:
Timestamp:
Apr 14, 2011 6:31:43 PM (13 years ago)
Author:
kroman0
Message:

Pyflakes and pep8 fixes #7

Location:
quintagroup.plonecomments/trunk/quintagroup/plonecomments
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.plonecomments/trunk/quintagroup/plonecomments/Extensions/Install.py

    r3119 r3120  
    11from Products.CMFCore.utils import getToolByName 
    22from StringIO import StringIO 
     3 
    34 
    45def install(self): 
     
    1011    return out.getvalue() 
    1112 
     13 
    1214def uninstall(self): 
    1315    out = StringIO() 
  • quintagroup.plonecomments/trunk/quintagroup/plonecomments/browser/comments.py

    r3118 r3120  
    2323 
    2424    def is_moderation_enabled(self): 
    25         """ Returns a boolean indicating whether the user has enabled moderation 
    26             in the qPloneComments configlet 
     25        """ Returns a boolean indicating whether the user has enabled 
     26            moderation in the qPloneComments configlet 
    2727        """ 
    2828        portal_properties = getToolByName(self.context, 'portal_properties') 
  • quintagroup.plonecomments/trunk/quintagroup/plonecomments/tests/helperNotify.py

    r3119 r3120  
    33######################################################### 
    44 
    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'] 
     5ALL_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 
    912 
    1013def setProperties(prop_sheet, *props): 
    1114    for p in ALL_PROPS: 
    1215        prop_sheet._updateProperty(p, p in props) 
     16 
    1317 
    1418def testMailExistance(sel): 
  • quintagroup.plonecomments/trunk/quintagroup/plonecomments/tests/testQPloneCommentsCommenting.py

    r3119 r3120  
    7676 
    7777        # 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'] 
    7979        failed_users = [] 
    8080        for u in not_anonym_users: 
  • quintagroup.plonecomments/trunk/quintagroup/plonecomments/tests/testQPloneCommentsNotification.py

    r3119 r3120  
    7676    def test_bug_parent_reply(self): 
    7777        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') 
    7979        parent_reply = self.discussion.getDiscussionFor(self.my_doc).getReplies()[0] 
    8080        parent_reply.discussion_reply('reply', 'text') 
  • quintagroup.plonecomments/trunk/quintagroup/plonecomments/tests/testQPloneCommentsReportAbuse.py

    r3117 r3120  
    1919        doc_obj.REQUEST.set('comment_id', comment.id) 
    2020        try: 
    21             doc_obj.report_abuse("Anonymous Report Abuse")  
     21            doc_obj.report_abuse("Anonymous Report Abuse") 
    2222        except: 
    2323            raise "Anonymous user CAN'T report abuse in turned ON *Anonymous report abuse mode*." 
     
    3535            self.login(u) 
    3636            try: 
    37                 doc_obj.report_abuse("Anonymous Report Abuse")  
     37                doc_obj.report_abuse("Anonymous Report Abuse") 
    3838            except: 
    3939                failed_users.append(u) 
Note: See TracChangeset for help on using the changeset viewer.