• Wicked List

  • RE: [Fwd: Re: Wicked doesn't seem to work with Plone 2.5]

    from lmaccherone on Sep 08, 2006 04:26 PM
    Simply after installing wicked.  (When I say "installing" I mean,
    copying the 3 sub-directories into the Products directory.  If there is
    something else that I need to do to "install" it, I'm not aware of
    that.)  The very next time I hit the url for the site after copying
    those directories over, I get the traceback sent earlier in my browser.
    
    Also in response to Alec thinking that it might be an appropriately
    installed older version of Archetypes, I think that unlikely because I
    started with a perfectly clean install of Plone on a brand new install
    of Windows server.
     
    Larry
    
    -----Original Message-----
    From: whit [mailto:d.w.morriss@...] 
    Sent: Friday, September 08, 2006 4:14 PM
    To: Alec Mitchell
    Cc: wicked@...; Larry Maccherone
    Subject: Re: [Fwd: Re: Wicked doesn't seem to work with Plone 2.5]
    
    larry, where do you encounter this error again? after adding a wicked 
    document, or simply after install wicked?
    
    -w
    
    Alec Mitchell wrote:
    > On 9/8/06, whit <d.w.morriss@...> wrote:
    >> moving this to the new wicked list.
    >>
    >> alec, do recognize this error? what usually causes this?
    >
    > Typlically this happens when one a template that uses main_template is
    > viewed on an object that is not Five traversable (in zope 2.10
    > everything is traversable so this isn't typically an issue).  This
    > tends to be pretty rare as OFS.Item.SimpleItem and OFS.Folder.Folder
    > are both declared traversible by Plone 2.5, and the AT base classes
    > are as well.  There may be some other circumstances where this would
    > happen (an unusual __bobo_traverse__ method that prevented Five from
    > working).  In this case however we seem to have an AT object, but Five
    > traversal isn't being triggered at all.
    >
    > Perhaps this is due to an inappropriately installed older version of
    > Archetypes that doesn't declare BaseObject traversable? (Look in
    > Archetypes/configure.zcml to see if there's a five:traversible
    > declaration)  However if that were the case everything would have
    > broken, not just wicked.
    >
    > Alec
    >
    >> ---------- Forwarded message ----------
    >> From: "Larry Maccherone" <larry@...>
    >> To: "whit" <d.w.morriss@...>
    >> Date: Fri, 8 Sep 2006 09:33:23 -0700
    >> Subject: RE: Wicked doesn't seem to work with Plone 2.5
    >> Thanks for your help.
    >>
    >> Here is the information:
    >>
    >> I have:
    >>         - Windows Server 2003 R2
    >>         - Plone 2.5 Installer (includes Zope 2.9.3 with hotfix) for
    >> Windows 2000/XP/2003
    >>         - CMFEditions 1.0beta1
    >>         - Other than CMFEditions, nothing else has been installed
    >>         - All working nicely
    >>
    >> Here is what I did:
    >>         - Download wicked1.0rc1
    >>         - Extract it
    >>         - Copy AdvancedQuery, txtfilter, and wicked directories to
    >> Products directory
    >>         - Restart Zope/Plone
    >>         - Connect via browser and see the output below.
    >>
    >> If you need any more information, please let me know.
    >>
    >> Again, thanks.  I think wicked is great.
    >>
    >> Larry
    >>
    >> --------------
    >> Output after installation of wicked
    >> --------------
    >>
    >> Site Error
    >>
    >> An error was encountered while publishing this resource.
    >>
    >> AttributeError
    >> Sorry, a site error occurred.
    >>
    >> Traceback (innermost last):
    >>
    >>     * Module ZPublisher.Publish, line 194, in publish_module_standard
    >>     * Module Products.PlacelessTranslationService.PatchStringIO, line
    >> 34, in new_publish
    >>     * Module ZPublisher.Publish, line 146, in publish
    >>     * Module Zope2.App.startup, line 222, in
    zpublisher_exception_hook
    >>     * Module ZPublisher.Publish, line 115, in publish
    >>     * Module ZPublisher.mapply, line 88, in mapply
    >>     * Module ZPublisher.Publish, line 41, in call_object
    >>     * Module Shared.DC.Scripts.Bindings, line 311, in __call__
    >>     * Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
    >>     * Module Products.CMFCore.FSPageTemplate, line 195, in _exec
    >>     * Module Products.CacheSetup.patch_cmf, line 18, in
    FSPT_pt_render
    >>     * Module Products.CacheSetup.patch_utils, line 9, in call_pattern
    >>     * Module Products.CMFCore.FSPageTemplate, line 134, in pt_render
    >>     * Module Products.CacheSetup.patch_cmf, line 56, in PT_pt_render
    >>     * Module Products.CacheSetup.patch_utils, line 9, in call_pattern
    >>     * Module Products.PageTemplates.PageTemplate, line 104, in
    pt_render
    >>       <FSPageTemplate at /Plone/document_view used for
    >> /Plone/front-page>
    >>     * Module TAL.TALInterpreter, line 238, in __call__
    >>     * Module TAL.TALInterpreter, line 281, in interpret
    >>     * Module TAL.TALInterpreter, line 749, in do_useMacro
    >>     * Module TAL.TALInterpreter, line 281, in interpret
    >>     * Module TAL.TALInterpreter, line 457, in do_optTag_tal
    >>     * Module TAL.TALInterpreter, line 442, in do_optTag
    >>     * Module TAL.TALInterpreter, line 437, in no_tag
    >>     * Module TAL.TALInterpreter, line 281, in interpret
    >>     * Module TAL.TALInterpreter, line 749, in do_useMacro
    >>     * Module TAL.TALInterpreter, line 281, in interpret
    >>     * Module TAL.TALInterpreter, line 511, in do_setGlobal_tal
    >>     * Module Products.PageTemplates.TALES, line 221, in evaluate
    >>       URL: file:CMFPlone/skins/plone_templates/global_defines.pt
    >>       Line 3, Column 0
    >>       Expression: standard:'context/@@plone'
    >>       Names:
    >>
    >>       {'container': <PloneSite at /Plone>,
    >>        'context': <ATDocument at /Plone/front-page>,
    >>        'default': <Products.PageTemplates.TALES.Default instance at
    >> 0x0154F940>,
    >>        'here': <ATDocument at /Plone/front-page>,
    >>        'loop': <Products.PageTemplates.TALES.SafeMapping object at
    >> 0x04BBC1C0>,
    >>        'modules':
    >> <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance
    at
    >> 0x0153CEB8>,
    >>        'nothing': None,
    >>        'options': {'args': ()},
    >>        'repeat': <Products.PageTemplates.TALES.SafeMapping object at
    >> 0x04BBC1C0>,
    >>        'request': <HTTPRequest,
    >> URL=http://assuredsoftware.org/front-page/document_view>,
    >>        'root': <Application at >,
    >>        'template': <FSPageTemplate at /Plone/document_view used for
    >> /Plone/front-page>,
    >>        'traverse_subpath': [],
    >>        'user': <SpecialUser 'Anonymous User'>}
    >>
    >>     * Module Products.PageTemplates.Expressions, line 185, in
    __call__
    >>     * Module Products.PageTemplates.Expressions, line 173, in _eval
    >>     * Module Products.PageTemplates.Expressions, line 127, in _eval
    >>       __traceback_info__: context
    >>     * Module Products.PageTemplates.Expressions, line 286, in
    >> restrictedTraverse
    >>       __traceback_info__: {'path': ['@@plone'],
    >> 'TraversalRequestNameStack': []}
    >>     * Module Products.Archetypes.BaseObject, line 1119, in
    >> __bobo_traverse__
    >>
    >> AttributeError: @@plone (Also, the following error occurred while
    >> attempting to render the standard error message, please see the event
    >> log for full details: @@plone)
    >>
    >> Troubleshooting Suggestions
    >>
    >>     * The URL may be incorrect.
    >>     * The parameters passed to this resource may be incorrect.
    >>     * A resource that this resource relies on may be encountering an
    >> error.
    >>
    >> For more detailed information about the error, please refer to error
    >> log.
    >>
    >> If the error persists please contact the site maintainer. Thank you
    for
    >> your patience.
    >>
    >> -----Original Message-----
    >> From: whit [mailto:d.w.morriss@...]
    >> Sent: Friday, September 08, 2006 12:21 PM
    >> To: Larry Maccherone
    >> Cc: wicked@...
    >> Subject: Re: Wicked doesn't seem to work with Plone 2.5
    >>
    >> hi larry,
    >> we need to know your error, what version and where you got it, and a
    >> full traceback before we can fix whatever the problem is.
    >>
    >> wicked has been confirmed on the 2.5 bundle on linux using the
    following
    >>
    >> bundle(https://svn.plone.org/svn/plone/review/wicked-2529-bundle/).
    I
    >> assume you are using 2.9 if the 1.0 branch worked before.
    >>
    >> thanks,
    >>
    >> -w
    >>
    >> Larry Maccherone wrote:
    >> >
    >> > I have a clean install of Plone 2.5 and after I install wicked
    (copy
    >> > three directories in download package to Products directory) I get
    an
    >> > error when I start the zope server (windows) and try to connect to
    the
    >>
    >> > site.
    >> >
    >> >
    >> >
    >> > I had an old version svn 1.0 branch that did work.
    >> >
    >> >
    >> >
    >> > Larry Maccherone
    >> >
    >>
    >>
    >>
    >>
    >>
    >