Changeset 26699f in indico


Ignore:
Timestamp:
03/16/11 14:46:59 (2 years ago)
Author:
Jose Benito <jose.benito.gonzalez@…>
Branches:
master, burotel, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.98b1, v0.98b2, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, d9941f8582b36b24821a11ea5ba16fda6a457fb1
Children:
e9ba8c
Parents:
02bf56
Message:

[FIX] Checking max length for abstract fields

File:
1 edited

Legend:

Unmodified
Added
Removed
  • indico/MaKaC/webinterface/rh/conferenceModif.py

    r19825c r26699f  
    71867186        self._fieldCaption = params.get("fieldCaption", "") 
    71877187        self._fieldMaxLength = params.get("fieldMaxLength", 0) 
     7188        if self._fieldMaxLength.strip() == "": 
     7189            self._fieldMaxLength = 0 
     7190        try: 
     7191            self._fieldMaxLength = int(self._fieldMaxLength) 
     7192        except ValueError: 
     7193            raise FormValuesError(_("The field Max Length must be a number")) 
    71887194        self._fieldIsMandatory = params.get("fieldIsMandatory", False) 
    71897195        self._fieldType = params.get("fieldType", "textarea") 
Note: See TracChangeset for help on using the changeset viewer.