validation.py 220 B

123456
  1. # -*- coding: utf-8 -*-
  2. # !/usr/bin/env python
  3. from apps.web.core.validation import Schema, Required, ALLOW_EXTRA
  4. commandSchema = Schema({Required('cmd'): int, Required('IMEI'): basestring}, extra = ALLOW_EXTRA)