git.fiddlerwoaroof.com
Browse code

adjusting EventHandler to get it to work on Heroku

Ed L authored on 05/03/2012 17:36:27
Showing 1 changed files
... ...
@@ -30,7 +30,10 @@ import collections
30 30
 
31 31
 ################### Customization hooks
32 32
 class EventHandler(object):
33
-	store = MongoDBStore()
33
+	@property
34
+	def store(self):
35
+		self.__class__.store= MongoDBStore()
36
+		return self.store
34 37
 
35 38
 	def __init__(self, resource):
36 39
 		self.resource = resource