From 48f17fdd03bb2fa58dd9deef4400caa05f39fcb4 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Mon, 25 Jan 2016 12:07:27 -0800 Subject: constants.py: capitalized CONSTANT variables --- bbb/constants.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'bbb/constants.py') diff --git a/bbb/constants.py b/bbb/constants.py index ac62f98..6a59bb1 100644 --- a/bbb/constants.py +++ b/bbb/constants.py @@ -1,12 +1,14 @@ -datatypes = ['commonsMedia', 'globe-coordinate', 'monolingual-text', +WB_DATATYPES = ['commonsMedia', 'globe-coordinate', 'monolingual-text', 'quantity', 'string', 'time', 'url', 'timestamp', 'item', 'property'] +WB_SNAKTYPES = ['value', 'novalue', 'somevalue'] + # time: time, timezone(minutes), before(int), after(int), precision(enum), calendarmodel(url) -ranks = ['preferred', 'normal', 'deprecated'] +WB_RANKS= ['preferred', 'normal', 'deprecated'] -wmf_language_codes = ('aa', 'ab', 'ace', 'ady', 'ady-cyrl', 'aeb', 'aeb-arab', +WMF_LANGUAGE_CODES = ('aa', 'ab', 'ace', 'ady', 'ady-cyrl', 'aeb', 'aeb-arab', 'aeb-latn', 'af', 'ak', 'aln', 'als', 'am', 'an', 'ang', 'anp', 'ar', 'arc', 'arn', 'arq', 'ary', 'arz', 'as', 'ase', 'ast', 'av', 'avk', 'awa', 'ay', 'az', 'azb', 'ba', 'bar', 'bat-smg', 'bbc', 'bbc-latn', 'bcc', 'bcl', @@ -49,7 +51,7 @@ wmf_language_codes = ('aa', 'ab', 'ace', 'ady', 'ady-cyrl', 'aeb', 'aeb-arab', 'zea', 'zh', 'zh-classical', 'zh-cn', 'zh-hans', 'zh-hant', 'zh-hk', 'zh-min-nan', 'zh-mo', 'zh-my', 'zh-sg', 'zh-tw', 'zh-yue', 'zu') -wmf_sites = ('aawikibooks', 'afwikibooks', 'afwikiquote', 'akwikibooks', +WMF_SITES = ('aawikibooks', 'afwikibooks', 'afwikiquote', 'akwikibooks', 'alswikibooks', 'alswikiquote', 'amwikiquote', 'angwikibooks', 'angwikiquote', 'angwikisource', 'arwikibooks', 'arwikinews', 'arwikiquote', 'arwikisource', 'astwikibooks', 'astwikiquote', -- cgit v1.2.3