Re: [RDBO] Integration with Rose::HTML::Form

2007-01-31 Thread John Siracusa
On 1/30/07, John Siracusa <[EMAIL PROTECTED]> wrote: > I have db_object_from_form() and init_with_db_object() methods that > will handle a tree of RDBO-derived objects that correspond to a tree > of nested RHTMLO forms. The code is included at the end of this > email, but it's still "in progress"

Re: [RDBO] Integration with Rose::HTML::Form

2007-01-31 Thread Michael Lackhoff
On 31 Jan 2007 at 8:52, John Siracusa wrote: > I don't use CGI::Application, so maybe I'm misunderstanding how it works, > but how about a class method that returns the current CGI::Application > object? e.g., MyWebSite->current_app(). You'd set it at the beginning of > each request. Then, in y

Re: [RDBO] Integration with Rose::HTML::Form

2007-01-31 Thread John Siracusa
On 1/31/07 5:11 AM, Michael Lackhoff wrote: > This is a question I have for some time now: How to get your framework object > into the depth of all the RDBO and RHTMLO objects (DB table/manager, HTML > forms, special fields). I use CGI::Application as my framework and Template > Toolkit as my templ

Re: [RDBO] Integration with Rose::HTML::Form

2007-01-31 Thread Michael Lackhoff
On 30 Jan 2007 at 17:00, John Siracusa wrote: > id is in $session, which the form knows nothing about. But in most > web app frameworks, there's usually some way to get at "globally > applicable" data like the session, in which case it's reasonable for > customer_from_form() to return you an obje

Re: [RDBO] Integration with Rose::HTML::Form

2007-01-30 Thread John Siracusa
On 1/30/07, Derek Watson <[EMAIL PROTECTED]> wrote: > I am using RDBO in conjunction with Rose::HTML::Form for the first time, and > wonder if there are any guides or examples out there showing some > conventional integration techniques. Specifically, how best to use RHF's > objects returned by ob

[RDBO] Integration with Rose::HTML::Form

2007-01-30 Thread Derek Watson
Hello, I am using RDBO in conjunction with Rose::HTML::Form for the first time, and wonder if there are any guides or examples out there showing some conventional integration techniques. Specifically, how best to use RHF's objects returned by object_from_form() style methods to update database r