dabo Commit
Revision 7033
Date: 2011-12-21 04:53:13 -0800 (Wed, 21 Dec 2011)
Author: Ed
Trac: http://trac.dabodev.com/changeset/7033
Changed:
U trunk/ide/ClassDesignerPropSheet.py
Log:
Removed the assumption that the application object is always the Controller
Diff:
Modified: trunk/ide/ClassDesignerPropSheet.py
===================================================================
--- trunk/ide/ClassDesignerPropSheet.py 2011-12-19 20:38:01 UTC (rev 7032)
+++ trunk/ide/ClassDesignerPropSheet.py 2011-12-21 12:53:13 UTC (rev 7033)
@@ -719,7 +719,7 @@
super(PropertyGrid, self).fillGrid(force)
self.refresh()
# Set the renderers and editors manually by cell
- if not self.Application.Selection:
+ if not self.Controller.Selection:
return
valColumn = self.Columns[1]
for row in xrange(self.RowCount):
@@ -730,7 +730,7 @@
pass
else:
dabo.log.error(_("Property Grid out of
sync for property '%s' of object '%'") %
- (self.getValue(row, 0),
self.Application.Selection[0]))
+ (self.getValue(row, 0),
self.Controller.Selection[0]))
continue
if not isinstance(pd, dict):
print _("BAD PROP DICT:"), pd, type(pd),
_("ROW"), row
@@ -762,7 +762,7 @@
if col == 0:
ret = typ in ("str", "string", "unicode", "u")
else:
- if not self.Application.Selection:
+ if not self.Controller.Selection:
return type(None)
pd = self.getPropDictForRow(row)
@@ -826,7 +826,7 @@
if col is None:
col = self.CurrentColumn
try:
- sel = self.Application.Selection
+ sel = self.Controller.Selection
except AttributeError:
# App doesn't support this property yet
sel = None
@@ -879,7 +879,7 @@
try:
return self._controller
except AttributeError:
- self._controller = self.Application
+ self._controller = self.Form.Controller
return self._controller
def _setController(self, val):
_______________________________________________
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]