[Zope] Missing.Value
Andy McKay
andy@agmweb.ca
Thu, 26 Sep 2002 23:48:26 -0700
The catalog for my CMF returns Missing.Values as well. It comes from
Missing.pyd, but I don't remember seeing that in Python before though.
Anyway, read in the Python Scripts for how to allow access to things like
this. Essentially somewhere on the filesystem you need to do:
from Products.PythonScripts.Utility import allow_module
allow_module('Missing')
Then within a Script (Python ) you can do:
import Missing
if same_type(value, Missing.MV):
# do something
Just found this out when I tried to ram cache a dict made up of catalog
metadata, and found ram cache couldnt dump Missing.Value...
Hope that helps.
--
Andy McKay
www.agmweb.ca