-
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
T12828: Use the pywikibot-config repo for configuration
- Loading branch information
1 parent
ab5f65d
commit 58388e9
Showing
4 changed files
with
86 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# MANAGED BY PUPPET | ||
family = 'wikitide' | ||
mylang = 'meta' | ||
usernames['wikitide']['meta'] = 'BeeBot' | ||
authenticate['*.miraheze.org'] = ('<%= @consumer_token %>', '<%= @consumer_secret %>', '<%= @access_token %>', '<%= @access_secret %>') | ||
mylang = 'metawiki' | ||
usernames['wikitide']['*'] = 'BeeBot', | ||
authenticate['*'] = ('<%= @consumer_token %>', '<%= @consumer_secret %>', '<%= @access_token %>', '<%= @access_secret %>') | ||
user_agent_description = 'https://meta.miraheze.org/wiki/Tech:Pywikibot; [email protected]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,26 @@ | ||
""" | ||
This family file was auto-generated by generate_family_file.py script. | ||
Configuration parameters: | ||
url = https://meta.miraheze.org | ||
name = meta | ||
Please do not commit this to the Git repository! | ||
""" | ||
from pywikibot import family | ||
|
||
|
||
class Family(family.Family): # noqa: D101 | ||
|
||
name = 'wikitide' | ||
langs = { | ||
'meta': 'meta.miraheze.org', | ||
'test': 'test.miraheze.org', | ||
} | ||
|
||
def scriptpath(self, code): | ||
return { | ||
'meta': '/w', | ||
'test': '/w', | ||
}[code] | ||
|
||
def protocol(self, code): | ||
return { | ||
'meta': 'https', | ||
'test': 'https', | ||
}[code] | ||
# MANAGED BY PUPPET | ||
from pywikibot import family | ||
|
||
|
||
class Family(family.Family): # noqa: D101 | ||
|
||
name = 'wikitide' | ||
langs = { | ||
<% family_langs.each |$dbname, $params| {-%> | ||
'<%= $dbname %>': '<%= $params[domain] %>', | ||
<% } -%> | ||
} | ||
|
||
def scriptpath(self, code): | ||
return { | ||
<% family_langs.each |$dbname, $params| {-%> | ||
'<%= $dbname %>': '/w', | ||
<% } -%> | ||
}[code] | ||
|
||
def protocol(self, code): | ||
return { | ||
<% family_langs.each |$dbname, $params| {-%> | ||
'<%= $dbname %>': 'https', | ||
<% } -%> | ||
}[code] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters