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

« back to all changes in this revision

Viewing changes to www/apps/console/__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:
34
34
    req.write_html_head_foot = True     # Have dispatch print head and foot
35
35
 
36
36
    # Let the plugin mandate the scripts and styles to use
37
 
    req.scripts = ["media/console/console_app.js"]
38
 
    req.styles = ["media/console/console_app.css"]
39
 
    plugins.console.insert_scripts_styles(req.scripts, req.styles)
 
37
    req.scripts = [
 
38
        "media/console/console.js",
 
39
        "media/console/console_app.js" ]
 
40
    req.styles = [
 
41
        "media/console/console.css",
 
42
        "media/console/console_app.css" ]
 
43
    req.scripts_init = [
 
44
        "consoleapp_init" ]
40
45
 
41
46
    # Let the plugin write the HTML body
42
47
    plugins.console.present(req)