Package daklib :: Module dbconn :: Class DBSource
[hide private]
[frames] | no frames]

Class DBSource

source code


Instance Methods [hide private]
 
__init__(self, source=None, version=None, maintainer=None, changedby=None, poolfile=None, install_date=None, fingerprint=None) source code
 
pkid(self) source code
 
name(self) source code
 
arch_string(self) source code
 
properties(self)
This method should be implemented by all derived classes and returns a list of the important properties.
source code
tuple
read_control_fields(self)
Reads the control information from a dsc
source code
 
scan_contents(self)
Returns a set of names for non directories.
source code
 
proxy(self) source code

Inherited from ORMObject: __repr__, __str__, classname, clone, session

Class Methods [hide private]

Inherited from ORMObject: get

Class Variables [hide private]
  metadata = association_proxy('key', 'value')
Method Details [hide private]

pkid(self)

source code 
Decorators:
  • @property

name(self)

source code 
Decorators:
  • @property

arch_string(self)

source code 
Decorators:
  • @property

properties(self)

source code 

This method should be implemented by all derived classes and returns a list of the important properties. The properties 'created' and 'modified' will be added automatically. A suffix '_count' should be added to properties that are lists or query objects. The most important property name should be returned as the first element in the list because it is used by repr().

Overrides: ORMObject.properties
(inherited documentation)

read_control_fields(self)

source code 

Reads the control information from a dsc

Returns: tuple
fields is the dsc information in a dictionary form

scan_contents(self)

source code 

Returns a set of names for non directories. The path names are normalized after converting them from either utf-8 or iso8859-1 encoding.

proxy(self)

source code 
Decorators:
  • @property