[Zope-CMF] using CMF products in a plone ?

Romain Slootmaekers romain@zzict.com
Mon, 09 Dec 2002 18:39:04 +0100


Yo,

I'm trying to instantiate a CMF product in a plone site,
and although the product works perfectly well in a CMF site,
it doesn't seem to work in a plone.

I've been searching through the documentation, and as usual can't find
anything on the problem.

I've tried to instantiate the CMFBoringContent example from the CMF site 
in a plone, and it has the same problems:

AttributeError: 'None' object has no attribute 'getParentNode'

I've included the complete stacktrace below:

----------------------------- BEGIN STACKTRACE ----------------
Traceback (innermost last):
   Module ZPublisher.Publish, line 98, in publish
   Module ZPublisher.mapply, line 88, in mapply
   Module ZPublisher.Publish, line 39, in call_object
   Module Products.CMFCore.FSDTMLMethod, line 112, in __call__
   Module DocumentTemplate.DT_String, line 474, in __call__
   Module Products.CMFCore.FSDTMLMethod, line 107, in __call__
   Module DocumentTemplate.DT_String, line 474, in __call__
   Module DocumentTemplate.DT_Util, line 201, in eval
    - __traceback_info__: macro_renderer
   Module <string>, line 2, in f
   Module Shared.DC.Scripts.Bindings, line 252, in __call__
   Module Shared.DC.Scripts.Bindings, line 283, in _bindAndExec
   Module Products.CMFCore.FSPageTemplate, line 163, in _exec
   Module Products.PageTemplates.ZopePageTemplate, line 228, in _exec
   Module Products.CMFCore.FSPageTemplate, line 139, in pt_render
   Module Products.PageTemplates.PageTemplate, line 95, in pt_render
    - <FSPageTemplate at /kwaliteitsmonitor/macro_renderer used for 
/kwaliteitsmonitor/Members/admin/CMFBoringContent.2002-12-09.3221>
   Module TAL.TALInterpreter, line 186, in __call__
   Module TAL.TALInterpreter, line 230, in interpret
   Module TAL.TALInterpreter, line 689, in do_useMacro
   Module TAL.TALInterpreter, line 230, in interpret
   Module TAL.TALInterpreter, line 655, in do_condition
   Module TAL.TALInterpreter, line 230, in interpret
   Module TAL.TALInterpreter, line 400, in do_optTag_tal
   Module TAL.TALInterpreter, line 385, in do_optTag
   Module TAL.TALInterpreter, line 380, in no_tag
   Module TAL.TALInterpreter, line 230, in interpret
   Module TAL.TALInterpreter, line 463, in do_setGlobal_tal
   Module Products.PageTemplates.TALES, line 217, in evaluate
    - Line 79, Column 9
    - Expression: standard:'here/portal_actions/listFilteredActionsFor'
    - Names:
       {'container': <PloneSite instance at 01E457D8>,
        'default': <Products.PageTemplates.TALES.Default instance at 
013A859C>,
        'here': <CMFBoringContent at 
/kwaliteitsmonitor/Members/admin/CMFBoringContent.2002-12-09.3221>,
        'loop': <SafeMapping instance at 01E296E0>,
        'modules': 
<Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 
013A8654>,
        'nothing': None,
        'options': {'template': 'here/header', 'args': (), 'macro': 
'portal_header'},
        'repeat': <SafeMapping instance at 01E296E0>,
        'request': <HTTPRequest, 
URL=http://127.0.0.1:8080/kwaliteitsmonitor/Members/admin/CMFBoringContent.2002-12-09.3221/cmfboring_content_edit_form>,
        'root': <Application instance at 01CFFB18>,
        'template': <FSPageTemplate at /kwaliteitsmonitor/macro_renderer 
used for /kwaliteitsmonitor/Members/admin/CMFBoringContent.2002-12-09.3221>,
        'traverse_subpath': [],
        'user': admin}
   Module Products.PageTemplates.Expressions, line 206, in __call__
   Module Products.PageTemplates.Expressions, line 201, in _eval
   Module Products.PageTemplates.Expressions, line 108, in render
   Module Products.CMFCore.ActionsTool, line 195, in listFilteredActionsFor
   Module Products.CMFCore.ActionsTool, line 163, in _listActions
   Module Products.CMFCore.ActionInformation, line 91, in testCondition
   Module Products.CMFCore.Expression, line 44, in __call__
   Module Products.PageTemplates.ZRPythonExpr, line 48, in __call__
    - __traceback_info__: 
portal.portal_workflow.getTransitionsFor(object, object.getParentNode())
   Module Python expression 
"portal.portal_workflow.getTransitionsFor(object, 
object.getParentNode())", line 2, in f
AttributeError: 'None' object has no attribute 'getParentNode'

-----------------------------   END STACKTRACE ----------------

I guess you guys must have had this before, and thus must be able to 
help me.

TIA,

Sloot.



BTW,
I also tried CMFExample (from the CMFCollective), but that doesn't even 
get installed anymore on Zope2.6.0 + CMF1.3 +CMFPlone-1.0beta3 (the 
install script gives an attribute error: navigation_properties both in a 
CMF Site and in a Plone site)