Hmm. Based on your zopectl fg output, I took a closer look at Products/validation/service.py, which imports IValidator from Products/validation/interfaces/IValidator.py, which attempts to import Interface and Attribute from (I think) <Zope_ROOT>/lib/python/ Interface

In <ZOPE_ROOT>/lib/python/Interface, I see an Attribute.py, but I *don't* see an Interface.py, although there's an IInterface.py.

I'm curious to learn what would happen if you change the first line of Products/validation/interfaces/IValidator.py to the following (note the change from Interface to IInterface). If you decide to try this, please backup your file before making the changes. ;-)

from interface import IInterface, Attribute

I'm also curious about why that import works on my Zope instance when I have no clue where Interface.py is imported from.

- Kamal

On Dec 15, 2005, at 9:58 AM, Qass wrote:

zopectl fg gives the following errors:

Traceback (most recent call last):
  File "/opt/zope-2.8.4/lib/python/OFS/Application.py", line 695, in
import_product
    product=__import__(pname, global_dict, global_dict, silly)
File "/home/blah/zope/Products/ATContentTypes/__init__.py", line 41, in ?
    from Products.Archetypes.public import process_types
File "/home/blah/zope/Products/Archetypes/__init__.py", line 55, in ?
    import Products.validation
  File "/home/blah/zope/Products/validation/__init__.py", line 1, in ?
    from config import validation
  File "/home/blah/zope/Products/validation/config.py", line 24, in ?
    initialize(validation)
  File "/home/blah/zope/Products/validation/validators/__init__.py",
line 22, in initialize
    service.register(validator)
File "/home/blah/zope/Products/validation/service.py", line 35, in register
    if not IValidator.isImplementedBy(validator):
AttributeError: class IValidator has no attribute 'isImplementedBy'
_______________________________________________
Setup mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/setup

Reply via email to