/[glsr]/trunk/htdocs/registered/create.py
Gentoo

Diff of /trunk/htdocs/registered/create.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 118 Revision 119
54 """Save the script to the database.""" 54 """Save the script to the database."""
55 55
56 parser = fieldparse.FieldParser(request = self._harm.request.forms, 56 parser = fieldparse.FieldParser(request = self._harm.request.forms,
57 error_method = self.__failed_create) 57 error_method = self.__failed_create)
58 parser.add_field("parent_script_id", required = True, regex = r'^\d+$') 58 parser.add_field("parent_script_id", required = True, regex = r'^\d+$')
59 parser.add_field("name", required = True, filter = html_escape, 59 parser.add_field("name", required = True, ffilter = html_escape,
60 min_size = 2, max_size = 30) 60 min_size = 2, max_size = 30)
61 parser.add_field("descr", default = "", max_size = 100) 61 parser.add_field("descr", default = "", max_size = 100)
62 parser.add_field("version", required = True, regex = r'^[\d\.]+$', 62 parser.add_field("version", required = True, regex = r'^[\d\.]+$',
63 min_size = 1, max_size = 10) 63 min_size = 1, max_size = 10)
64 parser.add_field("category_id", regex = r'^\d+$', default = 0) 64 parser.add_field("category_id", regex = r'^\d+$', default = 0)

Legend:
Removed from v.118  
changed lines
  Added in v.119

  ViewVC Help
Powered by ViewVC 1.1.20