Move sample multis list to live config.

This commit is contained in:
Max Goodman
2013-09-03 14:19:41 -07:00
parent df2d7e91c0
commit 3d0e1971bf
3 changed files with 4 additions and 4 deletions

View File

@@ -528,9 +528,6 @@ wiki_page_registration_info = registration_info
# Template names to record render timings for
timed_templates = Reddit, Link, Comment, LinkListing, NestedListing, SubredditTopBar
# sample multireddits (displayed when a user has no multis)
sample_multis = /user/reddit/m/hello, /user/reddit/m/world
# employees that aren't admins or sponsors (Free gilding, admin distinguish, traffic viewing, etc.)
employees =
@@ -611,3 +608,5 @@ comment_tree_version_weights = 1:1, 2:0
# use **strong** markup for a larger font, and " \n" (<br>) to separate lines.
goldvertisement_blurbs = "Make reddit better. Try %(reddit_gold)." "This year, give the gift of %(reddit_gold)s.|(and you should probably also give some other, better gifts)"
goldvertisement_has_gold_blurbs = "**&ldquo;Exquisite!&rdquo;** \nGrab a drink and join us in [the lounge](/r/lounge)."
# sample multireddits (displayed when a user has no multis)
listing_chooser_sample_multis = /user/reddit/m/hello, /user/reddit/m/world

View File

@@ -227,6 +227,7 @@ class Globals(object):
ConfigValue.tuple: [
'sr_discovery_links',
'fastlane_links',
'listing_chooser_sample_multis',
],
ConfigValue.dict(ConfigValue.int, ConfigValue.float): [
'comment_tree_version_weights',

View File

@@ -4152,7 +4152,7 @@ class ListingChooser(Templated):
})
def add_samples(self):
for path in g.sample_multis:
for path in g.live_config["listing_chooser_sample_multis"]:
self.add_item(
section="sample",
name=path.rpartition('/')[2],