From roymathew at bellsouth.net Tue Jun 6 16:01:01 2006 From: roymathew at bellsouth.net (Roy Mathew) Date: Tue, 6 Jun 2006 10:01:01 -0400 Subject: [Z3-sqlos] version # referenced by easy_install incorrect. Message-ID: <17541.35485.216091.372028@lata.anoobe.com> Folks, Just a quick note to say, that in the sqlos homepage (http://codespeak.net/z3/sqlos/) $ easy_install --install-dir=~/lib/python2.4/site-packages 'sqlos == 0.2' should read $ easy_install --install-dir=~/lib/python2.4/site-packages 'sqlos == 0.2.1' Thanks, Roy. From jinty at web.de Tue Jun 6 16:00:20 2006 From: jinty at web.de (Brian Sutherland) Date: Tue, 6 Jun 2006 16:00:20 +0200 Subject: [Z3-sqlos] version # referenced by easy_install incorrect. In-Reply-To: <17541.35485.216091.372028@lata.anoobe.com> References: <17541.35485.216091.372028@lata.anoobe.com> Message-ID: <20060606140020.GB9738@minipas.home> On Tue, Jun 06, 2006 at 10:01:01AM -0400, Roy Mathew wrote: > Folks, > > Just a quick note to say, that in the sqlos homepage (http://codespeak.net/z3/sqlos/) > > $ easy_install --install-dir=~/lib/python2.4/site-packages 'sqlos == 0.2' > > should read > > $ easy_install --install-dir=~/lib/python2.4/site-packages 'sqlos == 0.2.1' Thanks Roy, I changed the source for that page to $ easy_install --install-dir=~/lib/python2.4/site-packages sqlos so that it does not need to be updated every release. It'll appear on the site at some random point in the future. -- Brian Sutherland Metropolis - "it's the first movie with a robot. And she's a woman. And she's EVIL!!" From roymathew at bellsouth.net Tue Jun 6 16:30:50 2006 From: roymathew at bellsouth.net (Roy Mathew) Date: Tue, 6 Jun 2006 10:30:50 -0400 Subject: [Z3-sqlos] deprecation warnings in z3 trunk Message-ID: <17541.37274.284691.230651@lata.anoobe.com> There are several deprecation warnings when using sqlos w/z3 trunk. Seems pretty simple to fix - would the maintainers be interested in accepting fixes if I were to send them in, or are there reasons not to patch sqlos (compatibility?). -- Thanks, Roy Mathew. From jinty at web.de Tue Jun 6 17:00:04 2006 From: jinty at web.de (Brian Sutherland) Date: Tue, 6 Jun 2006 17:00:04 +0200 Subject: [Z3-sqlos] deprecation warnings in z3 trunk In-Reply-To: <17541.37274.284691.230651@lata.anoobe.com> References: <17541.37274.284691.230651@lata.anoobe.com> Message-ID: <20060606150004.GB12460@minipas.home> On Tue, Jun 06, 2006 at 10:30:50AM -0400, Roy Mathew wrote: > There are several deprecation warnings when using sqlos w/z3 trunk. > Seems pretty simple to fix - would the maintainers be interested in > accepting fixes if I were to send them in Yes. For deprecation patches, just get them to pass the test suite. > or are there reasons not to > patch sqlos (compatibility?). I thought about this, but don't really have a fixed opinion. There's also been no discussion about it. More or less whatever the users want. So, if you want the trunk not to generate deprecation warnings and actively send patches, I'll apply them. -- Brian Sutherland Metropolis - "it's the first movie with a robot. And she's a woman. And she's EVIL!!" From anders at bruun-olsen.net Thu Jun 8 22:15:14 2006 From: anders at bruun-olsen.net (Anders Bruun Olsen) Date: Thu, 8 Jun 2006 22:15:14 +0200 Subject: [Z3-sqlos] Schema declaration for RelatedJoin Message-ID: <20060608201514.GD27924@elmer.skumleren.net> Hi, I'm playing around with sqlos to get to know it better. I have worked a little bit with sqlobject in the past and I am porting an old Zope2 app I wrote (which uses MySQL to store data) to Zope3 with sqlos. In all simplicity it is a database for books. I have defined a person class and a book class along with there respective SQLObjectContainer classes. Now I need to be able to associate a person with a book to define authors. I do that by adding a RelatedJoin attribute to both classes. But how do I specify this in my schema? I have googled it and it seems that only a russian has written anything on the internet with the words sqlos and relatedjoin in the same sentence :). I couldn't understand the messages but the code seems to suggest using List(value_type=Choice()). But Choice needs a vocabulary, which for the person class would of course be BookContainer and vice-versa for the book class. But not only are vocabularies quite a difficult thing to understand, but in Web Component Development with Zope 3, Philipp von Weitershausen writes that vocabularies have been deprecated in favor of sources. I have taken a look at ISource but is it just enough to declare that my SQLObjectContainers implement ISource? And how do I correctly declare the source for Choice? Am I even close here, or is there a much better way to handle this? -- Anders -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GCS/O d--@ s:+ a-- C++ UL+++$ P++ L+++ E- W+ N(+) o K? w O-- M- V PS+ PE@ Y+ PGP+ t 5 X R+ tv+ b++ DI+++ D+ G e- h !r y? ------END GEEK CODE BLOCK------ PGPKey: http://random.sks.keyserver.penguin.de:11371/pks/lookup?op=get&search=0xD4DEFED0 From jinty at web.de Mon Jun 12 18:29:27 2006 From: jinty at web.de (Brian Sutherland) Date: Mon, 12 Jun 2006 18:29:27 +0200 Subject: [Z3-sqlos] Schema declaration for RelatedJoin In-Reply-To: <20060608201514.GD27924@elmer.skumleren.net> References: <20060608201514.GD27924@elmer.skumleren.net> Message-ID: <20060612162927.GD7108@minipas.home> On Thu, Jun 08, 2006 at 10:15:14PM +0200, Anders Bruun Olsen wrote: > Hi, > > I'm playing around with sqlos to get to know it better. I have worked a > little bit with sqlobject in the past and I am porting an old Zope2 app > I wrote (which uses MySQL to store data) to Zope3 with sqlos. In all > simplicity it is a database for books. I have defined a person class and > a book class along with there respective SQLObjectContainer classes. Now > I need to be able to associate a person with a book to define authors. > I do that by adding a RelatedJoin attribute to both classes. > But how do I specify this in my schema? > I have googled it and it seems that only a russian has written anything > on the internet with the words sqlos and relatedjoin in the same > sentence :). I couldn't understand the messages but the code seems to > suggest using List(value_type=Choice()). But Choice needs a vocabulary, > which for the person class would of course be BookContainer and > vice-versa for the book class. But not only are vocabularies quite a > difficult thing to understand, but in Web Component Development with > Zope 3, Philipp von Weitershausen writes that vocabularies have been > deprecated in favor of sources. I haven't figured out Sources yet (I am still mostly working with old Zope version), but regularly work with vocabularies. If vocabularies are deprecated, then I suppose it would be better for you to figure out sources. Though once you get used to them vocabularies are not all that bad. > I have taken a look at ISource but is it > just enough to declare that my SQLObjectContainers implement ISource? > And how do I correctly declare the source for Choice? Sorry, don't know enough about Sources yet to answer this one... > Am I even close here, or is there a much better way to handle this? Not that I know of. -- Brian Sutherland Metropolis - "it's the first movie with a robot. And she's a woman. And she's EVIL!!"