Minor bugfixes; Added ability to set wind store during connect

This commit is contained in:
Simon Pamies committed 2011-06-10 22:46:06 +02:00
1 parent ac2dc8cb96
commit 3cb085cc8e
4 files changed
+16 -1

No files matched your search

@@ -68,7 +68,7 @@ class URIConfigurator(object):
def trigger(self, request=None):
if self.do_log is True:
log.info('Triggering URI %s' % self.URI())
return urllib2.urlopen(self.URI())
return urllib2.urlopen(self.URI()).read()
def jsonByUrl(configurator):
""" Connects to specified REST service and returns parsed data """
@@ -1,5 +1,8 @@
from database import databases, collections
import logging
log = logging.getLogger(__name__)
def dbStats():
result = dict()
for dbname in databases:
@@ -93,6 +93,10 @@ def configureListener(context, request):
try:
result = conf.trigger()
if result.find('Exception')>0:
raise Exception, 'Server triggered exception: %s' % result[:550]
except Exception, ex:
return view.yieldMessage('Error: %s' % str(ex))
@@ -53,6 +53,14 @@ When <i>stopping listener</i> it will trigger two methods: If you select a race
</select>
</div>
<div class="field">
<span>Persistent store where to persist wind tracks</span><br/>
<select name="windstore">
<option value="empty">Do not persist wind</option>
<option value="mongo">MongoDB Persister</option>
</select>
</div>
<div class="field">
<input type="checkbox" name="drop_db" />&nbsp;
<span>Drop Database before connect</span><br/>