[Zope-dev] ZPatterns: getItem returns None

R. David Murray bitz@bitdance.com
Sat, 17 Mar 2001 13:51:37 -0500 (EST)


On Sat, 17 Mar 2001, Roch'e Compaan wrote:
> When I call getItem(<existing_id>) on the specialist, it returns None.

In my experience, getItem will return None if *anything* goes wrong
with data retieval or object creation.  Sometimes you get a traceback in
the STUPID_LOG, and sometimes you don't (and I haven't figured out the
pattern yet).  Test everything you can independently, and simplify
everything to the bare minimum until you get it to work, and then
add back the other variables, etc.

--RDM