[ZODB-Dev] experimenting with Standalone ZODB...

enrico.sirola@riskmap.net enrico.sirola@riskmap.net
22 Oct 2001 09:45:19 +0200


>>>>> "Casey" == Casey Duncan <c.duncan@nlada.org> writes:

    Casey> You can't use ZCatalog outside of Zope (it is just a
    Casey> wrapper anyhow). Use plain Catalog instead.

Yes, I just tried to import Catalog. Here's the code:

Python 2.1.1 (#5, Oct 18 2001, 19:54:10)
[GCC 2.95.4 20010902 (Debian prerelease)] on linux2
Type "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path.append('/home/sirolae/various_sources/Zope-2.4.1-src/lib/python')
>>> import ZODB
>>> import Persistence
>>> from Persistence import Persistent
>>> from ZODB.FileStorage import FileStorage
>>> from Products.ZCatalog.Catalog import Catalog
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/home/sirolae/various_sources/Zope-2.4.1-src/lib/python/Products/ZCatalog/__init__.py", line 88, in ?
    import ZCatalog, Catalog, CatalogAwareness,  ZClasses
  File "/home/sirolae/various_sources/Zope-2.4.1-src/lib/python/ZClasses/__init__.py", line 20, in ?
    import ZClass
  File "/home/sirolae/various_sources/Zope-2.4.1-src/lib/python/ZClasses/ZClass.py", line 88, in ?
    import Method, Basic, Property, AccessControl.Role, re
  File "/home/sirolae/various_sources/Zope-2.4.1-src/lib/python/ZClasses/Method.py", line 91, in ?
    import App.Dialogs, ZClasses, App.Factory, App.Product, App.ProductRegistry
  File "/home/sirolae/various_sources/Zope-2.4.1-src/lib/python/App/Factory.py", line 92, in ?
    from Product import Product
  File "/home/sirolae/various_sources/Zope-2.4.1-src/lib/python/App/Product.py", line 116, in ?
    from Factory import Factory
ImportError: cannot import name Factory

As you can see, I tried to import Catalog... What did I miss?
Thanks for your patience,
Enrico
-- 
Enrico Sirola <enri@users.sourceforge.net>
gpg public key available from wwwkeys.pgp.net
Key fingerprint = B446 7332 ED55 BC68 5FE8  DE0F 98DF EC86 377F E07F