| Home | Trees | Index | Help |
|
|---|
| Package amplee :: Package handler :: Class MemberHandler |
|
object --+
|
MemberHandler
| Method Summary | |
|---|---|
Create a new a collection and attach it. (Class method) | |
Delete the media resource and its meta data from the collection. (Class method) | |
Get the content of an atom entry which identifier is 'rid' (Class method) | |
Get the content of a resource which identifier is 'rid' (Class method) | |
Update a resource identified by 'rid' Returns the updated member. (Class method) | |
| Inherited from object | |
x.__init__(...) initializes x; see x.__class__.__doc__ for signature | |
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) | |
| Class Method Details |
|---|
create_from_stream(cls, collection, member_type, fileobj, length, slug=None)Create a new a collection and attach it. Returns the new member. If member_type.on_create is set to a callable and that callable raises an error or an exception, the member will not be attached to the collection and not returned by the class method. Keyword arguments collection -- collection which will host the member member_type -- a MemberType instance for the mime type of the resource fileobj -- a file object containg the content. It only needs a read(length) method length -- how much content to read from the file object slug -- SLUG header value sent end decoded |
delete(cls, collection, member)Delete the media resource and its meta data from the collection. Keyword arguments collection -- collection which will host the member member -- member instance |
get_atom(cls, collection, member)Get the content of an atom entry which identifier is 'rid' Raise a amplee.error.UnknownResource error if it could not be found. Keyword arguments collection -- collection which will host the member member -- member instance |
get_content(cls, collection, member)Get the content of a resource which identifier is 'rid' Raise a amplee.error.UnknownResource error if it could not be found. Keyword arguments collection -- collection which will host the member member -- member instance |
update_content_from_stream(cls, collection, member_type, member, fileobj, length)Update a resource identified by 'rid' Returns the updated member. If member_type.on_update is set to a callable and that callable raises an error or an exception, the member will not be attached to the collection and not returned by the class method. Keyword arguments collection -- collection which will host the member member_type -- a MemberType instance for the mime type of the resource member -- member instance fileobj -- a file object containg the content. It only needs a read(length) method length -- how much content to read from the file object |
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Thu Jul 19 15:32:16 2007 | http://epydoc.sf.net |