Package amplee :: Package atompub :: Module workspace :: Class AtomPubWorkspace
[show private | hide private]
[frames | no frames]

Type AtomPubWorkspace

object --+
         |
        AtomPubWorkspace


Method Summary
  __init__(self, service, name_or_id, title, xml_attrs)
Atom Publishing Protocol workspace entity
  get_collection(self, name_or_id)
Returns a collection identified by ``name_or_id``
  to_workspace(self, prefix, namespace)
Generates and returns a ``bridge.Element`` instance of the workspace document and its collections.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Property Summary
  workspace: Generates and returns a ``bridge.Element`` instance of the workspace document and its collections.

Method Details

__init__(self, service, name_or_id, title, xml_attrs=None)
(Constructor)

Atom Publishing Protocol workspace entity

The ``service`` object is a ``amplee.atompub.service.AtomPubService`` instance holding this workspace instance

The ``name_or_id`` is the workspace internale identifier.

The ``title`` is the human readable label of this workspace.

The ``xml_attrs`` parameter allows for extra XML attributes to be provided.
Overrides:
__builtin__.object.__init__

get_collection(self, name_or_id)

Returns a collection identified by ``name_or_id``

to_workspace(self, prefix=u'app', namespace=u'http://www.w3.org/2007/app')

Generates and returns a ``bridge.Element`` instance of the workspace document and its collections.

The first collection shown will be the one having the ``favorite`` attribute set to ``True``.

The ``prefix`` is the XML prefix to use The ``namespace`` is the namespace associated with the workspace element

Property Details

workspace

Generates and returns a ``bridge.Element`` instance of the workspace document and its collections.

The first collection shown will be the one having the ``favorite`` attribute set to ``True``.

The ``prefix`` is the XML prefix to use The ``namespace`` is the namespace associated with the workspace element
Get Method:
to_workspace(self, prefix, namespace)

Generated by Epydoc 2.1 on Thu Jul 19 15:32:16 2007 http://epydoc.sf.net