Package bw :: Module hermes
[frames] | no frames]

Module hermes

This module provides a decorator to use with application methods which convert the output to one of any formats accepted by the user.

TODO: If a function returns a list of Ideas, the XML/JSON representation should contain enough info to allow the client side to deserialize into a list of Ideas.

Classes
  service
This decorator enables a function to return different formats based on the extension in the url.
Functions
 
write_rss(data)
This method expects a dictionary to be written in RSS format.
 
write_csv(data)
This method writes a list of dictionaries in CSV format
 
write_rdf(data)
This method expects a list of Ideas to be written in RDF format.
 
write_json(data)
 
write_xml(data)
 
write_xls(items)

Imports: wraps, b64encode, types, json, iris, Idea, axml, Aphrodite, csv, os, cherrypy, HermesError, StringIO, pickle


Function Details

write_rss(data)

 

This method expects a dictionary to be written in RSS format. Not Implemented.