【发布时间】:2014-12-05 05:35:50
【问题描述】:
在全新的 Plone 4.3.2 上,我安装了这 3 个产品:
plone.app.contenttypes (1.1a1)
plone.app.event (1.0.4, with the dexterity and ploneintegration extras)
Solgema.fullcalendar (2.3.2)
从我的政策产品 metadata.xml 我有这个:
<?xml version="1.0"?>
<metadata>
<version>1</version>
<dependencies>
<dependency>profile-plone.app.dexterity:default</dependency>
<dependency>profile-plone.app.contenttypes:default</dependency>
<dependency>profile-plone.app.event:default</dependency>
<dependency>profile-plone.app.event.ploneintegration:default</dependency>
<dependency>profile-Solgema.fullcalendar:default</dependency>
</dependencies>
</metadata>
现在,问题是,当我安装所有东西时:
- 创建文件夹
- 转到该文件夹,然后应用“Solgema Fullcalendar”视图,它可以很好地呈现日历。
-
单击任何日期尝试添加新事件,我收到以下错误
Traceback(最里面最后):
- 模块 ZPublisher.Publish,第 138 行,在发布中
- 模块 ZPublisher.mapply,第 77 行,在 mapply 中
- 模块 ZPublisher.Publish,第 48 行,在 call_object 中
- 模块 Products.CMFFormController.FSControllerPythonScript,第 107 行,在 __call__ 中
- 模块 Products.CMFFormController.ControllerBase,第 231 行,在 getNext 中
- 模块 Products.CMFFormController.Actions.TraverseTo,第 38 行,在 __call__ 中
- 模块 ZPublisher.mapply,第 77 行,在 mapply 中
- 模块 ZPublisher.Publish,第 48 行,在 call_object 中
- 模块 Solgema.fullcalendar.browser.dx,第 38 行,在 __call__ 中
- 模块 Products.Five.browser.pagetemplatefile,第 125 行,在 __call__ 中
- 模块 Products.Five.browser.pagetemplatefile,第 59 行,在 __call__
- 模块 zope.pagetemplate.pagetemplate,第 132 行,在 pt_render 中
- 模块 zope.pagetemplate.pagetemplate,第 240 行,在 __call__ 中
- 模块 zope.tal.talinterpreter,第 271 行,在 __call__ 中
- 模块 zope.tal.talinterpreter,第 343 行,在解释中
- 模块 zope.tal.talinterpreter,第 888 行,在 do_useMacro 中
- 模块 zope.tal.talinterpreter,第 343 行,在解释中
- 模块 zope.tal.talinterpreter,第 533 行,在 do_optTag_tal 中
- 模块 zope.tal.talinterpreter,第 518 行,在 do_optTag 中
- 模块 zope.tal.talinterpreter,第 513 行,在 no_tag 中
- 模块 zope.tal.talinterpreter,第 343 行,在解释中
- 模块 zope.tal.talinterpreter,第 852 行,在 do_condition 中
- 模块 zope.tal.talinterpreter,第 343 行,在解释中
- 模块 zope.tal.talinterpreter,第 533 行,在 do_optTag_tal 中
- 模块 zope.tal.talinterpreter,第 518 行,在 do_optTag 中
- 模块 zope.tal.talinterpreter,第 513 行,在 no_tag 中
- 模块 zope.tal.talinterpreter,第 343 行,在解释中
- 模块 zope.tal.talinterpreter,第 946 行,在 do_defineSlot 中
- 模块 zope.tal.talinterpreter,第 343 行,在解释中
- 模块 zope.tal.talinterpreter,第 533 行,在 do_optTag_tal 中
- 模块 zope.tal.talinterpreter,第 518 行,在 do_optTag 中
- 模块 zope.tal.talinterpreter,第 513 行,在 no_tag 中
- 模块 zope.tal.talinterpreter,第 343 行,在解释中
- 模块 zope.tal.talinterpreter,第 620 行,在 do_insertText_tal 中
- 模块 Products.PageTemplates.Expressions,第 225 行,在评估文本中
- 模块 zope.tales.tales,第 696 行,在评估
URL:/trabajo/buildout/eggs/Solgema.fullcalendar-2.3.2-py2.7.egg/Solgema/fullcalendar/browser/ edit_dx_event.pt
第 9 行,第 0 列
表达式:
名称:{'args': (), 'container':, 'context': , 'default': - 模块 Products.PageTemplates.Expressions,第 383 行,在 __call__ 中
- 模块 Products.PageTemplates.Expressions,第 225 行,在评估文本中
- 模块 zope.tales.tales,第 696 行,在评估
URL:/trabajo/buildout/eggs/Solgema.fullcalendar-2.3.2-py2.7.egg/Solgema/fullcalendar/browser/ edit_dx_event.pt
第 9 行,第 0 列
表达式:
名称:{'args': (), 'container':, 'context': , 'default': - 模块 zope.tales.expressions,第 217 行,在 __call__ 中
- 模块 Products.PageTemplates.Expressions,第 155 行,在 _eval 中
- 模块 Products.PageTemplates.Expressions,第 117 行,在渲染中
- 模块 Solgema.fullcalendar.browser.dx,第 43 行,在 isodate 中
AttributeError: 'NoneType' 对象没有属性 'isoformat'
有没有人同时使用这 3 种产品?我错过了一些配置吗?
我尝试跟踪 Solgema.fullcalendar 产品的执行,我到达了调用 Solgema/fullcalendar/skins/solgemafullcalendar/createSFEvent.cpy 的部分,在第 33 行下,它调用了 SFAjax_base_edit,但此视图失败,因为此活动尚未设置任何日期。
既然我正在创建一个新事件,这不是应该调用 SFAjax_add_dx_event 吗?
无论如何,这里有点迷路,任何指针将不胜感激。
【问题讨论】:
-
这似乎是一个错误,可能已经报告了:github.com/collective/Solgema.fullcalendar/issues/29。如果需要,您可以在此处留言,说明您也遇到了此问题。
-
您是否已经通过github.com/collective/Solgema.fullcalendar/pull/17 解决了这个问题?
-
在 PloneConf / ScalingMountains 讨论使用 ftw.calendar 而不是 Solgema.fullcalendar 之后,我有一个笔记给自己。你试过吗?
-
啊,抱歉没发现这个曲是去年的!
标签: events fullcalendar plone dexterity