No, this happened during the standard Zope startup.


--On Freitag, 14. Mai 2004 13:25 Uhr -0400 Chris McDonough <[EMAIL PROTECTED]> wrote:

Sounds like its using the "default" configuration (which means
Zope.configure never got called).  I assume it works during normal
startup, just not during unit tests?

On Fri, 2004-05-14 at 13:09, Andreas Jung wrote:
During the product registration the ZReST product is imported. on the
module level
it contains

   default_output_encoding = getConfiguration().rest_output_encoding or

I would inspect that at this point the configuration from zope.conf has
been read and
rest_output_encoding should be available but instead the following
occurs. Any ideas why?

Traceback (most recent call last): File "", line 490, in get_suite mod = package_import(modname) File "", line 464, in package_import mod = __import__(modname) File "/home/chrism/opt/tests/sandbox/Zope/lib/python/AccessControl/tests/test", line 24, in ? Zope.startup() File "/home/chrism/opt/tests/sandbox/Zope/lib/python/Zope/", line 46, in startup _startup() File "/home/chrism/opt/tests/sandbox/Zope/lib/python/Zope/App/", line 45, in startup OFS.Application.import_products() File "/home/chrism/opt/tests/sandbox/Zope/lib/python/OFS/", line 631, in import_products import_product(product_dir, product_name, raise_exc=debug_mode) File "/home/chrism/opt/tests/sandbox/Zope/lib/python/OFS/", line 654, in import_product product=__import__(pname, global_dict, global_dict, silly) File "/home/chrism/opt/tests/sandbox/Zope/lib/python/Products/ZReST/__init__. py", line 7, in ? import ZReST File "/home/chrism/opt/tests/sandbox/Zope/lib/python/Products/ZReST/" , line 27, in ? default_output_encoding = getConfiguration().rest_output_encoding or default_enc AttributeError: DefaultConfiguration instance has no attribute 'rest_output_encoding'



Andreas Jung
-------------------------------- Software-Entwicklung und Consulting Andreas Jung

Zope-Dev maillist - [EMAIL PROTECTED]
** No cross posts or HTML encoding! **
(Related lists - )

Reply via email to