[dabo-users] Pycon Tutorial problem

2010-11-17 Thread Carey Gagnon
Pertinent info: Platform: Win Python Version: 2.6.5 on win32 Dabo Version: Version 0.9.3; Revision ~6190 UI Version: 2.8.11.0 on wxMSW I'm using the svn version Pycon Hours tutorial to learn a few things. When I run the pre made app and add a record, the Client info is not updated in the grid. All

Re: [dabo-users] PyCon Tutorial - Adding the Billing Grid

2010-08-26 Thread Henning Hraban Ramm
Am 2010-08-26 um 16:09 schrieb Adrian Klaver: > For the record the below is the code in dbSQLite.py that handles > boolean values. > > def formatForQuery(self, val, fieldType=None): >if isinstance(val, bool): > return ustr(int(val)) >else: > return super(SQLite, self).formatForQ

Re: [dabo-users] Pycon Tutorial - Make Data Entry Form

2010-08-26 Thread M. Milanuk
On 08/26/2010 04:16 AM, Ed Leafe wrote: > On Aug 26, 2010, at 12:35 AM, M. Milanuk wrote: > >> For starters, I guess, the modifications to def afterInitAll(self): >> threw me for a loop. Mainly because I'd followed the whole bit with >> specifying the RegID for dDropdownList as 'ClientList', then

Re: [dabo-users] PyCon Tutorial - Adding the Billing Grid

2010-08-26 Thread Paul McNett
On 8/26/10 7:09 AM, Adrian Klaver wrote: > On Thursday 26 August 2010 7:01:52 am Paul McNett wrote: >> On 8/26/10 5:07 AM, Ed Leafe wrote: >>> On Aug 26, 2010, at 8:03 AM, Henning Hraban Ramm wrote: >> SQLite doesn't know a real Boolean type, but uses integers. >> The SQLite backend should

Re: [dabo-users] PyCon Tutorial - Adding the Billing Grid

2010-08-26 Thread Adrian Klaver
On Thursday 26 August 2010 7:01:52 am Paul McNett wrote: > On 8/26/10 5:07 AM, Ed Leafe wrote: > > On Aug 26, 2010, at 8:03 AM, Henning Hraban Ramm wrote: > SQLite doesn't know a real Boolean type, but uses integers. > The SQLite backend should take care of that - seems like it doesn't. >

Re: [dabo-users] PyCon Tutorial - Adding the Billing Grid

2010-08-26 Thread Paul McNett
On 8/26/10 5:07 AM, Ed Leafe wrote: > On Aug 26, 2010, at 8:03 AM, Henning Hraban Ramm wrote: > SQLite doesn't know a real Boolean type, but uses integers. The SQLite backend should take care of that - seems like it doesn't. >>> >>> Being fairly wet-behind-the-ears on this stuff... which

Re: [dabo-users] PyCon Tutorial - Adding the Billing Grid

2010-08-26 Thread Ed Leafe
On Aug 26, 2010, at 8:03 AM, Henning Hraban Ramm wrote: >>> SQLite doesn't know a real Boolean type, but uses integers. >>> The SQLite backend should take care of that - seems like it doesn't. >> >> Being fairly wet-behind-the-ears on this stuff... which backend are >> you >> referring to? sql

Re: [dabo-users] PyCon Tutorial - Adding the Billing Grid

2010-08-26 Thread Henning Hraban Ramm
Am 2010-08-26 um 00:11 schrieb M. Milanuk: Are you by chance using sqlite as a db? I am and I had to change billed=false to billed = 0 to get past that error message. >>> Interesting... that did it in Mac OS X, at least. >> >> SQLite doesn't know a real Boolean type, but uses integers. >

Re: [dabo-users] Pycon Tutorial - Make Data Entry Form

2010-08-26 Thread Ed Leafe
On Aug 26, 2010, at 12:35 AM, M. Milanuk wrote: > For starters, I guess, the modifications to def afterInitAll(self): > threw me for a loop. Mainly because I'd followed the whole bit with > specifying the RegID for dDropdownList as 'ClientList', then referencing > it as self.ClientList... with

[dabo-users] Pycon Tutorial - Make Data Entry Form

2010-08-25 Thread M. Milanuk
me again. I had everything working more or less without complaints up until the beginning of this section. Now... I'm so turned around I don't even know where to begin. For starters, I guess, the modifications to def afterInitAll(self): threw me for a loop. Mainly because I'd followed the

Re: [dabo-users] PyCon Tutorial - Adding the Billing Grid

