[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnumed-devel] GNUmed plugin development - part 13
From: |
Karsten Hilbert |
Subject: |
Re: [Gnumed-devel] GNUmed plugin development - part 13 |
Date: |
Sat, 18 Jul 2009 00:26:44 +0200 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Fri, Jul 17, 2009 at 11:22:43PM +0200, Hilbert, Sebastian wrote:
> There are now four files involved in this plugin.
> - gmDevices.py in /business - responsible for the XML data extraction part
IOW, most of the business logic. Or the Model of MVC.
> - gmDeviceWidgets.py in /wxpython - responsible for calling gmDevices.py and
> compiling the ui widgets
A cross-over of View and Controller of MVC. Holds the
subclassed wxg* from here:
> - gmCardiacDevicePluginPnl.py in /wxGladeWidgets - is the python code
> representation of the ui widgets
> - gmCardiacDevicePluginPnl.wxg in /wxg - is the xml representation of the ui
> widgets
wxg* of each, not gm*. Those are the wxGlade source and
wxGlade autogenerated Python source. They are then
subclassed and extended with functionality.
> xml = selected_docs[0].get_parts()[0].export_to_file()
Spelled out this is:
latest_doc = selected_docs[0]
parts = latest_doc.get_parts()
only_the_one_expected_part = parts[0]
filename_on_disk = only_the_one_expected_part.export_to_file()
Karsten
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346