Commits

Thejesh GN committed 510ad82

file structure changed.

Comments (0)

Files changed (16)

app.yaml

-application: lwlaterapp
-version: 1-test
-runtime: python
-api_version: 2
-
-handlers:
-- url: /static_files
-  static_dir: static_files
-
-- 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

errors/default_error.py

-Default error page

errors/not_found.py

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

errors/over_quota.py

-print "Over quota"

lwlater/index.py

-print 'Welcome to Listen and Watch Later'
-
-
+application: lwlaterapp
+version: 1-test
+runtime: python
+api_version: 2
+
+handlers:
+- url: /static_files
+  static_dir: static_files
+
+- 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

src/errors/default_error.py

+Default error page

src/errors/not_found.py

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

src/errors/over_quota.py

+print "Over quota"

src/lwlater/index.py

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

src/static_files/help.html

+<html>
+I am helping you.
+</html>

src/static_files/lw.js

+/* JS code */

src/static_files/style.css

+/* CSS file */

static_files/help.html

-<html>
-I am helping you.
-</html>

static_files/lw.js

-/* JS code */

static_files/style.css

-/* CSS file */