~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/media.py

  • Committer: Matt Giuca
  • Date: 2010-02-12 04:00:39 UTC
  • Revision ID: matt.giuca@gmail.com-20100212040039-vw9yf8p4s98g6nu9
Added an argument 'config' to every single get_permissions method throughout the program. All calls to get_permissions pass a config. This is to allow per-site policy configurations on permissions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
130
130
    def get_filename(self, req):
131
131
        return self.context.filename
132
132
 
133
 
    def get_permissions(self, user):
 
133
    def get_permissions(self, user, config):
134
134
        return set()
135
135
 
136
136
def root_to_media(root, *segments):