Re: [RDBO] Find_or_create method

2006-01-04 Thread Sean Davis
On 1/4/06 4:50 PM, "John Siracusa" <[EMAIL PROTECTED]> wrote: > On 1/4/06, Sean Davis <[EMAIL PROTECTED]> wrote: >> I haven't seen a "find_or_create" method anywhere. I know there is a good >> reason why there isn't one (if there isn't one). It seems like a useful >> method to have when creat

Re: [RDBO] Find_or_create method

2006-01-04 Thread John Siracusa
On 1/4/06, Sean Davis <[EMAIL PROTECTED]> wrote: > I haven't seen a "find_or_create" method anywhere. I know there is a good > reason why there isn't one (if there isn't one). It seems like a useful > method to have when creating new related objects in multiple tables. Before > I naively write m

[RDBO] Find_or_create method

2006-01-04 Thread Sean Davis
I haven't seen a "find_or_create" method anywhere. I know there is a good reason why there isn't one (if there isn't one). It seems like a useful method to have when creating new related objects in multiple tables. Before I naively write my own, why is there not such a method? Thanks, Sean

Re: [RDBO] Loader make_modules problem?

2006-01-04 Thread Sean Davis
On 1/4/06 10:12 AM, "John Siracusa" <[EMAIL PROTECTED]> wrote: > On 1/4/06, Sean Davis <[EMAIL PROTECTED]> wrote: >> The resulting modules contain references to some modules that do not exist, >> it seems. For example, the Dog::DB::Dog module looks like: >> >> package Dog::DB::Dog; >> use Dog

Re: [RDBO] Loader make_modules problem?

2006-01-04 Thread John Siracusa
On 1/4/06, Sean Davis <[EMAIL PROTECTED]> wrote: > The resulting modules contain references to some modules that do not exist, > it seems. For example, the Dog::DB::Dog module looks like: > > package Dog::DB::Dog; > use Dog::DB::DB::Object::Base1; > [...] > > And Dog::DB::DB::Object::Base1 isn't a

Re: [RDBO] Loader make_modules problem?

2006-01-04 Thread Sean Davis
Sorry about the formatting as this came through. Let me know if you would like me to simply attach files of interest to reproduce the errors, etc. On 1/4/06 9:05 AM, "Sean Davis" <[EMAIL PROTECTED]> wrote: > I have to start by saying that I really like the make_modules concept; I > dreaded havi

[RDBO] Loader make_modules problem?

2006-01-04 Thread Sean Davis
Title: Loader make_modules problem? I have to start by saying that I really like the make_modules concept; I dreaded having to hand-edit multiple files for large changes in database schema, but having module code to customize is necessary for many apps; this approach is the best of both worlds.