Changeset 6033
- Timestamp:
- 10 May 2011, 10:51:59 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/image/browser/tests/image.txt
r5923 r6033 12 12 13 13 >>> import os 14 >>> from hurry.file import HurryFile14 >>> from waeup.sirp.image import WAeUPImageFile 15 15 >>> testimage = os.path.join(os.path.dirname(__file__), 'sample.jpg') 16 >>> some_file = HurryFile('foo.jpg', open(testimage, 'rb').read())16 >>> some_file = WAeUPImageFile('foo.jpg', open(testimage, 'rb').read()) 17 17 >>> some_file.filename 18 18 'foo.jpg' … … 62 62 >>> #from hurry.file.browser import EncodingFileWidget 63 63 >>> from waeup.sirp.image.browser import EncodingImageFileWidget 64 >>> field = File(__name__='foo', title=u'Foo', required=False)64 >>> field = ImageFile(__name__='foo', title=u'Foo', required=False) 65 65 >>> field = field.bind(None) 66 66 >>> request = TestRequest() … … 166 166 prepare some new file:: 167 167 168 >>> another_file = HurryFile('bar.txt', 'bar contents')168 >>> another_file = WAeUPImageFile('bar.txt', 'bar contents') 169 169 170 170 We happen to know, due to the implementation of
Note: See TracChangeset for help on using the changeset viewer.