On 5/9/10 17:03 , Michael A. Smith wrote: > Does Zope or Plone have a method for getting the value(s) from a querystring > that is more typesafe than the self.request.form dict? > > http://imitationfunsite.com/?gum=shoe&gum=chew would have a tuple for > self.request.form['gum'] > > but > > http://imitationfunsite.com/?gum=goo would have a string, so it's not safe to > iterate without checking.
You can add type qualifiers to the variable names in the querystring. For example ?gum:list=goo would return a list. Wichert. _______________________________________________ Product-Developers mailing list [email protected] http://lists.plone.org/mailman/listinfo/product-developers
