Logo Search packages:      
Sourcecode: zeitgeist version File versions

def zeitgeist::datamodel::Category::get (   klass,
  uri 
) [inherited]

This method should be called through either Content.get(uri) or
Source.get(uri). It looks up an object representing the category
provided by 'uri' and creates it if necessary

Definition at line 61 of file datamodel.py.

00061                          :
            """
            This method should be called through either Content.get(uri) or
            Source.get(uri). It looks up an object representing the category
            provided by 'uri' and creates it if necessary
            """
            if not uri in klass.CACHE:
                  this = klass(uri)
                  klass.CACHE[uri] = this
            return klass.CACHE[uri]

class Content(Category):


Generated by  Doxygen 1.6.0   Back to index