Changeset 1669 in main for branches


Ignore:
Timestamp:
10/15/12 09:39:18 (7 years ago)
Author:
pcosquer
Message:

controllers: documents: fix clone

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.1/openPLM/plmapp/controllers/document.py

    r1668 r1669  
    536536        for doc_file in self.object.files.all(): 
    537537            filename = doc_file.filename 
    538             path = models.docfs.get_available_name(filename) 
     538            path = models.docfs.get_available_name(filename.encode("utf-8")) 
    539539            shutil.copy(doc_file.file.path, models.docfs.path(path)) 
    540540            new_doc = models.DocumentFile.objects.create(file=path, 
Note: See TracChangeset for help on using the changeset viewer.