我正在尝试将Formal工作流程应用于我们定制的dexterity对象。 Buildout有plone.app.versioningbehavior,collective.cmfeditionsdexteritycompat,collective.dexteritydiff plone.app.stagingbehavior,plone.app.referenceablebehavior。
我发现当我单击checkout时它确实创建了对象的副本(copy_of_object)但是引用了工作副本(对象)被破坏了吗?此时如果我回到我的工作副本(对象),它会发出以下错误:
attributeError('getBRefs',) (Also, the following error occurred while attempting to render the standard error message, please see the event log for full details: getBRefs)
任何帮助都会很棒。这是我的完整引用
Traceback (innermost last):
Module ZPublisher.Publish, line 126, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 46, in call_object
Module grokcore.view.components, line 100, in __call__
Module grokcore.view.components, line 104, in _render_template
Module five.grok.components, line 134, in render
Module zope.pagetemplate.pagetemplate, line 113, in pt_render
Module zope.tal.talinterpreter, line 271, in __call__
Module zope.tal.talinterpreter, line 343, in interpret
Module zope.tal.talinterpreter, line 888, in do_useMacro
Module zope.tal.talinterpreter, line 343, in interpret
Module zope.tal.talinterpreter, line 533, in do_optTag_tal
Module zope.tal.talinterpreter, line 518, in do_optTag
Module zope.tal.talinterpreter, line 513, in no_tag
Module zope.tal.talinterpreter, line 343, in interpret
Module zope.tal.talinterpreter, line 852, in do_condition
Module zope.tal.talinterpreter, line 343, in interpret
Module zope.tal.talinterpreter, line 742, in do_insertStructure_tal
Module Products.PageTemplates.Expressions, line 218, in evaluateStructure
Module zope.tales.tales, line 696, in evaluate
- URL: file:c:\web\panda\buildout\src\rcseng.theme\rcseng\theme\skins\rcseng_theme_custom_templates\main_template.pt
- Line 101, Column 12
- Expression: <StringExpr u'plone.abovecontent'>
- Names:
{'args': (),
'container': <Course at /riz/new-course>,
'context': <Course at /riz/new-course>,
'default': <object object at 0x0121E7F0>,
'here': <Course at /riz/new-course>,
'loop': {},
'nothing': None,
'options': {},
'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0x09DEED80>,
'request': <HTTPRequest, URL=http://localhost:8070/new-course/view>,
'root': <Application at >,
'static': <five.grok.components.ZopeTwoDirectoryResource object at 0x0989FD90>,
'template': <Products.Five.browser.pagetemplatefile.ViewPageTemplateFile object at 0x0934B850>,
'traverse_subpath': [],
'user': <PropertiedUser 'admin'>,
'view': <rcseng.contenttypes.course.Course_View object at 0x0989BCB0>,
'views': <Products.Five.browser.pagetemplatefile.ViewMapper object at 0x09201BF0>}
Module zope.contentprovider.tales, line 80, in __call__
Module plone.app.viewletmanager.manager, line 154, in render
Module plone.app.viewletmanager.manager, line 85, in render
Module ilrt.formalworkflow.browser.info, line 9, in render
Module plone.memoize.instance, line 51, in memogetter
Module plone.app.iterate.browser.info, line 107, in working_copy
AttributeError: getBRefs
答案 0 :(得分:0)
如果我在里面创建文件夹并创建了对象,它可以正常工作。网站根级别给出此错误