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

2009-04-17 Thread Chris Withers
Tres Seaver wrote:
>> Why are *any* adapters I've wired up being used here?
>> (I haven't wired up anything for webdav, only normal views and the like 
>> I want used for http)
> 
> I'm sorry if I seemed to imply a bug in your application:  I meant to
> point out that the *publisher* was finding the wrong published object
> (one apprpirate to an IBrowserRequest), while some bits (path traversal
> within the template) were finding the WebDAV-y bits.
> 
> Where the bug lies (in Zope or in your app) is not apparent from the
> information you originally posted.

Given that I haven't done *anything* to configure anything for webdav 
(other than specify a source port in zope.conf), I think it's a 
reasonable expectation that what used to happen should keep on happening 
in the same way. As to why that isn't the case, I'm afraid I have no idea.

Any ideas on debugging would mean I might be able to help get this bug 
fixed...

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


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

2009-04-17 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Chris Withers wrote:
> Tres Seaver wrote:
>> 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.
> 
> I don't want no stinkin adapters here ;-)
> 
> I just want the good ol' fashioned Zope 2 webdav source port...
> 
> Why are *any* adapters I've wired up being used here?
> (I haven't wired up anything for webdav, only normal views and the like 
> I want used for http)

I'm sorry if I seemed to imply a bug in your application:  I meant to
point out that the *publisher* was finding the wrong published object
(one apprpirate to an IBrowserRequest), while some bits (path traversal
within the template) were finding the WebDAV-y bits.

Where the bug lies (in Zope or in your app) is not apparent from the
information you originally posted.


Tres.
- --
===
Tres Seaver  +1 540-429-0999  tsea...@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

iD8DBQFJ6LMy+gerLs4ltQ4RAhauAKDNzWOSjgyEe/Q6doGaTLF3i1iO3ACfW+VI
j1B7owIH3JX+NzPTKCYjiUk=
=Xn2G
-END PGP SIGNATURE-

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


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

2009-04-17 Thread Chris Withers
Tres Seaver wrote:
> 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.

I don't want no stinkin adapters here ;-)

I just want the good ol' fashioned Zope 2 webdav source port...

Why are *any* adapters I've wired up being used here?
(I haven't wired up anything for webdav, only normal views and the like 
I want used for http)

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


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

2009-04-17 Thread Tres Seaver
-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: : 
> (, '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:  standard:u'root/standard_template.pt/macros/main'>
> - Names:
>{'args': (),
> 'container': ,
> 'context': ,
> 'default': ,
> 'here': ,
> 'loop': {},
> 'nothing': None,
> 'options': {},
> 'repeat':  at 0xa02720c>,
> 'request': http://192.168.1.12:1980/@@home>,
> 'root': ,
> 'template': 
>  0x9e8c2ec>,
> 'traverse_subpath': [],
> 'user': ,
> 'view':  {myproject}/browser/html/home.html object at 0x96540cc>,
> 'views':  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__: ( 0x9f417ac>, 'macros')
>Module zope.traversing.adapters, line 53, in traverse
> - __traceback_info__: ( 0x9f417ac>, 'macros', ['main'])
> LocationError: (, 
> '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  tsea...@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-

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


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

2009-04-17 Thread Chris Withers
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: : 
(, '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: 
- Names:
   {'args': (),
'container': ,
'context': ,
'default': ,
'here': ,
'loop': {},
'nothing': None,
'options': {},
'repeat': ,
'request': http://192.168.1.12:1980/@@home>,
'root': ,
'template': 
,
'traverse_subpath': [],
'user': ,
'view': ,
'views': }
   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__: (, 'macros')
   Module zope.traversing.adapters, line 53, in traverse
- __traceback_info__: (, 'macros', ['main'])
LocationError: (, 
'macros')

I don't know what this means, does anyone here?

If it helps, I'm using WebDrive as the client, and it's own internal 
verbose logging gave:

04/17/09 09:13:55 7D8 [N:] Connecting to http://192.168.1.12:1980 ...
04/17/09 09:13:55 7D8 [N:] OPTIONS / HTTP/1.1
04/17/09 09:13:55 7D8 [N:] Host: 192.168.1.12:1980
04/17/09 09:13:55 7D8 [N:] User-Agent: WebDrive/6.07 NT DAV
04/17/09 09:13:55 7D8 [N:] Translate: f
04/17/09 09:13:55 7D8 [N:] Connection: close
04/17/09 09:14:06 7D8 [N:] HTTP/1.1 500 Internal Server Error
04/17/09 09:14:06 7D8 [N:] Server: Zope/(unreleased version, python 
2.5.1, linux2) ZServer/1.1
04/17/09 09:14:06 7D8 [N:] Date: Fri, 17 Apr 2009 08:13:59 GMT
04/17/09 09:14:06 7D8 [N:] Bobo-Exception-Line: 53
04/17/09 09:14:06 7D8 [N:] Content-Length: 3354
04/17/09 09:14:06 7D8 [N:] Bobo-Exception-Value: See the server error 
log for details
04/17/09 09:14:06 7D8 [N:] Content-Type: text/html; charset=utf-8
04/17/09 09:14:06 7D8 [N:] Bobo-Exception-Type: 
04/17/09 09:14:06 7D8 [N:] Connection: close
04/17/09 09:14:06 7D8 [N:] Bobo-Exception-File: adapters.py
04/17/09 09:14:06 7D8 [N:] 500 Internal Server Error
04/17/09 09:14:06 7D8 [N:] Can't connect to WebDAV server at 
http://192.168.1.12:1980, 500 Internal Server Error

Hope someone can help!

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )