Parent: [b42895] (diff)

Child: [ddf08c] (diff)

Download this file

tscript.py    18 lines (12 with data), 383 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 tmpl_context as 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()