-
hello all, I have a custom remember based type based loosely on sampleremember. In the GS profile I've added the membrane_tool.xml file with the contents: <?xml version="1.0"?> <object name="membrane_tool" meta_type="MembraneTool"> <membrane-type name="<Custom Type>"> <active-workflow-state name="public" /> <active-workflow-state name="private" /> </membrane-type> </object> When this is in place, selecting the Status Map tab in the membrane_tool throws an error, traceback: 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.membrane.browser.tool_zmi_views, line 25, 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 824, in do_loop_tal 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: status_map - Line 20, Column 6 - Expression: <PythonExpr (view.activeStatesForType(type))> - Names: {'container': <MembraneTool at /z/membrane_tool>, 'context': <MembraneTool at /z/membrane_tool>, 'default': <object object at 0x53528>, 'here': <MembraneTool at /z/membrane_tool>, 'loop': {'type': <Products.PageTemplates.Expressions.PathIterator object at 0x72b82d0>}, 'nothing': None, 'options': {'args': ()}, 'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0x6be9198>, 'request': <HTTPRequest, URL=http://localhost:8888/z/membrane_tool/manage_statusmap>, 'root': <Application at >, 'template': <ImplicitAcquirerWrapper object at 0x72bea10>, 'traverse_subpath': [], 'user': <PropertiedUser 'admin'>, 'view': <Products.Five.metaclass.SimpleViewClass from /Users/darianschramm/zopesandboxes/zb_production/parts/development-products/membrane/browser/status_map.pt object at 0x72a0b30>, 'views': <zope.app.pagetemplate.viewpagetemplatefile.ViewMapper object at 0x700bb10>} Module zope.tales.pythonexpr, line 59, in __call__ - __traceback_info__: (view.activeStatesForType(type)) Module <string>, line 0, in ? Module Products.membrane.browser.tool_zmi_views, line 76, in activeStatesForType Module Products.membrane.factories.categorymapper, line 99, in listCategoryValues Module Products.membrane.factories.categorymapper, line 44, in _getCategory Module Products.membrane.factories.categorymapper, line 36, in _getCatSet KeyError: u"Category set 'ZbUser_membrane_workflow_states' does not exist" When I remove this and install everything works as it should, with one issue. In the membrane_tool in the zmi I need to first select Member in the Membrane types, then select the Status Map tab, then go back to Types and select my custom type then Status Map again. -- Darian V Schramm -
darian schramm wrote: > hello all, > > I have a custom remember based type based loosely on sampleremember. In the > GS profile I've added the membrane_tool.xml file with the contents: > > <?xml version="1.0"?> > <object name="membrane_tool" meta_type="MembraneTool"> > <membrane-type name="<Custom Type>"> > <active-workflow-state name="public" /> > <active-workflow-state name="private" /> > </membrane-type> > </object> do you really have "<Custom Type>" in there? if so, you should replace that with the actual type name, which would seem to be ZbUser based on the traceback below. if it is indeed ZbUser that you've got in there, then let us know and i'll dig a little more deeply. -r
-
Heh, no. I have ZbUser in place of <Custom Type>, I was showing what I had without adding the actual type name. Sorry for the inconsistency. Thanks for taking a look. On Mon, Feb 25, 2008 at 3:08 PM, Rob Miller <robm@...> wrote: > darian schramm wrote: > > hello all, > > > > I have a custom remember based type based loosely on sampleremember. In the > > GS profile I've added the membrane_tool.xml file with the contents: > > > > <?xml version="1.0"?> > > <object name="membrane_tool" meta_type="MembraneTool"> > > <membrane-type name="<Custom Type>"> > > <active-workflow-state name="public" /> > > <active-workflow-state name="private" /> > > </membrane-type> > > </object> > > do you really have "<Custom Type>" in there? if so, you should replace that > with the actual type name, which would seem to be ZbUser based on the > traceback below. > > if it is indeed ZbUser that you've got in there, then let us know and i'll dig > a little more deeply. > > -r > > > -- > Archive: http://www.openplans.org/projects/remember/lists/remember/archive/2008/02/1203970128815 > To unsubscribe send an email with subject unsubscribe to remember@.... Please contact remember-manager@... for questions. > > -- Darian V Schramm
-
Also, the same behavior exists for the sampleremember example product. On Mon, Feb 25, 2008 at 3:08 PM, Rob Miller <robm@...> wrote: > darian schramm wrote: > > hello all, > > > > I have a custom remember based type based loosely on sampleremember. In the > > GS profile I've added the membrane_tool.xml file with the contents: > > > > <?xml version="1.0"?> > > <object name="membrane_tool" meta_type="MembraneTool"> > > <membrane-type name="<Custom Type>"> > > <active-workflow-state name="public" /> > > <active-workflow-state name="private" /> > > </membrane-type> > > </object> > > do you really have "<Custom Type>" in there? if so, you should replace that > with the actual type name, which would seem to be ZbUser based on the > traceback below. > > if it is indeed ZbUser that you've got in there, then let us know and i'll dig > a little more deeply. > > -r > > > -- > Archive: http://www.openplans.org/projects/remember/lists/remember/archive/2008/02/1203970128815 > To unsubscribe send an email with subject unsubscribe to remember@.... Please contact remember-manager@... for questions. > > -- Darian V Schramm
-
I've narrowed this down a little more. It looks as if installing CMFPlacefulWorkflow before installing a custom type is causing the error. If CMFPW is installed after the membrane/remember/sampleremember products there is no issue. On Mon, Feb 25, 2008 at 3:08 PM, Rob Miller <robm@...> wrote: > darian schramm wrote: > > hello all, > > > > I have a custom remember based type based loosely on sampleremember. In the > > GS profile I've added the membrane_tool.xml file with the contents: > > > > <?xml version="1.0"?> > > <object name="membrane_tool" meta_type="MembraneTool"> > > <membrane-type name="<Custom Type>"> > > <active-workflow-state name="public" /> > > <active-workflow-state name="private" /> > > </membrane-type> > > </object> > > do you really have "<Custom Type>" in there? if so, you should replace that > with the actual type name, which would seem to be ZbUser based on the > traceback below. > > if it is indeed ZbUser that you've got in there, then let us know and i'll dig > a little more deeply. > > -r > > > -- > Archive: http://www.openplans.org/projects/remember/lists/remember/archive/2008/02/1203970128815 > To unsubscribe send an email with subject unsubscribe to remember@.... Please contact remember-manager@... for questions. > > -- Darian V Schramm
-