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

« back to all changes in this revision

Viewing changes to www/apps/tutorial/__init__.py

  • Committer: dcoles
  • Date: 2008-07-14 01:08:59 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:850
Console: Moved console up into dispatch. Now any application can, in theory, 
have it's own console just by adding 'useconsole = True' to the app settings.
Note: There are some cases where this may not be a good idea - ie. The full 
console app, public applications, etc. Removed the old single instances of 
console and made apps init functions use the new scripts_init section.

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
 
42
42
from common import util
43
43
import conf
44
 
import plugins.console
45
44
import common.db
46
45
 
47
46
from rst import rst
87
86
    req.styles = [
88
87
        "media/tutorial/tutorial.css",
89
88
    ]
90
 
    # Let the console plugin insert its own styles and scripts
91
 
    plugins.console.insert_scripts_styles(req.scripts, req.styles)
92
89
    # Note: Don't print write_html_head_foot just yet
93
90
    # If we encounter errors later we do not want this
94
91
 
114
111
        handle_subject_menu(req, subject)
115
112
    else:
116
113
        handle_worksheet(req, subject, worksheet)
117
 
        plugins.console.present(req, windowpane=True)
118
114
 
119
115
def handle_media_path(req):
120
116
    """