Changeset 5207 for WAeUP_SRP/trunk


Ignore:
Timestamp:
28 May 2010, 06:25:23 (14 years ago)
Author:
Henrik Bettermann
Message:

correct spelling mistake

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Accommodation.py

    r3870 r5207  
    4646        generated = []
    4747        generated.append('"Bed","BedType","Student"' % vars())
    48         modyfied = []
    49         modyfied.append('"Bed","BedType","Student"' % vars())
     48        modified = []
     49        modified.append('"Bed","BedType","Student"' % vars())
    5050        beds_generated = []
    5151        for h in l:
     
    5757            hall_gen['name'] = hall.Title
    5858            count = 0
    59             modyfied_count = 0
     59            modified_count = 0
    6060            reserved = [(r.split('/')[0],int(r.split('/')[1])) for r in re.split(',|\.| ',hall_doc.reserved_rooms)
    6161                                     if r]
     
    109109                            elif bed_record.bed_type != bt:
    110110                                bed_list.modifyRecord(**d)
    111                                 modyfied.append('"%(uid)s","%(bt)s"' % vars())
    112                                 modyfied_count += 1
     111                                modified.append('"%(uid)s","%(bt)s"' % vars())
     112                                modified_count += 1
    113113                                pass
    114114            hall_gen['count']= count
    115             hall_gen['modyfied_count']= modyfied_count
     115            hall_gen['modified_count']= modified_count
    116116            beds_generated.append(hall_gen)
    117117        current = DateTime.DateTime().strftime("%d-%m-%y_%H_%M_%S")
    118118        open("%s/export/bedlist_%s.csv" % (i_home,current),"w+").write('\n'.join(generated))
    119         open("%s/export/bedlist_modyfied_%s.csv" % (i_home,current),"w+").write('\n'.join(modyfied))
     119        open("%s/export/bedlist_modified_%s.csv" % (i_home,current),"w+").write('\n'.join(modified))
    120120        return self.accommodation.acco_folder_view(beds_generated=beds_generated)
    121121    ###)
Note: See TracChangeset for help on using the changeset viewer.