py::qodb::models::Collection Class Reference

Inheritance diagram for py::qodb::models::Collection:

Inheritance graph
[legend]

List of all members.

Public Member Functions

def create_qoid

Static Public Attributes

tuple qoid = Qoid()
tuple name = StringField()
tuple editor = models.ForeignKey(Editor)
tuple catalog = models.ForeignKey(CatalogVersion, null=True)
tuple created_by_user = models.BooleanField(default=False)
tuple deletable = property(_get_deletable)

Private Member Functions

def _get_deletable


Member Function Documentation

def py::qodb::models::Collection::create_qoid (   model,
  editor,
  name,
  props 
)

00287                                                         :
00288                 return "%s%s" % (editor.qoid, qo.utils.make_qoid(name) or "DEFAULT")
00289 
        def _get_deletable( self ) :

def py::qodb::models::Collection::_get_deletable (   self  )  [private]

00290                                    :
00291                 return self.created_by_user and not self.series_set.count()
        deletable = property(_get_deletable)


Member Data Documentation

tuple py::qodb::models::Collection::qoid = Qoid() [static]

tuple py::qodb::models::Collection::name = StringField() [static]

tuple py::qodb::models::Collection::editor = models.ForeignKey(Editor) [static]

tuple py::qodb::models::Collection::catalog = models.ForeignKey(CatalogVersion, null=True) [static]

Reimplemented from py::qodb::models::catalog_interface.

tuple py::qodb::models::Collection::created_by_user = models.BooleanField(default=False) [static]

Reimplemented from py::qodb::models::catalog_interface.

tuple py::qodb::models::Collection::deletable = property(_get_deletable) [static]

Reimplemented from py::qodb::models::catalog_interface.


The documentation for this class was generated from the following file:
Generated on Tue Oct 9 20:40:33 2007 for Qomics by  doxygen 1.5.3