Changeset 3115 in products for quintagroup.plonecomments/trunk/quintagroup/plonecomments/browser/comments.py
- Timestamp:
- Apr 14, 2011 5:04:01 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.plonecomments/trunk/quintagroup/plonecomments/browser/comments.py
r3114 r3115 41 41 purl = getToolByName(self.context, 'portal_url') 42 42 mtool = getToolByName(self.context, 'portal_membership') 43 portrait_url = purl() + '/defaultUser.gif' 43 portrait_url = purl() + '/defaultUser.gif' 44 44 email = '' 45 45 … … 51 51 mem_id = getattr(member,'getId',lambda:'Anonymous User')() 52 52 portrait = mtool.getPersonalPortrait(mem_id) 53 portrait_url = 53 portrait_url = portrait.absolute_url() 54 54 else: 55 55 email = reply.getProperty('email',d='') … … 69 69 portal_properties = getToolByName(self.context, 'portal_properties') 70 70 prop_sheet = portal_properties['qPloneComments'] 71 value = 71 value = prop_sheet.getProperty('enable_authenticated_report_abuse', False) 72 72 return value 73 73 … … 76 76 portal_properties = getToolByName(self.context, 'portal_properties') 77 77 prop_sheet = portal_properties['qPloneComments'] 78 value = 78 value = prop_sheet.getProperty('enable_anonymous_report_abuse', False) 79 79 return value 80 80 … … 83 83 portal_properties = getToolByName(self.context, 'portal_properties') 84 84 prop_sheet = portal_properties['qPloneComments'] 85 value = 85 value = prop_sheet.getProperty('enable_ajax_report_abuse', False) 86 86 return value 87 87 … … 100 100 """ """ 101 101 return getToolByName(self.context, 'portal_url') 102 103 102 104 103
Note: See TracChangeset
for help on using the changeset viewer.