Comment 2 for bug 890318

Revision history for this message
Tony Byrne (tony-badwolf) wrote :

Hi David
 The underlying difficulty, widget names are any string: python names are restricted, was originally covered by some tools

logging of methods like "on_widget_signal" that were not automatically connected
an alias decorator that accepted any string and could be a target for automatic connection

However a later change to quickly hid the logging messages from the project_lib/Builder.py module.
If you want to see them you can use quickly run -vv

There was much discussion at the time between two approaches
automatically mangle glade names like ( "filechooserbutton1", "file-set" ) into python names like "on_filechooserbutton1_file_set"
inform quickly user (you) of the discrepancy using logging, if you turn on logging.

A choice was made to use logging because otherwise the user (you) would need to hold the mangling algorithm in your head
e.g. replace any of [".", ",", ", "-", "á", "é"] etc. by "_"

The blacklist approach (don't use "-") you suggest would be better as a whitelist (if the character is not allowed in a python name change it)

A counter proposal for a bug fix is
Default to have logging turned on for quickly run
turn on logging for quickly supplied boilerplate modules as well as user supplied modules