Back to index

plone3  3.1.7
validateTextFile.py
Go to the documentation of this file.
00001 ##parameters=file='', **kw
00002 ##
00003 try:
00004     upload = file.read()
00005 except AttributeError:
00006     return context.setStatus(True)
00007 else:
00008     if upload:
00009         return context.setStatus(True, text=upload)
00010     else:
00011         return context.setStatus(True)