error when generating from command line

[email protected] (Andrés Ramírez)
Newsgroups gmane.comp.python.wxglade
Message-ID <[email protected]>
Hi Guys.

This is my process:

1.  The xrc is created by hand.
2. pass xrc through xrc2wxg.py to generate wxg
3. pass the wxg file through wxglade.py to generate cpp/h files

All of that is in a oneliner command.

With a previous version this worked flawlessly.

Now I am getting this:
--8<---------------cut here---------------start------------->8---
Exception type:      <class 'xml_parse.XmlParsingError'>
Exception details:   'language' attribute missing: could not generate code _((line: 3, column:  0))
--8<---------------cut here---------------end--------------->8---

I understood it is because the xml "application" tag does have the "language"
attribute, but in the past it was not necessary, as the command call
have the required parameter see:

--8<---------------cut here---------------start------------->8---
python2 ~/opt_clone/wxglade/wxglade.py --generate-code=C++ --output=~/xrc/StockTakeActionFrmDsgn.cpp ~/xrc/StockTakeActionFrmDsgn.wxg
--8<---------------cut here---------------end--------------->8---

this is the  wxg output:
--8<---------------cut here---------------start------------->8---
<?xml version="1.0" encoding="UTF-8"?>
<!-- generated by xrc2wxg.py 0.0.5 on Tue Nov 17 15:08:02 2015 -->
<application encoding="UTF-8">
    <object base="EditFrame" class="StockTakeActionFrmDsgn" name="StockTakeActionFrmDsgn">
        <size>200,200</size>
        <title>Stock Take Action</title>
        <style>wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL</style>
    </object>
</application>
--8<---------------cut here---------------end--------------->8---

this is the reduced xrc:
--8<---------------cut here---------------start------------->8---
<?xml version="1.0" encoding="UTF-8"?>
<resource version="invcross">
  <object base="EditFrame" class="wxFrame" name="StockTakeActionFrmDsgn">
    <size>200,200</size>
    <title>Stock Take Action</title>
    <style>wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL</style>
  </object>
</resource>
--8<---------------cut here---------------end--------------->8---

Is this the expected behaviour?

Best Regards

------------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.