one submit call multiple dtml methods?
Does anyone know how to make one "submit" button call on more than one DTML Methods? Thanks, -- Mike
I generally just create a "super" method that calls all of the methods that I want. In DTML such a super method could be as simple as: <dtml-var method1> <dtml-var method2> <dtml-var method3> <dtml-var method4> <dtml-var method5> <dtml-var method6> I usually mix in a bit of error checking just for fun, but you get the idea. Jason Mike Doanh Tran <mtran@shufflemasterrd.com> writes:
Does anyone know how to make one "submit" button call on more than one DTML Methods?
Thanks,
-- Mike
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Jason Earl wrote:
I generally just create a "super" method that calls all of the methods that I want.
In DTML such a super method could be as simple as:
<dtml-var method1> <dtml-var method2> <dtml-var method3> <dtml-var method4> <dtml-var method5> <dtml-var method6>
...and if you're doing anything like that, you should probably be using python scripts ;-) cheers, Chris
I couldn't agree more. That's why I called it a super method and not a super DTML method. PythonScripts make using Python for these sorts of tasks easy. No more messy external methods, and no mind-numbingly complex Product creation. However, the post *did* specifically mention calling multiple DTML scripts, and DTML is sometimes too powerful to waste. A couple of dtml-if statements for simple error checking and you are golden. I work with plenty of folks that have grasped the fundamentals of DTML who go completely glassy-eyed when faced with even the most trivial PythonScript. I am still getting the hang of this list. In the future I will try to be more verbose. In this case I probably shouldn't have mentioned how to do this in DTML without first telling the person that DTML is probably not the best answer :). What Zope really needs is an acronym like Perl's TIMTOWTDI. Unfortunately for Zope it would probably have to spell out something like "There Is More Than One Way To Do It, But Only One Of Them Can Truly Be Considered Zopish." I have no idea how you would pronounce "TIMTOWTDIBOOOTCTBCZ." Thanks for the followup, Jason Chris Withers <chrisw@nipltd.com> writes:
Jason Earl wrote:
I generally just create a "super" method that calls all of the methods that I want.
In DTML such a super method could be as simple as:
<dtml-var method1> <dtml-var method2> <dtml-var method3> <dtml-var method4> <dtml-var method5> <dtml-var method6>
...and if you're doing anything like that, you should probably be using python scripts ;-)
cheers,
Chris
participants (3)
-
Chris Withers -
Jason Earl -
Mike Doanh Tran