Example #1
0
	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)
Example #2
0
 def __init__(self, authentication=None, permitted_methods=None,
              mimetype=None):
     Resource.__init__(self, authentication, permitted_methods, mimetype)
Example #3
0
 def __init__(self, authentication=None,
              mimetype=None):
     Resource.__init__(self, authentication, ('GET',), mimetype)
Example #4
0
 def __init__(self, authentication=None, mimetype=None):
     Resource.__init__(self, authentication, ('GET', ), mimetype)