| 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 |
|||
|
|||
|
store Returns the store carrying this collection |
|||
|
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 |
|||
|
|||
|
|
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.
|
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.
|
|
(member_id,
media_id). This method is useful when your HTTP handler accepts
both the media resource and the media link entry.
>>> member_id, media_id = collection.convert_id('some-super-article') >>> member_id some-super-article.atom >>> media_id some-super-article
|
|
>>> member_id, media_id = collection.convert_id(some_id) >>> info = collection.get_meta_data_info(member_id)
|
>>> member_id, media_id = collection.convert_id(some_id) >>> info = collection.get_content_info(media_id)
|
>>> member_id, media_id = collection.convert_id(some_id) >>> info = collection.get_meta_data_info(member_id) >>> obj = collection.get_meta_data(info)
|
>>> member_id, media_id = collection.convert_id(some_id) >>> info = collection.get_content_info(media_id) >>> obj = collection.get_content(info)
|
|
self.base_uri.
|
|
|
Generates an atom feed from the list of atom:id element's value will be computed from the
collection edit URI, and if provided, the mint value, which
therefore must be string or None.
|
|
None if not found. If the
member is not in the collection cache, amplee attempts to load it from
the storage.
>>> 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 None as if both didn't exist
anymore. It's up to the application to cleanup the storages from time to
time.
|
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 atom:id element's value will be computed from the
collection edit URI, and if provided, the mint value, which
therefore must be string or None.
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0beta1 on Sun Feb 17 14:54:45 2008 | http://epydoc.sourceforge.net |