Scripts posted recently tagged to filestorage in Kelpi

1- 1 of 1.

Copying a FileStorage to PGStorage

to python zope filestorage pgstorage postresql by mikel

(having all zope directories in you PYTHONPATH, open a PYTHON prompt)
>>> from ZODB.FileStorage import FileStorage
>>> from PGStorage.pgstorage import PGStorage
>>> src = FileStorage('/path/to/your/Data.fs', read_only=1)
>>> pg = PGStorage(name='PGStorage', params='host=localhost port=5432 dbname=DBNAME user=DBUSER password=DBPASS')
hits counter