# HG changeset patch # User Daniele Nicolodi # Date 1323098406 -3600 # Node ID 947e2ff4b1b99157cf3670a2745c577b7700d6e2 # Parent 7afc99ec5f04a9c5c2c5997744cc5d7a0b883537 Update plist.FROM_REPOSITORY_PLIST and plist.TO_REPOSITORY_PLIST diff -r 7afc99ec5f04 -r 947e2ff4b1b9 m-toolbox/classes/@plist/plist.m --- 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.