Greetings, I am following the directions in hippy's GenericUserFolder with an SQL database how to, and ran into a snag. When I call crypt, zope returns the following: Error Type: AttributeError Error Value: crypt Traceback (innermost last): File /home/segments/ZOPE/zope/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /home/segments/ZOPE/zope/lib/python/ZPublisher/Publish.py, line 179, in publish File /home/segments/ZOPE/zope/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook (Object: ElementWithAttributes) File /home/segments/ZOPE/zope/lib/python/ZPublisher/Publish.py, line 165, in publish File /home/segments/ZOPE/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: adduser_action.dtml) File /home/segments/ZOPE/zope/lib/python/ZPublisher/Publish.py, line 102, in call_object (Object: adduser_action.dtml) File /home/segments/ZOPE/zope/lib/python/OFS/DTMLDocument.py, line 166, in __call__ (Object: adduser_action.dtml) File /home/segments/ZOPE/zope/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: adduser_action.dtml) File /home/segments/ZOPE/zope/lib/python/DocumentTemplate/DT_Util.py, line 338, in eval (Object: REQUEST.set('password',_.crypt.crypt(fpassword,'ab'))) (Info: REQUEST) File <string>, line 0, in ? File /home/segments/ZOPE/zope/lib/python/DocumentTemplate/DT_Util.py, line 127, in careful_getattr AttributeError: (see above) I'm running Zope 2.1.6 on HPUX 10.2 Any help will be greatly appreciated. -=Brad=-
On Mon, 21 Aug 2000, Brad Mabe wrote:
Greetings, I am following the directions in hippy's GenericUserFolder with an SQL database how to, and ran into a snag. When I call crypt, zope returns the following:
Error Type: AttributeError Error Value: crypt
I think you need to hack your Zope installation to allow access to the crypt function directly from DTML (it should be in the earlier part of the doc). This, and a great many other functions, probably should be available from DTML without hacking but no one has pushed hard enough to get them added to the Zope distribution yet. -- Stuart Bishop Work: zen@cs.rmit.edu.au Senior Systems Alchemist Play: zen@shangri-la.dropbear.id.au Computer Science, RMIT University
On Mon, 21 Aug 2000, Brad Mabe wrote:
Greetings, I am following the directions in hippy's GenericUserFolder with an SQL database how to, and ran into a snag. When I call crypt, zope returns the following:
Error Type: AttributeError Error Value: crypt
Maybe you don't have this module ('crypt') in your python instalation. It's not present in 2.2.0 binary distribution for Linux-x86. Check if you have file lib/python1.5/lib-dynload/cryptmodule.so. If not, then you can copy it from RPM package 'python' (/usr/lib/python1.5/lib-dynload/cryptmodule.so). (If you work on Linux, of course). ololo@zeus.polsl.gliwice.pl /--------------------------------------\ | `long long long' is too long for GCC | \--------------------------------------/
Thanks, I did follow the instructions for patching ZOPE (added import crypt to DT_Util.py). Any other ideas on what I should look for in my ZOPE installation? Is there a specific crypt (crypt.py?) file that I might be missing? -=Brad=- -----Original Message----- From: Stuart Bishop [mailto:zen@cs.rmit.edu.au] Sent: Tuesday, August 22, 2000 3:04 AM To: Brad Mabe Cc: zope@zope.org Subject: Re: [Zope] GUF and crypt On Mon, 21 Aug 2000, Brad Mabe wrote:
Greetings, I am following the directions in hippy's GenericUserFolder with an SQL database how to, and ran into a snag. When I call crypt, zope returns the following:
Error Type: AttributeError Error Value: crypt
I think you need to hack your Zope installation to allow access to the crypt function directly from DTML (it should be in the earlier part of the doc). This, and a great many other functions, probably should be available from DTML without hacking but no one has pushed hard enough to get them added to the Zope distribution yet. -- Stuart Bishop Work: zen@cs.rmit.edu.au Senior Systems Alchemist Play: zen@shangri-la.dropbear.id.au Computer Science, RMIT University
participants (3)
-
Aleksander Salwa -
Brad Mabe -
Stuart Bishop