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

« back to all changes in this revision

Viewing changes to doc/app_howto.txt

  • Committer: mattgiuca
  • Date: 2008-01-31 01:44:30 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:345
Global CSS change: ivlebody no longer has 1em of padding (it has none).
This is because most apps were disabling it (and it had to change anyway for
other reasons -- see below).

Hence, all apps which WERE disabling the padding have had that removed, and
just work by default. (console, browser, tutorial)
All apps which WEREN'T disabling the padding (very few) now have to manually
include an extra div. This has been done on all such apps, and has been
heavily documented (both in the CSS file and doc/app_howto). (help, dummy,
debuginfo).

media/common/ivle.css: 
    The real change here (which isn't yet being used) is that ivlebody is now
    positioned absolutely and takes up all the space on the canvas. This is
    to be used for full-page layouts in console and browser.

Show diffs side-by-side

added added

removed removed

Lines of Context:
143
143
    def handle(req):
144
144
        req.content_type = "text/html"
145
145
        req.write_html_head_foot = True
146
 
        req.write("<p>Hello, IVLE!</p>\n")
 
146
        req.write("<div id="ivle_padding">\n")
 
147
        req.write("  <p>Hello, IVLE!</p>\n")
 
148
        req.write("</div>\n")
147
149
 
148
150
Now, edit the file `conf/apps.py`, and add the following lines:
149
151
 
165
167
XHTML body element. The final output will be valid XHTML 1.0 Strict if the
166
168
application's output is.
167
169
 
 
170
Note that by default, there is no padding around the application's HTML
 
171
output. This is because more complex apps (most of ours) don't work properly
 
172
with padding. Simpler apps (which simply write HTML paragraph content) look
 
173
better with padding.  Apps can wrap all of their output in a
 
174
'<div id="ivle_padding">' element (as shown above) to get padding.
 
175
 
168
176
### Making a file dump ###
169
177
 
170
178
You can modify the application to dump files from the students directories