Methods

Summary

method class parent truncated documentation
LOG SimpleHandler to log, it appends various information about the id address…
__cmp__ XMLHandlerDictNode  
__enter__ CustomDBServer what to do when creating the class
__enter__ RSSServer what to do when creating the class
__exit__ CustomDBServer what to do when removing the instance (close the log file)
__exit__ RSSServer what to do when removing the instance (close the log file)
__iadd__ XMLHandlerDictNode concatenate every information
__init__ CustomDBServer constructor
__init__ CustomDBServerHandler Regular constructor, an instance is created for each request, do not store any data for a longer time than a request. …
__init__ BlogPost constructor
__init__ DatabaseRSS constructor
__init__ RSSServer constructor
__init__ RSSSimpleHandler Regular constructor, an instance is created for each request, do not store any data for a longer time than a request. …
__init__ StreamRSS constructor
__init__ HTMLScriptParser constructor
__init__ HTMLScriptParserRemove constructor
__init__ SimpleHandler Regular constructor, an instance is created for each request, do not store any data for a longer time than a request. …
__init__ ThreadServer constructor
__init__ HTMLtoJSONParser constructor
__init__ XMLHandlerDict constructor
__init__ XMLIterParser  
__init__ XMLHandlerDictNode contructor
__lt__ StreamRSS cmp operator
__lt__ XMLHandlerDictNode  
__str__ BlogPost usual
__str__ DatabaseRSS usual
__str__ StreamRSS usual
__str__ XMLHandlerDictNode usual
_adopt_table XMLHandlerDictNode adopts a table built on anoher object
_build_othercount XMLHandlerDictNode build _othercount when not present
_check_ XMLHandlerDictNode some checking
_collapse XMLHandlerDictNode collapse together all fields having the same name in the member other
_convert_into_list XMLHandlerDictNode converts all types into lists
_guess_type XMLHandlerDictNode replaces all values in the object by the
_log_error XMLHandlerDictNode logs an object from the root if not already done
_prepare_stringio XMLHandlerDict prepare the StringIO stream
_transfer_to_object XMLHandlerDictNode transfer values to the object self.table
add_path SimpleHandler adds a local path to the list of path to watch
add_status BlogPost attach a dictionary representing the status
add_xml_content XMLHandlerDictNode add the content of the node itself (and all included nodes)
apply_change_names XMLHandlerDictNode private: change names attributes
characters XMLHandlerDict add characters
clean HTMLtoJSONParser clean a dictionary of value
copy XMLHandlerDictNode get a copy
create_missing_table DatabaseRSS creates the missing tables
do_GET SimpleHandler what to do is case of GET request
do_POST SimpleHandler what to do is case of POST request
do_redirect SimpleHandler redirection when url is just the website
endElement XMLHandlerDict after a tag
enumerate_blogs DatabaseRSS enumerates all the blogs from the database
enumerate_latest_status DatabaseRSS retrieves the latest status for a post
enumerate_on_tag XMLHandlerDictNode enumerate all nodes sharing the same name: tag
enumerate_post StreamRSS parses a rss stream.
enumerate_posts DatabaseRSS enumerates all the posts from the database if the blog id belongs to a selection (or all if blog_selection is empty) …
enumerate_posts_status DatabaseRSS enumerate status
execute SimpleHandler locally execute a python script
feed SimpleHandler displays something
find_node XMLHandlerDictNode  
find_node_regex XMLHandlerDictNode find all nodes depending on a regular expression
find_node_value XMLHandlerDictNode  
get_file_content SimpleHandler Returns the content of a local file. The function also looks into folders in self.__pathes to see if the file …
get_ftype SimpleHandler defines the header to send (type of files) based on path
get_full_name XMLHandlerDictNode  
get_html_status BlogPost returns a status written in HTML
get_javascript_paths CustomDBServerHandler returns all the location where the server should look for a java script
get_javascript_paths RSSSimpleHandler returns all the location where the server should look for a java script
get_javascript_paths SimpleHandler returns all the location where the server should look for a java script
get_pathes SimpleHandler returns a list of local path where to look for a local file
get_root XMLHandlerDictNode  
get_values XMLHandlerDictNode get all values associated to a given field name
get_values_group XMLHandlerDictNode get all values associated to a list of fields (must come together in a single node, not in self.other)
get_xml_content XMLHandlerDictNode  
get_xml_output XMLHandlerDictNode  
handle_data HTMLScriptParser intercepts the data between two tags
handle_data HTMLScriptParserRemove intercepts the data between two tags
handle_data HTMLtoJSONParser what to do with data
handle_endtag HTMLScriptParser intercepts the end of a tag
handle_endtag HTMLScriptParserRemove intercepts the end of a tag
handle_endtag HTMLtoJSONParser what to do for the end of a tag
handle_starttag HTMLScriptParser intercepts the beginning of a tag
handle_starttag HTMLScriptParserRemove intercepts the beginning of a tag
handle_starttag HTMLtoJSONParser what to do for a new tag
html BlogPost display the blogs in HTML format, the template contains two kinds of informations:
html StreamRSS display the blogs in HTML format, the template contains two kinds of informations:
html_code_renderer SimpleHandler produces a html code for code
iadd XMLHandlerDictNode concatenate every information
interpret_parameter_as_list_int CustomDBServerHandler interpret a list of parameters, each of them is a list of integer separated by ,
interpret_parameter_as_list_int RSSSimpleHandler interpret a list of parameters, each of them is a list of integer separated by ,
is_text_only XMLHandlerDictNode return True if it only contains text
iterfields XMLHandlerDictNode iterator on the nodes
log_message SimpleHandler Log an arbitrary message. Overloads the original method. This is used by all other logging functions. Override …
main_page CustomDBServerHandler returns the main page (case the server is called with no path)
main_page RSSSimpleHandler returns the main page (case the server is called with no path)
main_page SimpleHandler returns the main page (case the server is called with no path)
parse XMLIterParser Parse an XML document from a URL or an InputSource.
private_LOG SimpleHandler to log
private_process_condition DatabaseRSS returns a SQL query corresponding to list of posts
process_event CustomDBServer process an event, it expects a format like the following
process_event CustomDBServerHandler process an event, and log it
process_event RSSServer process an event, it expects a format like the following
process_event RSSSimpleHandler process an event, and log it
process_scripts SimpleHandler parses a HTML string, extract script section (only python script for the time being) and returns the final page
rearrange XMLHandlerDictNode move all objects to other
run ThreadServer run the server
send_headers SimpleHandler defines the header to send (type of files) based on path
serve_content SimpleHandler Tells what to do based on the path. The function intercepts the path /localfile/, otherwise it calls serve_content_web. …
serve_content_web CustomDBServerHandler functions to overload (executed after serve_content)
serve_content_web RSSSimpleHandler functions to overload (executed after serve_content)
serve_content_web SimpleHandler functions to overload (executed after serve_content)
set XMLHandlerDictNode change the value of a field
shutdown SimpleHandler Shuts down the service from the service itself (not from another thread). For the time being, the function generates …
shutdown ThreadServer shuts down the server, if it does not work, you can still kill the thread
startElement XMLHandlerDict when enters a section
str_attr HTMLScriptParser returns a string including the parameters values
str_attr HTMLScriptParserRemove returns a string including the parameters values
strip XMLHandlerDictNode strip the buffer