[Zope3-Users] syncing object view after an attribute change
Joel Moxley
jfmoxley at gmail.com
Tue Feb 21 08:22:06 EST 2006
Hi all,
I've been developing an app, and I keep running into this problem.
Briefly, the object view loaded in my page will be one step out of
sync with a change I make on the object. This seems to be something
very basic that I am missing, but I have not been able to find an
appropriate fix and instead rely on the simple workaround of pressing
"refresh" in my browser.
By way of an example, I have a parent container with child objects.
In the container page template view, I have a simple input form that
calls a function deleting all child objects.
<td colspan="7" tal:define="result view/formClearAll">
<form>
<input type="submit" name="CLEAR_ALL" value="Clear All"/>
</form>
</td>
When I press "Clear All", the new page shows the views on the old
child objects. When I press refresh, the new page now correctly has
removed the child objects.
Can someone please give me a pointer on how to remedy this and get my
views back in sync?
Thank you,
Joel
More information about the Zope3-users
mailing list