On Wed, 2006-09-20 at 19:45 -0500, Brian Snipes wrote:
> On Sun, 2006-09-17 at 16:26 -0400, Ed Leafe wrote:
> > On Sep 17, 2006, at 12:17 PM, Brian Snipes wrote:
> > 
> > > Running OpenSuSE 10.1.  I just tried to connect to a test.db file and
> > > use the AppWizard to connect to a test SQLite db and got an error when
> > > clicking the Finish button.  I created the db from within the Python
> > > interpreter after running "import sqlite".  I am trying to learn  
> > > Python
> > > which is why it was created the 'hard' way :-)
> > > Any thoughts?
> > 
> >     I've seen that too, and will look into a fix tomorrow when I return  
> > home.
> > 
> > -- Ed Leafe
> 
> I've been doing some testing and it looks like the problem I am seeing
> is when substition occurs in the spec-main.py.txt file which is being
> loaded in getMain().  The following line in spec-main.py.txt throws up
> the error when trying to substitute:
> 
> formsToOpen.append(getattr(ui, "Frm%s" % form_name))
> 
> Am I correct that this line shouldn't have substition performed on it
> from the getMain() in AppWizard.py?  If so, how can I tell getMain() not
> to do substition on this line in the txt file when reading it?
> 
> Thanks,
> Brian

Ok. More reading and studying and testing.  After reading
http://svn.python.org/projects/peps/trunk/pep-0292.txt I decided to try
it's template method as a test on the spec-main.py.txt file.  Using
Template from the string module and using the ${var} substitution format
looks like it might solve the problem with the AppWizard.  Would my
going through and modifying the template files and the AppWizard.py to
use Template be a good thing to do ( and submit back ) or would it be
best to wait for a better solution to this?

Thanks,
Brian




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Reply via email to