Changeset 2346 for WAeUP_SRP/base


Ignore:
Timestamp:
11 Oct 2007, 09:15:42 (17 years ago)
Author:
joachim
Message:

don't look for images if student_id is None

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/Widgets.py

    r2344 r2346  
    19031903        else:
    19041904            student_id = datastructure[self.id_field]
    1905         student_path = os.path.join(self.storage_path,student_id)
    1906         if not os.path.exists(student_path):
    1907             self.waeup_tool.moveImagesToFS(student_id)
     1905        if student_id is not None:
     1906            student_path = os.path.join(self.storage_path,student_id)
     1907            if not os.path.exists(student_path):
     1908                self.waeup_tool.moveImagesToFS(student_id)
    19081909        if self.allow_resize:
    19091910            datastructure[self.getWidgetId() + '_resize'] = ''
Note: See TracChangeset for help on using the changeset viewer.