2010-08-25 Thread M. Milanuk
On 8/23/2010 7:51 AM, Henning Hraban Ramm wrote: > 2010/8/23 Monte Milanuk : >>> Are you by chance using sqlite as a db? I am and I had to change >>> billed=false to billed = 0 to get past that error message. >> Interesting... that did it in Mac OS X, at least. > > SQLite doesn't know a real Bool

Re: [dabo-users] PyCon Tutorial - Adding the Billing Grid

2010-08-23 Thread Jacek Kałucki
Użytkownik M. Milanuk napisał: > On 8/23/2010 2:32 AM, Sibylle Koczian wrote: > > >> Might really be that: try "billed = False" in the second last line. >> >> > > Doesn't appear so... again I copied that straight out of the tutorial > document when typing the bizobj file (perhaps a little

Re: [dabo-users] PyCon Tutorial - Adding the Billing Grid

2010-08-23 Thread Henning Hraban Ramm
2010/8/23 Monte Milanuk : >> Are you by chance using sqlite as a db?  I am and I had to change >> billed=false to billed = 0 to get past that error message. > Interesting... that did it in Mac OS X, at least. SQLite doesn't know a real Boolean type, but uses integers. The SQLite backend should tak

Re: [dabo-users] PyCon Tutorial - Adding the Billing Grid

2010-08-23 Thread Monte Milanuk
Jim Byrnes writes: > > Are you by chance using sqlite as a db? I am and I had to change > billed=false to billed = 0 to get past that error message. > Interesting... that did it in Mac OS X, at least. I'll check on the one I'm working on in Win Vista later. Last night I tried renaming the

Re: [dabo-users] PyCon Tutorial - Adding the Billing Grid

2010-08-23 Thread Jim Byrnes
M. Milanuk wrote: > Been banging my head on the wall on this one for a while... started over > from scratch once just to be sure. > > At the tail end of the 'Adding the Billing Grid' section of the PyCon > Tutorial, where we go in and edit the HoursBizobj.py file to add the > join between the hours

Re: [dabo-users] PyCon Tutorial - Adding the Billing Grid

2010-08-23 Thread M. Milanuk
On 8/23/2010 2:32 AM, Sibylle Koczian wrote: > Might really be that: try "billed = False" in the second last line. > Doesn't appear so... again I copied that straight out of the tutorial document when typing the bizobj file (perhaps a little too faithfully) but in any event, I changed as you su

Re: [dabo-users] PyCon Tutorial - Adding the Billing Grid

2010-08-23 Thread Sibylle Koczian
Am 23.08.2010 06:53, schrieb M. Milanuk: > Been banging my head on the wall on this one for a while... started over > from scratch once just to be sure. > > At the tail end of the 'Adding the Billing Grid' section of the PyCon > Tutorial, where we go in and edit the HoursBizobj.py file to add the >

[dabo-users] PyCon Tutorial - Adding the Billing Grid

2010-08-22 Thread M. Milanuk
Been banging my head on the wall on this one for a while... started over from scratch once just to be sure. At the tail end of the 'Adding the Billing Grid' section of the PyCon Tutorial, where we go in and edit the HoursBizobj.py file to add the join between the hours and clients table... things

Re: [dabo-users] PyCon Tutorial - Creating the Many-to-Many Relationship between Recipes & Categories

2010-08-16 Thread Paul McNett
On 8/16/10 1:40 PM, M. Milanuk wrote: > On 8/16/2010 7:25 AM, Paul McNett wrote: >> The latter one instantiates the Recipes bizobj, and binds it to the local >> name >> bizRecipes. It then adds the instance to the form (self.addBizobj). The >> former >> (tutorial) version does this in one line, a

Re: [dabo-users] PyCon Tutorial - Creating the Many-to-Many Relationship between Recipes & Categories

2010-08-16 Thread M. Milanuk
On 8/16/2010 7:25 AM, Paul McNett wrote: > The latter one instantiates the Recipes bizobj, and binds it to the local > name > bizRecipes. It then adds the instance to the form (self.addBizobj). The > former > (tutorial) version does this in one line, and doesn't bother binding it to a > local

Re: [dabo-users] PyCon Tutorial - Creating the Many-to-Many Relationship between Recipes & Categories

2010-08-16 Thread Paul McNett
On 8/12/10 10:38 PM, M. Milanuk wrote: > So... I'm progressing through the Appwizard portion of the tutorial, and > I'm at the point where I'm editing ui/FrmRecipes.py (I think, it kinda > changes from one file to another in there without a lot of warning), and > I'm seeing this in the tutorial doc

[dabo-users] PyCon Tutorial - Creating the Many-to-Many Relationship between Recipes & Categories

