The application’s model objects
created_on: | Nov 25, 2010 |
---|---|
author: | marcink |
copyright: |
|
license: | GPLv3, see COPYING for more details. |
example: | from paste.deploy import appconfig
from pylons import config
from sqlalchemy import engine_from_config
from rhodecode.config.environment import load_environment
conf = appconfig('config:development.ini', relative_to = './../../')
load_environment(conf.global_conf, conf.local_conf)
engine = engine_from_config(config, 'sqlalchemy.')
init_model(engine)
# RUN YOUR CODE HERE
|
permissions model for RhodeCode
created_on: | Aug 20, 2010 |
---|---|
author: | marcink |
copyright: |
|
license: | GPLv3, see COPYING for more details. |
Repository model for rhodecode
created_on: | Jun 5, 2010 |
---|---|
author: | marcink |
copyright: |
|
license: | GPLv3, see COPYING for more details. |
Scm model for RhodeCode
created_on: | Apr 9, 2010 |
---|---|
author: | marcink |
copyright: |
|
license: | GPLv3, see COPYING for more details. |
Generic Scm Model
Get’s repository from given name, creates BackendInstance and propagates it’s data from database with all additional information
Parameters: |
|
---|
Get all repos from db and for each repo create it’s backend instance.and fill that backed with information from database
Parameters: | all_repos – give specific repositories list, good for filtering |
---|
users model for RhodeCode
created_on: | Apr 9, 2010 |
---|---|
author: | marcink |
copyright: |
|
license: | GPLv3, see COPYING for more details. |