def __init__(self, *args, **kwargs): if kwargs.has_key('type'): self.type = kwargs['type'].upper() del kwargs['type'] else: self.type = 'JSON' Resource.__init__(self, *args, **kwargs)
def __init__(self, authentication=None, permitted_methods=None, mimetype=None): Resource.__init__(self, authentication, permitted_methods, mimetype)
def __init__(self, authentication=None, mimetype=None): Resource.__init__(self, authentication, ('GET',), mimetype)
def __init__(self, authentication=None, mimetype=None): Resource.__init__(self, authentication, ('GET', ), mimetype)