from framework.controller import *

class Home(Controller):
    def GET(self, action=None):
        if action:
            return self.render(action)
        else:
            return self.render('home')
@@ -27,16 +27,57 @@
 import *
+%0Aimport giveaminute.location as mLocation
 %0A%0Aclass 
@@ -137,22 +137,45 @@
      if 
+(
 action
+ and action != 'home')
 :%0A      
@@ -221,16 +221,107 @@
   else:%0A
+            locations = self.json(mLocation.getSimpleLocationDictionary(self.db))%0A        %0A
         
@@ -345,13 +345,39 @@
 ender('home'
+,  %7B'locations':locations%7D
 )

add location data