At 03:39 PM 2/19/2007 -0800, you wrote:
>On Monday 19 February 2007 15:19, johnf wrote:
> > On Monday 19 February 2007 14:53, Ken Dibble wrote:
> > > At 05:25 PM 2/19/2007 -0500, you wrote:
> > > >On Feb 19, 2007, at 4:51 PM, Ken Dibble wrote:
> > > > > The form contains just a grid, set up exactly like the one in the
> > > > > How-to,
> > > > > but referencing my database.
> > > >
> > > > Just so I'm clear: a grid, or a grid sizer?
> > > >
> > > > > The form worked this morning, before I
> > > > > downloaded the new version from Subversion. I tried it after the
> > > > > update,
> > > > > and when it wouldn't run, I deleted all of the files related to the
> > > > > form,
> > > > > as well as my .cnxml file, and recreated them from scratch, figuring
> > > > > something in the old ones might have been rendered incompatible.
> > > > > But the
> > > > > new one won't run either.
> > > >
> > > > So you open the Class Designer to a blank form, select 'Run',
> > > >specify the saved file location, and instead of a blank form running,
> > > >you get the error?
> > >
> > > No. It will run a blank form (after I save it). It won't run my form with
> > > the grid on it. I just tried it again. Here's what I got (I suspect the
> > > second error occurs when I close the Class Designer):
> > >
> > > Traceback (most recent call last):
> > > File "C:\Program Files\Dabo Runtime\dabo\lib\eventMixin.py", line 97,
> > > in raiseEvent
> > > File "ClassDesigner.py", line 1459, in onRunDesign
> > > File "C:\Program Files\Dabo Runtime\ide\ClassDesignerFormMixin.py",
> > > line 499, in onRunDesign
> > > File "C:\Program Files\Dabo Runtime\dabo\ui\uiwx\__init__.py", line
> > > 880, in createForm
> > > File "C:\Program Files\Dabo Runtime\dabo\lib\DesignerXmlConverter.py",
> > > line 69, in classFromXml
> > > File "c:\docume~1\kend\locals~1\temp\tmpylolrq.py", line 93
> > >
> > > ^
> > > SyntaxError: invalid syntax
> > > Traceback (most recent call last):
> > > File "C:\Program Files\Dabo Runtime\dabo\lib\eventMixin.py", line 97,
> > > in raiseEvent
> > > File "C:\Program Files\Dabo Runtime\ide\ClassDesignerFormMixin.py",
> > > line 127, in onClose
> > > File "ClassDesigner.py", line 1862, in designerFormClosing
> > >
> > > Ken
> > > www.stic-cil.org
> >
> > I think it's time to submit an issue tracker. You can attach your
> > test 'cdxml' file to demo the problem.
>
>Something occurred to me. Are you adding code to the form we are
>discussing?
>If you are - start over and run the form before you add code and each time
>you add code. I have done what you are doing ten different ways and get no
>errors. Better yet open "DesignerXmlConverter.py" and un-comment the line
>open("CLASSTEXT.py", "w").write(self.classText)
>This will save a copy of the file you are running. You can then paste it
>into
>the mail. I mean paste the file - don't attempt to attach.
I did as you suggested and ran the form after each modification. It ran
fine as I added and modified the grid according to the How-to instructions.
It wouldn't run after I added the first line of code to the afterInit() method:
self.Application.addConnectFile("c:\DaboProjects\MyMusic\mymusic.cnxml")
I created that connection file in the Connection Editor, and it tests fine.
classtxt.py stops on that line--and the latest traceback also references it.
The line is verbatim out of the How-to docs; the only difference is the
name/location of the connection file. I've tried it with and without the
path included. And the same code worked fine this morning before I
installed updates from Subversion.
Ken Dibblewww.stic-cil.org
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.441 / Virus Database: 268.18.2/692 - Release Date: 2/18/2007 4:35
PM
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users