comparison roundup/cgi/form_parser.py @ 5170:2ae3954e972f

Hopefully fix issue2550929 (Edit error on message_type when no content is given)
author Ralf Schlatterbeck <rsc@runtux.com>
date Fri, 21 Oct 2016 14:12:44 +0200
parents cc4f4ee46d88
children 5b63cfc95255
comparison
equal deleted inserted replaced
5169:7b74a5addfea 5170:2ae3954e972f
595 del all_props[(cn, id)] 595 del all_props[(cn, id)]
596 elif isinstance(self.db.classes[cn], hyperdb.FileClass): 596 elif isinstance(self.db.classes[cn], hyperdb.FileClass):
597 # Avoid emptying the file 597 # Avoid emptying the file
598 if props.has_key('content') and not props['content']: 598 if props.has_key('content') and not props['content']:
599 del props ['content'] 599 del props ['content']
600 if id is not None and id.startswith('-'):
601 del all_props[(cn, id)]
600 return all_props, all_links 602 return all_props, all_links
601 603
602 def parse_file(self, fpropdef, fprops, v): 604 def parse_file(self, fpropdef, fprops, v):
603 # try to determine the file content-type 605 # try to determine the file content-type
604 fn = v.filename.split('\\')[-1] 606 fn = v.filename.split('\\')[-1]

Roundup Issue Tracker: http://roundup-tracker.org/