Commits

Thejesh GN  committed a407e93

Added static files, create folder for script files, added license information.

  • Participants
  • Parent commits 4822c65

Comments (0)

Files changed (7)

 (_______/(_______)(_______/|/     \|   )_(   (_______/|/   \__/
 
 Developed as part Yahoo Open Hack - Bangalore - 2011.
-All source code files are copyrighted under 
+All source code files are copyrighted under BSD 3
 
-Copyright (c) 2011, Thejesh GN
+Copyright (c) 2011, Thejesh GN, <Will add as and when there are more contributors>
 All rights reserved.
 
 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
 
 Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+
 Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+
 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-application: lwlater
+application: lwlaterapp
 version: 1
 runtime: python
 api_version: 2
 
 handlers:
-- url: /.*
-  script: lwlater.py
+- url: /static_files
+  static_dir: static_files
+
+- url: .*
+  script: lwlater/index.py

File lwlater.py

-from google.appengine.api import users
-from google.appengine.ext import webapp
-from google.appengine.ext.webapp.util import run_wsgi_app
-
-class MainPage(webapp.RequestHandler):
-    def get(self):
-        user = users.get_current_user()
-
-        if user:
-            self.response.headers['Content-Type'] = 'text/plain'
-            self.response.out.write('Hello, ' + user.nickname())
-        else:
-            self.redirect(users.create_login_url(self.request.uri))
-
-application = webapp.WSGIApplication(
-                                     [('/', MainPage)],
-                                     debug=True)
-
-def main():
-    run_wsgi_app(application)
-
-if __name__ == "__main__":
-    main()

File lwlater/index.py

+print 'Welcome to Listen and Watch Later'

File static_files/help.html

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

File static_files/lw.js

+/* JS code */

File static_files/style.css

+/* CSS file */