Python ????????ù???
?????keakon?????? ???????[ 2016/10/24 11:27:24 ] ????????Python ???ù???
?????????????????????????? _after ?????︳????ɡ?
?????????????????????????????????????????????????????????????Щ?????????????????????????????????????????????????????????£?
class _AfterMeta(type):
def __init__(cls?? name?? bases?? dct):
super(_AfterMeta?? cls).__init__(name?? bases?? dct)
cls._after(dct)
class Config(object):
__metaclass__ = _AfterMeta
ROOT_PATH = '/'
LOGIN_PATH = ROOT_PATH + 'login'
SCHEME = 'http'
DOMAIN = 'localhost'
ROOT_URL = '%s://%s%s' % (SCHEME?? DOMAIN?? ROOT_PATH)
@classmethod
def _after(cls?? own_attrs):
if 'LOGIN_PATH' not in own_attrs and 'ROOT_PATH' in own_attrs:
cls.LOGIN_PATH = cls.ROOT_PATH + 'login'
if 'ROOT_URL' not in own_attrs and ('SCHEME' in own_attrs or 'DOMAIN' in own_attrs or 'ROOT_PATH' in own_attrs):
cls.ROOT_URL = '%s://%s%s' % (cls.SCHEME?? cls.DOMAIN?? cls.ROOT_PATH)
????????????????????????????????????д???????鷳???????????и??y?????????????????ò???????????д??ε???????
???????????????????????????????飬???????????????????????????????????????????????????
?????????·????????????????????????
?????????????????????????????????????÷??????????????? link ??????????м????
.
?????? config
?????? __init__.py
?????? default.py
?????? development.py -> private/development.py
?????? development_sample.py
?????? private (cloned from another private repository)
?? ?????? development.py
?? ?????? production.py
?????? production.py -> private/production.py
?????? production_sample.py
????????????????????????????е?????????????? .gitignore ??
?????????????????????????? Redis ?У???????????? rdb ??????ɡ????????????????????????????????????????????????? Dropbox?????? Dropbox ????????????????? link ??????????????????????
????doodle
?????????? data
?????????? redis -> ~/Dropbox/doodle/redis
???????????????и????Dropbox ????????б????????????????е?????汾???????????
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
??????????????????ù????????ù?????????????????????????????з????????????????ù????е?SVN???ù????????????汾????????cmmi???ù??????ù?????????????ù???????????(2)???ù???????????(1)SCM??????ù???????????????ù??????????????????????е????ù??????????????ù??????ù????????????汾?????????????????ù???Nginx???ù??? - ???????DCMP??????etcd?????ù?????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????