On Thu, Aug 23, 2001 at 09:37:34AM -0500, Love, Jay wrote:
| They should always be available explicitly through a pathVariable() accssor
| method.  The value() method is meant to provide simple one stop shopping for
| your client variable needs.  It just goes through the dictionaries, looking
| for the requested key, and once it finds it, it bails and returns the first
| value it finds.  So the question there is, what order should the
| dictionaries be searched in?

Right.  I would say that the dictionaries should be
searched in the order of volatility: 
  
   POST then GET then COOKIE then PATH

POST is a "one-shot" deal, where GET parameters
often span over multiple requests, COOKIE parameter
are even more persistent, and the PATH is the most
persistent of all (a cookie expires).  

| One answer is to provide a way to change this dynamically.  Perhaps maintain
| a list of dicts to search, and the user can change the ordering of the dicts
| in the list.

If someone wants to change this, they can always
re-implement "value()" in their SitePage.

Best,

Clark

_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-devel

Reply via email to