Changeset 3109 in products
- Timestamp:
- Apr 14, 2011 1:44:23 PM (13 years ago)
- Location:
- quintagroup.plonecomments/branches/jquery/quintagroup/plonecomments
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.plonecomments/branches/jquery/quintagroup/plonecomments/browser/comments.py
r3107 r3109 64 64 65 65 def authenticated_report_abuse_enabled(self): 66 """ """66 """ authenticated_report_abuse_enabled """ 67 67 portal_properties = getToolByName(self.context, 'portal_properties') 68 68 prop_sheet = portal_properties['qPloneComments'] … … 72 72 73 73 def anonymous_report_abuse_enabled(self): 74 """ """74 """ anonymous_report_abuse_enabled """ 75 75 portal_properties = getToolByName(self.context, 'portal_properties') 76 76 prop_sheet = portal_properties['qPloneComments'] … … 79 79 80 80 def visual_effects_level(self): 81 """ """81 """ visual_effects_level """ 82 82 portal_properties = getToolByName(self.context, 'portal_properties') 83 83 prop_sheet = portal_properties['qPloneComments'] … … 86 86 87 87 def email_from_address(self): 88 """ """88 """ email_from_address """ 89 89 portal_url = getToolByName(self.context, 'portal_url') 90 90 portal = portal_url.getPortalObject() … … 97 97 98 98 class IQCommentsView(Interface): 99 """ 99 """ QComments View Interface 100 100 """ 101 101 102 102 def js3(): 103 """ 103 """ visual_effects = 1 104 104 """ 105 105 106 106 def js4(): 107 """ 107 """ visual_effects = 0 and popupenabled or visual_effects == 2 108 108 """ 109 109 110 110 111 111 class QCommentsView(BrowserView): 112 """ 112 """ QComments View 113 113 """ 114 114 115 115 def js3(self): 116 """ 116 """ visual_effects = 1 117 117 """ 118 118 portal_properties = getToolByName(self.context, 'portal_properties') … … 122 122 123 123 def js4(self): 124 """ 124 """ visual_effects = 0 and popupenabled or visual_effects == 2 125 125 """ 126 126 portal_properties = getToolByName(self.context, 'portal_properties') … … 130 130 popupenabled = jstool.getResource('popupforms.js').getEnabled() 131 131 return value == 0 and popupenabled or value == 2 132 -
quintagroup.plonecomments/branches/jquery/quintagroup/plonecomments/tests/testQPloneCommentsConfiglet.py
r3107 r3109 6 6 from Products.CMFCore.utils import getToolByName 7 7 from AccessControl.SecurityManagement import noSecurityManager 8 from base import FunctionalTestCase 9 from config import USERS, PROPERTY_SHEET, DM_USERS_IDS, COMMON_USERS_IDS 8 from quintagroup.plonecomments.tests.base import FunctionalTestCase 9 from quintagroup.plonecomments.tests.config import USERS, PROPERTY_SHEET, \ 10 DM_USERS_IDS, COMMON_USERS_IDS 10 11 11 12
Note: See TracChangeset
for help on using the changeset viewer.