This commit is contained in:
j 2008-05-31 11:17:21 +02:00
parent 802a274aba
commit 2e0b0605a2
2 changed files with 5 additions and 5 deletions

View file

@ -5,7 +5,7 @@
# oxdbarchive/config/app.cfg # oxdbarchive/config/app.cfg
# DATABASE # DATABASE
sqlobject.dburi="notrans_mysql://root@localhost/oxdbarchive?sqlobject_encoding=utf-8&use_unicode=1&charset=utf8" sqlobject.dburi="notrans_mysql://root@localhost/oxdbarchive?use_unicode=1&charset=utf8"
# SERVER # SERVER
server.socket_port=8081 server.socket_port=8081

View file

@ -40,8 +40,8 @@ class Archive(SQLObject):
name = UnicodeCol(length=255, alternateID=True) name = UnicodeCol(length=255, alternateID=True)
basePath = UnicodeCol() basePath = UnicodeCol()
baseUrlFrontend = UnicodeCol(default = '') baseUrlFrontend = UnicodeCol(default = '')
published = DateTimeCol(defalut=datetime.now) published = DateTimeCol(default=datetime.now)
modified = DateTimeCol(defalut=datetime.now) modified = DateTimeCol(default=datetime.now)
def _get_basePath(self): def _get_basePath(self):
basePath = self._SO_get_basePath() basePath = self._SO_get_basePath()
@ -243,8 +243,8 @@ class ArchiveFile(SQLObject):
pixels = IntCol(default = 0) pixels = IntCol(default = 0)
date_added = DateTimeCol(default=datetime.now) date_added = DateTimeCol(default=datetime.now)
published = DateTimeCol(defalut=datetime.now) published = DateTimeCol(default=datetime.now)
modified = DateTimeCol(defalut=datetime.now) modified = DateTimeCol(default=datetime.now)
height = IntCol(default = -1) height = IntCol(default = -1)
width = IntCol(default = -1) width = IntCol(default = -1)