Commits

Anonymous committed 6e7f3a9

Updating link handler and SmugMug signup url, misc updates for GAE 1.3.8

Comments (0)

Files changed (3)

 application: rokusmug
-version: 1-3
+version: 1-4
 runtime: python
 api_version: 1
 
   static_files: static/favicon.ico
   upload: static/favicon.ico
 
-- url: /stats.*
-  script: $PYTHON_LIB/google/appengine/ext/appstats/ui.py
-
 - url: .*
   script: application.py
   
-derived_file_type:
-- python_precompiled
-
-admin_console:
-  pages:
-  - name: Appstats
-    url: /stats
-    
+builtins:
+- datastore_admin: on
+- appstats: on

appengine_config.py

 def webapp_add_wsgi_middleware(app):
     from google.appengine.ext.appstats import recording
     app = recording.appstats_wsgi_middleware(app)
-    return app
+    return app
+    
 
 class LinkHandler(webapp.RequestHandler):
     def get(self):
-        self.redirect("http://www.smugmug.com/?referrer=2TqKwSOXw5HeU")
+        self.redirect("https://secure.smugmug.com/signup.mg?Coupon=2TqKwSOXw5HeU")
 
 class RegCodeHandler(webapp.RequestHandler):
     def get(self):
             
 class ServiceHandler(webapp.RequestHandler):
     def get(self,service):
+        service = service.lower()
+        if service == "picassa":
+            service = "picasa"
         self.redirect("/?service="+service)
 
 class ArchiveHandler(webapp.RequestHandler):
     (r"/getRegResult", RegResultHandler),
     (r"/signup", LinkHandler),
     (r"/tasks/archive", ArchiveHandler),
-    (r"/(picasa|smugmug)/*", ServiceHandler),
+    (r"/(?i)(picasa|picassa|smugmug)/*", ServiceHandler),
     (r"/", MainHandler),
 ])