2010-08-12 Thread M. Milanuk
So... I'm progressing through the Appwizard portion of the tutorial, and I'm at the point where I'm editing ui/FrmRecipes.py (I think, it kinda changes from one file to another in there without a lot of warning), and I'm seeing this in the tutorial document: 24 def afterInit(self): 25 if not

Re: [dabo-users] Pycon Tutorial validateRecord() Not Returning Message

2010-04-30 Thread Jeff Johnson
On 4/30/2010 12:30 PM, Ed Leafe wrote: > On Apr 30, 2010, at 3:25 PM, Jeff Johnson wrote: > >> Everything always works on Linux. What's the fun in that? ;^) > > Oh, Linux has its own problems. It's just that you can actually fix > them if you know what you're doing! > > > -- Ed Leafe > > I

Re: [dabo-users] Pycon Tutorial validateRecord() Not Returning Message

2010-04-30 Thread Ed Leafe
On Apr 30, 2010, at 3:25 PM, Jeff Johnson wrote: > Everything always works on Linux. What's the fun in that? ;^) Oh, Linux has its own problems. It's just that you can actually fix them if you know what you're doing! -- Ed Leafe ___ Post

Re: [dabo-users] Pycon Tutorial validateRecord() Not Returning Message

2010-04-30 Thread Jeff Johnson
On 4/30/2010 12:13 PM, Uwe Grauer wrote: > Jeff Johnson wrote: >> >> Ok. What are you guys trying to do to me?!? I started working on the >> tutorial today and everything works fine. No changes whatsoever except >> shutting down my computer and starting it up today. >> >> Oh well, back to work.

Re: [dabo-users] Pycon Tutorial validateRecord?= ()=?iso-8859-1?q? Not Returning M essage

2010-04-30 Thread John
On Friday 30 April 2010 12:20:02 pm Ed Leafe wrote: > On Apr 30, 2010, at 3:13 PM, Uwe Grauer wrote: > > When working on Windows a Reboot can cure a lot of Problems. > > Next time you see a problem - try a Reboot. ;-) > > http://www.ubersoft.net/comic/hd/2010/04/definition-insanity > > ( -or- http:

Re: [dabo-users] Pycon Tutorial validateRecord() Not Returning Message

2010-04-30 Thread Ed Leafe
On Apr 30, 2010, at 3:13 PM, Uwe Grauer wrote: > When working on Windows a Reboot can cure a lot of Problems. > Next time you see a problem - try a Reboot. ;-) http://www.ubersoft.net/comic/hd/2010/04/definition-insanity ( -or- http://j.mp/c1WgJn ) -- Ed Leafe _

Re: [dabo-users] Pycon Tutorial validateRecord?= ()=?iso-8859-1?q? Not Returning M essage

2010-04-30 Thread John
On Friday 30 April 2010 12:13:51 pm Uwe Grauer wrote: > Jeff Johnson wrote: > > Ok. What are you guys trying to do to me?!? I started working on the > > tutorial today and everything works fine. No changes whatsoever except > > shutting down my computer and starting it up today. > > > > Oh well,

Re: [dabo-users] Pycon Tutorial validateRecord() Not Returning Message

2010-04-30 Thread Uwe Grauer
Jeff Johnson wrote: > > Ok. What are you guys trying to do to me?!? I started working on the > tutorial today and everything works fine. No changes whatsoever except > shutting down my computer and starting it up today. > > Oh well, back to work. > > Thanks! > When working on Windows a Re

Re: [dabo-users] Pycon Tutorial validateRecord() Not Returning Message

2010-04-30 Thread Jeff Johnson
On 4/29/2010 2:53 PM, Jeff Johnson wrote: > On 4/29/2010 2:43 PM, Ed Leafe wrote: >> On Apr 29, 2010, at 5:33 PM, Jeff Johnson wrote: >> Maybe I can answer my own question. I am connecting to the data on the dabo site which you probably don't want me mucking with. But shouldn't it

Re: [dabo-users] Pycon Tutorial validateRecord() Not Returning Message

2010-04-29 Thread Jeff Johnson
On 4/29/2010 2:43 PM, Ed Leafe wrote: > On Apr 29, 2010, at 5:33 PM, Jeff Johnson wrote: > >>> Maybe I can answer my own question. I am connecting to the data on the >>> dabo site which you probably don't want me mucking with. But shouldn't >>> it give me the validation errors? >>> >> I verified

Re: [dabo-users] Pycon Tutorial validateRecord() Not Returning Message

