Changeset 11612


Ignore:
Timestamp:
30 Apr 2014, 14:36:28 (11 years ago)
Author:
Henrik Bettermann
Message:

Remove bugs found after running tests in waeup.uniben

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/viewlets.py

    r11610 r11612  
    5656grok.templatedir('browser_templates')
    5757
    58 ALLOWED_FILE_EXTENSIONS = ('jpg', 'png', 'pdf', 'tif', 'fp')
     58ALLOWED_FILE_EXTENSIONS = ('jpg', 'png', 'pdf', 'tif', 'fpm')
    5959
    6060class StudentManageSidebar(grok.ViewletManager):
     
    829829    upload.seek(0) # file pointer moved when determining size
    830830    dummy,ext = os.path.splitext(upload.filename)
    831     # fp files are expected to be fingerprint minutiae, file
     831    # fpm files are expected to be fingerprint minutiae, file
    832832    # format is not yet checked
    833833    if ext == '.fpm':
    834         file_format = 'fp'
     834        file_format = 'fpm'
    835835    else:
    836836        file_format = get_fileformat(None, upload.read(512))
Note: See TracChangeset for help on using the changeset viewer.