Skip to content

Instantly share code, notes, and snippets.

@sahid
Created April 20, 2011 16:37
Show Gist options
  • Save sahid/931856 to your computer and use it in GitHub Desktop.
Save sahid/931856 to your computer and use it in GitHub Desktop.
class CapabilityDatastore (object):
def process_request (self, request):
datastore_write = CapabilitySet('datastore_v3', capabilities=['write'])
if not datastore_write.is_enabled():
return views.common_capability(request)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment