On Wednesday 18 June 2008, kretik wrote:

>      if params.has_key("mykey"):
>          self.SomeField = params["mykey"]
>      else:
>          self.SomeField = None
>


self.SomeField = parms.get('mykey', None)

This looks like what you want and it is also simpler because you don't deal 
with checking if the key exists. 
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to