Changeset 3119 in products for quintagroup.plonecomments/trunk/quintagroup/plonecomments/utils.py
- Timestamp:
- Apr 14, 2011 6:09:56 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.plonecomments/trunk/quintagroup/plonecomments/utils.py
r3118 r3119 4 4 from Products.CMFCore.utils import getToolByName 5 5 from Products.CMFPlone.utils import safe_unicode 6 6 7 7 8 # Get apropriate property from (propery_sheeet) configlet … … 14 15 return result 15 16 17 16 18 def publishDiscussion(self): 17 19 roles = ['Anonymous'] … … 20 22 self._p_changed = 1 21 23 self.reindexObject() 24 22 25 23 26 def setAnonymCommenting(context, allow=False): … … 35 38 portal.manage_permission('Reply to item', roles, 1) 36 39 40 37 41 def manage_mails(reply, context, action): 38 42 def sendMails(props, actions, key): … … 71 75 sendMails(props, actions, 'onAuthenticatedReportAbuse') 72 76 77 73 78 def getMsg(context, template, args): 74 79 return getattr(context, template)(**args) 80 75 81 76 82 def allowEmail(context, reply, state, creator): … … 79 85 condition = condition(reply=reply, state=state, creator=creator) 80 86 return condition 87 81 88 82 89 def send_email(reply, context, state): … … 251 258 'Have you configured an email server for Plone?')) 252 259 260 253 261 def setStatusMsg(state, context, msg): 254 262 context.plone_utils.addPortalMessage(msg)
Note: See TracChangeset
for help on using the changeset viewer.