Project

Profile

Help

Task #1422

Updated by jortel@redhat.com almost 9 years ago

The Lazy effort changed the API on FileContentUnit. 
 The set_content() method has been replaced with import_content(). 
 The importer needs to do: 

 *For single file units* 
 <pre> 
 unit.storage_path = <file-name> 
 </pre> 

 so that the _storage_path ends with the file name. 

 *For multiple file units (directory trees)* 

 The importer needs to call import_content(path, location) for each file to be stored where _location_ is the location within the directory referenced in _storage_path where the file is to be stored. 

 The model _should_ to implement list_files(). 

Back