File: interfaces.py

package info (click to toggle)
plone3 3.1.3-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 73,972 kB
  • ctags: 39,149
  • sloc: python: 209,481; xml: 25,065; sh: 1,395; makefile: 585; php: 129; lisp: 54
file content (40 lines) | stat: -rw-r--r-- 788 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40


from zope.publisher.interfaces.browser import IBrowserPublisher

class IDevelView(IBrowserPublisher):

    def ison():
        '''Checks if running in development mode

        Two ways to induce development mode:

        - set the cookie on the request

        - switch portal_js tool into debug mode, this will
          select development mode without the cookie

        '''

    def isoff():
        'Check if running in production mode'

    def set():
        'Sets development mode cookie'

    def unset():
        'Unsets development mode cookie'

    def ui():
        'User interface for interactive switching'

    def ui_js():
        'Javascript needed for the ui'

    def ui_css():
        'CSS needed for the ui'

    def ui_kss():
        'KSS needed for the ui'