Jonathan a écrit :
> 
>> ----- Original Message ----- From: "Encolpe Degoute"
>> I don't know how to create such a python routine on ZODB 3.2.5. Where
>> can I
>> can some examples of such routine?
> 
> 
> from ZODB import FileStorage, DB
> storage = FileStorage.FileStorage('/<your dir path here>/Data.fs')
> db = DB(storage)
> conn = db.open()
> root = conn.root()
> 
> 'root' is then the root folder that you see via the ZMI.
> 
> More info at  http://www.zope.org/Wikis/ZODB/guide/node3.html

Many thanks for the link.

root isn't the Zope root in the ZMI, you need to get 'Application'
attribute to reach it:

  app = root.__getitem__('Application')

Now I have a new problem: I can go into the plone instance and run
almost everything... but a ZCatalog request.
For each index the value of portal_catalog.uniqueValuesFor is correct,
but any request always return no brains.

Any tips on that ?

Regards,
-- 
Encolpe Degoute
INGENIWEB (TM) - S.A.S 50000 Euros - RC B 438 725 632
Bureaux de la Colline
1 rue Royal
92210 Saint Cloud
web : www.ingeniweb.com - « les Services Web Ingénieux »
Tel : 01.78.15.24.08 / Fax : 01 47 57 39 14

_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users

Reply via email to