Changeset 655 in main for branches


Ignore:
Timestamp:
01/18/12 09:35:20 (8 years ago)
Author:
agalech
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3D/openPLM/document3D/models.py

    r653 r655  
    5757    stp = models.ForeignKey(DocumentFile) 
    5858    index = models.IntegerField() 
     59    count = models.IntegerField(0) 
    5960 
    6061#sirve para algo el index? 
     
    201202         
    202203        if not ok: 
     204            query_jss=stp_to_jss.objects.filter(stp=doc_file) 
     205            files_js=list(query_jss.values_list("js", flat=True)) 
     206            query_jss=stp_to_jss_arborescense.objects.filter(stp=doc_file) 
     207            arborescense_js=list(query_jss.values_list("js", flat=True))  
    203208            #effacer touts les fichiers generes 
    204             eliminer_associes(doc_file) 
     209            eliminer_associes(files_js,arborescense_js) 
    205210            print "Error: It was not possible to generate a sight 3D of the file." 
    206211            return False             
Note: See TracChangeset for help on using the changeset viewer.