Commits

Konstantine Rybnikov  committed 22681d8

small amount of fixes

  • Participants
  • Parent commits 3520565

Comments (0)

Files changed (4)

File openju/bl/notify.py

         Notification(
             action = 'message_posted',
             user = user,
-            meta = dict(
+            info = dict(
                 message_id = message_id)))
     notification.save()

File openju/controllers/notify.py

 
 from openju.views import render_message
 
-def message_posted(user, meta):
+def message_posted(user, info):
     from openju.bl.message import get_message
-    message_id = meta['message_id']
+    message_id = info['message_id']
     message = get_message(message_id)
     return render_message(message)

File openju/message_bus.py

 
 # from openju.util import none_or_int
 from openju import g
-from openju current_app as app
+from openju import current_app as app
 from openju.validators import UserAlertError
 from openju.routes import *
 

File openju/model.py

 class Notification(Document):
     user = ReferenceField(User, required=True)
     action = StringField(required=True)
-    meta = DictField()
+    info = DictField()