__init__.py 1.78 KB
Newer Older
Gero Müller's avatar
Gero Müller committed
1
2
3
4
# -*- coding: utf-8 -*-

import cherrypy

5
from vispa.server import AbstractExtension
Gero Müller's avatar
Gero Müller committed
6
from vispa.controller import AbstractController
Gero Müller's avatar
Gero Müller committed
7

8
9
from .controller import FileController 

10

Gero Müller's avatar
Gero Müller committed
11
12
13
class FileBrowserController(AbstractController):
    pass

14

Gero Müller's avatar
Gero Müller committed
15
16
class FileBrowserExtension(AbstractExtension):

17
    def name(self):
Gero Müller's avatar
Gero Müller committed
18
19
20
21
22
        return 'file'

    def dependencies(self):
        return []

23
    def setup(self):
24
25
26
27
28
        self.add_controller(FileController())
        self.add_js('js/base/base.js')
        self.add_js('js/base/actions.js')
        self.add_js('js/base/events.js')
        self.add_js('js/base/items.js')
Martin Urban's avatar
Martin Urban committed
29
30
        self.add_js('js/base/helper.js')
        self.add_js('js/base/view.js')
Martin Urban's avatar
Martin Urban committed
31
        self.add_js('js/base/sort.js')
32
        self.add_js('js/base/pathbar.js')
33
        self.add_js('js/base/bookmark.js')
34
35
36
37
        self.add_js('js/base/selections.js')
        self.add_js('js/base/views/symbol/view.js')
        self.add_js('js/base/views/table/view.js')

38
39
        self.add_js("js/vendor/jquery-File-Upload/jquery.fileupload.js")
        self.add_js("js/vendor/jquery-File-Upload/jquery.iframe-transport.js")
40
        self.add_js("js/vendor/jquery-ellipsis/jquery.ellipsis.min.js")
41
42


43
44
45
        self.add_js('js/browser/browser.js')
        self.add_js('js/browser/view.js')
        self.add_js('js/browser/actions.js')
46

47
        self.add_js('js/selector/selector.js')
48
        self.add_js('js/selector/actions.js')
49
        self.add_js('js/selector/items.js')
50
        self.add_js('js/selector/selections.js')
Gero Müller's avatar
Gero Müller committed
51
52

        self.add_js('js/extension.js')
Martin Urban's avatar
Martin Urban committed
53
        self.add_js('js/shortcuts.js')
54
        self.add_js('js/menuentries.js')
55

56
        self.add_css('css/base/base.css')
57
        self.add_css('css/base/pathbar.css')
58
59
        self.add_css('css/base/views/symbol/symbol.css')
        self.add_css('css/base/views/table/table.css')