← Back to team overview

oship-dev team mailing list archive

How/Why is OSHIP data persisted in the ZODB?

 

The Grok framework provides many transparent capabilities via the Zope
Toolkit.  One of those is the ability to automatically store information
in the ZODB.

This is accomplished in OSHIP via Grok by inheriting from grok.Model
instead of where you would normally think you would inherit from
'object' in plain Python.  This provides the hook into the Grok
framework for us.

In Grok, both grok.Model and grok.Container both provide transparent
persistent.

See the Grok Tutorial - Rules for Persistence:
http://grok.zope.org/doc/current/tutorial.html#id24 

--Tim






-- 
***************************************************************
Timothy Cook, MSc

LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook 
Skype ID == (upon request)
Academic.Edu Profile: http://uff.academia.edu/TimothyCook

You may get my Public GPG key from  popular keyservers or    
from this link http://timothywayne.cook.googlepages.com/home 

Attachment: signature.asc
Description: This is a digitally signed message part