As suggested by Elrond, we use only one setting

This commit is contained in:
Michele Azzolari 2012-01-12 00:00:28 +01:00
parent f502a89b6d
commit 7f251b037b
3 changed files with 2 additions and 3 deletions

View File

@ -51,7 +51,6 @@ allow_attachments = boolean(default=False)
csrf_cookie_name = string(default='mediagoblin_csrftoken')
# Push stuff
push_enabled = boolean(default=False)
push_url = string(default='')
[storage:publicstore]

View File

@ -126,7 +126,7 @@ def submit_start(request):
# re-raise the exception
raise
if mg_globals.app_config["push_enabled"]:
if mg_globals.app_config["push_url"]:
feed_url=request.urlgen(
'mediagoblin.user_pages.atom_feed',
qualified=True,user=request.user.username)

View File

@ -235,7 +235,7 @@ def atom_feed(request):
'rel': 'alternate',
'type': 'text/html'
}];
if mg_globals.app_config["push_enabled"]:
if mg_globals.app_config["push_url"]:
atomlinks.append({
'rel': 'hub',
'href': mg_globals.app_config["push_url"]})