[Zope] authentication in a pythonscript

Joachim Schmitz js@aixtraware.de
Mon, 22 Oct 2001 17:33:16 +0200 (CEST)


how do I call a python-script form python. I am using the LoginManage and
wrote the authenticate function as a python-script. But when this is call=
ed
from within the login-manager, I get

Type Error


  Traceback (innermost last):
    File ...Zope-2.4.1/lib/python/ZPublisher/Publish.py, line 223, in pub=
lish_module
    File ...Zope-2.4.1/lib/python/ZPublisher/Publish.py, line 187, in pub=
lish
    File ...Zope-2.4.1/lib/python/Zope/__init__.py, line 226, in zpublish=
er_exception_hook
      (Object: LockableItem)
    File ...Zope-2.4.1/lib/python/ZPublisher/Publish.py, line 162, in pub=
lish
    File ...Zope-2.4.1/lib/python/ZPublisher/BaseRequest.py, line 447, in=
 traverse
    File ...ZInstanceHome/Products/LoginManager/LoginManager.py, line 238=
, in validate
      (Object: ProviderContainer)
    File .../ZInstanceHome/Products/LoginManager/LoginMethods.py, line 30=
2, in findLogin
      (Object: PlugInBase)
    File ...Zope-2.4.1/lib/python/Shared/DC/Scripts/Bindings.py, line 324=
, in __call__
      (Object: authenticate)
    File ...Zope-2.4.1/lib/python/Shared/DC/Scripts/Bindings.py, line 354=
, in _bindAndExec
      (Object: authenticate)
    File ...Zope-2.4.1/lib/python/Products/PythonScripts/PythonScript.py,=
 line 363, in _exec
      (Object: authenticate)
      (Info: (None, ('test', <h3>form</h3><table><tr valign=3D"t.....the =
whole
source of the loginForm
  TypeError: (see above)

I tried serveral bindings for the python-script but none worked.



Mit freundlichen Gr=FC=DFen

Joachim Schmitz

AixtraWare, Ing. B=FCro f=FCr Internetanwendungen
H=FCsgenstr. 33a, D-52457 Aldenhoven
Telefon: +49-2464-8851, FAX: +49-2464-905163