Changeset 9365 for main/waeup.kofa
- Timestamp:
- 20 Oct 2012, 10:39:38 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/tools/copy_media_files.py
r9362 r9365 20 20 ## The folder where all source docs can be found 21 21 #SRC_DIR = "/zope/instances/aaue-images" 22 SRC_DIR = "/ home/uli/tmp/migration/src"22 SRC_DIR = "/tmp/migration/src" 23 23 24 24 ## The students folder in Kofa where files should go to 25 25 #DST_DIR = "/kofa/aaue/var/datacenter/media/students" 26 DST_DIR = "/ home/uli/tmp/migration/dst/media/students"26 DST_DIR = "/tmp/migration/dst" 27 27 28 28 ## The Ids of new students to search for in old portal. … … 118 118 stud_id = new_to_old_map.get(new_stud_id[1:], new_stud_id[1:]) 119 119 src_folder = os.path.join(SRC_DIR, stud_id[0], stud_id) 120 dst_folder = os.path.join(DST_DIR, new_folder_name(stud_id), new_stud_id) 120 dst_folder = os.path.join( 121 DST_DIR, new_folder_name(new_stud_id[1:]), new_stud_id) 121 122 if not os.path.exists(src_folder): 122 123 print "No old data for %s. Skipping." % stud_id
Note: See TracChangeset for help on using the changeset viewer.