Beispiel #1
0
    def PUT_factory(self, name, typ, body):
        """ Factory for PUT requests to objects which do not yet exist.

    Used by NullResource.PUT.

    Returns -- Bare and empty object of the appropriate type (or None, if
    we don't know what to do)
    """
        method = getattr(self, 'Base_putFactory', None)
        if method is not None:
            return method(name, typ, body)

        return Folder.PUT_factory(self, name, typ, body)