Package advene :: Package core :: Module webcherry :: Class Access
[hide private]
[frames] | no frames]

Class Access

source code

Common --+
         |
        Access

Displays the access control menu.

Access Control

Access control is available in the AdveneServer through the path /admin/access. By default, only the localhost (IP address 127.0.0.1) is allowed to access the server. The user can add or delete hosts from the access list, but the localhost can never be removed from the access list.

The addition or removal of a computer is done through URLs: /admin/access/add/hostname and /admin/access/delete/hostname

If no options are given, the current access control list is displayed.

Instance Methods [hide private]
 
display_access_list(self)
Display the current access list.
source code
 
index(self) source code
 
add(self, hostname) source code
 
delete(self, hostname) source code
    Inherited from Common
 
__init__(self, controller=None) source code
 
_cpOnError(self)
Error message handling.
source code
 
activate_stbvid(self, stbvid)
Activate the given stbv id.
source code
 
display_media_status(self)
Display current media status.
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