Package advene :: Package server :: Module webcherry :: Class Root
[hide private]
[frames] | no frames]

Class Root

source code

Common --+
         |
        Root

Common methods for all web resources.

URL syntax

The virtual tree served by this server has the following entry points :

Instance Methods [hide private]
 
__init__(self, controller=None) source code
 
index(self)
Display the server root document.
source code
    Inherited from Common
 
_cpOnError(self)
Error message handling.
source code
string
image_type(self, o)
Return the image type (mime) of the object.
source code
string
location_bar(self)
Returns a string representing the active location bar.
source code
 
no_cache(self)
Write the cache-control headers in the response.
source code
 
send_error(self, status=404, message=None)
Sends an error response.
source code
 
send_no_content(self)
Sends a No Content (204) response.
source code
 
send_redirect(self, location)
Sends a redirect response.
source code
 
start_html(self, title='', headers=None, head_section=None, body_attributes='', mode=None, mimetype=None, duplicate_title=False, cache=False)
Starts writing a HTML response (header + common body start).
source code
Method Details [hide private]

__init__(self, controller=None)
(Constructor)

source code 
Overrides: Common.__init__