grokproject 1.0a1 generates faulty config when uppercase letters in projectname
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grok |
Fix Released
|
Medium
|
Uli Fouquet | ||
1.0 |
Fix Released
|
Medium
|
Uli Fouquet |
Bug Description
There is a bug in current grokproject, which stops new users right from the beginning when they follow the tutorial.
When using uppercase chars in projectname, grokproject 1.0a1 generates zope.conf with faulty directory paths:
(sandbox24)
Enter user (Name of an initial administrator user): grok
Enter passwd (Password for the initial administrator user):
Downloading info about versions...
Creating directory ./Sample
Downloading zc.buildout...
Invoking zc.buildout...
Develop: '/home/
Installing eggbasket.
(sandbox24)
(sandbox24)
Traceback (most recent call last):
...
IOError: [Errno 2] No such file or directory: '/home/
It turns out, that the logfile path (and other paths) were set as:
/home/
where it should have been:
/home/
(uppercase 'S' in 'Sample').
This is especially bad, because 'Sample' is the projectname in the main tutorial. This means, that people following the tutorial will be stopped when creating a project.
It seems to me, that the error was caused by `template.py` where a wrong ``package_
Just commited a fix, that also normalizes the path (we don't want ``..`` and ``.`` in the paths, do we?). This should be reviewed by someone. Michael?
Tests are also still missing.
Changed in grok: | |
status: | In Progress → Fix Committed |
I'll finish this to be ready for release. Michael, if you want to take over, please do :-)