[Zope] half programmatically authenticated from product
Dieter Maurer
dieter@handshake.de
Tue, 23 Jul 2002 23:51:51 +0200
Tim Hicks writes:
> I'm having difficulties 'artificially' logging in a user from filesystem
> python code.
Your "acl_users" has a "validate" or "authenticate" method.
Call it, to log in your user.
> I'm trying to setup a queuing system for converting files that users upload.
> The uploads are pickled to the filesystem and I then use Xron to fire the
> conversions at regular intervals. Once the conversion is done, I want it
> added to the ZODB (along with various default methods), but I also need to
> check whether the user has permission to add files to the place they tried.
> I'm trying to perform this check when the scheduled conversion takes place
> as opposed to when the upload takes place, so I capture the
> username/password of the uploading user and store it in the pickle.
Why do you not do it immediately?
It would give the user much better feedback.
Dieter