[Jifty-commit] r7410 - jifty/trunk/lib/Jifty/Manual
Jifty commits
jifty-commit at lists.jifty.org
Tue Aug 18 22:16:40 EDT 2009
Author: sartak
Date: Tue Aug 18 22:16:39 2009
New Revision: 7410
Modified:
jifty/trunk/lib/Jifty/Manual/Preload.pod
Log:
Side effects are another no-no for preload regions
Modified: jifty/trunk/lib/Jifty/Manual/Preload.pod
==============================================================================
--- jifty/trunk/lib/Jifty/Manual/Preload.pod (original)
+++ jifty/trunk/lib/Jifty/Manual/Preload.pod Tue Aug 18 22:16:39 2009
@@ -29,6 +29,12 @@
out to be a fairly simple way to figure out what to display next for
preloading.
+A region that is preloaded should not cause gratuitous side effects. It should
+never construct and submit actions on its own, mutate records, or anything else
+of that sort. Basically, the region should expect to be generated
+unconditionally. It can of course display a form, since that itself does not
+have side effects.
+
Preloading should also be agnostic of real-world time. If you preload a region
that contains a timestamp, then that timestamp may be stale by the time the
region is actually shown. Similarly for displaying duration. For example, at
More information about the Jifty-commit
mailing list