Hello zope list, i have an zope server with 5 instances. Now on 1 instance there is an error on the acl_users folder. Everytime i click on a user in the folder to edit him there occureres this error: --------------------------------- My error: --------------------------------- Error Type: AttributeError Error Value: domains Troubleshooting Suggestions Traceback: Traceback (innermost last): Module ZPublisher.Publish, line 98, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module AccessControl.User, line 937, in manage_users Module Shared.DC.Scripts.Bindings, line 306, in __call__ Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec Module App.special_dtml, line 180, in _exec Module DocumentTemplate.DT_Util, line 201, in eval __traceback_info__: user Module <string>, line 0, in ? AttributeError: domains --------------------------------- System Information: --------------------------------- Zope Version (Zope 2.6.4 (source release, python 2.1, linux2), python 2.2.3, linux2) Python Version 2.2.3+ (#1, Feb 9 2005, 12:31:40) [GCC 3.3.5 (Debian 1:3.3.5-8)] Does anybody know this error and why it occurs? Thanks for help.
The traceback says there is a PythonScript involved, and I am pretty sure there shouldn't. I assume you have created a script with a reserved name which is now interfering with user retrieval. Welcome to implicit acquisition. Stefan On 4. Jun 2005, at 19:15, Know-iT - Christian Steinhauer wrote:
Module ZPublisher.Publish, line 98, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module AccessControl.User, line 937, in manage_users Module Shared.DC.Scripts.Bindings, line 306, in __call__ Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec Module App.special_dtml, line 180, in _exec Module DocumentTemplate.DT_Util, line 201, in eval __traceback_info__: user Module <string>, line 0, in ? AttributeError: domains
-- Software Engineering is Programming when you can't. --E. W. Dijkstra
Stefan H. Holek wrote at 2005-6-5 16:07 +0200:
The traceback says there is a PythonScript involved, and I am pretty sure there shouldn't.
The "Scripts.Bindings" reference confuses you. In fact, there is not PythonScript involved but a "DTMLFile" object which also derives from "Bindings". -- Dieter
Know-iT - Christian Steinhauer wrote at 2005-6-4 19:15 +0200:
i have an zope server with 5 instances. Now on 1 instance there is an error on the acl_users folder.
Everytime i click on a user in the folder to edit him there occureres this error: .... Module DocumentTemplate.DT_Util, line 201, in eval __traceback_info__: user Module <string>, line 0, in ? AttributeError: domains
Looks like a name class. The DTML apparently fetches an object which is not a user and does not have a "domains" attribute. Locate the source of the DTML template, check how it accesses the user object, fix the access such that it take the info from the correct place. -- Dieter
Hi: I installed the "PyXml" package, and appear in the "c:\Python24\Lib\site-packages" folder and i want to import a module of that library from an external method: "import xml.dom.ext" But i can't import from an external method any of the modules that are in the "Lib\site-packages" folder of my python instalation. Why can't import them? By default an external method have acces to modules that are in "Lib\site-packages" of a Python installation? I use Zope 2.7.6 for windows and Python2.4 ("c:\Python24\Lib\site-packages" !) The error that i get is: " Site Error An error was encountered while publishing this resource. Error Type: ImportError Error Value: No module named ext " and the trace: " Traceback (innermost last): Module ZPublisher.Publish, line 101, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module Shared.DC.Scripts.Bindings, line 306, in __call__ Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec Module Products.PythonScripts.PythonScript, line 323, in _exec Module None, line 31, in callServiceResume - <PythonScript at /approach/SiccApproach/serviceResume/callServiceResume> - Line 31 Module Products.ExternalMethod.ExternalMethod, line 216, in __call__ Module Products.ExternalMethod.ExternalMethod, line 157, in reloadIfChanged Module Products.ExternalMethod.ExternalMethod, line 141, in getFunction Module App.Extensions, line 148, in getObject - __traceback_info__: ('C:\\Program Files\\Zope-2.7.6-final\\Extensions\\proxyModule.py', 'proxyModule') Module C:\Program Files\Zope-2.7.6-final\Extensions\proxyModule.py, line 18, in ? ImportError: No module named ext " Thanks in advance Leticia
participants (4)
-
Dieter Maurer -
Know-iT - Christian Steinhauer -
Leticia Larrosa -
Stefan H. Holek