Bulk metadata editing working

This commit is contained in:
Kovid Goyal 2010-05-05 15:05:34 -06:00
parent 1ee1667f7b
commit f6a4ec5c57

View File

@ -218,7 +218,10 @@ class Text(Base):
def getter(self): def getter(self):
if self.col_metadata['is_multiple']: if self.col_metadata['is_multiple']:
val = unicode(self.widgets[1].text()).strip() val = unicode(self.widgets[1].text()).strip()
return [x.strip() for x in val.split(',')] ans = [x.strip() for x in val.split(',') if x.strip()]
if not ans:
ans = None
return ans
val = unicode(self.widgets[1].currentText()).strip() val = unicode(self.widgets[1].currentText()).strip()
if not val: if not val:
val = None val = None