Changeset - 07644836640a
[Not reviewed]
default
0 1 0
Thomas De Schampheleire - 9 years ago 2017-01-14 21:42:30
thomas.de.schampheleire@gmail.com
model: remove docstring code example

This type of code examples are not present in other files.
It is unclear whether this example is still accurate.
And it is equally unclear whether they provide real value compared to 'real'
code.

Remove it.
1 file changed with 0 insertions and 18 deletions:
0 comments (0 inline, 0 general)
kallithea/model/base.py
Show inline comments
 
@@ -20,30 +20,12 @@ The application's model objects
 
This file was forked by the Kallithea project in July 2014.
 
Original author and date, and relevant copyright and licensing information is below:
 
:created_on: Nov 25, 2010
 
:author: marcink
 
:copyright: (c) 2013 RhodeCode GmbH, and others.
 
:license: GPLv3, see LICENSE.md for more details.
 

	
 

	
 
:example:
 

	
 
    .. code-block:: python
 

	
 
       from paste.deploy import appconfig
 
       from pylons import config
 
       from sqlalchemy import engine_from_config
 
       from kallithea.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
 

	
 
"""
 

	
 

	
 
import logging
 
from kallithea.model import meta
 
from kallithea.lib.utils2 import obfuscate_url_pw
0 comments (0 inline, 0 general)