Back to index

plone3  3.1.7
interfaces.py
Go to the documentation of this file.
00001 
00002 
00003 from zope.publisher.interfaces.browser import IBrowserPublisher
00004 
00005 class IDevelView(IBrowserPublisher):
00006 
00007     def ison():
00008         '''Checks if running in development mode
00009 
00010         Two ways to induce development mode:
00011 
00012         - set the cookie on the request
00013 
00014         - switch portal_js tool into debug mode, this will
00015           select development mode without the cookie
00016 
00017         '''
00018 
00019     def isoff():
00020         'Check if running in production mode'
00021 
00022     def set():
00023         'Sets development mode cookie'
00024 
00025     def unset():
00026         'Unsets development mode cookie'
00027 
00028     def ui():
00029         'User interface for interactive switching'
00030 
00031     def ui_js():
00032         'Javascript needed for the ui'
00033 
00034     def ui_css():
00035         'CSS needed for the ui'
00036 
00037     def ui_kss():
00038         'KSS needed for the ui'
00039 
00040