| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
AtomPubCollection
|
|||
|
|||
| AtomPubStore |
|
||
|
|||
|
|||
|
|||
| tuple |
|
||
| bool |
|
||
| StorageResourceInfo subclass |
|
||
| StorageResourceInfo subclass |
|
||
| object |
|
||
| object |
|
||
| string |
|
||
| string |
|
||
| string |
|
||
| string |
|
||
amara.bindery.root_base
|
|
||
amara.bindery.root_base
|
|
||
MemberResource or subclass or None
|
|
||
MemberResource or subclass or None
|
|
||
| list |
|
||
| member |
|
||
| list |
|
||
| list |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
| AtomPubStore |
store Returns the store carrying this collection |
||
amara.bindery.root_base
|
feed Generates an atom feed from the list of members
provided, or if not provided, from the store directly up to the
limit provided.
|
||
|
Inherited from |
|||
|
|||
Atom Publishing Protocol collection handler.
|
Returns the store carrying this collection
|
Sets the class to be used when (re)loading members from the store. It defaults to MemberResource. This is required when your application has particular needs for the resource identifier generation different from the default one.
|
Adds a member to this collection by
You are not forced to pass the resource content through this method if you prefer storing it in a different location without using amplee. The member will be automatically indexed if any indexes have been set on the collection.
|
Removes a member from a collection and the underlying storage. Removes only objects passed in the id parameters.
|
Takes the parameter and returns a tuple such as >>> member_id, media_id = collection.convert_id('some-super-article') >>> member_id some-super-article.atom >>> media_id some-super-article
|
Does a resource belong to the storage?
|
Constructs and returns the info to the member pointed by the id parameter. >>> member_id, media_id = collection.convert_id(some_id) >>> info = collection.get_meta_data_info(member_id)
|
Constructs and returns the info to the resource pointed by the id parameter. >>> member_id, media_id = collection.convert_id(some_id) >>> info = collection.get_content_info(media_id)
|
Returns the resource represented by the info parameter. The type returned depends on the choice of underlying storage. Does not check the existence of the resource. >>> member_id, media_id = collection.convert_id(some_id) >>> info = collection.get_meta_data_info(member_id) >>> obj = collection.get_meta_data(info)
|
Returns the resource represented by the info parameter. The type returned depends on the choice of underlying storage. Does not check the existence of the resource. >>> member_id, media_id = collection.convert_id(some_id) >>> info = collection.get_content_info(media_id) >>> obj = collection.get_content(info)
|
Returns the first available xml:base value from either the collection, its workspace or service. If none is found it returns an empty string
|
Returns the absolute URI to the collection public face based on the
xml:base value and the
|
Returns the absolute URI to the collection for editing operations
|
Returns the absolute URI to the collection for media-editing operations
|
Generates an atom feed from the list of The
|
Returns a amara instance of the collection
|
Returns the requested member or >>> member_id, media_id = collection.convert_id(some_id) >>> member = collection.get_member(member_id)
|
Loads a member from its storage and returns it or Note that if the MLE has been deleted but not the media resource this
method will still return
|
Reloads all or part of existing members. Call this at server startup to refresh the collection. Careful as this could be a fairly long process. Each loaded member is (re)indexed.
|
Reloads all or part of existing members by yielding each one. Each loaded member is (re)indexed.
|
Reloads members from a an atom feed. This can be useful if you want to keep in the collection cache some given entries. You can construct a feed of those member entries and provide it to this method. Be aware that the internal member identifier is extracted from the last segment of the rel='edit' link found in each entry. Each loaded member is (re)indexed.
|
Given a list of member_ids this will return a list of loaded members. Each loaded member is (re)indexed.
|
Disables the internal cache. Not thread-safe. |
Clears all items from the internal cache. Thread safe. |
Removes all registered index instances from this collection. This is not thread-safe. |
|
|||
storeReturns the store carrying this collection
|
feedGenerates an atom feed from the list of The
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Oct 20 22:19:14 2008 | http://epydoc.sourceforge.net |