Here is the requested traceback, thanks.

C:\aaa\DaboCode\ParentChild>python ParentChild_Hand.py
Dabo Info Log: Mon Dec 31 19:54:20 2007: 1 database connection definition(s)
loa
ded.
Dabo Info Log: Mon Dec 31 19:54:20 2007: User interface already set to 'wx',
so
dApp didn't touch it.
Dabo Info Log: Mon Dec 31 19:54:20 2007: wxPython Version: 2.8.7.1 wxMSW
(unicod
e)
Traceback (most recent call last):
File "c:\python25\lib\site-packages\Dabo-
0.8.3-py2.5.egg\dabo\ui\uiwx\dControl
Mixin.py", line 21, in _onWxHit
self.raiseEvent(dEvents.Hit, evt, *args, **kwargs)
File "C:\Python25\lib\site-packages\dabo-
0.8.3-py2.5.egg\dabo\ui\uiwx\dPemMixi
n.py", line 882, in raiseEvent
super(dPemMixin, self).raiseEvent(eventClass, nativeEvent, *args, **kwargs)
File "C:\Python25\lib\site-packages\dabo-
0.8.3-py2.5.egg\dabo\lib\eventMixin.p
y", line 93, in raiseEvent
bindingFunction(event)
File "ParentChild_Hand.py", line 104, in onHitNew
self.Form.new()
File "C:\Python25\lib\site-packages\dabo-
0.8.3-py2.5.egg\dabo\ui\uiwx\dForm.py
", line 602, in new
self.raiseEvent(dEvents.RowNumChanged)
File "C:\Python25\lib\site-packages\dabo-
0.8.3-py2.5.egg\dabo\ui\uiwx\dPemMixi
n.py", line 882, in raiseEvent
super(dPemMixin, self).raiseEvent(eventClass, nativeEvent, *args, **kwargs)
File "C:\Python25\lib\site-packages\dabo-
0.8.3-py2.5.egg\dabo\lib\eventMixin.p
y", line 93, in raiseEvent
bindingFunction(event)
File "C:\Python25\lib\site-packages\dabo-
0.8.3-py2.5.egg\dabo\ui\uiwx\dGrid.py
", line 3017, in __onRowNumChanged
self.refresh()
File "C:\Python25\lib\site-packages\dabo-
0.8.3-py2.5.egg\dabo\ui\uiwx\dGrid.py
", line 2918, in refresh
self._syncCurrentRow()
File "C:\Python25\lib\site-packages\dabo-
0.8.3-py2.5.egg\dabo\ui\uiwx\dGrid.py
", line 2941, in _syncCurrentRow
self.CurrentRow = self.getBizobj().RowNumber
File "C:\Python25\lib\site-packages\dabo-
0.8.3-py2.5.egg\dabo\ui\uiwx\dGrid.py
", line 3817, in _setCurrentRow
self.SetGridCursor(val, cn)
File "C:\Python25\Lib\site-packages\wx-2.8-msw-unicode\wx\grid.py", line
1355,
in SetGridCursor
return _grid.Grid_SetGridCursor(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "uiIndex < m_nCount" failed at
..\..\in
clude\wx/dynarray.h(813) in wxBaseArrayInt::Item()


Steve Rose




On 12/31/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:
>
> Send Dabo-users mailing list submissions to
>         [email protected]
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://leafe.com/mailman/listinfo/dabo-users
> or, via email, send a message with subject or body 'help' to
>         [EMAIL PROTECTED]
>
> You can reach the person managing the list at
>         [EMAIL PROTECTED]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Dabo-users digest..."
>
>
> Today's Topics:
>
>    1. Parent-Child link lost on Proself.Form.new() (Steve Rose)
>    2. Re: Parent-Child link lost on Proself.Form.new() (Ed Leafe)
>    3. Re: how to install (Carl Karsten)
>    4. Re: how to install (Ed Leafe)
>    5. Re: how to install (Carl Karsten)
>    6. Re: how to install (Nate Lowrie)
>    7. "MySQL server has gone away" (Dave Stredulinsky)
>    8. "MySQL server has gone away" (Dave Stredulinsky)
>    9. Re: [part 2] a Simple tutorial on bizObjects` (bsnipes)
>   10. Re: "MySQL server has gone away" (Dennis Lee Bieber)
>   11. Re: [part 2] a Simple tutorial on bizObjects` (Ed Leafe)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 31 Dec 2007 09:18:51 -0800
> From: "Steve Rose" <[EMAIL PROTECTED]>
> Subject: [dabo-users] Parent-Child link lost on Proself.Form.new()
> To: [email protected]
> Message-ID:
>         <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1
>
> I have set up a simple form with a parent child relationship. It has the
> usual thing with textfields linking to parent data and a grid linking to
> the
> child records. The test database is just a parent table with 3 records
> (firstname, lastname, pkid) and child (firstname, lastname, pkid,
> childNo).
> The parentBizobj's key field is pkid. The chidNo field is indexed as a
> foreign key to the parent pkid. The childBizobj has its keyfield set to
> pkid
> and self.LinkField = "ChildNo".
> Four buttons handle first, prior, next and last navigation in the parent.
> This works perfectly as the grid always updates correctly when navigation
> occurs in the parent table. Three other buttons are supposed to handle
> new,
> save and cancel functions. When I click New (code: self.Form.new() or
> self.Form.new('parent'), I lose the link to the grid. I can still navigate
> the parent, but the link to the child records are lost. The traceback is
> lengthy and not too helpful, but the gist of it seems to be that the grid
> loses its current row number and I see such things as "uiIndex < m_nCount
> failed in wxBaseArray" blah, blah. Obviously the grid has lost its link to
> the parent.
>
> Without bogging you down with all the details, is there usually a common
> error beginners make when having problems adding a record to a parent
> table
> linked to a child? I must be doing something right if I can navigate OK
> but
> somehow I am missing something basic about adding a record to a parent.
>
> BTW, new() works fine in a simple form with only one table.
>
> Steve Rose
>
>
> --- StripMime Report -- processed MIME parts ---
> multipart/alternative
>   text/plain (text body -- kept)
>   text/html
> ---
>
>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 31 Dec 2007 12:34:20 -0500
> From: Ed Leafe <[EMAIL PROTECTED]>
> Subject: Re: [dabo-users] Parent-Child link lost on Proself.Form.new()
> To: Dabo Users list <[email protected]>
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
>
> On Dec 31, 2007, at 12:18 PM, Steve Rose wrote:
>
> > Four buttons handle first, prior, next and last navigation in the
> > parent.
> > This works perfectly as the grid always updates correctly when
> > navigation
> > occurs in the parent table. Three other buttons are supposed to
> > handle new,
> > save and cancel functions. When I click New (code: self.Form.new() or
> > self.Form.new('parent'), I lose the link to the grid. I can still
> > navigate
> > the parent, but the link to the child records are lost. The
> > traceback is
> > lengthy and not too helpful, but the gist of it seems to be that
> > the grid
> > loses its current row number and I see such things as "uiIndex <
> > m_nCount
> > failed in wxBaseArray" blah, blah. Obviously the grid has lost its
> > link to
> > the parent.
>
>         It's not that the link is "lost"; it's that whatever error caused
> the traceback is preventing the update from proceeding. Please paste
> the full traceback, as it is probably more helpful than you think.  ;-)
>
> -- Ed Leafe
> -- http://leafe.com
> -- http://dabodev.com
>
>
>
>
>
>
> ------------------------------
>
> Message: 3
> Date: Mon, 31 Dec 2007 11:57:30 -0600
> From: Carl Karsten <[EMAIL PROTECTED]>
> Subject: Re: [dabo-users] how to install
> To: Dabo Users list <[email protected]>
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=us-ascii; format=flowed
>
> Ed Leafe wrote:
> > On Dec 30, 2007, at 7:35 PM, Carl Karsten wrote:
> >
> >> From what you and others have said, the Web Update needs to be run
> >> by root, and
> >> the only place that exists is an app.
> >
> >       Sorry, but that's just plain wrong. I'm done wasting time on this.
>
> Then I guess I have take you up on this:
>
> >       So why haven't you written all this for us already? I would be
> glad
> > to be humbled by you pointing out our incredible incompetence.
>
> What is the current process?
>
> Lets start with the
>
> > 20 seconds to update a
> > web form.
>
> What web form, where is the source, what does it do?
>
> Not expecting a full blown spec, just looking at the code should be a good
> start.
>
> Carl K
>
>
>
>
> ------------------------------
>
> Message: 4
> Date: Mon, 31 Dec 2007 15:22:10 -0500
> From: Ed Leafe <[EMAIL PROTECTED]>
> Subject: Re: [dabo-users] how to install
> To: Dabo Users list <[email protected]>
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
>
> On Dec 31, 2007, at 12:57 PM, Carl Karsten wrote:
>
> > What is the current process?
> >
> > Lets start with the
> >
> >> 20 seconds to update a web form.
> >
> > What web form, where is the source, what does it do?
> >
> > Not expecting a full blown spec, just looking at the code should be
> > a good start.
>
>         It's an internal web app that is directly tied to the Web Update
> process. Since you believe that this is the completely wrong way to
> go, it would not make sense to work from that form, would it? Since
> you want to go strictly with distutils, you should assume nothing
> more than that.
>
> -- Ed Leafe
> -- http://leafe.com
> -- http://dabodev.com
>
>
>
>
>
>
> ------------------------------
>
> Message: 5
> Date: Mon, 31 Dec 2007 14:55:23 -0600
> From: Carl Karsten <[EMAIL PROTECTED]>
> Subject: Re: [dabo-users] how to install
> To: Dabo Users list <[email protected]>
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Ed Leafe wrote:
> > On Dec 31, 2007, at 12:57 PM, Carl Karsten wrote:
> >
> >> What is the current process?
> >>
> >> Lets start with the
> >>
> >>> 20 seconds to update a web form.
> >> What web form, where is the source, what does it do?
> >>
> >> Not expecting a full blown spec, just looking at the code should be
> >> a good start.
> >
> >       It's an internal web app that is directly tied to the Web Update
> > process. Since you believe that this is the completely wrong way to
> > go, it would not make sense to work from that form, would it?
>
> I think I need to know what is being replaced.
>
> > Since
> > you want to go strictly with distutils, you should assume nothing
> > more than that.
> >
>
> OK, I'll write code, you tell me what is wrong with it, I'll adjust,
> repeat.
>
> cd <dabo dir that contains setup.py>
> python setup.py sdist
> scp dist/Dabo-0.8.2.tar.gz [EMAIL PROTECTED]:public_html
>
> Carl K
>
>
>
>
>
>
> ------------------------------
>
> Message: 6
> Date: Mon, 31 Dec 2007 16:14:11 -0500
> From: "Nate Lowrie" <[EMAIL PROTECTED]>
> Subject: Re: [dabo-users] how to install
> To: "Dabo Users list" <[email protected]>
> Message-ID:
>         <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1
>
> On Dec 31, 2007 3:55 PM, Carl Karsten <[EMAIL PROTECTED]> wrote:
> > Ed Leafe wrote:
> > > On Dec 31, 2007, at 12:57 PM, Carl Karsten wrote:
> > >
> > >> What is the current process?
> > >>
> > >> Lets start with the
> > >>
> > >>> 20 seconds to update a web form.
> > >> What web form, where is the source, what does it do?
> > >>
> > >> Not expecting a full blown spec, just looking at the code should be
> > >> a good start.
> > >
> > >       It's an internal web app that is directly tied to the Web Update
> > > process. Since you believe that this is the completely wrong way to
> > > go, it would not make sense to work from that form, would it?
> >
> > I think I need to know what is being replaced.
>
> It is not part of the Dabo distribution.  I think that he is just
> changing the revision number to the latest stable svn version and then
> the Web Update is updating based on that.
>
> I don't see the problem here...Web update is a great way to distribute
> updates to most users.
>
> >
> > > Since
> > > you want to go strictly with distutils, you should assume nothing
> > > more than that.
> > >
> >
> > OK, I'll write code, you tell me what is wrong with it, I'll adjust,
> repeat.
> >
> > cd <dabo dir that contains setup.py>
> > python setup.py sdist
> > scp dist/Dabo-0.8.2.tar.gz [EMAIL PROTECTED]:public_html
>
> Carl, if you want an update method that works on a cron job, do what I
> do and just update via subversion.  Keeps my development version fresh
> without me having to remember to update constantly.
>
>
>
>
> ------------------------------
>
> Message: 7
> Date: Mon, 31 Dec 2007 20:19:48 -0400
> From: Dave Stredulinsky <[EMAIL PROTECTED]>
> Subject: [dabo-users] "MySQL server has gone away"
> To: [email protected]
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Thanks.  You have confirmed that it is a problem with my web hosting
> server, I  will contact their support people again to see if they can do
> re the TIMEOUT settings. Don't worry about the database info.  It was
> just a small test database which I will delete.
>
> Happy New Year
>
> Dave Stredulinsky
>
>
>
>
>
>
> ------------------------------
>
> Message: 8
> Date: Mon, 31 Dec 2007 20:46:49 -0400
> From: Dave Stredulinsky <[EMAIL PROTECTED]>
> Subject: [dabo-users] "MySQL server has gone away"
> To: [email protected]
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> I ran the  "SHOW VARIABLES LIKE '%TIMEOUT%' "
>
> The  INTERACTIVE-TIMEOUT value is 200 seconds and the NET_READ_TIMEOUT
> is 30 seconds, both larger the the 10 second time at which "MySQL server
> has gone away" kicks in.  I note there is a CONNECT_TIMEOUT set at 5
> seconds and a WAIT_TIMEOUT set at 10 seconds.  I am not that familiar
> with MySQL server setttings, do you think the WAIT_TIMEOUT value could
> be the problem?
>
> Dave Stredulinsky
> >       I get it to work with 10 seconds or less, and have the same
> problem
> > with 11 or more.
> >
> >       If you have admin privileges on that MySQL server, can you run a
> > "SHOW VARIABLES LIKE '%TIMEOUT%' " query to see what the various
> > settings are? Specifically, you may have the INTERACTIVE-TIMEOUT or
> > NET_READ_TIMEOUT setting too low. I tried running the command, but
> > get an empty response, indicating that the login being used does not
> > have privileges for that.
> >
> > -- Ed Leafe
> > -- http://leafe.com
> > -- http://dabodev.com
> >
> >
> >
> >
>
>
>
>
>
> ------------------------------
>
> Message: 9
> Date: Mon, 31 Dec 2007 17:53:48 -0800 (PST)
> From: bsnipes <[EMAIL PROTECTED]>
> Subject: Re: [dabo-users] [part 2] a Simple tutorial on bizObjects`
> To: [email protected]
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=us-ascii
>
>
>
>
> JohnF-4 wrote:
> >
> > ...
> >       def first(self,evt):
> >               self.super()
> >
> >       def next(self,evt):
> >               self.super()
> >
> >       def prior(self,evt):
> >               self.super()
> >
> >       def last(self,evt):
> >               self.super()
> >
> > ...
> > John Fabiani
> >
>
> Where can I find info on the super() method?  Does this call an a method
> in
> a base class?
>
> Brian
> --
> View this message in context:
> http://www.nabble.com/a-Simple-tutorial-on-bizObjects%60-tp14258738p14563883.html
> Sent from the dabo-users mailing list archive at Nabble.com.
>
>
>
>
>
> ------------------------------
>
> Message: 10
> Date: Mon, 31 Dec 2007 19:19:12 -0800
> From: Dennis Lee Bieber <[EMAIL PROTECTED]>
> Subject: Re: [dabo-users] "MySQL server has gone away"
> To: [email protected]
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=us-ascii
>
> On Mon, 31 Dec 2007 20:46:49 -0400, Dave Stredulinsky
> <[EMAIL PROTECTED]> declaimed the
> following in gmane.comp.python.dabo.user:
>
> > I ran the  "SHOW VARIABLES LIKE '%TIMEOUT%' "
> >
> > The  INTERACTIVE-TIMEOUT value is 200 seconds and the NET_READ_TIMEOUT
> > is 30 seconds, both larger the the 10 second time at which "MySQL server
> > has gone away" kicks in.  I note there is a CONNECT_TIMEOUT set at 5
> > seconds and a WAIT_TIMEOUT set at 10 seconds.  I am not that familiar
> > with MySQL server setttings, do you think the WAIT_TIMEOUT value could
> > be the problem?
> >
>
>         Using the MySQL Admin console on my local installation, the
> network
> startup variables (and default values) are:
>
> connect_timeout 0       #of seconds the server waits for a connect packet
> before responding with "bad handshake"
>
> interactive_timeout             28800   #of seconds the server waits for
> activity on an interactive connection before closing it
>
> read_timeout    30              #of seconds to wait for more data from a
> connection before aborting
>
> write_timeout   60              #of seconds to wait for a block to be
> written to
> a connection before "aborting the writ" (that's what it says <G>)
>
> wait_timeout    28800   #of seconds the server waits for activity on a
> connection before closing it.
> --
>         Wulfraed        Dennis Lee Bieber               KD6MOG
>         [EMAIL PROTECTED]           [EMAIL PROTECTED]
>                 HTTP://wlfraed.home.netcom.com/
>         (Bestiaria Support Staff:               [EMAIL PROTECTED])
>                 HTTP://www.bestiaria.com/
>
>
>
>
>
> ------------------------------
>
> Message: 11
> Date: Mon, 31 Dec 2007 22:49:40 -0500
> From: Ed Leafe <[EMAIL PROTECTED]>
> Subject: Re: [dabo-users] [part 2] a Simple tutorial on bizObjects`
> To: Dabo Users list <[email protected]>
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
>
> On Dec 31, 2007, at 8:53 PM, bsnipes wrote:
>
> > Where can I find info on the super() method?  Does this call an a
> > method in
> > a base class?
>
>         It's a somewhat magical shortcut Paul cooked up for calling the
> superclass behavior for a method. It's in dabo.lib.autosuper, and is
> one of the mixin classes for dObject. So if your class is Foo, and
> based on dabo.Bar, the following are all equivalent:
>
> def method(self):
>         dabo.Bar.method(self)
>
> def method(self):
>         super(dabo.Bar, self).method()
>
> def method(self):
>         self.super()
>
>         I prefer the second form, since it and the last work better with
> subclasses based on multiple inheritance, and the last form is just a
> little too fragile-feeling for me. However, it does seem to work
> well, so it's just a matter of taste.
>
> -- Ed Leafe
> -- http://leafe.com
> -- http://dabodev.com
>
>
>
>
>
>
> ------------------------------
>
> _______________________________________________
> Dabo-users mailing list
> [email protected]
> http://leafe.com/mailman/listinfo/dabo-users
> Searchable Archives: http://leafe.com/archives/search/dabo-users
>
>
> End of Dabo-users Digest, Vol 42, Issue 60
> ******************************************
>


--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]

Reply via email to