Commit [b67bc4] Maximize Restore History

[#1723] tests

Signed-off-by: Rick Copeland <rcopeland@geek.net>

Rick Copeland Rick Copeland 2011-03-17

Dave Brondsema Dave Brondsema 2011-03-23

1 2 3 > >> (Page 1 of 3)
removed Allura/allura/command/reactor.py
removed Allura/allura/model/types.py
removed ForgeHg/forgehg/reactors
removed ForgeHg/forgehg/reactors/__init__.py
removed ForgeHg/forgehg/reactors/reactors.py
removed ForgeSVN/forgesvn/reactors
removed ForgeSVN/forgesvn/reactors/__init__.py
removed ForgeSVN/forgesvn/reactors/reactors.py
changed Allura
changed Allura/allura
changed Allura/allura/app.py
changed Allura/allura/command
changed Allura/allura/command/__init__.py
changed Allura/allura/ext
changed Allura/allura/ext/admin
changed Allura/allura/ext/admin/admin_main.py
changed Allura/allura/ext/search
changed Allura/allura/ext/search/search_main.py
changed Allura/allura/lib
changed Allura/allura/lib/app_globals.py
changed Allura/allura/lib/decorators.py
changed Allura/allura/lib/helpers.py
changed Allura/allura/lib/plugin.py
changed Allura/allura/lib/utils.py
changed Allura/allura/model
changed Allura/allura/model/__init__.py
changed Allura/allura/model/artifact.py
changed Allura/allura/model/discuss.py
changed Allura/allura/model/index.py
changed Allura/allura/model/monq_model.py
changed Allura/allura/model/notification.py
changed Allura/allura/model/project.py
changed Allura/allura/model/session.py
changed Allura/allura/tasks
changed Allura/allura/tasks/event_tasks.py
changed Allura/allura/tasks/index_tasks.py
changed Allura/allura/tasks/mail_tasks.py
changed Allura/allura/tasks/repo_tasks.py
changed Allura/allura/tests
changed Allura/allura/tests/model
changed Allura/allura/tests/model/test_artifact.py
changed Allura/allura/websetup
changed Allura/allura/websetup/bootstrap.py
changed Allura/setup.py
changed ForgeBlog
changed ForgeBlog/forgeblog
changed ForgeBlog/forgeblog/main.py
changed ForgeChat
changed ForgeChat/forgechat
changed ForgeChat/forgechat/main.py
changed ForgeDiscussion
changed ForgeDiscussion/forgediscussion
changed ForgeDiscussion/forgediscussion/controllers
changed ForgeDiscussion/forgediscussion/controllers/forum.py
changed ForgeDiscussion/forgediscussion/forum_main.py
changed ForgeGit
changed ForgeGit/forgegit
changed ForgeGit/forgegit/git_main.py
changed ForgeHg
changed ForgeHg/forgehg
changed ForgeSVN
changed ForgeSVN/forgesvn
changed ForgeSVN/forgesvn/svn_main.py
changed ForgeTracker
changed ForgeTracker/forgetracker
changed ForgeTracker/forgetracker/import_support.py
changed ForgeTracker/forgetracker/tracker_main.py
changed ForgeWiki
changed ForgeWiki/forgewiki
changed ForgeWiki/forgewiki/model
changed ForgeWiki/forgewiki/model/wiki.py
changed ForgeWiki/forgewiki/wiki_main.py
copied ForgeChat/forgechat/reactors.py -> Allura/allura/tasks/notification_tasks.py
Allura/allura/model/types.py
File was removed.
ForgeHg/forgehg/reactors
File was removed.
ForgeSVN/forgesvn/reactors
File was removed.
Allura
Directory.
Allura/allura
Directory.
Allura/allura/app.py Diff Switch to side-by-side view
Loading...
Allura/allura/command/__init__.py Diff Switch to side-by-side view
Loading...
Allura/allura/ext
Directory.
Allura/allura/ext/admin/admin_main.py Diff Switch to side-by-side view
Loading...
Allura/allura/ext/search/search_main.py Diff Switch to side-by-side view
Loading...
Allura/allura/lib
Directory.
Allura/allura/lib/app_globals.py Diff Switch to side-by-side view
Loading...
Allura/allura/lib/decorators.py Diff Switch to side-by-side view
Loading...
Allura/allura/lib/helpers.py Diff Switch to side-by-side view
Loading...
Allura/allura/lib/plugin.py Diff Switch to side-by-side view
Loading...
Allura/allura/lib/utils.py Diff Switch to side-by-side view
Loading...
Allura/allura/model
Directory.
Allura/allura/model/__init__.py Diff Switch to side-by-side view
Loading...
Allura/allura/model/artifact.py Diff Switch to side-by-side view
Loading...
Allura/allura/model/discuss.py Diff Switch to side-by-side view
Loading...
Allura/allura/model/index.py Diff Switch to side-by-side view
Loading...
Allura/allura/model/monq_model.py Diff Switch to side-by-side view
Loading...
Allura/allura/model/notification.py Diff Switch to side-by-side view
Loading...
Allura/allura/model/project.py Diff Switch to side-by-side view
Loading...
Allura/allura/model/session.py Diff Switch to side-by-side view
Loading...
Allura/allura/tasks
Directory.
Allura/allura/tasks/event_tasks.py Diff Switch to side-by-side view
Loading...
Allura/allura/tasks/index_tasks.py Diff Switch to side-by-side view
Loading...
Allura/allura/tasks/mail_tasks.py Diff Switch to side-by-side view
Loading...
Allura/allura/tasks/repo_tasks.py Diff Switch to side-by-side view
Loading...
Allura/allura/tests
Directory.
Allura/allura/tests/model/test_artifact.py Diff Switch to side-by-side view
Loading...
Allura/allura/websetup/bootstrap.py Diff Switch to side-by-side view
Loading...
Allura/setup.py Diff Switch to side-by-side view
Loading...
ForgeBlog
Directory.
ForgeBlog/forgeblog
Directory.
ForgeBlog/forgeblog/main.py Diff Switch to side-by-side view
Loading...
ForgeChat
Directory.
ForgeChat/forgechat
Directory.
ForgeChat/forgechat/main.py Diff Switch to side-by-side view
Loading...
ForgeDiscussion
Directory.
ForgeDiscussion/forgediscussion/controllers/forum.py Diff Switch to side-by-side view
Loading...
ForgeDiscussion/forgediscussion/forum_main.py Diff Switch to side-by-side view
Loading...
ForgeGit
Directory.
ForgeGit/forgegit
Directory.
ForgeGit/forgegit/git_main.py Diff Switch to side-by-side view
Loading...
ForgeHg
Directory.
ForgeHg/forgehg
Directory.
ForgeSVN
Directory.
ForgeSVN/forgesvn
Directory.
ForgeSVN/forgesvn/svn_main.py Diff Switch to side-by-side view
Loading...
ForgeTracker
Directory.
ForgeTracker/forgetracker/import_support.py Diff Switch to side-by-side view
Loading...
ForgeTracker/forgetracker/tracker_main.py Diff Switch to side-by-side view
Loading...
ForgeWiki
Directory.
ForgeWiki/forgewiki
Directory.
ForgeWiki/forgewiki/model/wiki.py Diff Switch to side-by-side view
Loading...
ForgeWiki/forgewiki/wiki_main.py Diff Switch to side-by-side view
Loading...
ForgeChat/forgechat/reactors.py to Allura/allura/tasks/notification_tasks.py
--- a/ForgeChat/forgechat/reactors.py
+++ b/Allura/allura/tasks/notification_tasks.py
@@ -1,9 +1,11 @@
-from allura.lib.decorators import audit
+import logging
 
-@audit('forgechat.received_msg')
-def received_msg(routing_key, data):
-    pass
+from allura import model as M
+from allura.lib.decorators import task
 
-@audit('forgechat.send_msg')
-def send_msg(routing_key, data):
-    pass
+log = logging.getLogger(__name__)
+
+@task
+def notify(n_id, ref_id, topic):
+    M.Mailbox.deliver(n_id, ref_id, topic)
+    M.Mailbox.fire_ready()
1 2 3 > >> (Page 1 of 3)