##// END OF EJS Templates
installed new hooks for #48...
marcink -
r657:212f97c2 beta
parent child Browse files
Show More
@@ -138,6 +138,17 b' class DbManage(object):'
138 hooks2.ui_section = 'hooks'
138 hooks2.ui_section = 'hooks'
139 hooks2.ui_key = 'changegroup.repo_size'
139 hooks2.ui_key = 'changegroup.repo_size'
140 hooks2.ui_value = 'python:rhodecode.lib.hooks.repo_size'
140 hooks2.ui_value = 'python:rhodecode.lib.hooks.repo_size'
141
142 hooks3 = RhodeCodeUi()
143 hooks3.ui_section = 'hooks'
144 hooks3.ui_key = 'pretxnchangegroup.push_logger'
145 hooks3.ui_value = 'python:rhodecode.lib.hooks.log_push_action'
146
147 hooks4 = RhodeCodeUi()
148 hooks4.ui_section = 'hooks'
149 hooks4.ui_key = 'preoutgoing.pull_logger'
150 hooks4.ui_value = 'python:rhodecode.lib.hooks.log_pull_action'
151
141
152
142 web1 = RhodeCodeUi()
153 web1 = RhodeCodeUi()
143 web1.ui_section = 'web'
154 web1.ui_section = 'web'
@@ -177,6 +188,8 b' class DbManage(object):'
177 try:
188 try:
178 self.sa.add(hooks1)
189 self.sa.add(hooks1)
179 self.sa.add(hooks2)
190 self.sa.add(hooks2)
191 self.sa.add(hooks3)
192 self.sa.add(hooks4)
180 self.sa.add(web1)
193 self.sa.add(web1)
181 self.sa.add(web2)
194 self.sa.add(web2)
182 self.sa.add(web3)
195 self.sa.add(web3)
@@ -1,9 +1,6 b''
1 from rhodecode.model.meta import Base
1 from rhodecode.model.meta import Base from sqlalchemy import * from
2 from sqlalchemy import *
2 sqlalchemy.orm import relation, backref from sqlalchemy.orm.session import
3 from sqlalchemy.orm import relation, backref
3 Session from vcs.utils.lazy import LazyProperty import logging
4 from sqlalchemy.orm.session import Session
5 from vcs.utils.lazy import LazyProperty
6 import logging
7
4
8 log = logging.getLogger(__name__)
5 log = logging.getLogger(__name__)
9
6
@@ -71,7 +68,6 b' class UserLog(Base):'
71 user_ip = Column("user_ip", TEXT(length=None, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
68 user_ip = Column("user_ip", TEXT(length=None, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
72 action = Column("action", TEXT(length=None, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
69 action = Column("action", TEXT(length=None, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
73 action_date = Column("action_date", DATETIME(timezone=False), nullable=True, unique=None, default=None)
70 action_date = Column("action_date", DATETIME(timezone=False), nullable=True, unique=None, default=None)
74 revision = Column('revision', TEXT(length=None, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
75
71
76 user = relation('User')
72 user = relation('User')
77 repository = relation('Repository')
73 repository = relation('Repository')
General Comments 0
You need to be logged in to leave comments. Login now