[Nuxeo-tickets] Re: [Nuxeo Repository] #1673: Newsletter content is not send by email.

Nuxeo Repository trac at nuxeo.com
Thu Jun 15 16:02:13 CEST 2006


#1673: Newsletter content is not send by email.
-----------------------------------------------------------------------------------+
 Reporter:  avoinea                                                                |        Owner:  avoinea  
     Type:  defect                                                                 |       Status:  closed   
 Priority:  P1                                                                     |    Milestone:  CPS 3.4.2
Component:  CPSSubscriptions                                                       |      Version:  TRUNK    
 Severity:  normal                                                                 |   Resolution:  fixed    
 Keywords:  NewsLetter, CPSSubscriptions, Notifications, notify, notifyRecipients  |  
-----------------------------------------------------------------------------------+
Changes (by avoinea):

  * status:  new => closed
  * resolution:  => fixed

Comment:

 Fixed by revision [46530]
 {{{
 -            getattr(object, 'portal_type', '') in rendered_ptypes or
 +            getattr(object_, 'portal_type', '') in rendered_ptypes or
              infos.get('event', '') in rendered_events):
              # Is the object_ a CPSDocument ?
 -            if hasattr(aq_parent(aq_inner(object_)), 'render'):
 -                body = object_.getContent().render(proxy=object_)
 +            doc = hasattr(object_, 'getContent') and object_.getContent()
 +            if hasattr(doc, 'render'):
 +                body = doc.render(proxy=object_)
                  mime_type = 'text/html'
 }}}

-- 
Ticket URL: <http://svn.nuxeo.org/trac/pub/ticket/1673>
Nuxeo Repository <http://www.cps-project.org/>
Nuxeo Repository


More information about the Nuxeo-tickets mailing list

This list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.