I also tried creating your AppWizard App as I found problem 2 happened with
my ClassDesigner App similar error.

I used your SQLite database tutorial.sqlite and coppied it to a new
directory
/home/allan/apps/recipes

Then from a terminal

allan@allan-desktop:~$ python
/home/allan/dabo/ide/wizards/AppWizard/AppWizard.py

This created all the dirs and files in recipes dir checked with file
manager when finish screen appeared
App closed then following appeared on terminal

Segmentation fault (core dumped)

Run recipes.py in terminal
Produces screen similar to one shown but fields in alphabetical order

Selected 'contains' and entered rice in the title field

Went to Browse tab and produceed grid with 57 records Grid columns in
alphabetical order

Edit Tab produced screen again  in alphabetical order but with all fields
as dTextBoxes not some dEditBoxes as in sample screen.

Edit and Save did work.

So problem lies with my database or the bizObject as you stated.

I see I have no KeyField specified in  my ClientsBizobj.py file I have
self.KeyField = ""
must I have a value there?

I also tried again AppWizard with your online database.

Similar results but  instead of seg fault I got
(python:32738): Gtk-CRITICAL **: IA__gtk_window_set_modal: assertion
`GTK_IS_WINDOW (window)' failed

do not know if this will help.

Also noticed Edit screen still in alphabetical order but using dEditBox in
correct fields as sample.
I think this could be because SQLite only has TEXT fields

Thanks again for your interest I am starting to get into this I think.
Allan







On 23 May 2012 15:45, Ed Leafe <[email protected]> wrote:

> On May 22, 2012, at 4:23 AM, Allan Brooke wrote:
>
> > PROBLEM 1
> >
> > On pressing the "Finish" button the terminal informed me of :-
> >
> > segmentation fault(core dumped)
> >
> > App(wiz) started and appeared to work was able to select records etc.
>
>         This happens in some cases when objects are being destroyed during
> app shutdown that other objects still reference and try to interact with.
> It seems to be dependent both on OS and wxPython version. I wish there was
> a way to research this from the segfault.
>
> > On selecting EditClient > editing WorkTel a string value in the database
> > and pressing the Save Button
> >
> > 2012-05-22 11:12:24 - ERROR - Error in scanKeys of ?: No field specified
> > for seek()
> > Traceback (most recent call last):
>         [snip]
> >  File "/home/allan/dabo/dabo/biz/dBizobj.py", line 924, in scanKeys
> >    if self.locate(key, self.KeyField):
> >  File "/home/allan/dabo/dabo/biz/dBizobj.py", line 1567, in locate
> >    ret = self._CurrentCursor.locate(val, fld, caseSensitive, movePointer)
> >  File "/home/allan/dabo/dabo/db/dCursorMixin.py", line 2113, in locate
> >    recnum = self.seek(val, fld, caseSensitive=caseSensitive, near=False,
> > movePointer=movePointer)
> >  File "/home/allan/dabo/dabo/db/dCursorMixin.py", line 2146, in seek
> >    raise dException.FieldNotFoundException(_("No field specified for
> > seek()"))
> > dabo.dException.FieldNotFoundException: No field specified for seek()
>
>
>         Based on this, it appears that there is no KeyField specified for
> one of your bizobjs. Can you verify that KeyField is set for each bizobj in
> your app?
>
>
> -- Ed Leafe
>
>
>
> _______________________________________________
> 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/[email protected]
>


--- 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/CANjKA-=q8yLq+rdRW8hO4dJnRMm8Rgh0QGP_zKOSKF9unMU2=a...@mail.gmail.com

Reply via email to