1. Thejesh GN
  2. LWLater

Commits

Thejesh GN  committed 89cd43c

added error pages.
added wiki related info to readme file

  • Participants
  • Parent commits e83be3d
  • Branches default

Comments (0)

Files changed (6)

File README

View file
 (_______/(_______)(_______/|/     \|   )_(   (_______/|/   \__/
 
 Developed as part Yahoo Open Hack - Bangalore - 2011.
+===============================================================
+Check wiki tab for the details
+https://bitbucket.org/thejeshgn/lwlater/wiki/Home
+===============================================================
+
 All source code files are copyrighted under BSD 3
 
 Copyright (c) 2011, Thejesh GN, [Will add as and when there are more contributors]

File app.yaml

View file
 application: lwlaterapp
-version: 1
+version: 1-test
 runtime: python
 api_version: 2
 
 - url: /static_files
   static_dir: static_files
 
-- url: .*
+- url: /
   script: lwlater/index.py
+  login: required
+
+- url: /index\.html
+  script: lwlater/index.py
+  login: required
+
+- url: /.*
+  script: errors/not_found.py
+
+error_handlers:
+  - file: errors/default_error.py
+
+  - error_code: over_quota
+    file: errors/over_quota.py

File errors/default_error.py

View file
+Default error page

File errors/not_found.py

View file
+print 'Content-Type: text/html'
+
+print '''<center><code><pre>
+     ___    _______     ___   
+    /   )  (  __   )   /   )  
+   / /) |  | (  )  |  / /) |  
+  / (_) (_ | | /   | / (_) (_ 
+ (____   _)| (/ /) |(____   _)
+      ) (  |   / | |     ) (  
+      | |  |  (__) |     | |  
+      (_)  (_______)     (_)  
+                                                   </pre></code>'''
+
+
+
+
+
+print '''<code><pre>
+ _______  _______  _______  _______    _        _______ _________
+(  ____ )(  ___  )(  ____ \(  ____ \  ( (    /|(  ___  )\__   __/
+| (    )|| (   ) || (    \/| (    \/  |  \  ( || (   ) |   ) (   
+| (____)|| (___) || |      | (__      |   \ | || |   | |   | |   
+|  _____)|  ___  || | ____ |  __)     | (\ \) || |   | |   | |   
+| (      | (   ) || | \_  )| (        | | \   || |   | |   | |   
+| )      | )   ( || (___) || (____/\  | )  \  || (___) |   | |   
+|/       |/     \|(_______)(_______/  |/    )_)(_______)   )_(   
+                                                
+ _______  _______           _        ______  
+(  ____ \(  ___  )|\     /|( (    /|(  __  \ 
+| (    \/| (   ) || )   ( ||  \  ( || (  \  )
+| (__    | |   | || |   | ||   \ | || |   ) |
+|  __)   | |   | || |   | || (\ \) || |   | |
+| (      | |   | || |   | || | \   || |   ) |
+| )      | (___) || (___) || )  \  || (__/  )
+|/       (_______)(_______)|/    )_)(______/ </pre></code></center>'''

File errors/over_quota.py

View file
+print "Over quota"

File lwlater/index.py

View file
 print 'Welcome to Listen and Watch Later'
+
+