Ah, I had jumped into the video cold and did not realize there was a directory
structure that Dabo was looking for. I read your email right after beginning
the Step by Step tutorial. After using dabo.quickstart to create a directory
structure I got past this exception, prior to this I didn't have any directory
setup so I just created one at random after hitting 'Finish'.
I went through the video again and now have a 'dataEnvironment' directory with
biz and db and whatnot in it.
I started up ClassDesigner.py and excepted the default 'dForm' and then split
the layout panel in 'dForm'.
I also used CxnEditor.py to create a db/webtest.cnxml file pointing to my local
copy of webtest.sqlite and that seems to be working.
One thing different from the video is that the *createBizobjs method in the
dForm editor doesn't show any of the content of biz/CustomerBizobj.py.
CustomerBizobj.py does match the contents show in the video however.
__init__.py imports CustomerBizobj too.
The next problem is that after saving the class designer output to the
dataEnvironment directory 'run' fails with this error:
Attribute Error: 'NoneType' object has no attribute 'CustomerBizobj'
I redid the example after checking 'Dabo Class Designer'.File.'Single File for
Layout and Code' and then it would run. from the File menu.
I was able to add a 'next' button and go on to the second video.
Right now I have the ordersBizObj class in a seperate file, OrdersBizobj.py, in
dateEnvironment/biz.
Now heres the strange thing. I got an exception when I added the
self.LinkField attribute to the OrdersBizobj class.
File
"/usr/lib/python2.5/site-packages/Dabo-0.9.0-py2.5.egg/dabo/ui/uiwx/dControlMixin.py",
line 27, in _onWxHit
self.raiseEvent(dEvents.Hit, evt, *args, **kwargs)
File
"/usr/lib/python2.5/site-packages/Dabo-0.9.0-py2.5.egg/dabo/ui/uiwx/dPemMixin.py",
line 944, in raiseEvent
super(dPemMixin, self).raiseEvent(eventClass, nativeEvent, *args, **kwargs)
File
"/usr/lib/python2.5/site-packages/Dabo-0.9.0-py2.5.egg/dabo/lib/eventMixin.py",
line 93, in raiseEvent
bindingFunction(event)
File
"/usr/lib/python2.5/site-packages/Dabo-0.9.0-py2.5.egg/dabo/ui/dialogs/Wizard.py",
line 124, in onNext
self.CurrentPage += pg.nextPage()
File
"/usr/lib/python2.5/site-packages/Dabo-0.9.0-py2.5.egg/dabo/ui/dialogs/Wizard.py",
line 304, in _setCurrPage
self._pages[self._currentPage].onEnterPage(direction)
File "/home/jsk/pyhome/dabo/dabo/ide/wizards/QuickLayoutWizard.py", line 356,
in onEnterPage
self.makeGrid()
File "/home/jsk/pyhome/dabo/dabo/ide/wizards/QuickLayoutWizard.py", line 606,
in makeGrid
cs.append1x(grd)
File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line
14500, in __getattr__
raise PyDeadObjectError(self.attrStr % self._name)
wx._core.PyDeadObjectError: The C++ part of the dSizer object has been deleted,
attribute access no longer allowed.
(python:19282): Gtk-CRITICAL **: gtk_window_set_modal: assertion `GTK_IS_WINDOW
(window)' failed
Lastly, when I exited out of ClassDesigner and then reloaded the program and
deleted the LinkField attribute I now get this error:
AttributeError: 'NoneType' object has no attribute 'CustomerBizobj'
So progress, but not there yet.
________________________________
From: Ed Leafe <[email protected]>
To: Dabo Users list <[email protected]>
Sent: Friday, January 16, 2009 6:59:17 AM
Subject: Re: [dabo-users] An exception while following the Data Environment
video.
On Jan 15, 2009, at 8:57 PM, John Krumpotick wrote:
> File "/home/jsk/pyhome/dabo/dabo/ide/ClassDesigner.py", line 419,
> in updateNamespace
> stdHome = os.path.split(stdBiz)[0]
> File "/usr/lib/python2.5/posixpath.py", line 77, in split
> i = p.rfind('/') + 1
> AttributeError: 'NoneType' object has no attribute 'rfind'
Hmmm... that means that the app couldn't find a directory named 'biz'
in any of the standard places to look. I'll have to add something to
handle that situation.
What is the full path to the CustomerBizobj.py file? And has the form
you are designing already been saved? If so, what is the path to that
file?
-- Ed Leafe
[excessive quoting removed by server]
_______________________________________________
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]