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

« back to all changes in this revision

Viewing changes to www/apps/fileservice/action.py

  • Committer: mattgiuca
  • Date: 2008-01-22 23:41:29 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:267
Changed semantics of "published" property: Now applies to directories, not
files, and causes everything in the directory to get published.

fileservice: Listing only shows "published" for directories.
studpath.authorized_public: Checks parent directory for publish permission
    instead of the file itself.

(This comes out of a series of meetings with Tom and Steven, where we decided
that file-level access is too fine grained; you can't control user-generated
files).

Show diffs side-by-side

added added

removed removed

Lines of Context:
440
440
 
441
441
def action_svnpublish(req, fields):
442
442
    """Sets svn property "ivle:published" on each file specified.
 
443
    Should only be called on directories (only effective on directories
 
444
    anyway).
443
445
 
444
446
    Reads fields: 'path'
445
447
    """