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

« back to all changes in this revision

Viewing changes to ivle/webapp/filesystem/browser/__init__.py

  • Committer: David Coles
  • Date: 2010-07-28 10:45:53 UTC
  • mfrom: (1829 trunk)
  • mto: This revision was merged to the branch mainline in revision 1830.
  • Revision ID: coles.david@gmail.com-20100728104553-5z3nxt0l6kyfqfh5
MergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
from ivle.webapp.base.xhtml import XHTMLView
31
31
from ivle.webapp.errors import NotFound
32
32
from ivle.webapp.filesystem import make_path_breadcrumbs
 
33
from ivle.webapp.media import media_url
33
34
from ivle.webapp import ApplicationRoot
34
35
 
35
36
import os.path
64
65
        self.plugin_scripts[Plugin] = ['browser.js',
65
66
                                       'listing.js',
66
67
                                       'editor.js',
67
 
                                       'specialhome.js',
68
 
                                       'codepress/codepress.js']
 
68
                                       'specialhome.js']
 
69
        self.plugin_scripts['+external/codemirror'] = ['js/codemirror.js']
69
70
        self.scripts_init = ["browser_init"]
70
71
 
71
72
        # Start writing data
95
96
                                                               self.path))
96
97
        ctx['filename'] = cgi.escape(self.path)
97
98
 
 
99
        # Media URL for CodeMirror
 
100
        ctx['codemirrorpath'] = media_url(req, '+external/codemirror', '')
 
101
 
98
102
    @property
99
103
    def path(self):
100
104
        return os.path.join(*self.subpath) if self.subpath else ''
128
132
          ('Subversion', True, [
129
133
            ('svncut',      ['Svn Cut',      'Prepare to move the selected files to another directory, maintaining history']),
130
134
            ('svncopy',     ['Svn Copy',     'Prepare to copy the selected files to another directory, maintaining history']),
 
135
            ('svnrename',   ['Rename',         'Schedule the selected permanent files to be renamed']),
131
136
            ('svnadd',      ['Add',            'Schedule the selected temporary files to be added permanently']),
132
137
            ('svnremove',   ['Remove',         'Schedule the selected permanent files to be removed']),
133
138
            ('svndiff',     ['Diff',           'View any changes to the selected file since its last committed state']),