Logo Search packages:      
Sourcecode: zope-parsedxml version File versions

def ParsedXML::DOMProxy::DOMProxy::getPersistentDoc (   self  )  [inherited]

Return a reference to a security friendly persistent document
if we can, or None.  This can be None when OwnerDocument, if it
exsists, is not None.  If you don't need to reach the document
through the security checks, you don't need to use this method.

Definition at line 39 of file DOMProxy.py.

                              :
        """Return a reference to a security friendly persistent document
        if we can, or None.  This can be None when OwnerDocument, if it
        exsists, is not None.  If you don't need to reach the document
        through the security checks, you don't need to use this method.
        """    
        # We do this because the userfolder container needs to be in the aq
        # context of the unwrapped returned object.
        if self._persistentDoc and getattr(
            self._persistentDoc, "_container", None):
            
            try:
                # If we can get to self, we can get to the persistent doc -
                # but restrictedTraverse is necessary for some reason for
                # what we return to be used in an acquisition chain
                return self._persistentDoc._container.restrictedTraverse(
                    self._persistentDoc.getPhysicalPath())
            except:
                pass
        return None

    def __setattr__(self, name, value):


Generated by  Doxygen 1.6.0   Back to index