Changeset 4005
- Timestamp:
- 03/30/08 07:58:34 (8 months ago)
- Files:
-
- trunk/ide/ClassDesigner.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/ide/ClassDesigner.py
r3983 r4005 630 630 self._basePath = pth 631 631 dabo.lib.utils.resolveAttributePathing(atts, pth) 632 # Read in any .cnxml connection defs. 633 currdir = os.path.dirname(pth) 634 self._initDB(currdir) 635 if os.path.split(currdir)[-1].lower() == "ui": 636 # Standard directory structure; process the parent directory 637 self._initDB(os.path.dirname(currdir)) 632 638 if self._reuseMainForm(useSizers=atts.get("UseSizers", False)): 633 639 # Original form hasn't changed, so just use it. … … 1673 1679 dabo.ui.stop(_("Attribute Error: %s") % e.message, _("Attribute Error")) 1674 1680 except StandardError, e: 1675 dabo.ui.stop(_("Compilation Error: %s\nCode: %s") % (e.msg, e.text.strip()), 1681 if hasattr(e, "message"): 1682 msg = e.message 1683 elif hasattr(e, "msg"): 1684 msg = e.msg 1685 else: 1686 msg = _("<unspecified>") 1687 if hasattr(e, "text"): 1688 txt = e.text.strip() 1689 else: 1690 txt = _("<unspecified>") 1691 1692 dabo.ui.stop(_("Compilation Error: %s\nCode: %s") % (msg, txt), 1676 1693 _("Compilation Error")) 1677 1694
