Changeset 2358 for WAeUP_SRP


Ignore:
Timestamp:
13 Oct 2007, 21:02:28 (17 years ago)
Author:
Henrik Bettermann
Message:

fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/Widgets.py

    r2357 r2358  
    18061806        content_url = ''
    18071807        current_filename = ''
    1808         for name in os.listdir(student_path):
    1809             if name.startswith(field_id):
    1810                 image_name = name
    1811                 break
     1808        if os.path.exists(student_path):
     1809            for name in os.listdir(student_path):
     1810                if name.startswith(field_id):
     1811                    image_name = name
     1812                    break
    18121813        if image_name:
    18131814            info['image_name'] = image_name
Note: See TracChangeset for help on using the changeset viewer.