First load failed to start app

This commit is contained in:
Ruud
2012-01-08 23:17:39 +01:00
parent 7a49beb505
commit d89f2207b9
3 changed files with 18 additions and 12 deletions
+3 -3
View File
@@ -27,7 +27,7 @@ class StatusPlugin(Plugin):
addEvent('status.get', self.add) # Alias for .add
addEvent('status.get_by_id', self.getById)
addEvent('status.all', self.all)
addEvent('app.load', self.fill)
addEvent('app.initialize', self.fill)
addApiView('status.list', self.list)
@@ -64,7 +64,7 @@ class StatusPlugin(Plugin):
if not s:
s = Status(
identifier = identifier,
label = identifier.capitalize()
label = toUnicode(identifier.capitalize())
)
db.add(s)
db.commit()
@@ -87,6 +87,6 @@ class StatusPlugin(Plugin):
)
db.add(s)
s.label = label
s.label = toUnicode(label)
db.commit()