|
a/scripts/update-ordinals.py |
|
b/scripts/update-ordinals.py |
|
... |
|
... |
5 |
from ming.orm import session
|
5 |
from ming.orm import session
|
6 |
from ming.orm.ormsession import ThreadLocalORMSession
|
6 |
from ming.orm.ormsession import ThreadLocalORMSession
|
7 |
|
7 |
|
8 |
from allura import model as M
|
8 |
from allura import model as M
|
9 |
|
9 |
|
10 |
log = logging.getLogger(__name__)
|
10 |
log = logging.getLogger('update-ordinals')
|
11 |
handler = logging.StreamHandler(sys.stdout)
|
11 |
log.addHandler(logging.StreamHandler(sys.stdout))
|
12 |
log.addHandler(handler)
|
|
|
13 |
|
12 |
|
14 |
def main():
|
13 |
def main():
|
15 |
test = sys.argv[-1] == 'test'
|
14 |
test = sys.argv[-1] == 'test'
|
16 |
num_projects_examined = 0
|
15 |
num_projects_examined = 0
|
17 |
log.info('Examining all projects for mount order.')
|
16 |
log.info('Examining all projects for mount order.')
|