changeset 18:947e2ff4b1b9 database-connection-manager

Update plist.FROM_REPOSITORY_PLIST and plist.TO_REPOSITORY_PLIST
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Mon, 05 Dec 2011 16:20:06 +0100
parents 7afc99ec5f04
children 69e3d49b4b0c
files m-toolbox/classes/@plist/plist.m
diffstat 1 files changed, 3 insertions(+), 28 deletions(-) [+]
line wrap: on
line diff
--- a/m-toolbox/classes/@plist/plist.m	Mon Dec 05 16:20:06 2011 +0100
+++ b/m-toolbox/classes/@plist/plist.m	Mon Dec 05 16:20:06 2011 +0100
@@ -318,20 +318,9 @@
     % user-object constructor default plists for the 'From Repository' set.
     function pl = FROM_REPOSITORY_PLIST
       pl = plist();
-      
-      % get repository list
-      prefs = getappdata(0, 'LTPDApreferences');
-      hostNames = prefs.getRepoPrefs.getHostnames;
-      repos = {};
-      for ii=0:hostNames.size()-1
-        repos = [repos {hostNames.get(ii)}];
-      end
-      
+            
       % Hostname
-      if isempty(repos)
-        repos = {'localhost'};
-      end
-      p = param({'hostname','The repository hostname'}, {1, repos, paramValue.SINGLE});
+      p = param({'hostname','The repository hostname'},  paramValue.EMPTY_STRING);
       pl.append(p);
       
       % ID
@@ -365,19 +354,8 @@
     function pl = TO_REPOSITORY_PLIST
       pl = plist();
       
-      % get repository list
-      prefs = getappdata(0, 'LTPDApreferences');
-      hostNames = prefs.getRepoPrefs.getHostnames;
-      repos = {};
-      for ii=0:hostNames.size()-1
-        repos = [repos {hostNames.get(ii)}];
-      end
-      
       % Hostname
-      if isempty(repos)
-        repos = {'localhost'};
-      end
-      p = param({'hostname', 'Repository server hostname'}, {1, repos, paramValue.SINGLE});
+      p = param({'hostname', 'Repository server hostname'},  paramValue.EMPTY_STRING);
       pl.append(p);
       
       % Database
@@ -427,9 +405,6 @@
       p = param({'no dialog', 'Do not use of the submission form. Mandatory fields must be supplied in the plist.'}, paramValue.FALSE_TRUE);
       pl.append(p);
       
-      p = param({'use selector', 'Allow to select to which database to connect'}, paramValue.TRUE_FALSE);
-      pl.append(p);
-      
     end
     
     % Plist for Welch-based, linearly spaced spectral estimators.