climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From boust...@apache.org
Subject [1/2] git commit: [CLIMATE-503], Fixing OCW cli notification center. - OCW cli has notification feature that notifies user on every usage of cli. It is broken now due to passing wrong arguments to the function that generated notification.
Date Thu, 07 Aug 2014 21:22:03 GMT
Repository: climate
Updated Branches:
  refs/heads/master e1a67b7f0 -> f21be5f65


[CLIMATE-503], Fixing OCW cli notification center.
	- OCW cli has notification feature that notifies user on every usage of cli.
	It is broken now due to passing wrong arguments to the function that generated notification.


Project: http://git-wip-us.apache.org/repos/asf/climate/repo
Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/6a88f953
Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/6a88f953
Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/6a88f953

Branch: refs/heads/master
Commit: 6a88f953425ad363b3c4d899ec19c038e12da2bc
Parents: e1a67b7
Author: Maziyar Boustani <maziyar_b4@yahoo.com>
Authored: Thu Aug 7 09:51:20 2014 -0700
Committer: Maziyar Boustani <maziyar_b4@yahoo.com>
Committed: Thu Aug 7 09:51:20 2014 -0700

----------------------------------------------------------------------
 ocw-cli/ocw_cli.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/climate/blob/6a88f953/ocw-cli/ocw_cli.py
----------------------------------------------------------------------
diff --git a/ocw-cli/ocw_cli.py b/ocw-cli/ocw_cli.py
index a2de5cd..c8832b4 100644
--- a/ocw-cli/ocw_cli.py
+++ b/ocw-cli/ocw_cli.py
@@ -158,7 +158,7 @@ def manage_model_screen(header, note = ""):
 
      option = ''
      while option != '0':
-          ready_screen(note, page="manage_model_screen")
+          ready_screen("manage_model_screen", note)
           screen.addstr(1, 1, header)
           screen.addstr(4, 4, "1 - Load Model File     [Number of loaded model: {0}]".format(len(model_datasets)))
           screen.addstr(6, 4, "2 - Unload Model File")
@@ -311,7 +311,7 @@ def manage_obs_screen(header, note = ""):
 
      option = ''
      while option != '0':
-          ready_screen(note, page="manage_obs_screen")
+          ready_screen("manage_obs_screen", note)
           screen.addstr(1, 1, header)
           screen.addstr(4, 4, "1 - Select Observation     [Number of selected observation:
{0}]".format(len(observations_info)))
           screen.addstr(6, 4, "2 - Unselect Observation")
@@ -370,7 +370,7 @@ def run_screen(model_datasets, models_info, observations_info,
 
      option = None
      if option != "0":
-          ready_screen(page="manage_obs_screen")
+          ready_screen("manage_obs_screen")
           y = screen.getmaxyx()[0]
           screen.addstr(2, 2, "Evaluation started....")
           screen.refresh()
@@ -626,7 +626,7 @@ def settings_screen(header):
 
      option = ''
      while option != '0':
-          ready_screen(note, page="settings_screen")
+          ready_screen("settings_screen", note)
           screen.addstr(1, 1, header)
           screen.addstr(4, 4, "Number of model file:   {0}".format(str(len(model_datasets))))
           screen.addstr(5, 4, "Number of observation:  {0}".format(str(len(observations_info))))
@@ -803,7 +803,7 @@ def main_menu(model_datasets, models_info, observation_datasets, observations_in
 
      option = ''
      while option != '0':
-          ready_screen(note, "main_menu")
+          ready_screen("main_menu", note='')
           model_status = "NC" if len(model_datasets) == 0 else "C"     #NC (Not Complete),
if there is no model added, C (Complete) if model is added
           obs_status = "NC" if len(observations_info) == 0 else "C"    #NC (Not Complete),
if there is no observation added, C (Complete) if observation is added
           screen.addstr(1, 1, "Main Menu:")


Mime
View raw message