summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormakkalot <makkalot@gmail.com>2008-07-23 23:43:26 +0300
committermakkalot <makkalot@gmail.com>2008-07-23 23:43:26 +0300
commita4bc951089282e89f43cb2ae5ca48dec32aacf95 (patch)
tree824c9740eec3fd7ed98308b97e6456ed0a074f21
parentf23cc9937dd425c35d4f032260baacacfb9b57fb (diff)
little fix to change the behaviour for the first changes, because we may have some olds in db so dont want to show them also
-rw-r--r--funcweb/funcweb/controllers.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/funcweb/funcweb/controllers.py b/funcweb/funcweb/controllers.py
index 984ee0b..9e513a1 100644
--- a/funcweb/funcweb/controllers.py
+++ b/funcweb/funcweb/controllers.py
@@ -42,6 +42,7 @@ class Funcweb(object):
'methods':None
}
async_manager = None
+ first_run = True
#will be reused for widget validation
@expose(allow_json=True)
@@ -218,7 +219,6 @@ class Funcweb(object):
"this resource.")
else:
msg=_("Please log in.")
- print "I use that thing here"
forward_url= request.headers.get("Referer", ".")
response.status=403
@@ -315,7 +315,6 @@ class Funcweb(object):
by pressing only the link !
"""
if self.func_cache['glob']:
- print "Yeni overlord ile execution yapiyoz ya"
fc = Overlord(self.func_cache['glob'],async = True)
else:
if self.func_cache['minion_name'] == minion:
@@ -352,8 +351,10 @@ class Funcweb(object):
self.async_manager = AsyncResultManager()
changes = self.async_manager.check_for_changes()
if changes:
- changed = True
-
+ if not self.first_run:
+ changed = True
+ else:
+ self.first_run = False
return dict(changed = changed,changes = changes)
@@ -394,12 +395,10 @@ class Funcweb(object):
"""
if not self.async_manager:
#here should run the clean_old ids
- print "I dont have another copy ?"
purge_old_jobs()
self.async_manager = AsyncResultManager()
else:
#make a refresh of the memory copy
- print "I refreshed the list"
self.async_manager.refresh_list()
#get the actual db
func_db = self.async_manager.current_db()