Skip to content
Browse files

Move sample multis list to live config.

  • Loading branch information...
1 parent df2d7e9 commit 3d0e1971bf16feedd996127cf607c153440edac0 @chromakode chromakode committed Sep 3, 2013
Showing with 4 additions and 4 deletions.
  1. +2 −3 r2/example.ini
  2. +1 −0 r2/r2/lib/app_globals.py
  3. +1 −1 r2/r2/lib/pages/pages.py
View
5 r2/example.ini
@@ -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
1 r2/r2/lib/app_globals.py
@@ -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
2 r2/r2/lib/pages/pages.py
@@ -4152,7 +4152,7 @@ def add_item(self, section, name, path=None, site=None, description=None):
})
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],

0 comments on commit 3d0e197

Please sign in to comment.
Something went wrong with that request. Please try again.