From: Nikolay <faf...@us...> - 2004-01-20 19:59:14
|
Update of /cvsroot/collective/PortalTransport In directory sc8-pr-cvs1:/tmp/cvs-serv19279 Modified Files: README.txt SubscribeableAnonymous.py Log Message: * change some View premission to AllowSubscription Index: SubscribeableAnonymous.py =================================================================== RCS file: /cvsroot/collective/PortalTransport/SubscribeableAnonymous.py,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- SubscribeableAnonymous.py 20 Jan 2004 11:44:59 -0000 1.1 +++ SubscribeableAnonymous.py 20 Jan 2004 19:59:10 -0000 1.2 @@ -16,7 +16,6 @@ siType = 'PT_SIAnonymous' - class SubscribeableAnonymous(BaseSubscribeable): """ """ @@ -24,25 +23,33 @@ security = ClassSecurityInfo() - security.declareProtected(View, 'isAllowAnonymousSubscribers') + security.declareProtected(AllowSubscription, 'isAllowAnonymousSubscribers') def isAllowAnonymousSubscribers(self): """ """ return 1 - security.declareProtected(View, 'isAutoActivateAnonymousSubscription') + security.declareProtected(AllowSubscription, + 'isAutoActivateAnonymousSubscription') def isAutoActivateAnonymousSubscription(self): """ auto activate or start activate process """ return 0 - security.declareProtected(View, 'isSendSubscriptionNotifications') + security.declareProtected(AllowSubscription, + 'isSendSubscriptionNotifications') def isSendSubscriptionNotifications(self): """ """ return 1 - security.declareProtected(View, 'isAnonymousSubscribed') + #security.declareProtected(AllowSubscription, 'getisAnonymousSubscribed') + #def + + security.declareProtected(AllowSubscription, 'isAnonymousSubscribed') def isAnonymousSubscribed(self, email): """ """ subs = getToolByName(self, 'portal_subscriptions') + print subs.isSubscribed(self, email=email, member_id='Anonymous User', + review_state=('active', 'deactivation')) + return subs.isSubscribed(self, email=email, member_id='Anonymous User', review_state=('active', 'deactivation')) Index: README.txt =================================================================== RCS file: /cvsroot/collective/PortalTransport/README.txt,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- README.txt 20 Jan 2004 19:36:38 -0000 1.7 +++ README.txt 20 Jan 2004 19:59:10 -0000 1.8 @@ -45,17 +45,16 @@ These variables can be used in the text: - options/content - content object providing subscription - options/content_title - title of object providing subscription - options/content_url - url of object providing subscription - options/content_email - email address of object providing subscription + options/content - content object providing subscription + options/content_title - title of object providing subscription + options/content_url - url of object providing subscription + options/content_email - email address of object providing subscription options/subscribe_url - URL to subscribe to object - options/confirm - URL to confirm subscribe / unsubscribe request for anonymous + options/confirm_url - URL to confirm subscribe / unsubscribe request for anonymous options/unsubscribe_url - URL to unsubscribe from object - options/email - email address of subscriber - options/fullname - name of subscriber - options/member - member object; None if person is anonymous - options/portal - portal instance - options/portal_email - portal email address + options/email - email address of subscriber + options/fullname - name of subscriber + options/member - member object; None if person is anonymous + options/portal - portal instance + options/portal_email - portal email address options/portal_email_from - portal administrator name - |