Mercurial > hg > ltpda
diff m-toolbox/classes/@collection/fromRepository.m @ 24:056f8e1e995e database-connection-manager
Properly record history in fromRepository constructors
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Mon, 05 Dec 2011 16:20:06 +0100 |
parents | b11e88004fca |
children |
line wrap: on
line diff
--- a/m-toolbox/classes/@collection/fromRepository.m Mon Dec 05 16:20:06 2011 +0100 +++ b/m-toolbox/classes/@collection/fromRepository.m Mon Dec 05 16:20:06 2011 +0100 @@ -30,8 +30,7 @@ collFound = false; - %%% check if using binary or not: 'yes'/'no' or true/false or - %%% 'true'/'false' + % check if using binary download bin = utils.prog.yes2true(bin); % database connection @@ -65,10 +64,8 @@ robj = ltpda_uo.retrieve(conn, id); end - %---- remove the connection from the history plist - if plh.isparam('conn') - plh.remove('conn'); - end + %---- Set connection parameters in the plist + utils.repository.adjustPlist(conn, plh); %---- Set only the ID of the current object to the plist plh.pset('ID', id);