Exemple #1
0
 def davComplianceClasses(self):
     """
     This implementation raises L{NotImplementedError}.
     @return: a sequence of strings denoting WebDAV compliance classes.  For
         example, a DAV level 2 server might return ("1", "2").
     """
     unimplemented(self)
Exemple #2
0
    def isCollection(self):
        """
        See L{IDAVResource.isCollection}.

        This implementation raises L{NotImplementedError}; a subclass must
        override this method.
        """
        unimplemented(self)
Exemple #3
0
    def groupMemberships(self):
        """
        See L{IDAVPrincipalResource.groupMemberships}.

        This implementation raises L{NotImplementedError}.  Subclasses must
        override this method to provide the group URLs for this resource.
        """
        unimplemented(self)
Exemple #4
0
    def principalURL(self):
        """
        See L{IDAVPrincipalResource.principalURL}.

        This implementation raises L{NotImplementedError}.  Subclasses must
        override this method to provide the principal URL for this resource.
        """
        unimplemented(self)
Exemple #5
0
    def findChildren(self, depth):
        """
        See L{IDAVResource.findChildren}.

        This implementation raises returns C{()} if C{depth} is C{0} and this
        resource is a collection.  Otherwise, it raises L{NotImplementedError};
        a subclass must override this method.
        """
        assert depth in ("0", "1", "infinity"), "Invalid depth: %s" % (depth,)
        if depth == "0" or not self.isCollection():
            return ()
        else:
            unimplemented(self)