2008-06-09 00:58:23 +02:00
|
|
|
import pkg_resources
|
|
|
|
pkg_resources.require("SQLObject>=0.8")
|
|
|
|
from turbogears.database import PackageHub
|
|
|
|
# import some basic SQLObject classes for declaring the data model
|
|
|
|
# (see http://www.sqlobject.org/SQLObject.html#declaring-the-class)
|
|
|
|
from sqlobject import SQLObject, SQLObjectNotFound, RelatedJoin
|
|
|
|
# import some datatypes for table columns from SQLObject
|
|
|
|
# (see http://www.sqlobject.org/SQLObject.html#column-types for more)
|
|
|
|
from sqlobject import StringCol, UnicodeCol, IntCol, DateTimeCol
|
|
|
|
|
2008-08-23 15:11:19 +02:00
|
|
|
__connection__ = hub = PackageHub('fotokiosk')
|
2008-06-09 00:58:23 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
2008-06-09 04:29:18 +02:00
|
|
|
class Picture(SQLObject):
|
|
|
|
adresse = UnicodeCol()
|
|
|
|
text = UnicodeCol()
|
|
|
|
date = DateTimeCol()
|
|
|
|
picture = BLOBCol()
|
2008-06-09 00:58:23 +02:00
|
|
|
|
|
|
|
|