Message2308
In Windows, roundup-admin.bat fails because it will not
accept any answer to the question about which template
to use (classic or minimal). Regardless of whether I
type 'classic' or 'minimal' or hit enter to accept the
default, I just get re-prompted on the same question.
C:\Documents and
Settings\smidwint\Desktop\roundup-1.2.1.tar\roundup-1.2.1\build\scripts-2.4>roundup-
-admin install
'roundup--admin' is not recognized as an internal or
external command,
operable program or batch file.
C:\Documents and
Settings\smidwint\Desktop\roundup-1.2.1.tar\roundup-1.2.1\build\scripts-2.4>roundup-
-admin.bat install
'roundup--admin.bat' is not recognized as an internal
or external command,
operable program or batch file.
C:\Documents and
Settings\smidwint\Desktop\roundup-1.2.1.tar\roundup-1.2.1\build\scripts-2.4>ls
Volume in drive C is BIG_ROOT
Volume Serial Number is 8C9E-52EF
Directory of C:\Documents and
Settings\smidwint\Desktop\roundup-1.2.1.tar\roundup-1.2.1\build\script
s-2.4
[.] roundup-admin.bat
roundup-gettext.bat roundup-server.bat
[..] roundup-demo.bat
roundup-mailgw.bat
5 File(s) 1,251 bytes
2 Dir(s) 74,921,713,664 bytes free
C:\Documents and
Settings\smidwint\Desktop\roundup-1.2.1.tar\roundup-1.2.1\build\scripts-2.4>roundup-
admin.bat install
Enter tracker home: d:/data/roundup/trackers
WARNING: directory
'c:\programs\python24\share\roundup\templates\classic'
contains old-style template - ignored
WARNING: directory
'c:\programs\python24\share\roundup\templates\minimal'
contains old-style template - ignored
Templates:
Select template [classic]:
Select template [classic]: classic
Select template [classic]: classic
Select template [classic]: Classic
Select template [classic]:
Select template [classic]: classic
Select template [classic]: minimal
Select template [classic]: classic
Select template [classic]:
Select template [classic]:
Select template [classic]:
I noted the error about old-style templates, then
copied the 'templates' folder from the roundup source
into the location above and re-ran the admin script.
same result as before.
Delving into the admin.py and init.py scripts, I see
that my user input is not accepted because there's no
match against the list of available templates, because
the list is empty because of the error about old-style
templates. in init.py you test whether the templates
are new-style or old-style by checking for the presence
of config.py. Since your install script (and my manual
copy) copies the templates into place, the pre-existing
config.py remains in place and thus the new templates
are determined to be old-style.
Suggested fix:
1. the install script should delete the old template
folder if it exists
2. if the admin script finds that the template folder
contains old-style templates, or the list of templates
is empty for any reason, the script should abort with
some instructions.
Hope that helps!
cheers
Stewart
|
|
Date |
User |
Action |
Args |
2009-02-03 14:21:52 | admin | link | issue1578576 messages |
2009-02-03 14:21:52 | admin | create | |
|