def __init__(self, buf, filename=''):
     StringIO.__init__(self, buf)
     self.filename = filename
Exemplo n.º 2
0
 def __init__(self, buf, filename=''):
     StringIO.__init__(self, buf)
     self.filename = filename
Exemplo n.º 3
0
 def setUp(self):
     super(FileWidgetTest, self).setUp()
     file = StringIO('Foo Value')
     file.filename = 'test.txt'
     self._widget.request.form['field.foo'] = file
Exemplo n.º 4
0
 def setUp(self):
     super(FileWidgetTest, self).setUp()
     file = StringIO('Foo Value')
     file.filename = 'test.txt'
     self._widget.request.form['field.foo'] = file