def get_kinds(start=None, end=None):
 q = Kind.query()
 if ((start is not None) and (start != '')):
  q = q.filter((Kind.key >= Kind.key_for_kind(start)))
 if (end is not None):
  if (end == ''):
   return []
  q = q.filter((Kind.key < Kind.key_for_kind(end)))
 return [x.kind_name for x in q]

def get_kinds ( start = None , end = None ) : q = Kind . query ( ) if ( ( start is not None ) and ( start != '' ) ) : q = q . filter ( ( Kind . key >= Kind . key_for_kind ( start ) ) ) if ( end is not None ) : if ( end == '' ) : return [ ] q = q . filter ( ( Kind . key < Kind . key_for_kind ( end ) ) ) return [ x . kind_name for x in q ]
return all kinds in the specified range .