Re: [PythonReports-users] PythonReports/editor/editor.py
Brought to you by:
a1s
From: alexander s. <al...@go...> - 2012-12-04 19:20:40
|
On 04.12.2012 18:15, Werner F. Bruhin wrote: > > When I try to run the above I get some exceptions. What's "the above" and which exception do you get? I see some portion of traceback, but no exception. I see no error in propertiesgrid.py around line 270, either. > container.py, line 81, in highlight > self.SetState(wxpltbns.PLATE_PRESSED) > > I stop at this point as I might be on a wx version you don't yet support. > > I am on Python 2.7.2 on Windows 7 and run wxPython 2.9.4 in that version > platebtn does not have a method called SetState, it only has GetState as > far as I can see. Looks like it was lost in upstream merge: http://svn.wxwidgets.org/viewvc/wx/wxPython/tags/wxPy-2.9.4.0/wxPython/wx/lib/platebtn.py?r1=67853&r2=69231 Perhaps you should make it known to wxPython team. > Is 2.9.4 supposed to be supported? I doubt so. The time I am able to spend on PythonReports is too scanty to fiddle with non-stable versions of used libraries. > You don't want to move the support list to e.g. Google Groups as > sourceforge is really slow:-( Well, as long as support is limited to me alone, slow mail barely is a shortcoming because I'm quite slow myself. I have never used Google Groups, and I am not motivated enough to start learning them. On 04.12.2012 18:42, Werner F. Bruhin wrote: > > I will use the project to report from a Firebird SQL database, > preferably via SQLAlchemy. Please feel free to do so. PythonReports are intentionaly unaware of data sources; I am sure that data extraction and output formatting are very different tasks, and must be separated for modularity. Instead, PythonReports accept both objects (probably composed by an ORM layer) and Python dictionaries as data items. That should ease composition of input data from any source. > So, what is the best way to provide the "data" to the editor.py when I > like to create a template? I make a module with a function returning data, and then in report designer shell I paste two lines: >>> from mymodule import myfunction >>> data = myfunction() Please be aware that although report builder and pdf output have been in production use for half a decade now, the template designers - both Tk-based and wx-based - barely got any real use. Cheers, alex. |