|
Package bw ::
Module hermes
|
|
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.
|
|
service
This decorator enables a function to return different formats based
on the extension in the url.
|
|
|
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. |
|
|
|
|
|
|
|
|
|
|
|
Imports:
wraps,
b64encode,
types,
json,
iris,
Idea,
axml,
Aphrodite,
csv,
os,
cherrypy,
HermesError,
StringIO,
pickle
|
This method expects a dictionary to be written in RSS format. Not
Implemented.
|