Package amplee :: Package atompub :: Package member :: Module atom :: Class AtomMember
[hide private]
[frames] | no frames]

Class AtomMember

source code

 object --+    
          |    
EntryMember --+
              |
             AtomMember

Instance Methods [hide private]
  __init__(self, collection, source, slug=None, media_type=u'application/atom+xml', entry_id_creator=None, **kwargs)
Keyword arguments: collection -- AtomPubCollection instance carrying this member source -- resource string to handle slug -- hint on how to generate the name of the resource and used as the last part of the edit and edit-media IRIs (default:None) media_type -- mime-type for this member (default:u'application/atom+xml') entry_id_creator -- callable which must return an unicode object used for the id element of the entry (default:None) The entry_id_creator callable, if provided, must take a bridge.Element as unique parameter.

Inherited from EntryMember (private): _delentry, _getentry, _setentry

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__


Properties [hide private]

Inherited from EntryMember: atom

Inherited from object: __class__


Method Details [hide private]

__init__(self, collection, source, slug=None, media_type=u'application/atom+xml', entry_id_creator=None, **kwargs)
(Constructor)

source code 


Keyword arguments:
collection -- AtomPubCollection instance carrying this member
source -- resource string to handle
slug -- hint on how to generate the name of the resource and
used as the last part of the edit and edit-media IRIs (default:None)
media_type -- mime-type for this member (default:u'application/atom+xml')
entry_id_creator -- callable which must return an unicode object used
for the id element of the entry (default:None)

The entry_id_creator callable, if provided, must take a bridge.Element
as unique parameter. This instance containing the newly created atom
entry or the one provided via the 'member' parameter.

When not provided the id of entry defaults to a default urn:uuid value.

Overrides: EntryMember.__init__