[Zope] how to create brain instance in python???

Chris Withers chrisw@nipltd.com
Sat, 15 Jun 2002 09:35:31 +0100

> The reason is, that i want to return to a page template from a python
script a brain instance
> that is either the result of a catalog query, or an empty/default
instance.  Then, the template
> can fill a form field with either the retrieved values or defaults.

In this situation, why not just return a dictionary for your default? It's
probably gonna smell enough like a brain to work as expected...