Skip to content

Instantly share code, notes, and snippets.

@bohde
Created February 29, 2012 04:43
Show Gist options
  • Select an option

  • Save bohde/1937822 to your computer and use it in GitHub Desktop.

Select an option

Save bohde/1937822 to your computer and use it in GitHub Desktop.
class TestResource(ModelResource):
def is_authorized(self, *args, **kwarg):
super(TestResource, self).is_authorized(*args, **kwargs)
print 'is_authorized passed'
def is_authenticated(self, *args, **kwarg):
super(TestResource, self).is_authenticated(*args, **kwargs)
print 'is_authenticated passed'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment