Changeset 9365 for main/waeup.kofa


Ignore:
Timestamp:
20 Oct 2012, 10:39:38 (12 years ago)
Author:
uli
Message:

Fix computation of dest dir.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/tools/copy_media_files.py

    r9362 r9365  
    2020## The folder where all source docs can be found
    2121#SRC_DIR = "/zope/instances/aaue-images"
    22 SRC_DIR = "/home/uli/tmp/migration/src"
     22SRC_DIR = "/tmp/migration/src"
    2323
    2424## The students folder in Kofa where files should go to
    2525#DST_DIR = "/kofa/aaue/var/datacenter/media/students"
    26 DST_DIR = "/home/uli/tmp/migration/dst/media/students"
     26DST_DIR = "/tmp/migration/dst"
    2727
    2828## The Ids of new students to search for in old portal.
     
    118118    stud_id = new_to_old_map.get(new_stud_id[1:], new_stud_id[1:])
    119119    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)
    121122    if not os.path.exists(src_folder):
    122123        print "No old data for %s. Skipping." % stud_id
Note: See TracChangeset for help on using the changeset viewer.