Comment 3 for bug 493130

Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote : Re: Quickly prevents creating a project with a "-" in the name

Thanks a lot for you patch, this will be a real gain :)

However, even applying successfully to latest trunk (rev 380), there are still some issues with your patch:
$ quickly create ubuntu-project My-Project
Creating project directory My-Project
Directory My-Project created

WARNING: No .quickly file found. Initiating a new one.
Création du répertoire du projet data
Répertoire data créé

Création du répertoire du projet myproject
Répertoire myproject créé

Création du répertoire du projet bin
Répertoire bin créé

Creating data/ui/MyProjectWindow.ui
data/ui/MyProjectWindow.ui created

Creating data/ui/myproject_window.xml
Traceback (most recent call last):
  File "/home/didrocks/Projets/quickly/quickly/data/templates/ubuntu-project/create.py", line 111, in <module>
    quicklyutils.file_from_template(template_ui_dir, "python_module_window.xml", target_ui_dir, substitutions)
  File "/home/didrocks/Projets/quickly/quickly/data/templates/ubuntu-project/internal/quicklyutils.py", line 48, in file_from_template
    fin = open(template_dir + template_file,'r')
IOError: [Errno 2] No such file or directory: '/home/didrocks/Projets/quickly/quickly/data/templates/ubuntu-project/data/ui/python_module_window.xml'
ERREUR: la commande create a échoué
Annulation

Can you please fix this (without your patch, the project creation is correct).
Also, if you can use bzr to propose a merge, it would be really great (if you don't know how to do or find it annoying, don't bother too much with that).

Thanks a lot :)