Re: [dabo-users] Dabo-users Digest, Vol 134, Issue 2
It's a long story, but I had to revert to Dabo 0.9.4 from 0.9.9 due to a problem that developed with the dTextBox control when trying to do regex searches on a database. Short story, the searches became much slower under 0.9.9. If it weren't for that, I would be running the latest version. Here's the traceback when I inserted the print 'VAL ', val statement: (Did the same on a Win 7 system with no errors) and got the the same 'VAL' value as the Win 10 machine. VAL C:/aaa/DaboCode/Calbirds/CountyTotalsReport1.rfxml Traceback (most recent call last): File "C:\Python27\lib\site-packages\dabo-0.9.4-py2.7.egg\dabo\ui\uiwx\dMenuItem.py", line 58, in __onWxHit self.raiseEvent(dEvents.Hit, evt) File "C:\Python27\lib\site-packages\dabo-0.9.4-py2.7.egg\dabo\ui\uiwx\dPemMixin.py", line 1045, in raiseEvent super(dPemMixin, self).raiseEvent(eventClass, nativeEvent, *args, **kwargs) File "C:\Python27\lib\site-packages\dabo-0.9.4-py2.7.egg\dabo\lib\eventMixin.py", line 81, in raiseEvent bindingFunction(event) File "CountyBirds_Paged17.py", line 179, in countyReportsHit self.printCountyTotals() File "CountyBirds_Paged17.py", line 209, in printCountyTotals rw.ReportFormFile = "C:/aaa/DaboCode/Calbirds/CountyTotalsReport1.rfxml" File "C:\Python27\lib\site-packages\dabo-0.9.4-py2.7.egg\dabo\lib\reportWriter.py", line 2951, in _setReportFormFile self.HomeDirectory = os.path.join(os.path.split(val)[:-1])[0] File "C:\Python27\lib\ntpath.py", line 93, in join return result_drive + result_path TypeError: cannot concatenate 'str' and 'tuple' objects Thanks, Steve Rose On Fri, Jan 13, 2017 at 8:58 AM, wrote: > Send Dabo-users mailing list submissions to > dabo-users@leafe.com > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.leafe.com/mailman/listinfo/dabo-users > or, via email, send a message with subject or body 'help' to > dabo-users-requ...@leafe.com > > You can reach the person managing the list at > dabo-users-ow...@leafe.com > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Dabo-users digest..." > > > Today's Topics: > >1. Re: ReportWriter under Windows 10 (john) >2. Re: ReportWriter under Windows 10 (Ed Leafe) >3. Re: Tab-Index of UI-Objects? (Max Vo?) >4. Re: Tab-Index of UI-Objects? (Max Vo?) >5. Re: Tab-Index of UI-Objects? (john) >6. Re: Tab-Index of UI-Objects? (Henning Hraban Ramm) >7. Re: Tab-Index of UI-Objects? (john) > > > -- > > Message: 1 > Date: Wed, 11 Jan 2017 09:08:20 -0800 > From: john > To: dabo-users@leafe.com > Subject: Re: [dabo-users] ReportWriter under Windows 10 > Message-ID: <6582cabd-5333-4287-7796-2f5ee7e50...@jfcomputer.com> > Content-Type: text/plain; charset=utf-8; format=flowed > > I'm not sure what is happening here because I can not repeat the error > on my windows 10,8, or 7 VM. Did you look at the 'self.HomeDirctory' > value (or the value of 'val')?. Maybe you have something in the > string? Any chance you have unicode? > > I just realized I'm using Dabo 2.0.0 - and you are going ask me how to > get it! I have long forgotten the git command to retrieve it. > > Contact me directly and I can forward my copy. Before you do. What > version of reportlab are you using - I'm using ReportLab 2.7. > > Johnf > > > On 01/10/2017 06:12 PM, Steve Rose wrote: > > I've been using dReportWriter successfully in Windows 7 for years. > > However, using the same program(s) in Windows 10, I am getting the > > following traceback: > > > > Traceback (most recent call last): > >File > > "C:\Python27\lib\site-packages\dabo-0.9.4-py2.7.egg\ > dabo\ui\uiwx\dControlMixin.py", > > line 27, in _onWxHit > > self.raiseEvent(dEvents.Hit, evt, *args, **kwargs) > >File > > "C:\Python27\lib\site-packages\dabo-0.9.4-py2.7.egg\ > dabo\ui\uiwx\dPemMixin.py", > > line 1045, in raiseEvent > > super(dPemMixin, self).raiseEvent(eventClass, nativeEvent, *args, > > **kwargs) > >File > > "C:\Python27\lib\site-packages\dabo-0.9.4-py2.7.egg\ > dabo\lib\eventMixin.py", > > line 81, in raiseEvent > > bindingFunction(event) > >File "C:\aaa\DaboCode\CalBirds\SelectCounty1.py", line 145, in > buttonGoHit > > rw.ReportFormFile = > > "C:/aaa/DaboCode/Calbirds/CountyMissingSpeciesReport2.rfxml" > >F
[dabo-users] ReportWriter under Windows 10
I've been using dReportWriter successfully in Windows 7 for years. However, using the same program(s) in Windows 10, I am getting the following traceback: Traceback (most recent call last): File "C:\Python27\lib\site-packages\dabo-0.9.4-py2.7.egg\dabo\ui\uiwx\dControlMixin.py", line 27, in _onWxHit self.raiseEvent(dEvents.Hit, evt, *args, **kwargs) File "C:\Python27\lib\site-packages\dabo-0.9.4-py2.7.egg\dabo\ui\uiwx\dPemMixin.py", line 1045, in raiseEvent super(dPemMixin, self).raiseEvent(eventClass, nativeEvent, *args, **kwargs) File "C:\Python27\lib\site-packages\dabo-0.9.4-py2.7.egg\dabo\lib\eventMixin.py", line 81, in raiseEvent bindingFunction(event) File "C:\aaa\DaboCode\CalBirds\SelectCounty1.py", line 145, in buttonGoHit rw.ReportFormFile = "C:/aaa/DaboCode/Calbirds/CountyMissingSpeciesReport2.rfxml" File "C:\Python27\lib\site-packages\dabo-0.9.4-py2.7.egg\dabo\lib\reportWriter.py", line 2950, in _setReportFormFile self.HomeDirectory = os.path.join(os.path.split(val)[:-1])[0] File "C:\Python27\lib\ntpath.py", line 93, in join return result_drive + result_path TypeError: cannot concatenate 'str' and 'tuple' objects --- I have no idea how to troubleshoot this. Any hints appreciated. Python 2.7.12 on Win 32 Dabo 0.9.4 Steve Rose ᐧ --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- ___ Post Messages to: Dabo-users@leafe.com Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/CADJJcm63fqoVX1sEbszOjs2Z4nYWd3is=joxobbzmjydnnc...@mail.gmail.com
[dabo-users] dMediaControl in Windows 7 64-bit
Thanks Jacek, that worked! Message: 1 Date: Sat, 22 Oct 2011 18:34:46 +0200 From: Jacek Ka?ucki To: Dabo Users list Subject: Re: [dabo-users] dMediaControl in Windows 7 64-bit Message-ID: <4ea2f0a6.6000...@rz.onet.pl> Content-Type: text/plain; charset=UTF-8; format=flowed U?ytkownik Steve Rose napisa?: > I built a simple app to test dMediaControl. It is just a form with a start > button, and when the button is hit, an mp3 file loads and plays (I am not > showing the player controls on the form). This works fine in Win XP, but in > Windows 7 64-bit, nothing plays, but in the command window I see "CHHG" and > "STOP". That output is not from my code so I assume it it from code in the > dMediaControl class. Another puzzle is that the events MediaLoaded and > MediaFinished fire in Win XP, but do not in Win 7 (and I get no traceback). > Has this class been tested in the Windows 64 bit environment? I don't know > where to begin to get to the bottom of it. Any ideas appreciated. Hi. Just add default media engine on init: dMediaControl(self, ..., szBackend=wx.media.MEDIABACKEND_WMP10) It works for me. -- Regards Jacek Ka?ucki --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- ___ Post Messages to: Dabo-users@leafe.com 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/cadjjcm5hfmf4df5ntdvoqz412pfidgwmuxwjzb4wo0pafwh...@mail.gmail.com
[dabo-users] dMediaControl in Windows 7 64-bit
I built a simple app to test dMediaControl. It is just a form with a start button, and when the button is hit, an mp3 file loads and plays (I am not showing the player controls on the form). This works fine in Win XP, but in Windows 7 64-bit, nothing plays, but in the command window I see "CHHG" and "STOP". That output is not from my code so I assume it it from code in the dMediaControl class. Another puzzle is that the events MediaLoaded and MediaFinished fire in Win XP, but do not in Win 7 (and I get no traceback). Has this class been tested in the Windows 64 bit environment? I don't know where to begin to get to the bottom of it. Any ideas appreciated. --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- ___ Post Messages to: Dabo-users@leafe.com 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/cadjjcm5fybgvyxwj0rqyvtzspkyfvok1x-xtasfwhfi6x+s...@mail.gmail.com
[dabo-users] dLabel problem after latest update
Date: Wed, 23 Feb 2011 12:55:55 -0600 From: Ed Leafe To: Dabo Users list Subject: Re: [dabo-users] dLabel problem after latest update Message-ID: <606730c3-ff61-40d2-9a3a-10d92f4f2...@leafe.com> Content-Type: text/plain; charset=utf-8 On Feb 23, 2011, at 12:19 PM, Jacek Ka?ucki wrote: > I'm finding it strange too. > I could rather expect he use drawText() to put text inside the dImage > control. > I didn't even know that is possible to put StaticText inside the > StaticBitmap. > But if it works, why not. For the very reason we're seeing here. dImage is not a container, and should not have child controls. -- Ed Leafe I changed the dLabels' parent to the panel. Now the program runs but any dLabels that have WordWrap = True do not display the wrapped text. Thanks for your efforts. I think it will be easier to change my map display so that word wrap is not needed. Steve --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- ___ Post Messages to: Dabo-users@leafe.com 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/aanlktimmoxcktq8cgdmug1shdx1x8sz7qstovb12_...@mail.gmail.com
[dabo-users] dLabel problem after latest update
Date: Tue, 22 Feb 2011 19:44:45 +0100 From: Jacek Ka?ucki To: Dabo Users list Subject: Re: [dabo-users] dLabel problem after latest update Message-ID: <4d64041d.6010...@rz.onet.pl> Content-Type: text/plain; charset=UTF-8; format=flowed U?ytkownik Steve Rose napisa?: > One of my programs crashes after the latest update. > > Platform: Win > Python Version: 2.5.1 on win32 > Dabo Version: Version 0.9.3; Revision ~6449 > UI Version: 2.8.7.1 on wxMSW > > I think I have traced it to the dLabel property WordWrap = True as the > culprit. When I eliminate that property or set it to False, the problem > goes away. > > Here is the traceback: > > ### Here it is: ---> > File "C:\aaa\DaboCode\CalBirds\ReportCalMap2.py", line 94, in afterInit > self.img.Amador = dabo.ui.dLabel(self.img,Left=273,Top=278,Width=22,Height=1 > 6,FontSize=myFontSize5,WordWrap=True,Alignment='Center',Caption="AMA") > > > File > "C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\dLabel.p > y", line 24, in __init__ > attProperties=attProperties, *args, **kwargs) > File > "C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\dPemMixi > n.py", line 189, in __init__ > self._setNameAndProperties(properties, **kwargs) > File > "C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\dPemMixi > n.py", line 226, in _setNameAndProperties > self._setProperties(properties) > File > "C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\dPemMixi > n.py", line 239, in _setProperties > self.setProperties(properties) > File > "C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\lib\propertyHelp > erMixin.py", line 216, in setProperties > _setProps(propDict) > File > "C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\lib\propertyHelp > erMixin.py", line 205, in _setProps > setter(self, _propDict[prop]) > File > "C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\dLabel.p > y", line 125, in _setWordWrap > dabo.ui.callAfter(self.Parent.layout) > AttributeError: 'dImage' object has no attribute 'layout' > Hi. It's very strange, because in Dabo only compound/container type controls has the layout method. The dImage control is neither of them. Other strangeness is that I didn't change anything in property handling code. I'm in doubt what should I do, to add the layout method to dImage class or add exception support statement to dLabel class. If I understand you code well, you are displaying label text inside your image? -- Regards Jacek Ka?ucki Yes, the dLabel is displaying text inside a dImage object. This program displays a map which has about 50 labels on it. Steve Rose --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- ___ Post Messages to: Dabo-users@leafe.com 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/aanlktinlwgxzvsagnd4sw44u-paksphfmmeco0tke...@mail.gmail.com
[dabo-users] dLabel problem after latest update
One of my programs crashes after the latest update. Platform: Win Python Version: 2.5.1 on win32 Dabo Version: Version 0.9.3; Revision ~6449 UI Version: 2.8.7.1 on wxMSW I think I have traced it to the dLabel property WordWrap = True as the culprit. When I eliminate that property or set it to False, the problem goes away. Here is the traceback: Traceback (most recent call last): File "C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line 1436 8, in lambda event: event.callable(*event.args, **event.kw) ) File "C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\dPemMixi n.py", line 337, in _afterInitAll self.afterInitAll() File "C:\aaa\DaboCode\CalBirds\ReportCalMap2.py", line 257, in afterInitAll panel = MyPanel(self) File "C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\dPanel.p y", line 265, in __init__ attProperties=attProperties, *args, **kwargs) File "C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\dPanel.p y", line 244, in __init__ properties=properties, attProperties=attProperties, *args, **kwargs) File "C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\dPanel.p y", line 35, in __init__ properties=properties, attProperties=attProperties, *args, **kwargs) File "C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\dPemMixi n.py", line 192, in __init__ self._afterInit() File "C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\dPemMixi n.py", line 328, in _afterInit self.afterInit() ### Here it is: ---> File "C:\aaa\DaboCode\CalBirds\ReportCalMap2.py", line 94, in afterInit self.img.Amador = dabo.ui.dLabel(self.img,Left=273,Top=278,Width=22,Height=1 6,FontSize=myFontSize5,WordWrap=True,Alignment='Center',Caption="AMA") File "C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\dLabel.p y", line 24, in __init__ attProperties=attProperties, *args, **kwargs) File "C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\dPemMixi n.py", line 189, in __init__ self._setNameAndProperties(properties, **kwargs) File "C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\dPemMixi n.py", line 226, in _setNameAndProperties self._setProperties(properties) File "C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\dPemMixi n.py", line 239, in _setProperties self.setProperties(properties) File "C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\lib\propertyHelp erMixin.py", line 216, in setProperties _setProps(propDict) File "C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\lib\propertyHelp erMixin.py", line 205, in _setProps setter(self, _propDict[prop]) File "C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\dLabel.p y", line 125, in _setWordWrap dabo.ui.callAfter(self.Parent.layout) AttributeError: 'dImage' object has no attribute 'layout' Steve Rose --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- ___ Post Messages to: Dabo-users@leafe.com 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/aanlktik6pwkv1nijps0ytfvk4ww3tuy7d1b1+bbv5...@mail.gmail.com
[dabo-users] Requery Not Allowed error
I have a search page in an app that I'm working on that uses the addWhere bizobj method to build a query (MySQL backend). Everything works great until I manage to run a query that returns no records. Then, a message box pops up titled "Requery Not Allowed" with the message "no records in dataset". Hitting the OK button causes a poor repaint of the form (a remnant of the message box is displayed on top of my form) then it appears that the entire dataset is requeried. If I then try to do another search that uses addWhere, the program becomes non-responsive and I have to hit a Ctrl-C on the command line to get out. So, my question is: How can I wrap that error so I don't lock up my program? Also, why should a query that returns zero records cause a lock up in the first place? Possibly I have a basic design flaw. Thanks, Steve Rose --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- ___ Post Messages to: Dabo-users@leafe.com 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/aanlktim4mrjh+xvrero9adwtul1fyjtry_a2ja9tg...@mail.gmail.com
[dabo-users] MediaCtrl?
Since I don't have svn set up and would like to see this new class in action, is there any other way to view the code? Steve Rose From: "OKB (not okblacke)" To: dabo-users@leafe.com Subject: Re: [dabo-users] MediaCtrl? Message-ID: Ed Leafe wrote: > On Dec 31, 2010, at 5:27 PM, OKB (not okblacke) wrote: > >> Is there any chance that the wx MediaCtrl (which allows >> playing >> video) will be integrated into Dabo anytime soon? If not, is it >> possible to use the wx control from within a Dabo app? > > > Wow, it was a lot easier than I thought it would be. I've just > posted the new class to svn, and it's working great (at least > on OS X). Try it out and let me know of any issues you find. Looks like it's working fine. It doesn't seem to size itself properly by default, but if I use callAfterInterval to call the scale() method it adopts the right size. Thanks a lot! Happy new year, --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- ___ Post Messages to: Dabo-users@leafe.com 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/aanlktikj0gtdh5f0lfwu+8h=6e7-ts2sgsenj-9p6...@mail.gmail.com
Re: [dabo-users] Dabo-users Digest, Vol 73, Issue 9
Message: 3 Date: Tue, 6 Jul 2010 17:42:25 -0400 From: Ed Leafe To: Dabo Users list Subject: Re: [dabo-users] Report Writer problems on new computer Message-ID: <48d887be-5eeb-46b5-9f2c-0d883827a...@leafe.com> On Jul 6, 2010, at 4:11 PM, Steve Rose wrote: > Looks like the temp pdf file is not being created for some reason. Any > suggestions on where to troubleshoot from here? If you double-click any .pdf file, does it open automatically, or do you have to pick an app to open it? Based on the error, it sounds like there is no application associated with .pdf on your system. -- Ed Leafe --- I checked the file association for pdf's and as you predicted, there was no default program for it. I set Acrobat to open pdf files and now my simple test program works and the Report Designer displays a preview. Thanks for that. However, I now find that I still can't open reports in my main application. These reports work fine on two other computers but not on the new one. This is the traceback I'm getting: Traceback (most recent call last): File "c:\python25\lib\site-packages\Dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\dMenuIte m.py", line 57, in __onWxHit self.raiseEvent(dEvents.Hit, evt) File "c:\python25\lib\site-packages\Dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\dPemMixi n.py", line 949, in raiseEvent super(dPemMixin, self).raiseEvent(eventClass, nativeEvent, *args, **kwargs) File "c:\python25\lib\site-packages\Dabo-0.9.2-py2.5.egg\dabo\lib\eventMixin.py", line 93, in raiseEvent bindingFunction(event) File "CountyBirds_Paged16.py", line 145, in countyReportsHit self.printCountyTotals() File "CountyBirds_Paged16.py", line 177, in printCountyTotals rw.ReportFormFile = "CountyTotalsReport1.rfxml" File "c:\python25\lib\site-packages\Dabo-0.9.2-py2.5.egg\dabo\lib\reportWriter .py", line 2163, in _setReportFormFile self._reportForm = self._getFormFromXML(self._reportFormXML) File "c:\python25\lib\site-packages\Dabo-0.9.2-py2.5.egg\dabo\lib\reportWriter .py", line 2006, in _getFormFromXML form = self._getFormFromXMLDict(xmldict) File "c:\python25\lib\site-packages\Dabo-0.9.2-py2.5.egg\dabo\lib\reportWriter .py", line 1973, in _getFormFromXMLDict reportObject = self._getReportObject(child["name"], formdict) File "c:\python25\lib\site-packages\Dabo-0.9.2-py2.5.egg\dabo\lib\reportWriter .py", line 1994, in _getReportObject ref = cls(parent) TypeError: 'NoneType' object is not callable The rfxml file is the same on all computers. Is there any test code I can put into reportWriter.py to try to debug this? Thanks for your great support. Steve --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- ___ Post Messages to: Dabo-users@leafe.com 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/aanlktillf5tmrtsednxxtas-dydbfzagsbm7_quut...@mail.gmail.com
[dabo-users] Report Writer problems on new computer
I installed Dabo on a new computer (Win XP Pro) and everything works fine except for reports. >From Python I can "import reportlab" successfully. To try to debug this, I set up a simple program that calls an rfxml file: import dabo from dabo.dReportWriter import dReportWriter from dabo.lib import reportUtils rw = dReportWriter() rw.ReportFormFile = "xxTest.rfxml" rw.OutputFile = f = reportUtils.getTempFile() rw.write() reportUtils.previewPDF(f) if __name__ == "__main__": app = dabo.dApp() app.start() When I run this I get the following trackback: Traceback (most recent call last): File "xxTest.py", line 15, in reportUtils.previewPDF(f) File "c:\python25\lib\site-packages\Dabo-0.9.2-py2.5.egg\dabo\lib\reportUtils.py", line 43, in previewPDF os.startfile(path) WindowsError: [Error 22] Application not found: 'c:\\docume~1\\admini~1\\locals~ 1\\temp\\tmpggwmuy.pdf' Then rfxml file was generated using ReportWriter and all I did was add a string to the Pageheader; nothing else. I also get the following traceback when I'm in the Report Designer and click on Preview: Traceback (most recent call last): File "C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line 1383 0, in lambda event: event.callable(*event.args, **event.kw) ) File "c:\python25\lib\site-packages\Dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\dPemMixi n.py", line 949, in raiseEvent super(dPemMixin, self).raiseEvent(eventClass, nativeEvent, *args, **kwargs) File "c:\python25\lib\site-packages\Dabo-0.9.2-py2.5.egg\dabo\lib\eventMixin.p y", line 93, in raiseEvent bindingFunction(event) File "C:\aaa\dabo\ide\ReportDesigner.py", line 2556, in onPageEnter self.render() File "C:\aaa\dabo\ide\ReportDesigner.py", line 2562, in render self.Form.onFilePreviewReport(None) File "C:\aaa\dabo\ide\ReportDesigner.py", line 2442, in onFilePreviewReport reportUtils.previewPDF(fname) File "c:\python25\lib\site-packages\Dabo-0.9.2-py2.5.egg\dabo\lib\reportUtils. py", line 43, in previewPDF os.startfile(path) WindowsError: [Error 22] Application not found: 'c:\\docume~1\\admini~1\\locals~ 1\\temp\\tmpgjipaz.pdf' Looks like the temp pdf file is not being created for some reason. Any suggestions on where to troubleshoot from here? Thanks, Steve Rose Platform: Win Python Version: 2.5 on win32 Dabo Version: Version 0.9.2; Revision ~5238 UI Version: 2.8.1.1 on wxMSW --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- ___ Post Messages to: Dabo-users@leafe.com 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/aanlktilcubfutgihiglzckpbin_l83mdhvqcusbwp...@mail.gmail.com
[dabo-users] Pycon Tutorial
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\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\dGrid.py:4500: D eprecationWarning: ShowColumnLabels is deprecated. Use ShowHeaders instead warnings.warn(_("ShowColumnLabels is deprecated. Use ShowHeaders instead"), De precationWarning) Traceback (most recent call last): File "C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line 1436 8, in lambda event: event.callable(*event.args, **event.kw) ) File "C:\aaa\dabo\ide\ClassDesigner.py", line 1644, in updateLayout self.PemForm.select(self._selection) File "C:\aaa\dabo\ide\ClassDesignerPemForm.py", line 220, in select lbl = "Column %s ('%s')" % (ob.Parent.Columns.index(ob)+1, ob.Caption) ValueError: list.index(x): x not in list Steve Rose --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- ___ Post Messages to: Dabo-users@leafe.com 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/l2u28cfef1c1004021618u87a5bc26jddbd568cec3c1...@mail.gmail.com
[dabo-users] Pycon Tutorial dropdownlist problem
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 controls displaying the correct data except the dropdown, which displayed no data. 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): ###clientBiz = self.getBizobj("clients") clientBiz = self.Form.getBizobj("clients") names, keys = clientBiz.getNamesAndKeys() ###self.ClientList.Choices = names self.Choices = names ###self.ClientList.Keys = keys self.Keys = keys ###self.ClientList.ValueMode = "Key" self.ValueMode = "Key" Now on to the next section. The tutorial has been excellent up to this point, by the way. Thanks, Steve Rose --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- ___ Post Messages to: Dabo-users@leafe.com 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/g2u28cfef1c1004011802mad976861u7f5bb6d9ba1b7...@mail.gmail.com
[dabo-users] Pycon Tutorial dropdownlist problem
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 afterInitAll with "pass" then after doing some debugging I found that the form (apparently) was not seeing self.clientBizobj. I put this code in the afterInitAll of the form to try to see what was going with the bizobjects: def afterInitAll(self): print 'afterInitAll' bzh = self.getBizobj('hours') print 'bzh: ', bzh ### prints: bzh: 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 using code pasted from the tutorial. Also in the bz folder is HoursBizobj.py containing Class HoursBizobj using code pasted from the tutorial. Checked both files for indentation errors, etc. and couldn't see any problems Also in the bz folder is __init__.py with the import statements for both HoursBizobj.py and ClientBizobj.py The form's createBizobjs method looks like this (pasted from the tutorial): def createBizobjs(self): hoursBizobj = self.Application.biz.HoursBizobj(self.Connection) self.addBizobj(hoursBizobj) clientBizobj = self.Application.biz.ClientBizobj(self.Connection) self.addBizobj(clientBizobj) The form's afterInit has just self.requery(). (There is not an explicit requery of clientBizobj in the tutorial) I'm at a loss as to why self.clientBizobj is not being created, or if created, why the form doesn't see the reference. Obviously I've made a blunder somewhere but I don't know what else to check. Any help appreciated. Steve Rose --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- ___ Post Messages to: Dabo-users@leafe.com 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/w2t28cfef1c1004011442saf11dcdel2283c57c8b193...@mail.gmail.com
[dabo-users] Pycon Tutorial DropDownList question
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): """Return a 2-tuple of lists of the client names and their keys. """ crs = self.getTempCursor() crs.execute("""select pkid, clientname from clients order by clientname""") ds = crs.getDataSet() # Create the lists names = [rec["clientname"] for rec in ds] keys = [rec["pkid"] for rec in ds] return (names, keys) Let's look at what this is doing: the first line asks the form for a reference to the client bizobj; it does this by passing the DataSource of the bizobj it is interested to the form's getBizobj() method." My first problem is why are we adding the getNamesAndKeys() method to the dropdownlist's afterInit()? Second, you wrote that this method was getting a ref to the client bizobj by the getBizobj() method. I must be blind as I can't see the getBizobj call. Perhaps you really meant to have the afterInit method for the dropdownlist to be something like: def afterInit(self): clientBiz = self.Form.getBizobj("clients") names, keys = clientBiz.getNamesAndKeys() Should that section of the tutorial be revised or, as a rookie, am I missing something? Steve Rose --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- ___ Post Messages to: Dabo-users@leafe.com 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/o2u28cfef1c1003311623gf8b56ce6x9a7f78b3ec12b...@mail.gmail.com
[dabo-users] Dabo and Windows 7
I solved the problem after Adrian put me on to the possible culprit. In the Python25/site-packages/win32 folder was another pywintypes.dll. I renamed it, started up various Dabo apps and they all opened without the "Entry Point Not Found" error. I did some more snooping and figured out that the error triggered on the 'import dabo' line. I wonder what subsequently occurs in that statement that needs a call to pywintypes.dll? Why does the error message come from python.exe and not Dabo? It is all way too deep for me but since things are working now, I'll just shut up and be happy. Thanks, Steve Rose --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- ___ Post Messages to: Dabo-users@leafe.com 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/28cfef1c0912271527ne55d8bbv71de2c24976a9...@mail.gmail.com
[dabo-users] Dabo and Windows 7
I've been tearing my hair out trying to get Dabo apps to work on a new Windows 7 machine. When I start any Dabo app, an error message pops up with this arcane message: python.exe - Entry Point Not Found ?PyWinLong_FromHANDLE@@YAPAU_object@@p...@z could not be located in the dynamic link library pywintypes25.dll. The thing is that on my other two XP systems, this error does not occur. Also, when I run simple python programs or wxPython programs on the Win 7 machine, no problems. Only when I run Dabo apps do I get this problem. The only difference I could see on the Win 7 machine was that it was running Python 2.5.4 and the XP's were on 2.5.1, so I installed 2.5.1 but no difference. I also reinstalled Dabo -- no help. I copied pywintypes25.dll from an XP to the Win 7, nada. It must be a Win 7 problem or a configuration - installation issue that I can't see. Any ideas would be greatly appreciated. Thanks, Steve Rose --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- ___ Post Messages to: Dabo-users@leafe.com 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/28cfef1c0912261109v24f919c1g4b19684853044...@mail.gmail.com
[dabo-users] Passing arguments to a Report
I have a report working well, however I would like to set a string's text in the PageHeader based on a selection the user made in the calling form. rw = dReportWriter() rw.ReportFormFile = "myReport.rfxml" rw.Cursor = self.ds rw.OutputFile = f = reportUtils.getTempFile() # I'd like to create a report variable or property visible to the report object about here: # rw.write() I've tried a number to things but nothing has worked so far. It is painfully obvious, no doubt. Steve Rose --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- ___ Post Messages to: Dabo-users@leafe.com 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/28cfef1c0912071641re8adce7if8454c26197bb...@mail.gmail.com
Re: [dabo-users] Dabo-users Digest, Vol 64, Issue 40
Thanks for your responses John and Adrian. When I set the textbox as a dDateTextBox it displays but the other TBs display correctly,but they are not linked to date fields plus their textboxes are derived from the dTextBox class. I checked the MySQL table structure and the field in question is definitely a DATE data type. I'm wondering if dDateTextbox is looking for a DATETIME, not a DATE? Any ideas appreciated. On Thu, Oct 29, 2009 at 9:00 AM, wrote: > Send Dabo-users mailing list submissions to >dabo-users@leafe.com > > 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 >dabo-users-requ...@leafe.com > > You can reach the person managing the list at >dabo-users-ow...@leafe.com > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Dabo-users digest..." > > > Today's Topics: > > 1. Re: Problem with dDateTextBox (Adrian Klaver) > 2. Re: Problem with dDateTextBox (John) > > > -- > > Message: 1 > Date: Thu, 29 Oct 2009 08:19:04 -0700 > From: Adrian Klaver > Subject: Re: [dabo-users] Problem with dDateTextBox > To: Dabo Users list > Message-ID: <200910290819.04853.akla...@comcast.net> > Content-Type: text/plain; charset="iso-8859-1" > > On Monday 26 October 2009 6:42:23 pm Steve Rose wrote: > > I have a form in which one of the textboxes displays a date value from a > > MySQL table. If I create the textbox like this: > > dateTB = > > > dabo.ui.dTextBox(self,RegID='dateTB',DataSource=bzs,DataField='S_Date',Widt > >h=80), the date displays correctly. However, if I try to create a textbox > > from a dDateTextBox class like this: > > dateTB = > > > dabo.ui.dDateTextBox(self,RegID='dateTB',DataSource=bzs,DataField='S_Date', > >Width=80), the textbox displays . What is different about the > > dDateTextBox class that might cause this problem? > > Is it displaying for all values in the table? > > > > > Platform: Win > > Python Version: 2.5.1 on win32 > > Dabo Version: Version 0.9.2; Revision ~5437 > > UI Version: 2.8.7.1 on wxMSW > > > > Steve Rose > > > > > > > > > -- > Adrian Klaver > akla...@comcast.net > > > > > -- > > Message: 2 > Date: Thu, 29 Oct 2009 08:27:15 -0700 > From: John > Subject: Re: [dabo-users] Problem with dDateTextBox > To: Dabo Users list > Message-ID: <200910290827.15307.jfabi...@yolo.com> > Content-Type: text/plain; charset="iso-8859-1" > > On Monday 26 October 2009 06:42:23 pm Steve Rose wrote: > > I have a form in which one of the textboxes displays a date value from a > > MySQL table. If I create the textbox like this: > > dateTB = > > > dabo.ui.dTextBox(self,RegID='dateTB',DataSource=bzs,DataField='S_Date',Widt > >h=80), the date displays correctly. However, if I try to create a textbox > > from a dDateTextBox class like this: > > dateTB = > > > dabo.ui.dDateTextBox(self,RegID='dateTB',DataSource=bzs,DataField='S_Date', > >Width=80), the textbox displays . What is different about the > > dDateTextBox class that might cause this problem? > > > > Platform: Win > > Python Version: 2.5.1 on win32 > > Dabo Version: Version 0.9.2; Revision ~5437 > > UI Version: 2.8.7.1 on wxMSW > > > > Steve Rose > > Just a guess could it be because the underlying data field(S_Date) is a > varchar and not a date field. > > Johnf > > > > > > > -- > > ___ > Dabo-users mailing list > Dabo-users@leafe.com > http://leafe.com/mailman/listinfo/dabo-users > Searchable Archives: http://leafe.com/archives/search/dabo-users > > > End of Dabo-users Digest, Vol 64, Issue 40 > ** > --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- ___ Post Messages to: Dabo-users@leafe.com 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/28cfef1c0910291039o1b58bb59wf0aaa38cbc1ed...@mail.gmail.com
[dabo-users] Problem with dDateTextBox
I have a form in which one of the textboxes displays a date value from a MySQL table. If I create the textbox like this: dateTB = dabo.ui.dTextBox(self,RegID='dateTB',DataSource=bzs,DataField='S_Date',Width=80), the date displays correctly. However, if I try to create a textbox from a dDateTextBox class like this: dateTB = dabo.ui.dDateTextBox(self,RegID='dateTB',DataSource=bzs,DataField='S_Date',Width=80), the textbox displays . What is different about the dDateTextBox class that might cause this problem? Platform: Win Python Version: 2.5.1 on win32 Dabo Version: Version 0.9.2; Revision ~5437 UI Version: 2.8.7.1 on wxMSW Steve Rose --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- ___ Post Messages to: Dabo-users@leafe.com 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/28cfef1c0910261842s5a88f65dtba08cbd3cf3e1...@mail.gmail.com
[dabo-users] Class Designer Add From Data Environment problem
Deleted and re-installed and now working. Thanks. Still not sure why the automatic web updates don't keep my Dabo files current but if I get this problem again I will just delete and re-install -- it is not that difficult. Thanks again. Steve Rose --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- ___ Post Messages to: Dabo-users@leafe.com 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/28cfef1c0908271317i271e80c1y83b530a377406...@mail.gmail.com
[dabo-users] Class Designer Add From Data Environment problem
After my last post I saw that Uwe also had a suggestion which I missed. His advice was to install 9.2. I went to the Dabo downloads site and got dabo-0.9.2-win.zip. Installed this but when I check the Help, About it shows: Platform: Win Python Version: 2.5.1 on win32 Dabo Version: Version 0.9.1; Revision ~5105 UI Version: 2.8.7.1 on wxMSW So it looks like I'm getting 9.1 even though the link on the download site reads 9.2. Steve Rose --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- ___ Post Messages to: Dabo-users@leafe.com 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/28cfef1c0908261239y69fb2e39jced6a66e65269...@mail.gmail.com
[dabo-users] Class Designer Add From Data Environment problem
No Ed, the data is in MySQL tables. > I've been hand coding my forms but now I am trying to use the CD. > Hit a > snag when I tried to add controls from data environment (I right > clicked on > the panel surface in the CD, clicked on Add Controls from Data > Environment). > On the Select Data Connection step, when I click on any connection > file > (even "sample"), then hit the Next button, nothing happens (I am not > taken > to the next page). > I know the cnxml files are good because they work properly in the > hand coded > forms. Any help appreciated. > Platform: Win > Python Version: 2.5.1 on win32 > Dabo Version: Version 0.9.1; Revision ~5105 > UI Version: 2.8.7.1 on wxMSW Hmmm... sounds like it might be a pathing problem: is your data in an SQLite file? -- Ed Leafe --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- ___ Post Messages to: Dabo-users@leafe.com 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/28cfef1c0908261224h11a5b278xc843620dfa904...@mail.gmail.com
[dabo-users] Class Designer Add From Data Environment problem
I've been hand coding my forms but now I am trying to use the CD. Hit a snag when I tried to add controls from data environment (I right clicked on the panel surface in the CD, clicked on Add Controls from Data Environment). On the Select Data Connection step, when I click on any connection file (even "sample"), then hit the Next button, nothing happens (I am not taken to the next page). I know the cnxml files are good because they work properly in the hand coded forms. Any help appreciated. Platform: Win Python Version: 2.5.1 on win32 Dabo Version: Version 0.9.1; Revision ~5105 UI Version: 2.8.7.1 on wxMSW Steve Rose --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- ___ Post Messages to: Dabo-users@leafe.com 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/28cfef1c0908251630m7a50521dp273b6bb5cbb88...@mail.gmail.com
Re: [dabo-users] Dabo-users Digest, Vol 62, Issue 26
Here is what what happens when the CD crashes trying to open: I navigate to folder \dabo\ide. Then enter "python ClassDesigner.py". A form then opens titled New Class with a label caption "Select the class to create". A dropdown has Form as the default. I then click OK and the CD flashes on the screen then disappears, leaving this in the log: C:\aaa\dabo\ide>python ClassDesigner.py Traceback (most recent call last): File "ClassDesigner.py", line 4144, in clsDes = ClassDesigner(f) File "ClassDesigner.py", line 186, in __init__ frm._initialStateDict = frm.getDesignerDict() File "C:\aaa\dabo\ide\ClassDesignerComponents.py", line 91 defVals = self.Controller.getDefaultValues(self) File "ClassDesigner.py", line 1474, in getDefaultValues ret[prop] = eval("obj.%s" % prop) File "", line 1, in AttributeError: 'DesForm' object has no attribute 'CxnFile' Steve Rose On Sun, Aug 16, 2009 at 9:00 AM, wrote: > Send Dabo-users mailing list submissions to >dabo-users@leafe.com > > 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 >dabo-users-requ...@leafe.com > > You can reach the person managing the list at >dabo-users-ow...@leafe.com > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Dabo-users digest..." > > > Today's Topics: > > 1. Dabo error (Steve Rose) > 2. Re: Dabo error (Ed Leafe) > > > -- > > Message: 1 > Date: Sat, 15 Aug 2009 17:01:11 -0700 > From: Steve Rose > Subject: [dabo-users] Dabo error > To: dabo-users@leafe.com > Message-ID: ><28cfef1c0908151701o118ae75bi395caaa3719bd...@mail.gmail.com> > Content-Type: text/plain; charset=UTF-8 > > I've had the same problem as Kevin with the CD for some time now. This > also > cropped up maybe six months ago but was fixed for a time by an update, then > several months ago it broke again. I inquired about the error a few weeks > ago and as I recall the advice was to install SVN (which I would like to > avoid). Not sure why the web updates haven't fixed it. > Platform: Win > Python Version: 2.5.1 on win32 > Dabo Version: Version 0.9.1; Revision ~5105 > UI Version: 2.8.7.1 on wxMSW > > Steve Rose > > > --- StripMime Report -- processed MIME parts --- > multipart/alternative > text/plain (text body -- kept) > text/html > --- > > > > -- > > Message: 2 > Date: Sat, 15 Aug 2009 20:15:48 -0400 > From: Ed Leafe > Subject: Re: [dabo-users] Dabo error > To: Dabo Users list > Message-ID: <2af7dab0-4d9c-452f-9dd4-b75e041c9...@leafe.com> > Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes > > On Aug 15, 2009, at 8:01 PM, Steve Rose wrote: > > > I've had the same problem as Kevin with the CD for some time now. > > This also > > cropped up maybe six months ago but was fixed for a time by an > > update, then > > several months ago it broke again. I inquired about the error a few > > weeks > > ago and as I recall the advice was to install SVN (which I would > > like to > > avoid). Not sure why the web updates haven't fixed it. > >Again, it would really be helpful if you could explain precisely > when > this error occurs. > > > -- Ed Leafe > > > > > > > > -- > > ___ > Dabo-users mailing list > Dabo-users@leafe.com > http://leafe.com/mailman/listinfo/dabo-users > Searchable Archives: http://leafe.com/archives/search/dabo-users > > > End of Dabo-users Digest, Vol 62, Issue 26 > ** > --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- ___ Post Messages to: Dabo-users@leafe.com 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/28cfef1c0908161636i37af4a99o488db644c9ed8...@mail.gmail.com
[dabo-users] Dabo error
I've had the same problem as Kevin with the CD for some time now. This also cropped up maybe six months ago but was fixed for a time by an update, then several months ago it broke again. I inquired about the error a few weeks ago and as I recall the advice was to install SVN (which I would like to avoid). Not sure why the web updates haven't fixed it. Platform: Win Python Version: 2.5.1 on win32 Dabo Version: Version 0.9.1; Revision ~5105 UI Version: 2.8.7.1 on wxMSW Steve Rose --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- ___ Post Messages to: Dabo-users@leafe.com 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/28cfef1c0908151701o118ae75bi395caaa3719bd...@mail.gmail.com
[dabo-users] More on passing information between forms
Thanks. I got it working after fixing an incorrect DataSource reference to the TextBox. Nothing showed in the error log but it somehow stopped the keyup event from showing up. Now I can do an incremental search on a grid in a dialog, return it to the main form and process it. Very nice. Steve Rose --- On Thursday 13 August 2009 03:25:58 pm Steve Rose wrote: > I am trying to design a child search form called from a parent form. I have > been able to design a dialog form to which I can pass the parent form's > bizojb and I can get return values from the dialog back to the parent form. > The parent and child can communicate fine. The problem I can't overcome is > this: I want to do a regex search in the child dialog form but to do that I > need to capture the KeyUp events from a textbox in the dialog. These events > don't seem to fire when type in the textbox and I assume it is because of > the modal nature of a dialog. It looks like I can't use a dialog or maybe I > am completely off base. Any advice on how to design a regex search form > that can communicate with its parent? > Steve Rose I have forgotten are you hand coding or using ClassDesigner to create the dialog?. To best of my knowledge controlling a dTextBox key events works the same in Dialog or a Form. So show us the code you are using to get the key strokes in the dialog. If this a special case dialog and you find no other way pass the dialog a reference to the calling form. Try something like this: myDialog = dabo.ui.dDialog(self, .) myDialog.CallingForm = self Now myDialog.CallingForm can be used for whatever you see as required. or Any of the other methods of passing data to a dialog --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- ___ Post Messages to: Dabo-users@leafe.com 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/28cfef1c0908141634v28f1692cvd142e053fce7b...@mail.gmail.com
[dabo-users] More on passing information between forms
I am trying to design a child search form called from a parent form. I have been able to design a dialog form to which I can pass the parent form's bizojb and I can get return values from the dialog back to the parent form. The parent and child can communicate fine. The problem I can't overcome is this: I want to do a regex search in the child dialog form but to do that I need to capture the KeyUp events from a textbox in the dialog. These events don't seem to fire when type in the textbox and I assume it is because of the modal nature of a dialog. It looks like I can't use a dialog or maybe I am completely off base. Any advice on how to design a regex search form that can communicate with its parent? Steve Rose --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- ___ Post Messages to: Dabo-users@leafe.com 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/28cfef1c0908131525s11bddfd6pcb6b974377f2a...@mail.gmail.com
[dabo-users] Class Designer not opening (again)
I am not trying to open an existing cdxml file. I get the problem whether I run "dabo\ide\ClassDesigner.py" from the command line, or click on the CD shortcut on my desktop. The only .cdxml files in that folder are PredEditor and mover. Hope that helps. --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- ___ Post Messages to: Dabo-users@leafe.com 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/28cfef1c0908020913p7a4376fbjfeef25f398dc5...@mail.gmail.com
[dabo-users] Class Designer not opening (again)
I meant to post the version info, sorry: Here it is: Platform: Win Python Version: 2.5.1 on win32 Dabo Version: Version 0.9.1; Revision ~5105 UI Version: 2.8.7.1 on wxMSW Thanks, Steve Rose --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- ___ Post Messages to: Dabo-users@leafe.com 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/28cfef1c0908011403n70be376emf58082ac1e52f...@mail.gmail.com
[dabo-users] Class Designer not opening (again)
Had this problem several months ago but it went away after an update. Now it's back. I start the CD and get a form titled New Form where I then select which type of class to create. I then click OK and it crashes with the following trackback: Traceback (most recent call last): File "C:\aaa\dabo\ide\ClassDesigner.py", line 4144, in clsDes = ClassDesigner(f) File "C:\aaa\dabo\ide\ClassDesigner.py", line 186, in __init__ frm._initialStateDict = frm.getDesignerDict() File "C:\aaa\dabo\ide\ClassDesignerComponents.py", line 91, in getDesignerDict defVals = self.Controller.getDefaultValues(self) File "C:\aaa\dabo\ide\ClassDesigner.py", line 1474, in getDefaultValues ret[prop] = eval("obj.%s" % prop) File "", line 1, in AttributeError: 'DesForm' object has no attribute 'CxnFile' I seem to be the only one able to invoke this behavior. Steve Rose --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- ___ Post Messages to: Dabo-users@leafe.com 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/28cfef1c0907291538t8226ab4uf02c13eba786f...@mail.gmail.com
[dabo-users] Class Designer fails to open
I hadn't used the CD in quite sometime. Today I tried but was only able to get the opening window "New Class" where I clicked OK to design a new form. A second later the designer surface flashed on screen but then went away. Here is the traceback: Traceback (most recent call last): File "ClassDesigner.py", line 4144, in clsDes = ClassDesigner(f) File "ClassDesigner.py", line 186, in __init__ frm._initialStateDict = frm.getDesignerDict() File "C:\aaa\dabo\ide\ClassDesignerComponents.py", line 91, in getDesignerDict defVals = self.Controller.getDefaultValues(self) File "ClassDesigner.py", line 1474, in getDefaultValues ret[prop] = eval("obj.%s" % prop) File "", line 1, in AttributeError: 'DesForm' object has no attribute 'CxnFile' Platform: Win Python Version: 2.5.1 on win32 Dabo Version: Version 0.9.1; Revision ~5105 UI Version: 2.8.7.1 on wxMSW I am not using Subversion. Thanks, Steve Rose --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- ___ Post Messages to: Dabo-users@leafe.com 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/28cfef1c0905241321v6161126bjb64f0fd815fff...@mail.gmail.com
[dabo-users] Suppressing "Requerying dataset" message and more
Using lockDisplay() and unlockDisplay() works very well to stop the flashing. Thanks. If you do update Dabo to allow the suppressing of the "Requering dataset" message, could you post something that would show how to implement that option? Thanks for the great support. Steve Rose On Aug 25, 2008, at 5:31 PM, Steve Rose wrote: > 1. Is there anyway to tell Dabo not to update a grid or the whole > ui until > all the processing is complete? > > Something like: > > self.update( False ) > > self.doAllProcessing() > > self.update( True ) There are two methods that can be used for any Dabo UI object: lockDisplay() and unlockDisplay(). Typically, you would have the form do this to prevent any interim redrawing, but you can call it on a single control if you wish. Be sure to always call unlockDisplay() or you will end up with a very frustrated user! > 2. Can the "Requerying dataset" message be suppressed? Currently, no. That's an oversight that would be simple enough to fix. I'll try to post something tonight. --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- ___ Post Messages to: Dabo-users@leafe.com 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]
[dabo-users] Suppressing "Requerying dataset" message and more
I am working on an application which has a module that repeatedly queries and counts records in a scan of a table. In the process there is lots of "flashing" in a child grid as it is updated, in addition to the message "Please wait... Requerying dataset". The entire processing takes only 1.5 seconds but looks annoying on screen. So, two questions. 1. Is there anyway to tell Dabo not to update a grid or the whole ui until all the processing is complete? Something like: self.update( False ) self.doAllProcessing() self.update( True ) 2. Can the "Requerying dataset" message be suppressed? Thanks Steve Rose --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- ___ Post Messages to: Dabo-users@leafe.com 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]
[dabo-users] Independent BizObjects not working with grid
Sorry to beat this subject to death. Using Paul's example of setting a fictitious table name as the DataSource when creating a BizObject, I was able to get multiple bizobjs working independently on the same table. self.Connection = self.Application.getConnectionByName("myconn") self.bzCatsAll = Cats(self.Connection,DataSource='cats_all') self.bzCatsSome = Cats(self.Connection,DataSource='cats_some') The problem comes when I try to set a grid's DataSource to the fictitious table name. I cannot get the grid to display the table data. grid.DataSource = 'cats_all' does not seem to work. Same for 'cats_some'. I have pasted in a turn-key example to show you what I've done. Can you point our where I have gone wrong? Gmail eats tab stops so I used spaces for indenting. Still didn't help much. Steve Rose import dabo import dabo.dEvents as dEvents import dabo.dException as dException from dabo.dApp import dApp from dabo.dLocalize import _ from dabo.db.dConnectInfo import dConnectInfo dabo.ui.loadUI('wx') class Cats(dabo.biz.dBizobj): def afterInit(self): self.DataSource = "cats" self.KeyField = "pkid" self.addFrom("cats") self.addField("pkid") self.addField("name") self.addField("color") class CatsPanel(dabo.ui.dPanel): def afterInit(self): catsGrid1 = dabo.ui.dGrid(self,AlternateRowColoring=True,ColumnCount=2,RegID='catsGrid1',SelectionMode ="Row",Editable=False,MovableColumns =False, Searchable=True,Top=50,Left=50,Height=200,Width=300) catsGrid1.DataSource = 'cats_all' catsGrid1.Columns[0].DataField = "name" catsGrid1.Columns[0].Width = 100 catsGrid1.Columns[1].DataField = "color" catsGrid1.Columns[1].Width = 100 class MainForm(dabo.ui.dForm): def afterInit(self): self.Sizer=vs= dabo.ui.dSizer('v') catsPanel = CatsPanel(self) self.Caption = "Cats" self.Connection = self.Application.getConnectionByName("myconn") self.bzCatsAll = Cats(self.Connection,DataSource='cats_all') self.bzCatsSome = Cats(self.Connection,DataSource='cats_some') self.addBizobj(self.bzCatsAll) self.requery(self.bzCatsAll) self.requery(self.bzCatsSome) # test out the bizObjects: print 'name - cats_all:', self.bzCatsAll.Record.name # prints 'Blackie'; correct print 'color -cats_all:', self.bzCatsAll.Record.color # prints 'black'; correct print 'total - cats_all:', self.bzCatsAll.RowCount # prints 6; correct # navigate in bzCatsSome: self.next(self.bzCatsSome) print 'name - cats_some:', self.bzCatsSome.Record.name # prints 'Brownie'; correct print 'color - cats_some:', self.bzCatsSome.Record.color # prints 'brown' ; correct #check to see if bzCatsAll record pointer moved after bzCatsSome navigated: print 'name - cats_all:', self.bzCatsAll.Record.name # prints 'Blackie'; correct print 'color -cats_all:', self.bzCatsAll.Record.color # prints 'black'; correct vs.append1x(catsPanel) self.catsGrid1.update() # no help in getting grid to display data. self.catsGrid1.DataSource = "" self.catsGrid1.DataSource = 'cats_all' # reasserted grid DataSource but no help. if __name__ == "__main__": app = dabo.dApp() # Manages how preferences are saved app.BasePrefKey = "dabo.app.minimal.dtForm" dabo.settings.MDI = False app.MainFormClass = MainForm ## The following information can be used in various places in your app: app.setAppInfo("appShortName", _("Cats Form")) app.setAppInfo("appName", _("Cats")) app.setAppInfo("appDescription", _("Cats and colors")) ## Connections: dbFileName = ":memory:" connInfo = dConnectInfo(Name="myconn", DbType="SQLite",Database=dbFileName) app.addConnectInfo(connInfo) ## create database on the fly: conn = app.getConnectionByName("myconn") curs= conn.getDaboCursor() # create tables and testdata: scriptList = """ create table cats ( pkid integer primary key autoincrement not null, name text, color text ); insert into cats (name,color) values ('Blackie','black'); insert into cats (name,color) values ('Brownie','brown'); insert into cats (name,color) values ('Snowflake','white'); """.split(";") for stmt in scriptList: if stmt.strip(): curs.execute(stmt) dabo.infoLog.write(stmt) app.setup() app.start() --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- ___ Post Messages to: Dabo-users@leafe.com 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/%(messageid)s
Re: [dabo-users] Dabo-users Digest, Vol 50, Issue 14
Paul, I was able to get two bzobjects working on the same table independently by using your technique of creating 2 fictitious datasource names and only adding the primary bzobj to the form. That was some black magic. The other method you suggested of not putting in the addField and friends statements I didn't quite get -- upper division work for sure! As long as I have a method that works, that's all that matters. Thanks for your brilliance again. Steve Rose On Thu, Aug 7, 2008 at 3:27 PM, <[EMAIL PROTECTED]> wrote: > Send Dabo-users mailing list submissions to >dabo-users@leafe.com > > 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. Multiple Biz Object with same Datasource (Paul McNary) > 2. Independent Bizobjects??? (Steve Rose) > 3. Re: Independent Bizobjects??? (Paul McNett) > 4. Re: Multiple Biz Object with same Datasource (Paul McNett) > 5. Re: Independent Bizobjects??? (Paul McNary) > 6. Re: Independent Bizobjects??? (Paul McNett) > 7. Re: Independent Bizobjects??? (johnf) > 8. Re: Independent Bizobjects??? (Nate Lowrie) > 9. Re: Multiple Biz Object with same Datasource (Nate Lowrie) > 10. Re: Independent Bizobjects??? (Paul McNett) > 11. Re: Independent Bizobjects??? (Paul McNett) > 12. Re: Independent Bizobjects??? (johnf) > > > -- > > Message: 1 > Date: Thu, 07 Aug 2008 16:29:19 -0500 > From: Paul McNary <[EMAIL PROTECTED]> > Subject: [dabo-users] Multiple Biz Object with same Datasource > To: Dabo Users list > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Hello > > If I have to Biz objects with the same datasource but different JOIN > options, how do I reference them? > > Thank you > Paul McNary > [EMAIL PROTECTED] > > > > > -- > > Message: 2 > Date: Thu, 7 Aug 2008 14:33:48 -0700 > From: "Steve Rose" <[EMAIL PROTECTED]> > Subject: [dabo-users] Independent Bizobjects??? > To: dabo-users@leafe.com > Message-ID: ><[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1 > > Thanks for your patience guys. I can now work with the cats and dogs > tables > with 2 independent bizobjs. But I think I'm missing some deeper > understanding of bizobjects. If you can set me straight on the following > example, I think I might get it through my thick head: > > Say I have a form with 2 grids and 1 bizobj, "bizcats", datasourced to a > "cats" table. I want the first grid to display ALL the cat records in the > table. The second grid will display only results from queries run against > the same cats table ("select * from cats where color = 'black' "). How do > I > set things up so that a query on the cats table does not affect the results > seen in the first grid, which should still display all records in the cats > table? So, I guess what I'm trying to get at is how can I work with the > same table and have multiple, independent views of it on the form's > controls. Coming from a dBase background, I'd just use multiple query > objects to do the job, but I can't change my thinking enough to do this > task > using bizobjs. Hope this make sense. > > Steve Rose > > > --- StripMime Report -- processed MIME parts --- > multipart/alternative > text/plain (text body -- kept) > text/html > --- > > > > -- > > Message: 3 > Date: Thu, 07 Aug 2008 14:44:18 -0700 > From: Paul McNett <[EMAIL PROTECTED]> > Subject: Re: [dabo-users] Independent Bizobjects??? > To: Dabo Users list > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=UTF-8; format=flowed > > Steve Rose wrote: > > Thanks for your patience guys. I can now work with the cats and dogs > tables > > with 2 independent bizobjs. But I think I'm missing some deeper > > understanding of bizobjects. If you can set me straight on the following > > example, I think I might get it through my thick head: > > > > Say I have a form with 2 grids and 1 bizobj, "bizcats", datasourced to a > > "cats" table. I want the
[dabo-users] Independent Bizobjects???
Thanks for your patience guys. I can now work with the cats and dogs tables with 2 independent bizobjs. But I think I'm missing some deeper understanding of bizobjects. If you can set me straight on the following example, I think I might get it through my thick head: Say I have a form with 2 grids and 1 bizobj, "bizcats", datasourced to a "cats" table. I want the first grid to display ALL the cat records in the table. The second grid will display only results from queries run against the same cats table ("select * from cats where color = 'black' "). How do I set things up so that a query on the cats table does not affect the results seen in the first grid, which should still display all records in the cats table? So, I guess what I'm trying to get at is how can I work with the same table and have multiple, independent views of it on the form's controls. Coming from a dBase background, I'd just use multiple query objects to do the job, but I can't change my thinking enough to do this task using bizobjs. Hope this make sense. Steve Rose --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- ___ Post Messages to: Dabo-users@leafe.com 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]
[dabo-users] Independent Bizobjects???
Another rookie question. Is it possible to have 2 bizobjs on the same form and have each be independent of one another? To make my question as generic as possible, say you have a form and two grids and a database containing two tables: 'cats' and 'dogs'. I want one grid datasourced to cats and the other to dogs. It seems that unless the two tables are linked and an addChild statement is in the createBizobj method, only the primary bizobj is active and the other bizobj is ignored. This happens whether I handcode or use the CD. Is that the way bizobjs are supposed to work? My only work-around so far has been to create datasets and do select statements directly on the tables, bypassing bizobjs altogether -- not what I want to do. Steve Rose --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- ___ Post Messages to: Dabo-users@leafe.com 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]
[dabo-users] ListBox ListSelection event problem
Thanks Ed. Your support is incredible. Using Hit instead of ListSelection did the job. Just a small point but shouldn't this event be removed from the ListBox section in the Dabo API? And thanks for mentioning autobind events. I had forgotten about that very cool feature. Steve Rose + > As a rank beginner, I've probably missed something silly. Not silly at all - it is a little confusing. There are two distinct controls: dListBox and dListControl. The former is the traditional listbox common in UIs; the latter is a hybrid of grids and lists that can do some pretty cool things, but is overkill for most common uses. ListSelection events only apply to dListControl, not dListBox. For dListBox, you want to bind to the Hit method. > lstBox.bindEvent(dabo.dEvents.ListSelection, self.onListSelection) > > def onListSelection(self,evt): > print 'list hit' One thing I should point out: if you create a method whose name is on, and that event is raised by the class, then it will be automatically bound to the event for you. So in this code you've tried to bind to the event twice: once with the explicit binding, and once with the auto-binding. --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- ___ Post Messages to: Dabo-users@leafe.com 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]
[dabo-users] ListBox ListSelection event problem
Sorry to take your time but try as I might, I can't get the ListSection event of of the ListBox to fire. In my hand coded test I have these lines to set up the listbox: lstBox = dabo.ui.dListBox(self,RegID='lstBox',Width=300,Height=200,Left=20,Top=200) lstBox.bindEvent(dabo.dEvents.ListSelection, self.onListSelection) def onListSelection(self,evt): print 'list hit' When a listbox item is selected, the print statement is not executed. As a second test, I created a simple form in the CD and dropped a listbox on it. I set up a few choices for the listbox, then selected the method 'onListSelection'. That method had the one-liner print 'list hit'. Running that form and selecting an item from the listbox again did nothing. As a rank beginner, I've probably missed something silly. Steve Rose --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- ___ Post Messages to: Dabo-users@leafe.com 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]
[dabo-users] Can a grid column be masked?
Thanks Paul. Linking the column's datafield to a VirtualField did the trick. Brilliant. > I have a form with a pageframe. The detail page has a maskedTextBox to > display and edit a phone number and is constructed this way: > dabo.ui.dMaskedTextBox(self,Width=100,DataSource = > "address",DataField="HomePhone",Mask="###-###-"). This displays as > expected, i.e., 555-222-. Data saved to the table from the maskedTextBox > is saved without the dashes. On the first page I have a grid displaying > records from the same table. One column is linked to the phone number but > displays the phone number without the dashes, i.e., 555222. Is there a > way to format this column so it appears as phone number with the dashes? Or > should I be approaching this thing another way? > > Any help appreciated. Until we get a masked grid renderer, you can set up a VirtualField in your bizobj to force it. IOW something like: class MyBiz(dabo.biz.dBizobj): self.VirtualFields["masked_phone_num"] = self.getMaskedPhone def getMaskedPhone(self): phone = self.Record.phone return "%s-%s-%s" % (phone[0:3], phone[3:6], phone[6:10]) And then make the DataField of that column "masked_phone_num". Paul --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- ___ Post Messages to: Dabo-users@leafe.com 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]
[dabo-users] Can a grid column be masked?
I have a form with a pageframe. The detail page has a maskedTextBox to display and edit a phone number and is constructed this way: dabo.ui.dMaskedTextBox(self,Width=100,DataSource = "address",DataField="HomePhone",Mask="###-###-"). This displays as expected, i.e., 555-222-. Data saved to the table from the maskedTextBox is saved without the dashes. On the first page I have a grid displaying records from the same table. One column is linked to the phone number but displays the phone number without the dashes, i.e., 555222. Is there a way to format this column so it appears as phone number with the dashes? Or should I be approaching this thing another way? Any help appreciated. Steve Rose --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- ___ Post Messages to: Dabo-users@leafe.com 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]
[dabo-users] createForm not working as expected
I am trying to create and use a custom dialog. Bottom line is I get a long traceback when I call the dialog using the createForm method. Why doesn't this work?: Open class designer. >From the menu select File, New Class..., OK/CancelDialog. Add a label, Caption = "Hello" >From menu, select Save as class. This pops up the dialog "Do you want to save, The contents of the form or Just the selection." The default is "Just the selection" (seems opposite to me). I select Contents of the form. This calls a Save As dialog. I save it as HelloDialog.cdxml. Now I want to use the dialog. I create a new form in the designer by selecting New Class, Form. I add a panel and a button. In the button's onHit event, I have this code: dlg = dabo.ui.createForm("HelloDialog.cdxml") dlg.Show() dlg.Release() I save this as a runnable app, "HelloMainForm.py", in the same directory as the cdxml file. When I run HelloMainForm.py and click the button, I get a long traceback ending with: File "C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\_windows.p9, in Create return _windows_.Panel_Create(*args, **kwargs) wx._core.PyAssertionError: C++ assertion "parent" failed at ..\..\src\ .cpp(572) in wxWindow::Create(): can't create wxWindow without parent What am I doing wrong? Steve ps: Here is the entire traceback if needed: 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 26, 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 915, 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:\docume~1\owner\locals~1\temp\tmp1fdd1x.py", line 96, in onHit dlg = dabo.ui.createForm("HelloDialog.cdxml") File "C:\Python25\lib\site-packages\dabo-0.8.3-py2.5.egg\dabo\ui\uiwx\__init__ .py", line 1074, in createForm frm = cls(*args, **kwargs) File "c:\docume~1\owner\locals~1\temp\tmpbk05ga.py", line 9, in __init__ super(dPanel_1577888459, self).__init__(parent=parent, attProperties=attProp erties, *args, **kwargs) File "C:\Python25\lib\site-packages\dabo-0.8.3-py2.5.egg\dabo\ui\uiwx\dPanel.p y", line 184, in __init__ attProperties=attProperties, *args, **kwargs) File "C:\Python25\lib\site-packages\dabo-0.8.3-py2.5.egg\dabo\ui\uiwx\dPanel.p y", line 163, in __init__ properties=properties, attProperties=attProperties, *args, **kwargs) File "C:\Python25\lib\site-packages\dabo-0.8.3-py2.5.egg\dabo\ui\uiwx\dPanel.p y", line 33, in __init__ properties=properties, attProperties=attProperties, *args, **kwargs) File "C:\Python25\lib\site-packages\dabo-0.8.3-py2.5.egg\dabo\ui\uiwx\dPemMixi n.py", line 166, in __init__ pre.Create(*args, **kwargs) File "C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\_windows.py", line 7 9, in Create return _windows_.Panel_Create(*args, **kwargs) wx._core.PyAssertionError: C++ assertion "parent" failed at ..\..\src\msw\window .cpp(572) in wxWindow::Create(): can't create wxWindow without parent --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- ___ Post Messages to: Dabo-users@leafe.com 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]
Re: [dabo-users] Dabo-users Digest, Vol 44, Issue 4
Problems with new() Similar to Adrian's issue, I too lose the connection between parent and child when I click the form's pushbutton and the onHit event triggers self.Form.new(). The only workaround I could come up with was to add self.FillLinkFromParent = True to the ChildBizObj. Then, in the createBizojbs method I had to add the following: parentBizobj.NewChildOnNew = True childBizobj.NewRecordOnNewParent = True This maintains the relationship between and child but it forces the creation a new and sometimes unwanted child record. Also, I am using MySQL for the backend and have checked to see if any constraints werer lurking that might be causing the problem but I can't see any issues there either, but I am far from an expert on MySQL. Here is the code for the Bizobjs and the createBizojb method: class ParentBizobj(dabo.biz.dBizobj): def afterInit(self): self.DataSource = "parent" self.KeyField = "pkid" self.addFrom("parent") self.addField("pkid") self.addField("SSN") self.addField("Last") self.addField("First") class ChildBizobj(dabo.biz.dBizobj): def afterInit(self): self.DataSource = "child" self.KeyField = "pkid" self.addFrom("child") self.addField("ChildNo") self.addField("pkid") self.addField("Last") self.addField("First") self.ParentLinkField = 'pkid' self.LinkField = "ChildNo" self.FillLinkFromParent = True def createBizobjs(self): self.Application.addConnectFile("ParentChild.cnxml") self.Connection = self.Application.getConnectionByName("ParentChild") parentBizobj = ParentBizobj(self.Connection) self.addBizobj(parentBizobj) childBizobj = ChildBizobj(self.Connection) self.addBizobj(childBizobj) parentBizobj.addChild(childBizobj) parentBizobj.NewChildOnNew = True childBizobj.NewRecordOnNewParent = True Any suggestions? Steve Rose On 2/3/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Send Dabo-users mailing list submissions to > dabo-users@leafe.com > > 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. New() (Adrian Klaver) >2. Re: New() (Ed Leafe) >3. Re: New() (Adrian Klaver) >4. Re: New() (Ed Leafe) > > > -- > > Message: 1 > Date: Sat, 02 Feb 2008 22:50:11 + > From: [EMAIL PROTECTED] (Adrian Klaver) > Subject: [dabo-users] New() > To: dabo-users@leafe.com (Dabo List) > Message-ID: > < > [EMAIL PROTECTED] > > > > > I trying to figure out self.Form.new(). I have a button that has an onHit > event > with self.Form.new(). When I click on it I get a new parent record. I fill > in the the fields and save the record, so far so good. At this point I lose > the connection between the parent and child record. When I use the > navigation buttons to go back and forward the child records move but the > parent does not. Also the PK field for the new record remains at -1 even > though the bizobj has the correct value in the field. Any suggestions > welcome. > > Dabo: > Platform: GTK > Python Version: 2.5.1c1 on linux2 > Dabo Version: Version 0.8.3; Revision ~3849 > UI Version: 2.8.7.1 on wxGTK (gtk2) > > Database: > Postgres 8.2 > > Bizobj code: > def createBizobjs(self): > class Publicplant1Bizobj(dabo.biz.dBizobj): > def afterInit(self): > self.DataSource = "public.plant1" > self.KeyField = "p_item_no" > self.addFrom("public.plant1") > self.addOrderBy("p_item_no") > self.setLimit(None) > self.addField("plant_type") > self.addField("p_item_no") > self.addField("variety") > self.addField("color") > self.addField("season") > self.addField("category_sub_type") > self.addField("category_type") > self.addField("comm
Re: [dabo-users] Dabo-users Digest, Vol 43, Issue 1
Back on Dec 31 I submitted a request for help with a problem of adding a new record to a form with a parent-child child relationship. You requested a traceback which I sent. I haven't seen a response but I know Ed's life has been disrupted so it may have gotten lost in the shuffle. I've included the correspondence below in hopes you might be able to shed some light on it. Thanks, Steve Rose On 1/1/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Send Dabo-users mailing list submissions to > dabo-users@leafe.com > > > > Today's Topics: > > 1. Re: Dabo-users Digest, Vol 42, Issue 60 (Steve Rose) >2. Re: how to install (Carl Karsten) >3. Dabo-users List Statistics for December, 2007 > (List Administrator Account) >4. Dabo-users List Statistics for 2007 (List Administrator Account) > > > ------ > > Message: 1 > Date: Mon, 31 Dec 2007 19:57:08 -0800 > From: "Steve Rose" <[EMAIL PROTECTED]> > Subject: Re: [dabo-users] Dabo-users Digest, Vol 42, Issue 60 > To: dabo-users@leafe.com > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1 > > 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 > > dabo-users@leafe.com > > > > 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) > >
Re: [dabo-users] Dabo-users Digest, Vol 42, Issue 60
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 > dabo-users@leafe.com > > 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: dabo-users@leafe.com > 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.
[dabo-users] Parent-Child link lost on Proself.Form.new()
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 --- ___ Post Messages to: Dabo-users@leafe.com 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]
[dabo-users] Dabo runtime no workie
I get no error message that I can see. When I, for example, drop a file such as Montana.py onto the Dabo runtime icon, a command window flashes open for about 2 seconds, files seems to begin to load, then the window disappears. Everything worked perfectly until the update. If I'm the only one with this problem, maybe I should download another copy of the dabo demo package from the website and reinstall. Steve Rose --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- ___ Post Messages to: Dabo-users@leafe.com 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]
[dabo-users] Dabo Runtime no workie
I installed the latest update to the runtime a few days ago and now I can no longer run any Dabo apps. This includes demos. Is there a fix? Steve Rose --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- ___ Post Messages to: Dabo-users@leafe.com 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]
Re: [dabo-users] Dabo-users Digest, Vol 42, Issue 4
I really appreciate John Fabiani's tutorials. To my knowledge there is nothing in the Dabo on-line documentation that explains Dabo programming to the beginner so well. I thank Ed for his corrections to John's work but they did seem to come across a little like a school master correcting his pupil in front of the class. Maybe it is just me, but they seemed to have a slightly harsh tone and I'm sure Ed did not intend them be so. I hope John continues his tutorials as these are sorely needed, at least by me. Steve Rose (rank beginner) On 12/3/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Send Dabo-users mailing list submissions to > dabo-users@leafe.com > > 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. Re: Standalone dabo games not running (bsnipes) >2. Re: Standalone dabo games not running (bsnipes) >3. Re: Standalone dabo games not running (johnf) >4. Re: Standalone dabo games not running (johnf) >5. Re: Standalone dabo games not running (Nate Lowrie) >6. Web update (Adrian Klaver) >7. Re: Standalone dabo games not running (Ed Leafe) > > > -- > > Message: 1 > Date: Mon, 3 Dec 2007 09:08:54 -0800 (PST) > From: bsnipes <[EMAIL PROTECTED]> > Subject: Re: [dabo-users] Standalone dabo games not running > To: dabo-users@leafe.com > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=us-ascii > > > > JohnF-4 wrote: > > > > Sounds fine. But I have a little twist. Instead of me just building > the > > form > > let's keep a running dialog via this email list of the steps to get it > > done. > > That way others can help and put their .02 in too . And at the end I'll > > gather the messages and put them on the wiki. You are expected to ask > > questions and make suggestions. Let's get started. > > > Sounds good. I can see my untimeliness was taken up by others... :-) > > > JohnF-4 wrote: > > > > Ok lets add a little more to display a panel > > > > immediately after > > self.Sizer =vs= dabo.ui.dSizer("vertical") > > > > add > > vs.append(dabo.ui.dPanel(self,BackColor = "green)) > > > > Run again. > > > > This should give you a little green box in the upper left hand corner. > > > > Ok now let's expand the panel to fill the form in several steps by > adding > > paramenters to the vs.append method. Just add a ',1'. > > . > > vs.append(dabo.ui.dPanel(self,BackColor = "green),1) > > > > Run it again - what happened?. > > > > Now add one more parameter so it reads > > vs.append(dabo.ui.dPanel(self,BackColor = "green),1,'x') > > > > At this point I will stop and ask you to tell me (and others on the > list) > > what is happening. Your clue is we are adding a > container/control/object > > to > > a sizer using the the append method (function). > > > > Ok... got most of that. Looks like we should ideally start with a Form, > add > a Sizer and then a Panel on top of that. I am assuming the '1' and the > 'x' > are proportion and then layout although there is no mention of 'x' in the > dabo api docs but I am assuming it must be the shortcut for 'expand'. > > Is the layout() method needed? It seems to still run the form even if I > comment it out. > > Are all container/control/objects added using sizer.append()? > > Brian > -- > View this message in context: > http://www.nabble.com/Standalone-dabo-games-not-running-tf4896702.html#a14133849 > Sent from the dabo-users mailing list archive at Nabble.com. > > > > > > -- > > Message: 2 > Date: Mon, 3 Dec 2007 09:10:45 -0800 (PST) > From: bsnipes <[EMAIL PROTECTED]> > Subject: Re: [dabo-users] Standalone dabo games not running > To: dabo-users@leafe.com > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=us-ascii > > > > > bsnipes wrote: > > > > > > JohnF-4 wrote: > >> > >> Sounds fine. But I have a little twist. Instead of me just building &g
[dabo-users] Newbie (bozzo?) again trying out App Wizard
HI Ed, Still no luck with the App Wizard using the runtime. Downloaded the latest version of the RUNTIME version of Dabo for Windows. This time the install checked for an updated version, found it, then asked me to rerun the runtime exe. I then clicked on the shortcut to the App Wizard and it started up as expected. I again used the defaults to make the webtest.py program which was created in "C:\Program Files\Dabo Runtime\ide\wizards\AppWizard\webtest". I then navigated to that folder and typed in "python webtest.py" but the program failed again at line 8: import dabo. No module named Dabo. I do have Python 2.5 installed on my system in C:\Python25 and this is in my path statement too. Do you think this is confusing the Dabo runtime? Would love to get this working. Steve Rose --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- ___ Post Messages to: Dabo-users@leafe.com 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]
[dabo-users] Newbie trying out App Wizard
Hello Ed, I downloaded the latest Dabo Runtime Installer and installed the software to try out your product. Running Win XP . In the Common folder, I can click on the links and run the demos just fine. I then started up the App Wizard and used the defaults to create the webtest.py program in the default folder. Following instructions, I navigated to "C:\Program Files\Dabo Runtime\ide\wizards\AppWizard\webtest" and typed "python webtest.py" in the command window. Got this traceback: File "webtest.py", line 8, in import dabo Import Error: No module named dabo Line 8 corresponds to the line "Import dabo" Do I have to muck around setting paths to make this demo work? I would have thought that the App Wizard would be able to create a program that would know where to import dabo from. Can you tell me what I'm missing here? Thanks, Steve Rose --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- ___ Post Messages to: Dabo-users@leafe.com 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]
[dabo-users] More on quick death of new app and traceback
Still trying to determine why my apps generated by the AppWizard die quickly. Here are the code lines from "Customer.py". Everything appears to be o.k -- self.Caption = "Customer" looks like all ascii to me. Couldn't see any strange non-ascii characters when looking at it in Notepad either. from Base import Base class Customer(Base): def initProperties(self): self.super() self.Caption = "Customer" self.DataSource = "customer" self.KeyField = "pkid" Ditto for "Pet.py" from Base import Base class Pet(Base): def initProperties(self): Pet.doDefault() self.Caption = "Pet" self.DataSource = "pet" self.KeyField = None I ran the AppWizard on the Zipcodes table in the Webtest db and got the exact same traceback as I did from using the Customer table. This time I was able to use your suggestion of using Edit from the left top icon in the command window. Thanks for that as I had completely forgotten that little trick. Here is the version info from about.py: Platform: Win Python Version: 2.4.3 on win32 Dabo Version: Version 0.7.1s; Revision 2490 UI Version: 2.6.3.3 on wxMSW All the best, Steve ___ Post Messages to: Dabo-users@leafe.com Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
[dabo-users] More on quick death of new app
I ran the webtest.py program from the command prompt ('python webtest.py') and got this traceback. Note, I had to hand type the output as I have forgotten how to pipe the message to a text file from a DOS prompt (prn or something?). Hope I typed it correctly as it is quite a mess. File "webtest.py", line 56, in ? frm(app.MainForm).show() File "C:\Python24\Lib\site-packages\Dabo Runtime\dabo\lib\datanav\Form.py", line 62 in __init__super(Form, self).__init__(parent,*args, **kwargs) File "C:\Python24\Lib\site-packages\Dabo Runtime\dabo\us\uiwx\dForm.py", line 779, in __init__BaseForm.__init__(self, preClass, parent, properties, *args, **kwargs) File "C:\Python24\Lib\site-packages\Dabo Runtime\dabo\us\uiwx\dForm.py", line 39, in __init__fm.dFormMixin.__init__(self, preClass, parent, properties, *args, *kwargs) File "C:\Python24\Lib\site-packages\Dabo Runtime\dabo\us\uiwx\dFormMixin.py", line 62, in __init__attProperties, *args, *kwargs) File "C:\Python24\Lib\site-packages\Dabo Runtime\dabo\ui\uiwx\dPemMixin.py", line 175, in _init__self.afterInit() File "C:\Python24\Lib\site-packages\Dabo Runtime\dabo\lib\datanav\Form .py", line 71, in _afterInit super(Form, self)._afterInit() File "C:\Python24\Lib\site-packages\Dabo Runtime\dabo\lib\datanav\dForm .py", line 65, in _afterInit super(BaseForm, self)._afterInit() File "C:\Python24\Lib\site-packages\Dabo Runtime\dabo\ui\uiwx\dFormMixin.py", line 102, in -afterInit super(dFormMixin, self). afterInit() File "C:\Python24\Lib\site-packages\Dabo Runtime\dabo\ui\uiwx\dPemMixin.py", line 258, in _afterInit() File "C:\Python24\Lib\site-packages\Dabo Runtime\ide\wizards\AppWizard\webtest\ui\FrmCustomer.py", line 32, in afterInit self.creation() File "C:\Python24\Lib\site-packages\Dabo Runtime\dabo\lib\datanav\Form .py", line 538 in creation self.setupMenu() File "C:\Python24\Lib\site-packages\Dabo Runtime\ide\wizards\AppWizard\webtest\ui\FrmBase.py", line 19, in setupMenu self.super() File "C:\Python24\Lib\site-packages\Dabo Runtime\dabo\lib\datanav\Form.py", line 289 in setupMenu mb.insertMenu(menuBIndex, self.getMenu()) File "C:\Python24\Lib\site-packages\Dabo Runtime\dabo\lib\datanav\Form.py", line 198 in getMenu title = &%s\tAlt+3" % (_(self.pageFrame.Pages[index].Caption)) File "C:\Python24\Lib\site-packages\Dabo Runtime\dabo\dLocalize.py", line 63, in _return __trans.ugettext(str(s)) File "C:\Python24\lib\gettext.py", line 217, in ugettext return unicode(message) UnicodeDecodeError: 'ascii' codec can't decode byte 0x83 in position 2: ordinal not in range(128) I tried to find "dabo/dabo/dialogs/about.py" in the runtime installation but had no luck, but maybe I just missed it. Good luck, Steve ___ Post Messages to: Dabo-users@leafe.com Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
[dabo-users] More on quick death of new app
I'm fairly new to Python and just dabbling in Dabo. Trying to use the AppWiz and am having a similar problem as Joshua Levy detailed recently. Using Win XP, Python 2.4. I create the webtest app in the AppWizard. I then navigate to the folder, double click on "webtest.py". A form briefly opens, then disappears without a trace. Same problem if I load and run it in the latest Dabo Runtime.exe. If I run it from Stani's Python Editor, the form also flashes open and closed but leaves a whole series of error messages in the traceback. First message: Traceback (most recent call last): File "C:\Python24\CodeDabo\webtest\webtest.py", line 56, in ? frm(app.MainForm).show() ... ... ... Last message: File "C:\Python24\lib\gettext.py", line 217, in ugettext return unicode(message) UnicodeDecodeError: 'ascii' codec can't decode byte 0x83 in position 2: ordinal not in range(128) Script terminated. To further test the AppWizard I created an app using a local database "menagerie" from the MySQL tutorial. The AppWiz connects to the menagerie database, I then select the only table in the db: pet. Then app is then created. Double clicking on menagerie.py I get the same problem of the app flashing open, then closing without a trace. When run in Stani's, I get again many error messages also, probably too tedious to go into in detail. I am wondering if I have path problems or maybe it is Windows specific but this is way too complicated for me to debug. Out of curiosity, have you run these apps on XP without problems? Would love to get this Dabo thing working like it does on the screencasts. It really looks impressive. ___ Post Messages to: Dabo-users@leafe.com Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
[dabo-users] Install problem?
I am just trying out Dabo and would like to use the Designer after seeing your screencast. I have downloaded and extracted dabo-0.6.5-win.zip, dabodemo-0.6-win.zip, daboide-0.5.6-win.zip. Running Win XP. My stupid question is: which Python file do I run to bring up "The Designer". All I see are ReportDesigner.py and MenuDesigner.py. -- not what I want. Any suggestions appreciated. Sorry to be so dense. Steve ___ Post Messages to: Dabo-users@leafe.com Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users