2010-04-29 Thread Ed Leafe
On Apr 29, 2010, at 5:33 PM, Jeff Johnson wrote: >> Maybe I can answer my own question. I am connecting to the data on the >> dabo site which you probably don't want me mucking with. But shouldn't >> it give me the validation errors? >> > I verified that validateField fires for each field but v

Re: [dabo-users] Pycon Tutorial validateRecord() Not Returning Message

2010-04-29 Thread Jeff Johnson
On 4/29/2010 1:53 PM, Jeff Johnson wrote: > On 4/29/2010 11:40 AM, Jeff Johnson wrote: >> I am at the section where we are validating the record. When I click >> save on a new record, there is no message and it adds a blank record >> with a date to the cursor. When I close the form and reopen it,

Re: [dabo-users] Pycon Tutorial validateRecord() Not Returning Message

2010-04-29 Thread Jeff Johnson
On 4/29/2010 11:40 AM, Jeff Johnson wrote: > I am at the section where we are validating the record. When I click > save on a new record, there is no message and it adds a blank record > with a date to the cursor. When I close the form and reopen it, the > empty records are gone. I have closely

[dabo-users] Pycon Tutorial validateRecord() Not Returning Message

2010-04-29 Thread Jeff Johnson
I am at the section where we are validating the record. When I click save on a new record, there is no message and it adds a blank record with a date to the cursor. When I close the form and reopen it, the empty records are gone. I have closely inspected the code and it matches the downloade

Re: [dabo-users] Pycon Tutorial customize AppWizard problem

2010-04-06 Thread jvandal
I am using Crimson Editor and I created syntax errors. Now I can run the report. jvandal wrote: > > Page 26 -29 I try to run GrdRecipes.py and I get the flash as it's > running and then it goes back to the command line. I don't see anything > that points to my error. > What gives? > -- View

[dabo-users] Pycon Tutorial customize AppWizard problem

2010-04-06 Thread jvandal
Page 26 -29 I try to run GrdRecipes.py and I get the flash as it's running and then it goes back to the command line. I don't see anything that points to my error. What gives? -- View this message in context: http://old.nabble.com/Pycon-Tutorial-customize-AppWizard-problem-tp28160341p28160341.h

Re: [dabo-users] PyCon Tutorial

2010-04-06 Thread Ricardo Aráoz
Paul McNett wrote: > On 4/6/10 1:04 PM, Ricardo Aráoz wrote: > >> >> What about enclosing everything between saves in a transaction, and >> having a cancel changes button which would roll it back? And it would >> make a good teaching on how to control transactions from within Dabo. >> I'd love t

Re: [dabo-users] PyCon Tutorial

2010-04-06 Thread Paul McNett
On 4/6/10 1:04 PM, Ricardo Aráoz wrote: > Paul McNett wrote: >> On 4/2/10 3:19 PM, Ricardo Aráoz wrote: >> >>> Ed Leafe wrote: >>> On Apr 2, 2010, at 3:53 PM, Ricardo Aráoz wrote: > Hi, in the PyCon Tutorial in the section "Creating the Many:Many > Relationship between R

Re: [dabo-users] PyCon Tutorial

2010-04-06 Thread Ricardo Aráoz
Paul McNett wrote: > On 4/2/10 3:19 PM, Ricardo Aráoz wrote: > >> Ed Leafe wrote: >> >>> On Apr 2, 2010, at 3:53 PM, Ricardo Aráoz wrote: >>> >>> >>> Hi, in the PyCon Tutorial in the section "Creating the Many:Many Relationship between Recipes and Categories" when adding th

Re: [dabo-users] PyCon Tutorial

2010-04-06 Thread Paul McNett
On 4/2/10 3:19 PM, Ricardo Aráoz wrote: > Ed Leafe wrote: >> On Apr 2, 2010, at 3:53 PM, Ricardo Aráoz wrote: >> >> >>> Hi, in the PyCon Tutorial in the section "Creating the Many:Many >>> Relationship between Recipes and Categories" when adding the >>> CklCategories control to the PagEditRecipes t

[dabo-users] Pycon Tutorial

2010-04-02 Thread Steve Rose
I have just added the grid to the hours form and everything works as expected. I did notice however, that there is a traceback generated by Python, whining about "ShowColumnLabels is deprecated". This doesn't seem to cause a problem with the form but you might want to address it. C:\Python25\li

Re: [dabo-users] PyCon Tutorial

2010-04-02 Thread Ricardo Aráoz
Ed Leafe wrote: > On Apr 2, 2010, at 3:53 PM, Ricardo Aráoz wrote: > > >> Hi, in the PyCon Tutorial in the section "Creating the Many:Many >> Relationship between Recipes and Categories" when adding the >> CklCategories control to the PagEditRecipes the code reads : >> >> 79 mainSizer.i

