!~~uint

def uint(nstr, schema):
    """
    !~~uint
    """
    if isinstance(nstr, basestring):
        if not nstr.isdigit():
            return False
        nstr = long(nstr)
    elif not isinstance(nstr, (int, long)):
        return False

    return nstr > 0