【问题标题】:How can I have Solgema.fullcalendar, plone.app.event and plone.app.contenttypes to work together?我怎样才能让 Solgema.fullcalendar、plone.app.event 和 plone.app.contenttypes 一起工作?
【发布时间】: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': ,
       'here': ,
       '环形': {},
       “无”:无,
       '选项': {},
       “重复”:,
       'request': ,
       'root': ,
       '模板': ,
       'traverse_subpath': [],
       '用户': ,
       'view': ,
       'views': }
    • 模块 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': ,
       'here': ,
       '环形': {},
       “无”:无,
       '选项': {},
       “重复”:,
       'request': ,
       'root': ,
       '模板': ,
       'traverse_subpath': [],
       '用户': ,
       'view': ,
       'views': }
    • 模块 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 吗?

无论如何,这里有点迷路,任何指针将不胜感激。

【问题讨论】:

标签: events fullcalendar plone dexterity


【解决方案1】:

这个问题很可能已经在最近的 Solgema.fullcalendar 版本中得到修复。我无法使用 Plone 4.3.4.1 上的当前设置重现该错误。我在我的构建中使用了这些版本修复:

[versions]
plone.app.event = 1.1.4
plone.app.contenttypes = 1.1b3
Solgema.fullcalendar = 2.3.4

请注意,您不再需要 profile-plone.app.event.ploneintegration:default 个人资料。

【讨论】:

    猜你喜欢
    • 2017-12-24
    • 2014-10-21
    • 1970-01-01
    • 1970-01-01
    • 2021-02-25
    • 2020-02-03
    • 2012-04-22
    • 2013-03-28
    • 2013-04-26
    相关资源
    最近更新 更多