summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3c9d7c3)
raw | patch | inline | side by side (parent: 3c9d7c3)
author | stefan <stefan@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Fri, 13 Mar 2009 13:30:54 +0000 (13:30 +0000) | ||
committer | stefan <stefan@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Fri, 13 Mar 2009 13:30:54 +0000 (13:30 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4200 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/scripts/roundup_demo.py | patch | blob | history |
index 29a5f0dad30c063104418e04ac273f5c5aa657b9..69ca9a4d1362508d19eef783696e6f663c1aafba 100644 (file)
#
# Copyright 2004 Richard Jones (richard@mechanicalcat.net)
#
-# $Id: roundup_demo.py,v 1.1 2004-10-18 07:56:09 a1s Exp $
import sys
from roundup.i18n import _
DEFAULT_HOME = './demo'
+DEFAULT_TEMPLATE = 'classic'
def run():
home = DEFAULT_HOME
+ template = DEFAULT_TEMPLATE
nuke = sys.argv[-1] == 'nuke'
# if there is no tracker in home, force nuke
try:
_('Enter directory path to create demo tracker [%s]: ') % home)
if not home:
home = DEFAULT_HOME
+ templates = admin.AdminTool().listTemplates().keys()
+ template = raw_input(
+ _('Enter tracker template to use (one of (%s)) [%s]: ') %
+ (','.join(templates),template))
+ if not template:
+ template = DEFAULT_TEMPLATE
# install
demo.install_demo(home, backend,
- admin.AdminTool().listTemplates()['classic']['path'])
+ admin.AdminTool().listTemplates()[template]['path'])
# run
demo.run_demo(home)