Ryan Fan
Ryan Fan
这个是设计在配置文件里面写多个section来实现: ``` [DomainRecord1] domain= test.com # subdomain name, like www, blog, bbs, *, @, ... sub_domain= www # resolve type, 'A', 'AAAA'..., currently it only supports 'A' type=A [DomainRecord2] domain=...
@vcancy 十分感谢你的PR, 下面是我的一点建议: 1. 以后所有的feature的配置全部建议放在feature_[feature name]的section里面, 这样逻辑更清晰 ``` [feature_serverchan] enabled=false sckey = ``` 2. 如果新功能的配置全部放在feature_xxx的section中的话, 需要修改config.py过滤掉feature_开头的section FROM: ``` def get_domain_record_sections(self): """ Get sections other than default, which contains DomainRecord definition...
# I found a workaround to change the line 54 of file "/usr/lib/python2.6/site-packages/wordpress_xmlrpc/wordpress.py" as below: FROM: return '' % (self.**class**.**name**, str(self).encode('utf-8')) TO: return '' % (self.**class**.**name**, unicode(self).encode('utf-8'))