Permalink
Browse files

Updated sightings

  • Loading branch information...
1 parent 7cfeae0 commit 6674d424f5f9755e11a7eb44698a3f477b8c2a38 @jenikm jenikm committed Nov 1, 2011
View
@@ -7,8 +7,7 @@ import java.util.concurrent.*;
import java.awt.geom.*;
/* Cohen-Sutherland algorithm */
-Line2D clipLineToRect(Line2D l, Rectangle2D r)
-{
+Line2D clipLineToRect(Line2D l, Rectangle2D r){
double x1 = l.getP1().getX();
double y1 = l.getP1().getY();
double x2 = l.getP2().getX();
Deleted file not rendered
Deleted file not rendered
View
Deleted file not rendered
View
Deleted file not rendered
Deleted file not rendered
Deleted file not rendered
View
Deleted file not rendered
Deleted file not rendered
Deleted file not rendered
Deleted file not rendered
Deleted file not rendered
@@ -45,10 +45,10 @@ def get(self):
path = os.path.join(os.path.dirname(__file__), views_path + 'index.html')
self.response.out.write(template.render(path, template_values))
-class Photos(webapp.RequestHandler):
+class Screenshots(webapp.RequestHandler):
def get(self):
- template_values = {'current_page': 'photos' }
- path = os.path.join(os.path.dirname(__file__), views_path + 'photos.html')
+ template_values = {'current_page': 'screenshots' }
+ path = os.path.join(os.path.dirname(__file__), views_path + 'screenshots.html')
self.response.out.write(template.render(path, template_values))
class Download(webapp.RequestHandler):
@@ -75,12 +75,12 @@ def get(self):
response = -1
if sighting_id != '':
response = db.GqlQuery("SELECT * FROM Sighting WHERE sighting_id = :1", int(sighting_id)).get().to_xml()
- self.response.out.writeln('<?xml version="1.0"?>');
+ self.response.out.write('<?xml version="1.0"?>');
self.response.out.write(response)
application = webapp.WSGIApplication([('/', Index),
('/sightings', Sightings),
- ('/photos', Photos),
+ ('/screenshots', Screenshots),
('/search', Search),
('/download', Download)],
debug=True)

0 comments on commit 6674d42

Please sign in to comment.