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 object
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
On 30 Jan 2007, [EMAIL PROTECTED] wrote:
In SVN, I've just added a new method type to one-to-many relationships
(no docs yet). Right now, I'm calling it find. It's for fetching
related objects using ad-hoc queries instead of being constrained to
the mapping defined in the relationship
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 your
I see that as of 0.546, form validate() calls get passed to sub-forms by
default,
* Added a cascade parameter to validate(), which defaults to true.
(Suggested by Guillermo Roditi)
Which is great - exactly what I needed! But there is an order-of-operations
problem for me, because
On 1/31/07, Derek Watson [EMAIL PROTECTED] wrote:
I see that as of 0.546, form validate() calls get passed to sub-forms by
default,
* Added a cascade parameter to validate(), which defaults to true.
(Suggested by Guillermo Roditi)
Which is great - exactly what I needed! But there is an
On 1/31/07, John Siracusa [EMAIL PROTECTED] wrote:
I think the solution is pretty simple: don't re-validate fields in
sub-forms when the cascade option is on (which it is, by default).
I plan to include this change in the next release.
...and this change is in SVN, if you want to give it a
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 and may