diff options
Diffstat (limited to 'sugar_network/model/__init__.py')
-rw-r--r-- | sugar_network/model/__init__.py | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/sugar_network/model/__init__.py b/sugar_network/model/__init__.py index 117649b..167eb30 100644 --- a/sugar_network/model/__init__.py +++ b/sugar_network/model/__init__.py @@ -1,4 +1,4 @@ -# Copyright (C) 2012-2013 Aleksey Lim +# Copyright (C) 2012-2014 Aleksey Lim # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -16,13 +16,19 @@ from sugar_network.model.routes import VolumeRoutes, FrontRoutes -CONTEXT_TYPES = ['activity', 'group', 'package', 'book'] -NOTIFICATION_TYPES = ['create', 'update', 'delete', 'vote'] -FEEDBACK_TYPES = ['question', 'idea', 'problem'] -ARTIFACT_TYPES = ['instance', 'preview'] - -NOTIFICATION_OBJECT_TYPES = [ - '', 'content', 'feedback', 'solution', 'artifact', 'version', 'report', +CONTEXT_TYPES = [ + 'activity', 'group', 'package', 'book', + ] +POST_TYPES = [ + 'review', # Review the Context + 'object', # Object generated by Context application + 'question', # Q&A request + 'answer', # Q&A response + 'issue', # Propblem with the Context + 'announce', # General announcement + 'update', # Auto-generated Post for updates within the Context + 'feedback', # Review parent Post + 'comment', # Dependent Post ] STABILITIES = [ @@ -32,14 +38,9 @@ STABILITIES = [ RATINGS = [0, 1, 2, 3, 4, 5] RESOURCES = ( - 'sugar_network.model.artifact', - 'sugar_network.model.comment', 'sugar_network.model.context', + 'sugar_network.model.post', 'sugar_network.model.release', - 'sugar_network.model.notification', - 'sugar_network.model.feedback', 'sugar_network.model.report', - 'sugar_network.model.review', - 'sugar_network.model.solution', 'sugar_network.model.user', ) |