#boxwilddog.py
@@ -1,14 +1,2450 @@
 #
-boxwilddog.py
+!/usr/bin/env python%0A# -*- coding: utf-8 -*-%0A%0A#  Copyright 2016 ccdjh %3Cccdjh.marx@gmail.com%3E%0A%0Aimport time%0Aimport json%0Aimport types %0Aimport random%0Aimport re%0Aimport hashlib%0A%0Aimport urllib2%0A%0A%0Aclass Model(object):%0A    def __init__(self,**arg): #callback:dict%0A%0A        class_dict_more = self.__class__.__dict__.copy()%0A%0A        arg_1 = arg.copy()%0A%0A        for i in arg_1.keys():%0A            a = None if i in class_dict_more.keys() else arg_1.pop(i)%0A%0A        for i in class_dict_more.items():%0A            a = None if type(i%5B1%5D) is types.ListType else class_dict_more.pop(i%5B0%5D) %0A%0A        for i in class_dict_more.items():%0A            if i%5B1%5D%5B0%5D == %22auth_property%22:%0A                class_dict_more%5Bi%5B0%5D%5D%5B2%5D = HelperHandler.helper_auth()%0A            if i%5B1%5D%5B0%5D == %22time_property%22:%0A                class_dict_more%5Bi%5B0%5D%5D%5B2%5D = HelperHandler.helper_time()%0A%0A        self.massage = class_dict_more%0A%0A        for i in class_dict_more.items():%0A            arg_1%5Bi%5B0%5D%5D = arg%5Bi%5B0%5D%5D if arg_1.has_key(i%5B0%5D) else i%5B1%5D%5B2%5D%0A        self.value = arg_1%0A%0A%0A%0Aclass StringProperty(object):%0A    def __new__(cls,**arg):%0A        string_property_arg = arg%0A        me = 'string_property'%0A        string_property_dict =%7B%7D%0A        default_io = string_property_arg.has_key('default')%0A        default  = string_property_arg%5B'default'%5D if default_io else 'none'%0A        return %5Bme,string_property_dict,default,%7B%7D%5D%0A%0A%0Aclass TimeProperty(object):%0A    def __new__(cls,**arg):%0A        time_property_arg = arg%0A        me = 'time_property'%0A        time_property_dict =%7B%7D%0A        default_io = time_property_arg.has_key('default')%0A        default  = time_property_arg%5B'default'%5D if default_io else HelperHandler.helper_time()%0A        return %5Bme,time_property_dict,default,%7B%7D%5D%0A%0Aclass AuthProperty(object):%0A    def __new__(cls,**arg):%0A        auth_property_arg = arg%0A        me = 'auth_property'%0A        auth_property_dict =%7B%7D%0A        default_io = auth_property_arg.has_key('default')%0A        default  = auth_property_arg%5B'default'%5D if default_io else HelperHandler.helper_auth()%0A        return %5Bme,auth_property_dict,default,%7B%7D%5D%0A%0A%0A%0Aclass HelperHandler():%0A%0A    @classmethod%0A    def helper_auth(cls):%0A        t = str(int(time.time()))%0A        ex = '1234567890qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM'%0A        e = %22%22.join(random.sample(ex,10))%0A        x = %22%22.join(random.sample(ex,10))%0A        return t + e + x%0A%0A    @classmethod%0A    def helper_time(cls):%0A        return str(int(time.time()))%0A%0A

add boxwilddog model