Changeset 5114 for main/waeup.sirp/trunk/src/waeup/sirp/browser
- Timestamp:
- 1 Apr 2010, 11:11:30 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/browser/browser.txt
r5111 r5114 749 749 ... os.unlink(os.path.join(uploadpath, filename)) 750 750 751 We also remove any existing 'accesscodes' subdir: 752 753 >>> import shutil 754 >>> for filename in files: 755 ... if not os.path.isdir(os.path.join(uploadpath, filename)): 756 ... continue 757 ... if filename != 'accesscodes': 758 ... continue 759 ... shutil.rmtree(os.path.join(uploadpath, filename)) 760 751 761 The new upload directory is now empty, except from the logs and other 752 762 standard dirs, which are created automatically: 753 763 754 764 >>> sorted(os.listdir(uploadpath)) 755 [' accesscodes', 'finished', 'logs', 'unfinished']765 ['finished', 'logs', 'unfinished'] 756 766 757 767 … … 794 804 795 805 >>> sorted(os.listdir(uploadpath)) 796 [' accesscodes', 'finished', 'logs', 'myfaculties_zope.mgr.csv', 'unfinished']806 ['finished', 'logs', 'myfaculties_zope.mgr.csv', 'unfinished'] 797 807 798 808 We create and upload also a CSV file containing departments:
Note: See TracChangeset for help on using the changeset viewer.