docs: def validate_MAXLEN(value, restriction):
      """
          Test to ensure that a list has the prescribed length.
          Parameters: A list and an integer, which defines the required length of
          the list.
      """
      #Sometimes restriction values can accidentally be put in the template <item>100</items>,
      #Making them a list, not a number. Rather than blowing up, just get value 1 from the list.
      if type(restriction) is list:
          restriction = restriction[0]
      else:
          return
  
      if len(value) > restriction:
          raise ValidationError("MAXLEN: %s"%(restriction))