| Home | Trees | Index | Help |
|
|---|
| Package amplee :: Package atompub :: Module service :: Class AtomPubService |
|
object --+
|
AtomPubService
| Method Summary | |
|---|---|
Atom Publisging Protocol service entity. | |
Returns a collection identified by ``name_or_id`` | |
Returns all the collections belonging to workspaces of this service. | |
Returns a workspace per its identifier. | |
Generates a new atom feed from the passed items dictionnary. | |
set_xslt(self,
path)
| |
Generates and returns a ``bridge.Document`` instance of the service document and its workspaces. | |
| Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) | |
| Property Summary | |
|---|---|
service: Generates and returns a ``bridge.Document`` instance of the service
document and its workspaces. | |
| Method Details |
|---|
__init__(self,
store,
xml_attrs=None)
|
get_collection(self, name_or_id)Returns a collection identified by ``name_or_id`` |
get_collections(self)Returns all the collections belonging to workspaces of this service. |
get_workspace(self, name_or_id)Returns a workspace per its identifier. The ``name_or_id`` matches the Workspace attribute of the same name. |
make_feed(self, items, entry_processor=None, id=None, title=None, xslt_path=None, member_comparer=<function app_edited_comparer at 0x850564c>)Generates a new atom feed from the passed items dictionnary. That dictionnary is of the form: {collection_name: [member_ids,]} If ``entry_processor`` is passed it must be a calable that takes a member instance as parameter and returns a bridge.Element representing the entry after being processed. Useful for instance to transform the entry into a more public face. If ``id`` is not provided a temporary urn:uuid will be generated. If ``xslt_path`` is provided it will be inserted as a processing instruction. The ``member_comparer`` must be a callable that is used to compare two entries when they are sorted within. By default they are sorted by app:edited element. Returns a bridge.Document instance of the feed. |
to_service(self, prefix=u'app', namespace=u'http://www.w3.org/2007/app')Generates and returns a ``bridge.Document`` instance of the service document and its workspaces. The ``prefix`` is the XML prefix to use The ``namespace`` is the amespace associated with the service document |
| Property Details |
|---|
serviceGenerates and returns a ``bridge.Document`` instance of the service document and its workspaces. The ``prefix`` is the XML prefix to use The ``namespace`` is the amespace associated with the service document
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Thu Jul 19 15:32:16 2007 | http://epydoc.sf.net |