Python plugin loads invalid class name
Bug #135743 reported by
Charles Edward Pax
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Gladex |
Fix Released
|
Medium
|
Christopher Pax |
Bug Description
1) Drag a file named "Unsaved 1.glade" into the Glade file selector.
2) Select the Python Code Generator.
3) Observe the name of the class as "Unsaved 1Class".
4) Click Execute
5) Observe the status bar read "there is an invalid character in the class name".
Both the space and the number must be removed before Gladex will generate code.Gladex should strip out characters from a field that it knows to be invalid. It should also know what characters really are invalid. Maybe this can be defined in the plugin's info secction.
Changed in gladex: | |
assignee: | nobody → gladex |
Changed in gladex: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
In 0.2 i had a valid string which I used to check the class name in python. For 0.4, I wonder if we should halt execution of the plugin and send a error to the user. or replace all non-valid characters with a Q(or any other letter), and send a warning to the user.