diff --git a/dev.cfg b/dev.cfg index b187ed4..30446d5 100644 --- a/dev.cfg +++ b/dev.cfg @@ -5,7 +5,7 @@ # oxdbarchive/config/app.cfg # 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.socket_port=8081 diff --git a/oxdbarchive/model.py b/oxdbarchive/model.py index 607f34d..46a7977 100644 --- a/oxdbarchive/model.py +++ b/oxdbarchive/model.py @@ -40,8 +40,8 @@ class Archive(SQLObject): name = UnicodeCol(length=255, alternateID=True) basePath = UnicodeCol() baseUrlFrontend = UnicodeCol(default = '') - published = DateTimeCol(defalut=datetime.now) - modified = DateTimeCol(defalut=datetime.now) + published = DateTimeCol(default=datetime.now) + modified = DateTimeCol(default=datetime.now) def _get_basePath(self): basePath = self._SO_get_basePath() @@ -243,8 +243,8 @@ class ArchiveFile(SQLObject): pixels = IntCol(default = 0) date_added = DateTimeCol(default=datetime.now) - published = DateTimeCol(defalut=datetime.now) - modified = DateTimeCol(defalut=datetime.now) + published = DateTimeCol(default=datetime.now) + modified = DateTimeCol(default=datetime.now) height = IntCol(default = -1) width = IntCol(default = -1)