| 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.
|
|
|
| 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 |
|---|
| 13 | import warnings |
|---|
| 14 | warnings.filterwarnings('ignore') |
|---|
| 15 | |
|---|
| 16 | import sys |
|---|
| 17 | from os.path import dirname |
|---|
| 18 | sys.path.append(dirname(__file__)) |
|---|
| 19 | from _init_zine import find_instance |
|---|
| 20 | from zine.upgrades import CommandLineInterface |
|---|
| 21 | |
|---|
| 22 | def main(): |
|---|
| 23 | manage = CommandLineInterface() |
|---|
| 24 | manage.run() |
|---|
| 25 | |
|---|
| 26 | if __name__ == '__main__': |
|---|
| 27 | main() |
|---|
Note: See
TracBrowser
for help on using the repository browser.