def __init__(self, buf, filename=''):
     StringIO.__init__(self, buf)
     self.filename = filename
Пример #2
0
 def __init__(self, buf, filename=''):
     StringIO.__init__(self, buf)
     self.filename = filename
Пример #3
0
 def setUp(self):
     super(FileWidgetTest, self).setUp()
     file = StringIO('Foo Value')
     file.filename = 'test.txt'
     self._widget.request.form['field.foo'] = file
Пример #4
0
 def setUp(self):
     super(FileWidgetTest, self).setUp()
     file = StringIO('Foo Value')
     file.filename = 'test.txt'
     self._widget.request.form['field.foo'] = file