Changeset 49783 for CPS4/products/CPSSubscriptions
- Timestamp:
- 10/20/06 20:56:29 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
CPS4/products/CPSSubscriptions/trunk/EventSubscriptionsManager.py
r48653 r49783 108 108 109 109 # Just more secure in case of the event configuration is badly done. 110 if notevents_from_context:110 if event_type not in events_from_context: 111 111 return {} 112 112 … … 191 191 if infos.get('kwargs_comment') is not None: 192 192 infos['comments'] = infos['kwargs_comment'] 193 if infos.get('kwargs_comments') is not None:193 elif infos.get('kwargs_comments') is not None: 194 194 infos['comments'] = infos['kwargs_comments'] 195 195 CPS4/products/CPSSubscriptions/trunk/SubscriptionsTool.py
r49779 r49783 729 729 done on containers. 730 730 """ 731 mapping = {} 731 732 if context is not None: 732 733 context_portal_type = getattr(context, 'portal_type', '') … … 736 737 container = aq_parent(aq_inner(context)) 737 738 container_portal_type = getattr(container, 'portal_type', '') 738 returnself.mapping_context_events.get(container_portal_type, {})739 return {}739 mapping = self.mapping_context_events.get(container_portal_type, {}) 740 return mapping 740 741 741 742 security.declarePublic('getFilteredAllowedToSubscribeEventsFromContext')
