[Bug 493130] Re: Quickly prevents creating a project with a "-" in the name

Philip Peitsch philip.peitsch at gmail.com
Fri Dec 18 23:13:18 UTC 2009


Here is a patch to address this issue.  The patch itself is quite large,
but most of the content is in the po files.

The overall approach to fix this was to introduce another variable
called "python_module".  This is used in place of project_name in all
the relevant python files and python file names. Another related change
is that camel case and sentence case has been modified slightly as well.
Dashes are replaced with spaces prior to performing capitalisation.

Name translations are similar to:

test-project
   Camel Case: TestProject
   Sentence Case: Testproject
   Python Module: testproject
   Project Name: test-project

I've tested the patch by creating both a project with a dashed name, and
a normal one, and compared these manually to ensure no bad changes were
made.  I also tested project creation, running and patching.

Full bash log is:

cd ~/src
quickly create ubuntu-project testproject
cd testproject
quickly run
quickly package

cd ~/src
quickly create ubuntu-project test-project
cd test-project
quickly run
quickly package

** Attachment added: "quickly-dashednames.patch"
   http://launchpadlibrarian.net/36957496/quickly-dashednames.patch

-- 
Quickly prevents creating a project with a "-" in the name
https://bugs.launchpad.net/bugs/493130
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list