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

« back to all changes in this revision

Viewing changes to services/svnlogservice

  • Committer: Matt Giuca
  • Date: 2010-02-11 04:20:42 UTC
  • Revision ID: matt.giuca@gmail.com-20100211042042-j7ivbq41aky9b2cp
Added Users tab to drop-down menu, for admins only.
Users view has new icon.
ivle/webapp/base/xhtml.py: Added 7th field to 'tabs' tuple -- admin. If true,
    restricts the tab to showing only for admins.

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
    try:
51
51
        code = e[1][0][1]
52
52
        # See subversion/include/svn_error_codes.h.
 
53
        # 150000: ERR_ENTRY_NOT_FOUND
53
54
        # 155007: WC_NOT_DIRECTORY.
 
55
        # 160006: FS_NO_SUCH_REVISION
54
56
        # 160013: FS_NOT_FOUND
55
57
        # 200005: UNVERSIONED_RESOURCE
56
 
        if code in (155007, 160013, 200005):
 
58
        if code in (150000, 155007, 160006, 160013, 200005):
57
59
            error = 'notfound'
58
60
        else:
59
 
            error = '%s (code %d)' % (error, code) 
 
61
            error = '%s (code %d)' % (error, code)
60
62
    except IndexError:
61
63
        pass
62
64