Changeset 994ebb4
- Timestamp:
- 10/25/11 00:29:36 (19 months ago)
- Branches:
- master, crem, crem2, dev, dev2, diadems, forma, generic, instru_search, lam, nlivemulti, production, release/1.4.4, security, social, storage, test
- Children:
- 8b42d0d
- Parents:
- 451866d (diff), 95ce89e4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - git-author:
- yomguy <yomguy@…> (10/25/11 00:29:36)
- git-committer:
- yomguy <yomguy@…> (10/25/11 00:29:36)
- Files:
-
- 7 added
- 2 edited
-
tools/scripts/telemeta-crem-import-new.py (added)
-
tools/scripts/telemeta-crem-import.py (modified) (1 diff)
-
.bzrignore (added)
-
telemeta/htdocs/timeside/js/controller.js (added)
-
telemeta/htdocs/timeside/js/core.js (added)
-
telemeta/htdocs/timeside/js/markerlist.js (added)
-
telemeta/htdocs/timeside/js/soundprovider.js (added)
-
telemeta/htdocs/timeside/js/util.js (added)
-
telemeta/models/media.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tools/scripts/telemeta-crem-import.py
r7dd4aa8 r95ce89e4 72 72 print item.old_code + ' : id = ' + str(item.id) + " : title = " + item.title 73 73 if os.path.exists(wav_file): 74 f = open(wav_file, 'r') 75 file_content = ContentFile(f.read()) 76 item.file.save(filename, file_content) 77 f.close() 78 item.code = new_ref 79 item.save() 74 if not item.file : 75 f = open(wav_file, 'r') 76 file_content = ContentFile(f.read()) 77 item.file.save(filename, file_content) 78 f.close() 79 item.code = new_ref 80 item.save() 81 else: 82 msg = old_ref + ' : fichier ' + wav_file + ' déjà ajouté !' 83 print msg 84 self.logger.write_error(collection, msg) 80 85 else: 81 86 msg = old_ref + ' : fichier audio ' + wav_file + ' inexistant !' -
telemeta/models/media.py
r86d17e9 r451866d 74 74 75 75 76 collection_published_code_regex = ' [A-Za-z0-9._-]*'77 collection_unpublished_code_regex = ' [A-Za-z0-9._-]*'76 collection_published_code_regex = 'CNRSMH_E_[0-9]{4}(?:_[0-9]{3}){2}' 77 collection_unpublished_code_regex = 'CNRSMH_I_[0-9]{4}_[0-9]{3}' 78 78 collection_code_regex = '(?:%s|%s)' % (collection_published_code_regex, 79 79 collection_unpublished_code_regex) … … 218 218 219 219 220 item_published_code_regex = '[A-Za-z0-9._-]*'221 item_unpublished_code_regex = '[A-Za-z0-9._-]*'220 item_published_code_regex = collection_published_code_regex + '(?:_[0-9]{2,3}){1,2}' 221 item_unpublished_code_regex = collection_unpublished_code_regex + '_[0-9]{2,3}(?:_[0-9]{2,3}){0,2}' 222 222 item_code_regex = '(?:%s|%s)' % (item_published_code_regex, item_unpublished_code_regex) 223 223
Note: See TracChangeset
for help on using the changeset viewer.
