[Zope] docLogin HOWTO for GUF

Matt Goodall mgg@isotek.co.uk
Tue, 29 Feb 2000 08:54:57 +0000


Lucas Vogel wrote:
> 
> I have done all of the steps in the How-To: How To: Use
> GenericUserFolder with an SQL database document. However I feel that I
> am stuck, and the place I am stuck is with the docLogin object. Whenever
> I try to access this object I get this traceback below the form:
> 
> Traceback (innermost last):
>   File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 214, in
> publish_module
>   File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 179, in
> publish
>   File /usr/local/zope/lib/python/Zope/__init__.py, line 202, in
> zpublisher_exception_hook
>     (Object: ElementWithAttributes)
>   File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 151, in
> publish
>   File
> /usr/local/zope/lib/python/Products/SiteAccess/ChangeBehaviors.py, line
> 224, in traverse
>   File
> /usr/local/zope/lib/python/Products/GenericUserFolder/GenericUserFolder.py,
> line 530, in validate
>     (Object: ElementWithAttributes)
>   File
> /usr/local/zope/lib/python/Products/GenericUserFolder/GenericUserFolder.py,
> line 453, in _cookie_validate
>     (Object: ElementWithAttributes)
>   File
> /usr/local/zope/lib/python/Products/GenericUserFolder/GenericUserFolder.py,
> line 364, in _recurse_validate
>     (Object: ElementWithAttributes)
>   File lib/python/Products/UserDb/UserDb.py, line 289, in validate
>     (Object: RoleManager)
>   File lib/python/Products/UserDb/UserDb.py, line 284, in
> cookie_validate
>     (Object: RoleManager)
> LoginRequired: (see above)
> 
> ---------------------------------------------
> 
> I think it has something to do with the _gufauth_dest variable in the
> object that holds QUERY_NAME, PATH_INFO, and QUERY_STRING. Do I need to
> have this page accessed as a result of input being passed to it first?

This is covered in the GenericUserFolder README - see the "Debug Mode"
section.

Cheers, Matt.

-- 
Matt Goodall             |  Isotek Electronics Ltd
email: mgg@isotek.co.uk  |  Claro House, Servia Road
Tel: +44 113 2343202     |  Leeds, LS7 1NL
Fax: +44 113 2342918     |  England