Zine

open source content publishing system


source: scripts/manage-database @ 1328:6cc7867ababe

Revision 1328:6cc7867ababe, 575 bytes checked in by Georg Brandl <georg@…>, 2 years ago (diff)

Update command-line migrations interface. In particular, downgrades only make sense for one repo at the same time. Also add a "list" command to list all repos.

  • Property exe set to *
Line 
1#!/usr/bin/env python
2# -*- coding: utf-8 -*-
3"""
4    Manage Database
5    ~~~~~~~~~~~~~~~
6
7    Database maintenance script.
8
9    :copyright: (c) 2010 by the Zine Team, see AUTHORS for more details.
10    :license: BSD, see LICENSE for more details.
11"""
12# for now
13import warnings
14warnings.filterwarnings('ignore')
15
16import sys
17from os.path import dirname
18sys.path.append(dirname(__file__))
19from _init_zine import find_instance
20from zine.upgrades import CommandLineInterface
21
22def main():
23    manage = CommandLineInterface()
24    manage.run()
25
26if __name__ == '__main__':
27    main()
Note: See TracBrowser for help on using the repository browser.