Chris G wrote: > I'm impressed - I've copied my accounting system tables across from > Access into mySql and I've actually created a minimal Dabo application > which shows the invoices. It hasn't been too much effort and I > haven't had any of those "what on earth does that error mean" moments, > I could actually understand all the errors and was able to fix them. > > Most of my mistakes were simple typos and/or failure to change things > to match my tables etc. when following "The Step-By-Step Guide to Dabo > Programming" (it's an excellent tutorial by the way). > > So, now I have a form displaying some data, next steps will be adding > some buttons, other controls, etc. but before I go further some minor > things I'd like to clear up.... > > 1 - I'm getting a warning message saying:- > > Dabo Info Log: Mon Oct 6 21:29:40 2008: WARNING: No BasePrefKey has been > set for this application. >
BasePrefkey is a property of dApp. See: http://paul.dabodev.com/doc/api/dabodoc/dabo.dApp.dApp.html#Properties_BasePrefKey It doesn't harm if it is not set for your app. > What's this telling me? Also, is the python traceback that follows it > referring to the above warning or is it quite unconnected? If it's > relevant the traceback says:- > That is a different cause. > Traceback (most recent call last): > File "/usr/lib64/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_misc.py", > line 1341, in Notify self.notify() > File "/usr/lib64/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", > line 14466, in Notify self.result = self.callable(*self.args, **self.kwargs) > File > "/usr/lib/python2.5/site-packages/Dabo-0.8.4-py2.5.egg/dabo/ui/uiwx/dForm.py", > line 146, in __update super(BaseForm, self).update() > File > "/usr/lib/python2.5/site-packages/Dabo-0.8.4-py2.5.egg/dabo/ui/uiwx/dPemMixin.py", > line 1224, in update self.raiseEvent(dEvents.Update) > File > "/usr/lib/python2.5/site-packages/Dabo-0.8.4-py2.5.egg/dabo/ui/uiwx/dPemMixin.py", > line 915, in raiseEvent super(dPemMixin, self).raiseEvent(eventClass, > nativeEvent, *args, **kwargs) > File > "/usr/lib/python2.5/site-packages/Dabo-0.8.4-py2.5.egg/dabo/lib/eventMixin.py", > line 93, in raiseEvent bindingFunction(event) > File > "/usr/lib/python2.5/site-packages/Dabo-0.8.4-py2.5.egg/dabo/ui/uiwx/dPemMixin.py", > line 1201, in __onUpdate self.update() > File > "/usr/lib/python2.5/site-packages/Dabo-0.8.4-py2.5.egg/dabo/ui/uiwx/dPemMixin.py", > line 1224, in update self.raiseEvent(dEvents.Update) > File > "/usr/lib/python2.5/site-packages/Dabo-0.8.4-py2.5.egg/dabo/ui/uiwx/dPemMixin.py", > line 915, in raiseEvent super(dPemMixin, self).raiseEvent(eventClass, > nativeEvent, *args, **kwargs) > File > "/usr/lib/python2.5/site-packages/Dabo-0.8.4-py2.5.egg/dabo/lib/eventMixin.py", > line 93, in raiseEvent bindingFunction(event) > File > "/usr/lib/python2.5/site-packages/Dabo-0.8.4-py2.5.egg/dabo/ui/uiwx/dPemMixin.py", > line 1201, in __onUpdate self.update() > File > "/usr/lib/python2.5/site-packages/Dabo-0.8.4-py2.5.egg/dabo/ui/dDataControlMixinBase.py", > line 112, in update self.Value = method() > TypeError: 'str' object is not callable > Please post your bizobj code. > > 2 - The data from my Invoice table has some output formatting oddities > when shown in the Dabo form:- > > Dab seems to think the InvoiceNumber is a 'long', i.e. it appends > an 'L' to it. > What data type has InvoiceNumber in your database? > Although mySql shows all the dates with a time of 00:00:00 Dabo > shows them as 12:00:00 AM which is rather an odd time! > > I guess these are probably easy enough changed by playing with the > formatting properties of the controls on the form though, they're > hardly important. > I don't know how how mysql stores a date. I never saw my dates misformated (using Firebird). Uwe _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]
