Show More
@@ -139,6 +139,17 class DbManage(object): | |||
|
139 | 139 | hooks2.ui_key = 'changegroup.repo_size' |
|
140 | 140 | hooks2.ui_value = 'python:rhodecode.lib.hooks.repo_size' |
|
141 | 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 | ||
|
152 | ||
|
142 | 153 | web1 = RhodeCodeUi() |
|
143 | 154 | web1.ui_section = 'web' |
|
144 | 155 | web1.ui_key = 'push_ssl' |
@@ -177,6 +188,8 class DbManage(object): | |||
|
177 | 188 | try: |
|
178 | 189 | self.sa.add(hooks1) |
|
179 | 190 | self.sa.add(hooks2) |
|
191 | self.sa.add(hooks3) | |
|
192 | self.sa.add(hooks4) | |
|
180 | 193 | self.sa.add(web1) |
|
181 | 194 | self.sa.add(web2) |
|
182 | 195 | self.sa.add(web3) |
@@ -1,9 +1,6 | |||
|
1 | from rhodecode.model.meta import Base | |
|
2 | from sqlalchemy import * | |
|
3 | from sqlalchemy.orm import relation, backref | |
|
4 | from sqlalchemy.orm.session import Session | |
|
5 | from vcs.utils.lazy import LazyProperty | |
|
6 | import logging | |
|
1 | from rhodecode.model.meta import Base from sqlalchemy import * from | |
|
2 | sqlalchemy.orm import relation, backref from sqlalchemy.orm.session import | |
|
3 | Session from vcs.utils.lazy import LazyProperty import logging | |
|
7 | 4 | |
|
8 | 5 | log = logging.getLogger(__name__) |
|
9 | 6 | |
@@ -71,7 +68,6 class UserLog(Base): | |||
|
71 | 68 | user_ip = Column("user_ip", TEXT(length=None, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None) |
|
72 | 69 | action = Column("action", TEXT(length=None, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None) |
|
73 | 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 | 72 | user = relation('User') |
|
77 | 73 | repository = relation('Repository') |
General Comments 0
You need to be logged in to leave comments.
Login now