[csw-devel] SF.net SVN: gar:[17550] csw/mgar/gar/v2/lib/python/models.py
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Sun Mar 25 19:47:45 CEST 2012
Revision: 17550
http://gar.svn.sourceforge.net/gar/?rev=17550&view=rev
Author: wahwah
Date: 2012-03-25 17:47:45 +0000 (Sun, 25 Mar 2012)
Log Message:
-----------
pkgdb: Whitespace cleanup
Modified Paths:
--------------
csw/mgar/gar/v2/lib/python/models.py
Modified: csw/mgar/gar/v2/lib/python/models.py
===================================================================
--- csw/mgar/gar/v2/lib/python/models.py 2012-03-25 17:47:16 UTC (rev 17549)
+++ csw/mgar/gar/v2/lib/python/models.py 2012-03-25 17:47:45 UTC (rev 17550)
@@ -13,6 +13,7 @@
"Unstable, testing, stable."
name = sqlobject.UnicodeCol(length=255, unique=True, notNone=True)
+
class CatalogRelease(sqlobject.SQLObject):
"Release names: potato, etc."
name = sqlobject.UnicodeCol(length=255, unique=True, notNone=True)
@@ -29,6 +30,7 @@
def __unicode__(self):
return u"OS release: %s" % self.full_name
+
class Architecture(sqlobject.SQLObject):
"One of: 'sparc', 'x86'."
name = sqlobject.UnicodeCol(length=40, unique=True, notNone=True)
@@ -36,6 +38,7 @@
def __unicode__(self):
return u"Architecture: %s" % self.name
+
class Maintainer(sqlobject.SQLObject):
"""The maintainer of the package, identified by the e-mail address."""
email = sqlobject.UnicodeCol(length=255, unique=True, notNone=True)
@@ -67,18 +70,21 @@
fqdn = sqlobject.UnicodeCol(length=255, unique=True, notNone=True)
arch = sqlobject.ForeignKey('Architecture', notNone=True)
+
class CswConfig(sqlobject.SQLObject):
option_key = sqlobject.UnicodeCol(length=255, unique=True)
float_value = sqlobject.FloatCol(default=None)
int_value = sqlobject.IntCol(default=None)
str_value = sqlobject.UnicodeCol(default=None)
+
class Pkginst(sqlobject.SQLObject):
pkgname = sqlobject.UnicodeCol(length=255, unique=True, notNone=True)
catalogname = sqlobject.UnicodeCol(default=None)
pkg_desc = sqlobject.UnicodeCol(default=None)
srv4_files = sqlobject.MultipleJoin('Srv4FileStats')
+
class CswFile(sqlobject.SQLObject):
"""Represents a file in a catalog.
@@ -105,6 +111,7 @@
def __unicode__(self):
return u"File: %s" % os.path.join(self.path, self.basename)
+
class Srv4FileStatsBlob(sqlobject.SQLObject):
"""Holds pickled data structures.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list