Parent: [d5486b] (diff)

Child: [95e11b] (diff)

Download this file

reactors.py    18 lines (12 with data), 386 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
import errno, logging, os, stat, subprocess
from pylons import c
from pyforge.lib.decorators import audit, react
from pyforge import model as M
log = logging.getLogger(__name__)
@audit('scm.svn.init')
def init(routing_key, data):
repo = c.app.repo
repo.init()
M.Notification.post_user(
c.user, repo, 'created',
text='Repository %s created' % repo.name)