#66 — AttributeError occurs when clicking on day view
| State | Resolved |
|---|---|
| Version: | 1.5 |
| Area | Functionality |
| Issue type | Bug |
| Severity | Medium |
| Submitted by | Nate Aune |
| Submitted on | 2008-04-30 |
| Responsible | Lennart Regebro |
| Target release: | 1.5 |
Last modified on
2008-05-02
by
Lennart Regebro
Under Plone 3.1 and running the latest p4acal.buildout, the following error occurs when clicking on the day view.
Traceback (innermost last):
Module ZPublisher.Publish, line 119, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 42, in call_object
Module Products.Five.browser.metaconfigure, line 417, in __call__
Module Shared.DC.Scripts.Bindings, line 313, in __call__
Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
Module Products.PageTemplates.PageTemplateFile, line 129, in _exec
Module Products.PageTemplates.PageTemplate, line 89, in pt_render
Module zope.pagetemplate.pagetemplate, line 117, in pt_render
Module zope.tal.talinterpreter, line 271, in __call__
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 891, in do_useMacro
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 536, in do_optTag_tal
Module zope.tal.talinterpreter, line 521, in do_optTag
Module zope.tal.talinterpreter, line 516, in no_tag
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 957, in do_defineSlot
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 536, in do_optTag_tal
Module zope.tal.talinterpreter, line 521, in do_optTag
Module zope.tal.talinterpreter, line 516, in no_tag
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 861, in do_defineMacro
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 957, in do_defineSlot
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 536, in do_optTag_tal
Module zope.tal.talinterpreter, line 521, in do_optTag
Module zope.tal.talinterpreter, line 516, in no_tag
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 534, in do_optTag_tal
Module zope.tal.talinterpreter, line 516, in no_tag
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 949, in do_defineSlot
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 586, in do_setLocal_tal
Module zope.tales.tales, line 696, in evaluate
- URL: index
- Line 10, Column 0
- Expression: <PathExpr standard:'view/calcInfo'>
- Names:
{'container': <ATFolder at /cal/calendar>,
'context': <ATFolder at /cal/calendar>,
'default': <object object at 0x55530>,
'here': <ATFolder at /cal/calendar>,
'loop': {},
'nothing': None,
'options': {'args': (<Products.Five.metaclass.SimpleViewClass from /Users/nateaune/Documents/instances/p4acal.buildout/src/dateable.chronos/dateable/chronos/browser/day.pt object at 0x8ab50d0>,)},
'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0x80690f8>,
'request': <HTTPRequest, URL=http://localhost:8080/cal/calendar/day.html>,
'root': <Application at >,
'template': <ImplicitAcquirerWrapper object at 0x8ab5410>,
'traverse_subpath': [],
'user': <PropertiedUser 'admin'>,
'view': <Products.Five.metaclass.SimpleViewClass from /Users/nateaune/Documents/instances/p4acal.buildout/src/dateable.chronos/dateable/chronos/browser/day.pt object at 0x8ab50d0>,
'views': <zope.app.pagetemplate.viewpagetemplatefile.ViewMapper object at 0x8ab51b0>}
Module zope.tales.expressions, line 217, in __call__
Module Products.PageTemplates.Expressions, line 161, in _eval
Module Products.PageTemplates.Expressions, line 123, in render
Module dateable.chronos.browser.day, line 61, in calcInfo
AttributeError: getHoursToView
Traceback (innermost last):
Module ZPublisher.Publish, line 119, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 42, in call_object
Module Products.Five.browser.metaconfigure, line 417, in __call__
Module Shared.DC.Scripts.Bindings, line 313, in __call__
Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
Module Products.PageTemplates.PageTemplateFile, line 129, in _exec
Module Products.PageTemplates.PageTemplate, line 89, in pt_render
Module zope.pagetemplate.pagetemplate, line 117, in pt_render
Module zope.tal.talinterpreter, line 271, in __call__
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 891, in do_useMacro
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 536, in do_optTag_tal
Module zope.tal.talinterpreter, line 521, in do_optTag
Module zope.tal.talinterpreter, line 516, in no_tag
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 957, in do_defineSlot
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 536, in do_optTag_tal
Module zope.tal.talinterpreter, line 521, in do_optTag
Module zope.tal.talinterpreter, line 516, in no_tag
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 861, in do_defineMacro
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 957, in do_defineSlot
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 536, in do_optTag_tal
Module zope.tal.talinterpreter, line 521, in do_optTag
Module zope.tal.talinterpreter, line 516, in no_tag
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 534, in do_optTag_tal
Module zope.tal.talinterpreter, line 516, in no_tag
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 949, in do_defineSlot
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 586, in do_setLocal_tal
Module zope.tales.tales, line 696, in evaluate
- URL: index
- Line 10, Column 0
- Expression: <PathExpr standard:'view/calcInfo'>
- Names:
{'container': <ATFolder at /cal/calendar>,
'context': <ATFolder at /cal/calendar>,
'default': <object object at 0x55530>,
'here': <ATFolder at /cal/calendar>,
'loop': {},
'nothing': None,
'options': {'args': (<Products.Five.metaclass.SimpleViewClass from /Users/nateaune/Documents/instances/p4acal.buildout/src/dateable.chronos/dateable/chronos/browser/day.pt object at 0x8ab50d0>,)},
'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0x80690f8>,
'request': <HTTPRequest, URL=http://localhost:8080/cal/calendar/day.html>,
'root': <Application at >,
'template': <ImplicitAcquirerWrapper object at 0x8ab5410>,
'traverse_subpath': [],
'user': <PropertiedUser 'admin'>,
'view': <Products.Five.metaclass.SimpleViewClass from /Users/nateaune/Documents/instances/p4acal.buildout/src/dateable.chronos/dateable/chronos/browser/day.pt object at 0x8ab50d0>,
'views': <zope.app.pagetemplate.viewpagetemplatefile.ViewMapper object at 0x8ab51b0>}
Module zope.tales.expressions, line 217, in __call__
Module Products.PageTemplates.Expressions, line 161, in _eval
Module Products.PageTemplates.Expressions, line 123, in render
Module dateable.chronos.browser.day, line 61, in calcInfo
AttributeError: getHoursToView
- Steps to reproduce:
- Make a new folder
Activate it as a calendar
Click on day view
Error occurs
Added by
Graham Perrin
on
2008-04-30 05:16 PM
The issue is also noted with p4acal.buildout + Plone 3.0.6.
Added by
Lennart Regebro
on
2008-05-02 12:08 PM
Issue state:
unconfirmed → resolved
Solved and tested.