Re: [Zope] GUF error: Unauthorized...

2000-10-27 Thread Zen

On Fri, 20 Oct 2000, Cesar A. K. Grossmann wrote:

 raised an exception (('Unauthorized', 'crypt', traceback object at

The userAuthenticate method is trying to call a method called 'crypt'
and failing. Where, and how, is this method defined? If it is
implemented in Python code (eg. you added a 'crypt' function to
the GenericUserFolder class), then make sure your function has
a doc string or you will get an exception like this.

 The userAuthenticate, userDomains, userList, adn userRoles DTML Methods
 are configurated to proxy the Manager role.

-- 
Stuart Bishop  Work: [EMAIL PROTECTED]
Senior Systems Alchemist   Play: [EMAIL PROTECTED]
Computer Science, RMIT University


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] GUF error: Unauthorized...

2000-10-20 Thread Cesar A. K. Grossmann

Hi!

I have created a GUFTest folder. It runs perfectly with the user
'jorge', provided with the GUF. After I have changed the acl to use a
SQL connection, I'm getting the error bellow (in the log of the system):

GUF[7909]:
http://localhost.localdomain:8080/GUFTest/acl_users/userAuthenticate
raised an exception (('Unauthorized', 'crypt', traceback object at
85f10e8))

The source of the HTML page contains (I don't know if it's correct,
because I suspect that Netscape reloads the page when you ask it to show
the source of the page):

!--
Traceback (innermost last):
  File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 222,
in publish_module
  File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 187,
in publish
  File /usr/share/zope/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
(Object: Traversable)
  File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 162,
in publish
  File /usr/lib/python1.5/site-packages/ZPublisher/BaseRequest.py, line
456, in traverse
  File
/usr/share/zope/lib/python/Products/GenericUserFolder/GenericUserFolder.py,
line 442, in guf_unauthorized
(Object: Traversable)
LoginRequired: (see above)

--

What is wrong?

I have created a local role called 'Usuario'. This role have the rights
to:

/GUFTest:
Access contents information
Can Login an Logout
Use database methods
View

/GUFTest/acl_users:
Access contents information
Can Login an Logout
Use database methods
View

The Anonymous role have the rights:
/GUFTest:
_no_roles_

/GUFTest/acl_users:
Access contents information
Can Login and Logout

The userAuthenticate, userDomains, userList, adn userRoles DTML Methods
are configurated to proxy the Manager role.

I'm using Zope 2.2.1, on a Conectiva Linux 5.0 (Linux i386 2.2.14,
python 1.5.2, glibc 2.1.3).

TIA
-- 
 +-+-+
 | César A. K. Grossmann   | Capacitação Solidária   |
 | [EMAIL PROTECTED]| http://www.uol.com.br/umminuto/ |
 | http://members.xoom.com/ckant/  | Clique e doe - é de graça   |
 +-+-+
   http://www.halcyon.com/sciclub/cgi-pvt/instr/instr.html
The ideas of economists and political philosophers, both when they
are right and when they are wrong, are more powerful than is generally
understood.  Indeed, the world is ruled by little else.
-- John Maynard Keyes

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )