Changeset 1150 in main


Ignore:
Timestamp:
06/01/12 07:33:10 (7 years ago)
Author:
zali
Message:

Upload progress handler : update comments. Reference template : management link removed from all menu

Location:
trunk/openPLM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/openPLM/plmapp/filehandlers/progressbarhandler.py

    r1137 r1150  
     1###################################### 
     2# Author : Zahariri ALI 
     3# Contact : zahariri.ali@gmail.com 
     4###################################### 
     5 
    16from django.core.files import temp as tempfile 
    27from django.core.files.uploadhandler import FileUploadHandler 
     
    611class ProgressBarUploadHandler(FileUploadHandler): 
    712    """ 
    8     Tracks progress for file uploads. 
    9     The http post request must contain a header or query parameter, 'X_Progress_ID' 
     13    Handle and tracks progress for multiple file uploads. 
     14    The http post request must contain a query parameter for each file field,  
    1015    which should contain a unique string to identify the temporary file uploaded to be tracked. 
    1116    """ 
     
    1722    def new_file(self,file_name, *args, **kwargs): 
    1823        """ 
    19         Create the file object to append to as data is coming in. 
     24        Create the file object, identified by the corresponding query parameter, to append to as data is coming in. 
    2025        """ 
    2126        self.progress_id["%s" % file_name]=self.request.GET["%s" % file_name] 
  • trunk/openPLM/templates/blocks/reference.html

    r983 r1150  
    1616                        <div class="quick_link"> 
    1717                            {% for item in menu %} 
     18                                {% if item != "management" %} 
    1819                                <a class="quick_link" href="{{url_}}{{item}}"> 
    1920                                    {% filter upper %}{% trans item %}{% endfilter%} 
    2021                                </a> 
     22                                {% endif %} 
    2123                            {% endfor %} 
    2224                        </div> 
Note: See TracChangeset for help on using the changeset viewer.