wxGlade fails to generate lisp source.

Bug #235388 reported by dross
2
Affects Status Importance Assigned to Milestone
wxglade (Ubuntu)
Invalid
Undecided
Georges Khaznadar

Bug Description

C++ generated fine first, then I tried Lisp and got this error:
"An exception occurred while generating the code for the application.
This is the error message associated with it:
        'NoneType' object has no attribute 'strip'
For more details, look at the full traceback on the console.
If you think this is a wxGlade bug, please report it."

Traceback (most recent call last):
  File "/usr/share/pyshared/wxglade/application.py", line 394, in generate_code
    class_names=class_names)
  File "/usr/share/pyshared/wxglade/xml_parse.py", line 503, in __init__
    if from_string: self.parse_string(input)
  File "/usr/share/pyshared/wxglade/xml_parse.py", line 75, in parse_string
    self.parser.parse(source)
  File "/usr/lib/python2.5/xml/sax/expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python2.5/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/usr/lib/python2.5/xml/sax/expatreader.py", line 207, in feed
    self._parser.Parse(data, isFinal)
  File "/usr/lib/python2.5/xml/sax/expatreader.py", line 304, in end_element
    self._cont_handler.endElement(name)
  File "/usr/share/pyshared/wxglade/xml_parse.py", line 593, in endElement
    self.code_writer.add_class(obj)
  File "/usr/share/pyshared/wxglade/codegen/lisp_codegen.py", line 666, in add_class
    style = style.strip().replace('.','')
AttributeError: 'NoneType' object has no attribute 'strip'

python-wxglade:
  Installed: 0.6.3-0.1ubuntu1

Revision history for this message
dross (ross9885-gmail) wrote :
Revision history for this message
Georges Khaznadar (georgesk) wrote :

This bug is not reproducible.

When I try to use the graphic interface to make a widget, the lisp code is easily generated.

Do you think that your file tutorial.php is applicable to *this* version of wxglade? Nowadays wxglade files are in XML format.

Changed in wxglade (Ubuntu):
assignee: nobody → Georges Khaznadar (georgesk)
tags: added: non-reproducible
Changed in wxglade (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.