branch | tls-sprint |
changeset 1107 | 961a478593a5 |
parent 1101 | 0c067de38e46 |
child 1263 | 01152fffd593 |
--- a/web/views/editcontroller.py Thu Mar 12 19:58:58 2009 +0100 +++ b/web/views/editcontroller.py Thu Mar 12 20:07:20 2009 +0100 @@ -213,7 +213,7 @@ value = None else: val.filename = value[0] - if entity.has_metadata(attr, 'format'): + if entity.e_schema.has_metadata(attr, 'format'): key = '%s_format' % attr formparams[key] = value[1] self.relations.append('X %s_format %%(%s)s'