Ignore:
Timestamp:
10 Nov 2015, 06:44:30 (9 years ago)
Author:
Henrik Bettermann
Message:

Only forbid import step 4 if maintenance is not enabled.

Do not create hostel ids with dots.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/hostels/browser.py

    r13346 r13426  
    204204        hostel = Hostel()
    205205        self.applyData(hostel, **data)
    206         hostel.hostel_id = data[
    207             'hostel_name'].lower().replace(' ','-').replace('_','-')
     206        hostel.hostel_id = data['hostel_name'].lower().replace(
     207            ' ','-').replace('_','-').replace('.','')
    208208        try:
    209209            self.context.addHostel(hostel)
Note: See TracChangeset for help on using the changeset viewer.