[Zope] XML - Setting Object Security Universally?
Tue, 9 Jul 2002 15:45:38 -0700 (PDT)
This is more on the stuff that I posted earlier about the External Methods....
This is my sample XML file:
And I am trying to parse it such that I can <dtml-in> to the elements in question to extract it.
Looking at XMLParse and such, a document already has to exist, and I want to be able to pass XML
through a variable and have it processed, so therefore I am using an *external method*. However,
by the way that it is set up, each object is within an object, e.g. UserRequest has a
RequestHeader object in it and so forth. I can extract it just fine, but I find that each object
is not a subobject.
import gnosis.xml.objectify as xp
from AccessControl import ClassSecurityInfo
from Acquisition import Implicit
object = xp.XML_Objectify('/tmp/sample.xml')
returning = object._PyObject.UserRequest
## print dir(returning.RequestHeader)
In order to keep the system from preventing Unauthorized errors and the Login-Forever sequence
going, I have to set each object within the object to allow access to unprotected subobjects.
Is there a better way to do this or a way to set every single one of these?
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free