py::qodb::models::Author Class Reference

Inheritance diagram for py::qodb::models::Author:

Inheritance graph
[legend]

List of all members.

Public Member Functions

def create_qoid
def find_matching

Static Public Attributes

tuple qoid = Qoid()
tuple name = StringField()
tuple catalog = models.ForeignKey(CatalogVersion, null=True)
tuple created_by_user = models.BooleanField(default=False)
tuple albums = property(_get_albums)

Private Member Functions

def _get_albums


Member Function Documentation

def py::qodb::models::Author::_get_albums (   self  )  [private]

00243                                 :
00244                 return Album.objects.filter(Q(authors_raw__contains=' %s '%self.qoid) | Q(drawers_raw__contains=' %s '%self.qoid))
        albums = property(_get_albums)

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

00248                                                 :
00249                 return qo.utils.make_qoid(name) or "NULL"
00250         
00251         @classmethod
        def find_matching( model, name ) :

def py::qodb::models::Author::find_matching (   model,
  name 
)

00252                                          :
00253                 parts = [qo.utils.make_qoid(p) for p in name.split()]
00254                 for test_qoid in ["".join(p) for p in qo.utils.getAllPermutations([p for p in parts if p])] :
00255                         try :
00256                                 author = model.objects.get(qoid=test_qoid)
00257                                 return author
00258                         except Author.DoesNotExist :
00259                                 pass
00260 
00261 
class Editor( catalog_interface, models.Model ) :


Member Data Documentation

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

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

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

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

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

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

tuple py::qodb::models::Author::albums = property(_get_albums) [static]


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