Ticket #713 (assigned enhancement)

Opened 14 years ago

Last modified 14 years ago

CPSSharedCalendar views browken

Reported by: d2m Owned by: lregebro
Priority: P2 Milestone: CPS 3.5.7
Component: CPSSharedCalendar Version: unspecified
Severity: normal Keywords:
Cc:

Description

install is plain zope2.8.0-b2 with cps-3.3.4

Traceback (innermost last):
  Module ZPublisher.Publish, line 113, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 40, in call_object
  Module Products.Five.browserconfigure, line 628, in __call__
  Module Shared.DC.Scripts.Bindings, line 311, in __call__
  Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
  Module Products.PageTemplates.PageTemplateFile, line 110, in _exec
  Module Products.PageTemplates.PageTemplate, line 102, in pt_render
   - <ZopeTwoPageTemplateFile at 0x39585d0>
  Module TAL.TALInterpreter, line 190, in __call__
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 671, in do_useMacro
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 671, in do_useMacro
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 409, in do_optTag_tal
  Module TAL.TALInterpreter, line 394, in do_optTag
  Module TAL.TALInterpreter, line 389, in no_tag
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 637, in do_condition
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 671, in do_useMacro
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 637, in do_condition
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 409, in do_optTag_tal
  Module TAL.TALInterpreter, line 394, in do_optTag
  Module TAL.TALInterpreter, line 389, in no_tag
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 613, in do_loop_tal
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 409, in do_optTag_tal
  Module TAL.TALInterpreter, line 394, in do_optTag
  Module TAL.TALInterpreter, line 389, in no_tag
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 613, in do_loop_tal
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 409, in do_optTag_tal
  Module TAL.TALInterpreter, line 394, in do_optTag
  Module TAL.TALInterpreter, line 389, in no_tag
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 637, in do_condition
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 409, in do_optTag_tal
  Module TAL.TALInterpreter, line 394, in do_optTag
  Module TAL.TALInterpreter, line 389, in no_tag
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 613, in do_loop_tal
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 409, in do_optTag_tal
  Module TAL.TALInterpreter, line 394, in do_optTag
  Module TAL.TALInterpreter, line 389, in no_tag
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 637, in do_condition
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 409, in do_optTag_tal
  Module TAL.TALInterpreter, line 398, in do_optTag
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 637, in do_condition
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 409, in do_optTag_tal
  Module TAL.TALInterpreter, line 394, in do_optTag
  Module TAL.TALInterpreter, line 389, in no_tag
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 637, in do_condition
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 409, in do_optTag_tal
  Module TAL.TALInterpreter, line 394, in do_optTag
  Module TAL.TALInterpreter, line 389, in no_tag
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 694, in do_defineSlot
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 409, in do_optTag_tal
  Module TAL.TALInterpreter, line 394, in do_optTag
  Module TAL.TALInterpreter, line 389, in no_tag
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 694, in do_defineSlot
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 409, in do_optTag_tal
  Module TAL.TALInterpreter, line 394, in do_optTag
  Module TAL.TALInterpreter, line 389, in no_tag
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 694, in do_defineSlot
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 409, in do_optTag_tal
  Module TAL.TALInterpreter, line 394, in do_optTag
  Module TAL.TALInterpreter, line 389, in no_tag
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 409, in do_optTag_tal
  Module TAL.TALInterpreter, line 394, in do_optTag
  Module TAL.TALInterpreter, line 389, in no_tag
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 671, in do_useMacro
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 409, in do_optTag_tal
  Module TAL.TALInterpreter, line 394, in do_optTag
  Module TAL.TALInterpreter, line 389, in no_tag
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 671, in do_useMacro
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 611, in do_loop_tal
  Module Products.PageTemplates.TALES, line 206, in setRepeat
  Module Products.PageTemplates.TALES, line 221, in evaluate
   - URL: index
   - Line 107, Column 4
   - Expression: <PythonExpr view.getEventDisplays()>
   - Names:
      {'container': <Products.Five.metaclass.SimpleViewClass from C:\Zope-2.8.0-b2\Products\CalZope\browser\calendar.pt object at 0x03B71170>,
       'context': <CpsCalendar at /cps/workspaces/members/manager/calendar>,
       'default': <Products.PageTemplates.TALES.Default instance at 0x017CADF0>,
       'here': <CpsCalendar at /cps/workspaces/members/manager/calendar>,
       'loop': <Products.PageTemplates.TALES.SafeMapping object at 0x037B03A0>,
       'modules': <Products.Five.TrustedExpression._ModuleImporter instance at 0x020A0E18>,
       'nothing': None,
       'options': {'args': (<Products.Five.metaclass.SimpleViewClass from C:\Zope-2.8.0-b2\Products\CalZope\browser\calendar.pt object at 0x03B71170>,)},
       'repeat': <Products.PageTemplates.TALES.SafeMapping object at 0x037B03A0>,
       'request': <HTTPRequest, URL=http://localhost:8080/cps/workspaces/members/manager/calendar/calendar.html>,
       'root': <OFS.Application.Application object at 0x02A4C5F0>,
       'template': <ZopeTwoPageTemplateFile at 0x39585d0>,
       'traverse_subpath': [],
       'user': manager,
       'view': <Products.Five.metaclass.SimpleViewClass from C:\Zope-2.8.0-b2\Products\CalZope\browser\calendar.pt object at 0x03B71170>,
       'views': <zope.app.pagetemplate.viewpagetemplatefile.ViewMapper object at 0x0376D490>}
  Module Products.PageTemplates.PythonExpr, line 70, in __call__
   - __traceback_info__: view.getEventDisplays()
  Module <string>, line 2, in f
  Module Products.CalZope.browser.week, line 120, in getEventDisplays
  Module Products.CalZope.browser.displaytable, line 467, in flatten
  Module Products.CalZope.browser.displaytable, line 70, in setLastCol
ValueError: Cells can not have zero or negative size

Change History

comment:1 Changed 14 years ago by lregebro

  • Version changed from 3.3.4 to unspecified
  • Milestone changed from CPS 3.2.5 to unspecified

I discussed this with d2m on #cps, and the problem is that he creates an event that is 154 days long, and then makes it recurr daily. We need to take care of that somehow.

comment:2 Changed 14 years ago by lregebro

  • Status changed from new to assigned
  • Priority changed from P1 to P2

The error doesn't appear anymore. However, you can still create non-sensical events like this. We need both to make sure warnings appear when you try to create events with these settings, and we need to have better display of events that are created like this, in the event of events being created with other calendar clients.

But I lowered the priority, as it is now possible to see the event and edit it to reasonable data again.

comment:3 Changed 14 years ago by Lennart Regebro <lr@…>

  • Severity changed from normal to enhancement
  • Milestone changed from unspecified to CPS 3.4.0

Better displays = enchancement, not bug.

comment:4 Changed 14 years ago by lregebro

  • Milestone changed from CPS 3.4.0 to CPS 3.5.0
Note: See TracTickets for help on using tickets.