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
|
comments model for RhodeCode
| created_on: | Nov 11, 2011 |
|---|---|
| author: | marcink |
| copyright: |
|
| license: | GPLv3, see COPYING for more details. |
Model for notifications
| created_on: | Nov 20, 2011 |
|---|---|
| author: | marcink |
| copyright: |
|
| license: | GPLv3, see COPYING for more details. |
permissions model for RhodeCode
| created_on: | Aug 20, 2010 |
|---|---|
| author: | marcink |
| copyright: |
|
| license: | GPLv3, see COPYING for more details. |
repository permission model for RhodeCode
| created_on: | Oct 1, 2011 |
|---|---|
| author: | nvinot, marcink |
| copyright: |
|
| 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. |
users groups model for RhodeCode
| created_on: | Jan 25, 2011 |
|---|---|
| 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. |
Cached repo list, uses in-memory cache after initialization, that is super fast
Generic Scm Model
Commits changes
| Parameters: | repo – SCM instance |
|---|
recursive walk in root dir and return a set of all path in that dir based on repository walk function
| Parameters: |
|
|---|
Generates select option with tags branches and bookmarks (for hg only) grouped by type
| Parameters: | repo – |
|---|
Get all repos from db and for each repo create it’s backend instance and fill that backed with information from database
| Parameters: |
|
|---|
Creates a rhodecode hook inside a git repository
| Parameters: |
|
|---|
Puts cache invalidation task into db for further global cache invalidation
| Parameters: | repo_name – this repo that should invalidation take place |
|---|
users model for RhodeCode
| created_on: | Apr 9, 2010 |
|---|---|
| author: | marcink |
| copyright: |
|
| license: | GPLv3, see COPYING for more details. |
users group model for RhodeCode
| created_on: | Oct 1, 2011 |
|---|---|
| author: | nvinot |
| copyright: |
|
| copyright: |
|
| license: | GPLv3, see COPYING for more details. |