[Zope3-dev] update called twice for editview
Garrett Smith
garrett at mojave-corp.com
Tue Aug 31 13:23:09 EDT 2004
The use of tal:tag at the top of edit.pt (z.a.form.browser) as well as
tal:define in line 18 results in update being called twice for the edit
view.
I'm not sure what 'tal:tag' is generally for, but I imagine it is used
here to ensure that objects are updated before the form is displayed (to
ensure the page displays the current values).
Ideally, we could define 'status' in the first line to accomplish what
we needed in a single call to update.
AFAIC, this is a performance related issue that should be fixed -- I'm
happy to do it, but need some help using tal:tag. This would also be
possible using a slot in the main template for code needed to be
evaluated before the rest of the page is rendered, but I'm hoping
there's an easier path.
--Garrett
More information about the Zope3-dev
mailing list