Attribute Types

svn: r6392
This commit is contained in:
Don Allingham
2006-04-21 18:15:23 +00:00
parent 340bfa0056
commit 32f6564a01
13 changed files with 145 additions and 129 deletions

View File

@@ -101,13 +101,10 @@ class EditAttribute(EditSecondary):
self.top.get_widget("private"),
self.obj)
self.type_selector = MonitoredType(
self.type_selector = MonitoredDataType(
self.top.get_widget("attr_menu"),
self.obj.set_type,
self.obj.get_type,
self.attribute_list(),
RelLib.Attribute.CUSTOM,
custom_values=self.alist,
)
def _create_tabbed_pages(self):
@@ -129,7 +126,7 @@ class EditAttribute(EditSecondary):
if not attrib:
label = _("New Attribute")
else:
label = attrib.get_type()[1]
label = str(attrib.get_type())
if not label.strip():
label = _("New Attribute")
label = "%s: %s" % (_('Attribute'),label)