Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Commit [a0cd27] Maximize Restore History

[#1723] [#1590] ForgeMail refactoring - move into allura, make mail tasks

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)
added Allura/allura/command/smtp_server.py
added Allura/allura/lib/mail_util.py
added Allura/allura/tests/test_mail_util.py
added Allura/allura/tasks/mail_tasks.py
added Allura/allura/tasks/event_tasks.py
removed Allura/allura/ext/admin/nf
removed Allura/allura/ext/admin/nf/admin
removed Allura/allura/ext/admin/nf/admin/js
changed Allura/allura/command/__init__.py
changed Allura/allura/config/resources.py
changed Allura/allura/controllers/repository.py
changed Allura/allura/lib/exceptions.py
changed Allura/allura/lib/repository.py
changed Allura/allura/model/auth.py
changed Allura/allura/model/monq_model.py
changed Allura/allura/model/notification.py
changed Allura/allura/__init__.py
changed Allura/allura/app.py
changed Allura/setup.py
changed ForgeGit/forgegit/git_main.py
copied Allura/allura/ext/admin/nf/admin/js/admin.js -> Allura/allura/tasks/__init__.py
copied Allura/allura/task.py -> Allura/allura/tasks/repo_tasks.py
Allura/allura/command/smtp_server.py Diff Switch to side-by-side view
Loading...
Allura/allura/lib/mail_util.py Diff Switch to side-by-side view
Loading...
Allura/allura/tests/test_mail_util.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/event_tasks.py Diff Switch to side-by-side view
Loading...
Allura/allura/ext/admin/nf
File was removed.
Allura/allura/command/__init__.py Diff Switch to side-by-side view
Loading...
Allura/allura/config/resources.py Diff Switch to side-by-side view
Loading...
Allura/allura/controllers/repository.py Diff Switch to side-by-side view
Loading...
Allura/allura/lib/exceptions.py Diff Switch to side-by-side view
Loading...
Allura/allura/lib/repository.py Diff Switch to side-by-side view
Loading...
Allura/allura/model/auth.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/__init__.py Diff Switch to side-by-side view
Loading...
Allura/allura/app.py Diff Switch to side-by-side view
Loading...
Allura/setup.py Diff Switch to side-by-side view
Loading...
ForgeGit/forgegit/git_main.py Diff Switch to side-by-side view
Loading...
Allura/allura/task.py to Allura/allura/tasks/repo_tasks.py
--- a/Allura/allura/task.py
+++ b/Allura/allura/tasks/repo_tasks.py
@@ -3,16 +3,11 @@
 from pylons import c
 
 from allura import model as M
-from allura.lib.utils import task, event_listeners
+from allura.lib.utils import task
 from allura.lib.repository import RepositoryApp
 
 @task
-def event(data):
-    for e in event_listeners(data['event_type']):
-        e()
-
-@task
-def repo_init(data):
+def init(**kwargs):
     c.app.repo.init()
     M.Notification.post_user(
         c.user, c.app.repo, 'created',
@@ -20,22 +15,25 @@
             c.project.shortname, c.app.config.options.mount_point))
 
 @task
-def repo_clone(data):
+def clone(
+    cloned_from_path,
+    cloned_from_name,
+    cloned_from_url):
     c.app.repo.init_as_clone(
-        data['cloned_from_path'],
-        data['cloned_from_name'],
-        data['cloned_from_url'])
+        cloned_from_path,
+        cloned_from_name,
+        cloned_from_url)
     M.Notification.post_user(
         c.user, c.app.repo, 'created',
         text='Repository %s/%s created' % (
             c.project.shortname, c.app.config.options.mount_point))
 
 @task
-def repo_refresh(data):
+def refresh(**kwargs):
     c.app.repo.refresh()
 
 @task
-def repo_uninstall(data):
+def uninstall(**kwargs):
     repo = c.app.repo
     if repo is not None:
         shutil.rmtree(repo.full_fs_path, ignore_errors=True)
1 2 3 > >> (Page 1 of 3)