Lennart,
calling
self.aq_parent
in the CmfCalendar.getMainAttendee reveals that the 'acquisitional'
parent object of the calendar is
<Products.Five.metaclass.SimpleViewClass from
/home/morphex/CalCMF/CalZope/browser/week.pt object at 0xb5038f4c>
that doesn't seem right to me. The parent of the calendar should be a
Plone site.. furthermore, if I hack the getMainAttende method so that
it uses a pre-defined tuple instead of the result of getPhysicalPath(),
a new error appears:
TypeError
__init__() takes exactly 4 arguments (5 given)
# Module Products.PageTemplates.Expressions, line 185, in __call__
# Module Products.PageTemplates.Expressions, line 180, in _eval
# Module Products.PageTemplates.Expressions, line 85, in render
# Module Products.CalZope.browser.calview, line 172, in getNeedsActionAmount
# Module Products.CalZope.browser.calview, line 238, in getNeedsActionEvents
# Module calcore.cal, line 907, in getEvents
# Module Products.CalCMF.calendar, line 88, in getAttendees
# Module Products.CalCMF.calendar, line 85, in getMainAttendee
# Module Products.CalCMF.calendartool, line 92, in getAttendee
# Module Products.CalCMF.calendartool, line 312, in __init__
so it looks like CalCMF is badly broken.. do you know how this can be
fixed?
-Morten
Lennart Regebro wrote:
> Hmm. What versions of Zope and Five is this?
>
> Morten W. Petersen wrote:
>> I've kinda hit a brick-wall with the most recent CalCMF from SVN;
>> whenever I create a calendar and try to view it, I get the following
>> message
>>
>> AttributeError
>> getPhysicalPath
>>
>> Adding some print statements to getPhysicalPath in Traversable reveals
>> that something with Five is involved
>>
>> def getPhysicalPath(self):
>> """Get the physical path of the object.
>>
>> Returns a path (an immutable sequence of strings) that can be
>> used to
>> access this object again later, for example in a copy/paste
>> operation.
>> getPhysicalRoot() and getPhysicalPath() are designed to operate
>> together.
>> """
>> path = (self.getId(),)
>>
>> p = aq_parent(aq_inner(self))
>> try:
>> if p is not None:
>> path = p.getPhysicalPath() + path
>> except:
>> print 'exception in getPhysicalPath'
>> print p, type(p)
>> raise
>>
>> return path
>>
>> exception in getPhysicalPath
>> <Products.Five.metaclass.SimpleViewClass from
>> /home/morphex/CalCMF/CalZope/browser/week.pt object at 0xb5077e6c> <type
>> 'ExplicitAcquirerWrapper'>
>>
>> I'm not into Five so it is hard to tell what's going on...
>>
>> -Morten
>
>
_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel