[Zope-dev] Zope 2.12 webdav source browser doesn't appear to work

Tres Seaver tseaver at palladion.com
Fri Apr 17 10:02:17 EDT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chris Withers wrote:
> Hi All,
> 
> I tried to connect up to Zope 2.12 by the webdav source port today and 
> got the following in the event log::
> 
> 2009-04-17 09:13:48 ERROR Zope.SiteErrorLog 1239956028.70.143658354715 
> http://192.168.1.12:1980/@@home
> Traceback (innermost last):
>    Module ZPublisher.Publish, line 119, in publish
>    Module ZPublisher.mapply, line 77, in mapply
>    Module ZPublisher.Publish, line 42, in call_object
>    Module zope.app.pagetemplate.simpleviewclass, line 44, in __call__
>    Module zope.app.pagetemplate.viewpagetemplatefile, line 83, in __call__
>    Module Products.Five.browser.pagetemplatefile, line 53, in __call__
>    Module zope.pagetemplate.pagetemplate, line 115, in pt_render
>     - Warning: Macro expansion failed
>     - Warning: <class 'zope.location.interfaces.LocationError'>: 
> (<webdav.NullResource.NullResource object at 0x9f41a2c>, 'macros')
>    Module zope.tal.talinterpreter, line 271, in __call__
>    Module zope.tal.talinterpreter, line 343, in interpret
>    Module zope.tal.talinterpreter, line 867, in do_useMacro
>    Module zope.tales.tales, line 696, in evaluate
>     - URL: {myproject}/browser/html/home.html
>     - Line 3, Column 0
>     - Expression: <PathExpr 
> standard:u'root/standard_template.pt/macros/main'>
>     - Names:
>        {'args': (),
>         'container': <Application at >,
>         'context': <Application at >,
>         'default': <object object at 0xb7d5e548>,
>         'here': <Application at >,
>         'loop': {},
>         'nothing': None,
>         'options': {},
>         'repeat': <Products.PageTemplates.Expressions.SafeMapping object 
> at 0xa02720c>,
>         'request': <HTTPRequest, URL=http://192.168.1.12:1980/@@home>,
>         'root': <Application at >,
>         'template': 
> <Products.Five.browser.pagetemplatefile.ViewPageTemplateFile object at 
> 0x9e8c2ec>,
>         'traverse_subpath': [],
>         'user': <SpecialUser 'Anonymous User'>,
>         'view': <Products.Five.metaclass.SimpleViewClass from 
> {myproject}/browser/html/home.html object at 0x96540cc>,
>         'views': <zope.app.pagetemplate.viewpagetemplatefile.ViewMapper 
> object at 0x9ffdb4c>}
>    Module zope.tales.expressions, line 217, in __call__
>    Module Products.PageTemplates.Expressions, line 123, in _eval
>    Module zope.tales.expressions, line 124, in _eval
>    Module Products.PageTemplates.Expressions, line 75, in 
> boboAwareZopeTraverse
>    Module zope.traversing.adapters, line 139, in traversePathElement
>     - __traceback_info__: (<webdav.NullResource.NullResource object at 
> 0x9f417ac>, 'macros')
>    Module zope.traversing.adapters, line 53, in traverse
>     - __traceback_info__: (<webdav.NullResource.NullResource object at 
> 0x9f417ac>, 'macros', ['main'])
> LocationError: (<webdav.NullResource.NullResource object at 0x9f417ac>, 
> 'macros')
> 
> I don't know what this means, does anyone here?

It means that you have *part* of the WebDAV machinery wired up (hence
the NullResource objects) but not all of it (hence, you are trying to
render a ZPT which uses /path/to/template/macros/main).  Likely there is
a missing adapter registration or six in there.


Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJ6Ivp+gerLs4ltQ4RAjoPAJwP67OxGBnmUJ1YBwhu08HrD2rG+ACgxI2K
rXhew89Jt6ch1ovIBkHr870=
=Enpx
-----END PGP SIGNATURE-----



More information about the Zope-Dev mailing list