jeremie fouche wrote:

> You can also use :
> self.SomeField = params.has_key("mykey") and params["mykey"] or None

Have caution with this solution: it may not provide the desired result in
the case where params["mykey"] is a false value, such as 0, or []


Jeffrey
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to