On Jul 30, 2008, at 5:59 PM, Nate Lowrie wrote:
> Open CD, select "new class..." from the file menu. Select Page in the
> dialog. Get this traceback:
>
[snip]
> File "C:\Python25\lib\site-packages\dabo-full\trunk\dabo\ui\uiwx
> \dPage.py", li
> ne 71, in _getPagePosition
> ret = self.Parent.Pages.index(self)
> AttributeError: 'LayoutBasePanel' object has no attribute 'Pages'
Fixed. In the future, when you see something like this, it should be
obvious that the problem is that the try/except isn't catching the
AttributeError. When I removed the bare excepts, I added what I
thought was the most likely situation where an error was expected, and
in many places I couldn't think of all the possibilites. So if you see
something simple like this, where it is obvious what the problem is,
just fix and commit.
-- Ed Leafe
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]