CPE Chapter 5 + Cascading operations question + ORM Shootout
Eugene Van den Bulke
eugene.vandenbulke at gmail.com
Sat Jul 14 19:36:37 BST 2007
Hi all,
I mentioned in my first post to the list that it could be interesting
(for people like me at least) to write the code of Chapter 5 of
CherryPy Essentials using Storm. Why? Because it is a well written
simple comparison between 3 ORMs SQLObject, SQLAlchemy and DejaVu.
Plus, it is available for free (it is the sample chapter
<http://www.packtpub.com/files/1848_CherryPy_SampleChapter.pdf>).
I have attached a file named cherry-storm.py which is my take on the subject.
Please bear in mind that it is the first time that I use a ORM and
that the only resource available at this stage for Storm in term of
documentation is the Tutorial. I would appreciate comments
I hope I managed to replicate the spirit of Sylvain's code (I cc: him
to get his feedback if he feels like it). I know there is one thing I
didn't do : cascading.
Does Storm support cascading operations through a cascade=True
parameter of the Reference or through a special method à la DejaVu
on_forget or ...?
Thanks for your time and assistance,
EuGeNe -- http://www.3kwa.com
PS: as far as manipulating data is concerned ... I think Storm's syntax rocks!!!
PPS: is there a Python ORM Shootout (like the Web Framework Shoutout
:P)? I can't find on. If not, do you think it could be interested to
put something like that together?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cherry-storm.py
Type: text/x-python
Size: 3436 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/storm/attachments/20070714/596e27c7/attachment.py
More information about the storm
mailing list