Permalink
Browse files

Added Yahoo site verification

  • Loading branch information...
hymerman committed Feb 16, 2011
1 parent 93994b7 commit 15c7532d85d16e7128a077711cd81806dd669195
Showing with 15 additions and 0 deletions.
  1. +4 −0 config.py
  2. +8 −0 post_deploy.py
  3. +3 −0 static.py
View
@@ -73,6 +73,10 @@
# Same as above but for Bing site verification. Just enter the user ID you get given.
bing_site_verification = None
+# Same again but for Yahoo site verification. Just enter the filename and ID you get given.
+yahoo_site_verification_filename = None
+yahoo_site_verification_id = None
+
# Default markup language for entry bodies (defaults to html).
default_markup = 'html'
View
@@ -91,6 +91,14 @@ def bing_site_verification(previous_version):
if config.bing_site_verification:
post_deploy_tasks.append(bing_site_verification)
+def yahoo_site_verification(previous_version):
+ static.set('/' + config.yahoo_site_verification_filename,
+ utils.render_template('yahoo_site_verification.html'),
+ config.html_mime_type, False)
+
+if config.yahoo_site_verification_filename and config.yahoo_site_verification_id:
+ post_deploy_tasks.append(yahoo_site_verification)
+
def run_deploy_task():
"""Attempts to run the per-version deploy task."""
task_name = 'deploy-%s' % os.environ['CURRENT_VERSION_ID'].replace('.', '-')
View
@@ -26,6 +26,9 @@
if config.bing_site_verification is not None:
ROOT_ONLY_FILES.append('/LiveSearchSiteAuth.xml')
+if config.yahoo_site_verification_filename is not None and config.yahoo_site_verification_id is not None:
+ ROOT_ONLY_FILES.append('/' + config.yahoo_site_verification_filename)
+
class StaticContent(db.Model):
"""Container for statically served content.

0 comments on commit 15c7532

Please sign in to comment.