Mercurial > kallithea
comparison rhodecode/model/__init__.py @ 752:89b9037d68b7 beta
fixed Example celery config to ampq,
fixed session problems on models and celery,
implemented one base model as a parent for other
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 24 Nov 2010 17:15:33 +0100 |
parents | 1e757ac98988 |
children | a7f50911a945 |
comparison
equal
deleted
inserted
replaced
751:ff881ec6a140 | 752:89b9037d68b7 |
---|---|
19 #load_environment(conf.global_conf, conf.local_conf) | 19 #load_environment(conf.global_conf, conf.local_conf) |
20 # | 20 # |
21 #engine = engine_from_config(config, 'sqlalchemy.') | 21 #engine = engine_from_config(config, 'sqlalchemy.') |
22 #init_model(engine) | 22 #init_model(engine) |
23 # DO SOMETHING | 23 # DO SOMETHING |
24 | |
25 | |
26 class BaseModel(object): | |
27 | |
28 def __init__(self, sa=None): | |
29 if sa is not None: | |
30 self.sa = sa | |
31 else: | |
32 self.sa = meta.Session() |