[Z3-sqlos] New features for sqlos
Fabio Tranchitella
kobold at kobold.it
Fri Aug 11 23:55:54 CEST 2006
Dear sqlos developers,
while writing a zope3 application and using sqlos, I needed a few things
that sqlos didn't offer out-of-the-box. For example, I used very often join
sqlobject's constructs but sqlos doesn't support to access to the "joined"
objects from a sqlobject, for example from:
http://localhost/myapp/persons/fabio
all the lists of his dogs:
http://localhost/myapp/persons/fabio/dogs
and here a specific dog:
http://localhost/myapp/persons/fabio/dogs/fido
with dogs defined as:
class Person:
...
dogs = MultipleJoin('Dogs')
One of the most interesting things is that you can use RelatedJoins
(Many-to-Many relationships), so for example you can access to the same
objects using different paths:
http://localhost/myapp/persons/fabio/companies/dotcom
http://localhost/myapp/companies/dotcom/employees/fabio
I also needed a customized SQLObjectContainer which contains objects
froma single factory, so I can get rid off of those long names
(eg. sqlos.somename.Person.fabio) and start using only the
key.split(".")[-1].
For these reasons, I started a fork of sqlos named zsqlobject, which shares
almost all the base code from sqlos but adds new features like the ones
explained below.
Now, here is my question: is there interest in merging my changes upstream,
so I can stop my fork and start collaborating with sqlos? I see no reason to
keep the efforts duplicated, and I'm sure other users need these features
(i.e. http://codespeak.net/pipermail/z3-sqlos/2006-June/000125.html).
Thanks for your attention,
--
Fabio Tranchitella http://www.kobold.it
Free Software Developer and Consultant http://www.tranchitella.it
_____________________________________________________________________
1024D/7F961564, fpr 5465 6E69 E559 6466 BF3D 9F01 2BF8 EE2B 7F96 1564
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://codespeak.net/pipermail/z3-sqlos/attachments/20060811/0bec6b84/attachment.pgp
More information about the z3-sqlos
mailing list