Re: [dabo-users] PyCon Tutorial

2010-04-02 Thread Ed Leafe
On Apr 2, 2010, at 3:53 PM, Ricardo Aráoz wrote: > Hi, in the PyCon Tutorial in the section "Creating the Many:Many > Relationship between Recipes and Categories" when adding the > CklCategories control to the PagEditRecipes the code reads : > > 79 mainSizer.insert(0, gs, 1, "expand", b

[dabo-users] PyCon Tutorial

2010-04-02 Thread Ricardo Aráoz
Hi, in the PyCon Tutorial in the section "Creating the Many:Many Relationship between Recipes and Categories" when adding the CklCategories control to the PagEditRecipes the code reads : 79 mainSizer.insert(0, gs, 1, "expand", border=20, borderSides=("top", "bottom", "left")) I think

Re: [dabo-users] Pycon Tutorial dropdownlist problem

2010-04-01 Thread Ed Leafe
On Apr 1, 2010, at 9:02 PM, Steve Rose wrote: > After modifying the following lines of the tutorial code, I was finally able > to make the dropdownlist display its data correctly. > Here are the changes I made to the afterInitAll method to get it work: > > def afterInitAll(self): > ###client

[dabo-users] Pycon Tutorial dropdownlist problem

2010-04-01 Thread Steve Rose
Thanks for pointing out the typo in my debugging. Now I can see that the form knows about the clientBizobj. I cut and pasted in the code from the tutorial for the afterInitAll of the dropdownlist and also the getNamesAndValues method for the ClientBizobj. When run, the form opened with all cont

Re: [dabo-users] Pycon Tutorial dropdownlist problem

2010-04-01 Thread Ed Leafe
On Apr 1, 2010, at 5:42 PM, Steve Rose wrote: > bzc = self.getBizobj('client') > print 'bzc: ', bzc > ### ---> prints: None > > The form didn't seem to know about the clientBizobj, so I checked the > following: > In my bz folder I have ClientBizobj.py containing Class ClientBizobj usi

[dabo-users] Pycon Tutorial dropdownlist problem

2010-04-01 Thread Steve Rose
First, please note that I have hand coded my forms for awhile, so I'm rusty on using the CD. Using the revised Pycon Tutorial, I tried to get the dropdownlist control working. I kept getting an error message at runtime that there was no method called "getNamesAndKeys". I replaced the dropdown's af

Re: [dabo-users] Pycon Tutorial DropDownList question

2010-03-31 Thread Ed Leafe
On Mar 31, 2010, at 7:23 PM, Steve Rose wrote: > Should that section of the tutorial be revised or, as a rookie, am I missing > something? The tutorial has been revised. Thanks for pointing that out! -- Ed Leafe ___ Post Messages to: Dabo-

Re: [dabo-users] Pycon Tutorial DropDownList question

2010-03-31 Thread Ed Leafe
On Mar 31, 2010, at 7:23 PM, Steve Rose wrote: > I was following along in the tutorial with no problems until I got to the > section on setting up the Client dropdownlist where you wrote: > > "Select the control in the code editing window, and select the afterInit() > method. Add the following co

[dabo-users] Pycon Tutorial DropDownList question

2010-03-31 Thread Steve Rose
I was following along in the tutorial with no problems until I got to the section on setting up the Client dropdownlist where you wrote: "Select the control in the code editing window, and select the afterInit() method. Add the following code to that method: def getNamesAndKeys(self): """Retu

Re: [dabo-users] PyCon Tutorial

2010-03-25 Thread Ricardo Aráoz
Ed Leafe wrote: > On Mar 24, 2010, at 10:12 AM, Ricardo Aráoz wrote: > > >> But as far as I can see there is no panel creation (no dPanel) just a >> form with a label. Either the code or the method call order should >> probably be changed. >> Is this correct? >> > > > The sentences im

Re: [dabo-users] PyCon Tutorial

2010-03-25 Thread Ed Leafe
On Mar 24, 2010, at 10:12 AM, Ricardo Aráoz wrote: > But as far as I can see there is no panel creation (no dPanel) just a > form with a label. Either the code or the method call order should > probably be changed. > Is this correct? The sentences immediately preceding the event listing

[dabo-users] PyCon Tutorial

2010-03-24 Thread Ricardo Aráoz
Hi, in the "Developing With Dabo" chapter, "Creating a Simple Application". After the code of the "HelloPyConForm" you explay the method call order : """ 1. form creation 2. form.afterInit() 1. editbox creation 2. editbox after