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

« back to all changes in this revision

Viewing changes to www/apps/server/__init__.py

  • Committer: mattgiuca
  • Date: 2008-01-22 22:28:27 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:266
Added Publishing feature. This feature is complete except it currently isn't
available in the JavaScript interface.

fileservice: Added new JSON property "published", for each file under revision
control. Added new actions svnpublish and svnunpublish.
common/studpath: Added "published" function (to check if a file is published),
and "authorize_public" to authorize in public mode.
server: Now calls studpath.authorize_public for public mode (instead of just
authorizing everything).

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
    """
53
53
    if req.publicmode:
54
54
        # Public mode authorization: any user can access any other user's
55
 
        # files, BUT the accessed file needs to have its "published" flag
 
55
        # files, BUT the accessed file needs to have its "ivle:published" flag
56
56
        # turned on in the SVN status.
57
 
        # TODO
58
 
        pass
 
57
        studpath.authorize_public(req)
59
58
    else:
60
59
        # Private mode authorization: standard (only logged in user can access
61
60
        # their own files, and can access all of them).