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

Concatenates 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

__init__

DatabaseRSS

__init__

RSSServer

__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

__init__

HTMLScriptParser

__init__

HTMLScriptParserRemove

__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

__init__

HTMLtoJSONParser

__init__

XMLHandlerDict

__init__

XMLIterParser

__init__

XMLHandlerDictNode

__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

Builds _othercount when not present.

_check_

XMLHandlerDictNode

some checking

_collapse

XMLHandlerDictNode

Collapses 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.

_log_error

XMLHandlerDictNode

logs an object from the root if not already done

_prepare_stringio

XMLHandlerDict

prepare the StringIO stream

_transfer_to_object

XMLHandlerDictNode

Transfers values to the object self.table.

add_path

SimpleHandler

Adds a local path to the list of path to watch.

add_status

BlogPost

Attaches a dictionary representing the status.

add_xml_content

XMLHandlerDictNode

Adds the content of the node itself (and all included nodes).

apply_change_names

XMLHandlerDictNode

private: change names attributes.

characters

XMLHandlerDict

Adds characters.

clean

HTMLtoJSONParser

Cleans a dictionary of value.

copy

XMLHandlerDictNode

Gets 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

Enumerates 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

Finds 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

Gets all values associated to a given field name.

get_values_group

XMLHandlerDictNode

Gets 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

Displays the blogs in HTML format, the template contains two kinds of informations:

html

StreamRSS

Displays the blogs in HTML format, the template contains two kinds of informations:

html_code_renderer

SimpleHandler

Produces a html code for code.

iadd

XMLHandlerDictNode

Concatenates 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

Interprets a list of parameters, each of them is a list of integer separated by ,.

is_text_only

XMLHandlerDictNode

Returns True if it only contains text.

iterfields

XMLHandlerDictNode

Iterator on the nodes.

log_message

SimpleHandler

Logs 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

Parses an XML document from a URL or an InputSource.

private_LOG

SimpleHandler

To log

private_process_condition

DatabaseRSS

Returns a :epkg:`SQL` query corresponding to list of posts.

process_event

CustomDBServer

Processes an event, it expects a format like the following:

process_event

CustomDBServerHandler

process an event, and log it

process_event

RSSServer

Processes an event, it expects a format like the following:

process_event

RSSSimpleHandler

Processes an event, and log it.

process_scripts

SimpleHandler

Parses a HTML string, extract script section (only python script for the time being) and returns …

rearrange

XMLHandlerDictNode

Moves all objects to other.

run

ThreadServer

Runs 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

Changes 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

Strips the buffer.

to_html_item

BlogPost

Renders the blog post into HTML.

to_rss_item

BlogPost

Converts the blog post into XML.