Child: [bea16d] (diff)

Download this file

tscript.py    18 lines (12 with data), 367 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
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
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()