I'm trying to use
LoginManager and am running into a little problem, which I'm sure is based in a
not-deep-enough understanding of acquisition issues.
Bloop
---acl_users
------Z MySQL
DA
------SQL_get_password [SQL Method, taking username &
password parameters, tested & works]
------xuserAuthenticate [DTML Method: contains the line
<dtml-in
"SQL_get_password(username='foo',password='bar')">]
------Test
[DTML Method: contains the line <dtml-let
ret="xuserAuthenticate(username='foo',password='bar')">
If I try to "view"
Test, then I get the nasty traceback below. If I view
xuserAuthenticate, no such error is reported. I suppose this is because
dtml-let puts a "strange" acquisition context in place during the execution of
xuserAuthenticate...an execution context that does not include the containing
folder of Test (namely acl_users). Or is this due to some strange
properties that I am not yet familiar with of acl_user
folders?
Traceback (innermost last):
File
D:\CLOAKM~1\lib\python\ZPublisher\Publish.py, line 223, in
publish_module
File D:\CLOAKM~1\lib\python\ZPublisher\Publish.py, line
187, in publish
File D:\CLOAKM~1\lib\python\Zope\__init__.py, line
221, in zpublisher_exception_hook
(Object:
ProviderContainer)
File D:\CLOAKM~1\lib\python\ZPublisher\Publish.py,
line 171, in publish
File D:\CLOAKM~1\lib\python\ZPublisher\mapply.py,
line 160, in mapply
(Object: Testing2)
File
D:\CLOAKM~1\lib\python\ZPublisher\Publish.py, line 112, in
call_object
(Object: Testing2)
File
D:\CLOAKM~1\lib\python\OFS\DTMLMethod.py, line 189, in
__call__
(Object: Testing2)
File
D:\CloakMail\lib\python\DocumentTemplate\DT_String.py, line 549, in
__call__
(Object: Testing2)
File
D:\CLOAKM~1\lib\python\DocumentTemplate\DT_Let.py, line 146, in
render
(Object:
ret="xuserAuthenticate(username='foo',password='bar')")
File
D:\CLOAKM~1\lib\python\DocumentTemplate\DT_Util.py, line 334, in
eval
(Object:
xuserAuthenticate(username='foo',password='bar'))
(Info:
xuserAuthenticate)
File <string>, line 0, in ?
File
D:\CLOAKM~1\lib\python\OFS\DTMLMethod.py, line 182, in
__call__
(Object: xuserAuthenticate)
File
D:\CloakMail\lib\python\DocumentTemplate\DT_String.py, line 549, in
__call__
(Object: xuserAuthenticate)
File
D:\CLOAKM~1\lib\python\DocumentTemplate\DT_In.py, line 649, in
renderwob
(Object:
SQL_get_password(username='foo',password='bar'))
File
D:\CLOAKM~1\lib\python\DocumentTemplate\DT_Util.py, line 334, in
eval
(Object:
SQL_get_password(username='foo',password='bar'))
(Info:
SQL_get_password)
File <string>, line 0, in ?
NameError: (see
above)