How do I use ACL with webapp2?

533 views Asked by At

I'm a huge fan of Tipfy, but it's no longer being maintained. Webapp2 seems to have take its place, so I was wondering: how do I use access control lists if I'm using webapp2 instead of Tipfy?

1

There are 1 answers

2
moraes On BEST ANSWER

You'd need to port it to webapp2. It should not be hard. Here're a few tips:

  • cached_property is available in webapp2.cached_property (they are equivalent)
  • the call to get_request() should use webapp2.get_request()
  • You can simply copy PickleProperty to use in your port.
  • CURRENT_VERSION_ID is available in os.environ (it is the app version).

Everything else should work as it is (after taking a quick look). There are few dependencies in that module; it is mostly some datastore models.