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

« back to all changes in this revision

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

  • Committer: mattgiuca
  • Date: 2008-01-10 21:47:53 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:169
Added global common css file (media/common/ivle.css).
dispatch.request: Added 2 new attributes: scripts and styles, which let apps
    specify arbitrary numbers of custom CSS and JavaScript files.
dispatch.html: Added media/common/ivle.css to the HTML header.
               Prints out all request custom CSS and JS files in the header.
apps.dummy: Test use of scripts and styles.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
    # Set request attributes
31
31
    req.content_type = "text/html"
 
32
    # These files don't really exist - just a test of our linking
 
33
    # capabilities
 
34
    req.styles = ["media/dummy/dummy.css"]
 
35
    req.scripts = ["media/dummy/dummy.js", "media/dummy/hello.js"]
32
36
    req.write_html_head_foot = True     # Have dispatch print head and foot
33
37
 
34
38
    # Start writing data