zodb

What is the correct way to backup ZODB blobs?

I am using plone.app.blob to store large ZODB objects in a blobstorage directory. This reduces size pressure on Data.fs but I have not been able to find any advice on backing up this data. I am already backing up Data.fs by pointing a network backup tool at a directory of repozo backups. Should I simply point that tool at the blobstorag...

PersistentSet in ZODB 3

ZODB provides a PersistentList and a PersistentMapping, but I'd like a PersistentSet. I wrote a quick class that mirrors the ancient PersistentList from ZODB 2. Because there's no UserSet in Python, I had to extend from the C-based built-in set. class PersistentSet(UserSet, Persistent): def __iand__(self, other): set.__iand__(other...

Python: ZODB file size growing - not updating?

I am using ZODB to store some data that exists in memory for the sake of persistence. If the service with the data in memory every crashes, restarting will load the data from ZODB rather than querying 100s of thousands of rows in a MySQL db. It seems that every time I save, say 500K of data to my database file, my .fs file grows by 5...

Understanding Zope internals, from Django eyes

Note: This is not a post regarding which is better, zope or django? Its about understanding zope internals/architecture, when compared to Django's I am a newbee to zope and I previously worked on Django for about 2.5 years. So when I first jumped into Zope(v2)(only because my new company is using it since 7 years), I faced these questio...

Using ZODB directly from C++. Examples and design hints.

I'd like to use ZODB directly from C++ and don't want to write Python code for that. Have you had any experience doing so? If I were to use C++ for GUI and quering/writing data from/to ZODB, how the design should be? ...

ZODB In Real Life

Hi guys, Writing an app in Python, and been playing with various ORM setups and straight SQL. All of which are ugly as sin. I have been looking at ZODB as an object store, and it looks a promising alternative. My question then: Would you recommend ZODB? What are your experiences, problems, criticism with ZODB? particularly with re...

Migrating data from Plone to Liferay, or how could I retrieve information from Plone's Data.fs

Hello, all. I need to migrate data from a Plone-based portal to Liferay. Has anyone some idea on how to do it? Anyway, I am trying to retrieve data from Data.fs and store it in a representation easier to work, such as JSON. To do it, I need to know which objects I should get from Plone's Data.fs. I already got the Products.CMFPlone.Por...

web2py or grok (zope) on a big portal,

Hi, I am planning to make some big project (1 000 000 users, approximately 500 request pre second - in hot time). For performance I'm going to use no relational dbms (each request could cost lot of instructions in relational dbms like mysql) - so i can't use DAL. My question is: how web2py is working with a big traffic, is it work c...

Is there a primary key concept in ZODB for objects

I wanted to know if we can have a unique identifier for all objects that are stored in ZODB ...

maintaining a large list in python

I need to maintain a large list of python pickleable objects. The list is too large to be all stored in the RAM, so some database\paging mechanism is required. I need that the mechanism will support fast access for close (nearby) areas in the list. The list should implement all the python-list features, but most of the time I will work ...

Using Zope object unique id ( _p_oid ) to access object itself

Every Zope object has it's own unique id ( _p_oid ). To convert it into integer value: from Shared.DC.xml.ppml import u64 as decodeObjectId oid = decodeObjectId(getattr(<Object instance>, '_p_oid')) Is it possible to get object itself having it's _p_oid? I tried this: from ZODB.utils import p64 object = <RootObject instance>._p_jar...

Get User Information from ZODB

Hello, I am trying to get information out of my Plone site regarding Users. It is relatively easy to get info out of the portal_catalog. However, user info isn't in the portal_catalog. Can somebody tell me how to get user info out of the ZODB from my Plone site? Basically, I am looking to get back a list of user ids. Thanks! ...

Any good guides and/or advice for indexing my objects in zodb?

I'm going to be writing a general object class for use with zodb. These objects will add themselves to a btree index once they are persisted to the zodb object graph. I've never really worked with any of this before, but would anyone have any resources and/or advice on doing this? With zodb's power when dealing with object references ...

How to implement Persistent List or Persistent Mapping in ZODB

One to many relationships not working in ZODB as list is mutable.They say solution is Persistent Mapping or Persistent List or BTree.Can someone please tell me how is it exactly done ...

How to save a whole project in python

Hello I have developed a small game in python using ZODB as backend for DB processing.I have never done game programming before.I was hoping if someone can tell me as to how I can save my current game and then reload it using python.The database filename is data.fs and there are three more ZODB files in my folder.One being for locks rest...

Zope Plone 3.1.2 - export all users with email addresses

I have been running zope / plone site for about a year now - it seemed to be a pretty fast way of getting a CMS up and running and it's a great job for this - it's running 3.1.2 of plone. I am in now way a zope or plone expert (in fact the more I read about it - the less I know I know!) , but I am handy at python. I have tried to export...