Child: [77e831] (diff)

Download this file

tscript.py    20 lines (14 with data), 467 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
import sys
import logging
from tg import config
from pylons import c
from allura import model as M
from allura.lib import helpers as h
from allura.lib.security import roles_with_project_access
from sfx.lib.sfx_api import SFXProjectApi
log = logging.getLogger(__name__)
print 'In a script'
log.info('in a script')
for p in M.Project.query.find():
log.info('Project %s: %s (%s)', p.shortname, p.name, p.short_description)
assert M.Project.query.find().count()