Changeset 46530
- Timestamp:
- 06/15/06 15:59:01 (2 years ago)
- Files:
-
- CPS3/products/CPSSubscriptions/trunk/CHANGES (modified) (1 diff)
- CPS3/products/CPSSubscriptions/trunk/Notifications.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
CPS3/products/CPSSubscriptions/trunk/CHANGES
r45792 r46530 7 7 Bug fixes: 8 8 ~~~~~~~~~~ 9 - 9 - #1673 - Send document content by email when render content is specified. 10 10 New internal features: 11 11 ~~~~~~~~~~~~~~~~~~~~~~ CPS3/products/CPSSubscriptions/trunk/Notifications.py
r32678 r46530 397 397 rendered_events = stool.getRenderedEvents() 398 398 if (object_ is not None and 399 getattr(object , 'portal_type', '') in rendered_ptypes or399 getattr(object_, 'portal_type', '') in rendered_ptypes or 400 400 infos.get('event', '') in rendered_events): 401 401 # Is the object_ a CPSDocument ? 402 if hasattr(aq_parent(aq_inner(object_)), 'render'): 403 body = object_.getContent().render(proxy=object_) 402 doc = hasattr(object_, 'getContent') and object_.getContent() 403 if hasattr(doc, 'render'): 404 body = doc.render(proxy=object_) 404 405 mime_type = 'text/html' 405 406 else:
