[Nuxeo-tickets] [Nuxeo Repository] #1646: Doesn't work with Zope 2.9.2

Nuxeo Repository trac at nuxeo.com
Mon May 15 01:36:00 CEST 2006


#1646: Doesn't work with Zope 2.9.2
---------------------------+------------------------------------------------
 Reporter:  gracinet       |       Owner:  tziade   
     Type:  defect         |      Status:  new      
 Priority:  P2             |   Milestone:  CPS 3.4.1
Component:  CPSMailAccess  |     Version:  TRUNK    
 Severity:  critical       |    Keywords:           
---------------------------+------------------------------------------------
 I think this is due to the changes in traversal introduced in Five 1.3.2,
 1.3.3:
 {{{
 Error Type:     TypeError
 Error Value:

 getReferences() takes exactly 2 arguments (1 given)

 Traceback:

 Traceback (innermost last):

     * Module ZPublisher.Publish, line 115, in publish
       (...)
     * Module Products.PageTemplates.TALES, line 221, in evaluate
       URL: index
       Line 38, Column 4
       Expression: standard:'here/getReferences'
       Names:

       {'container': <MailMessage at
 /cps/portal_webmail/box_antonin/INBOX/.303>,
        'context': <MailMessage at
 /cps/portal_webmail/box_antonin/INBOX/.303>,
        'default': <Products.PageTemplates.TALES.Default instance at
 0x40d71a4c>,
        'here': <MailMessage at
 /cps/portal_webmail/box_antonin/INBOX/.303>,
        'loop': <Products.PageTemplates.TALES.SafeMapping object at
 0x4430b20c>,
        'modules':
 <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at
 0x40da204c>,
        'nothing': None,
        'options': {'args': (<Products.Five.metaclass.SimpleViewClass from
 /home/zope/var/viral-
 prod.com/Products/CPSMailAccess/www/mailMessageView.zpt object at
 0x4430be2c>,)},
        'repeat': <Products.PageTemplates.TALES.SafeMapping object at
 0x4430b20c>,
        'request': <HTTPRequest, URL=https://viral-
 prod.com/portal_webmail/box_antonin/INBOX/.303/view>,
        'root': <Application at >,
        'template': <ImplicitAcquirerWrapper object at 0x442fa20c>,
        'view': <Products.Five.metaclass.SimpleViewClass from
 /home/zope/var/viral-
 prod.com/Products/CPSMailAccess/www/mailMessageView.zpt object at
 0x4430be2c>,
        'views': <zope.app.pagetemplate.viewpagetemplatefile.ViewMapper
 object at 0x4430b0cc>}

     * Module Products.PageTemplates.Expressions, line 185, in __call__
     * Module Products.PageTemplates.Expressions, line 180, in _eval
     * Module Products.PageTemplates.Expressions, line 85, in render

 TypeError: getReferences() takes exactly 2 arguments (1 given)
 }}}
 Now, given that:

  * !MailMessage has no getReferences method
  * !MailBox has a getReferences method with args (self, message)
  * !MailMessageView has a getReferences method with args (self)

 My interpretation is that this 'here' should be 'view'. Before the Five
 changes, there was an automagical view lookup, but now it gets the
 getReferences method from the mailbox object by acquisition, hence the
 error.

 Needless to say, no prob on Zope 2.9.1

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


More information about the Nuxeo-tickets mailing list
More information about CPS: CPS project - CVS - API

Hosting: Nuxeo: Zope service provider


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