update to new file schema stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 29 Sep 2009 12:42:24 +0200
branchstable
changeset 3515 3edebe9414fa
parent 3514 1531edc6c021
child 3516 5f18e71e3d42
update to new file schema
web/test/unittest_form.py
--- a/web/test/unittest_form.py	Tue Sep 29 12:42:11 2009 +0200
+++ b/web/test/unittest_form.py	Tue Sep 29 12:42:24 2009 +0200
@@ -171,7 +171,7 @@
         class FFForm(EntityFieldsForm):
             data = FileField(format_field=StringField(name='data_format', max_length=50),
                              encoding_field=StringField(name='data_encoding', max_length=20))
-        file = self.add_entity('File', name=u"pouet.txt", data_encoding=u'UTF-8',
+        file = self.add_entity('File', data_name=u"pouet.txt", data_encoding=u'UTF-8',
                                data=Binary('new widgets system'))
         form = FFForm(self.req, redirect_path='perdu.com', entity=file)
         self.assertTextEquals(self._render_entity_field('data', form),
@@ -195,7 +195,7 @@
                 return 'ascii'
             def form_field_format(self, field):
                 return 'text/plain'
-        file = self.add_entity('File', name=u"pouet.txt", data_encoding=u'UTF-8',
+        file = self.add_entity('File', data_name=u"pouet.txt", data_encoding=u'UTF-8',
                                data=Binary('new widgets system'))
         form = EFFForm(self.req, redirect_path='perdu.com', entity=file)
         self.assertTextEquals(self._render_entity_field('data', form),