Changeset 1596 for WAeUP_SRP/branches/joachim-event-branch/Accommodation.py
- Timestamp:
- 19 Mar 2007, 21:45:44 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/branches/joachim-event-branch/Accommodation.py
r1449 r1596 107 107 no_import = [] 108 108 imported = [] 109 logger = logging.getLogger(' Import.%s' % name)109 logger = logging.getLogger('Accommodation.AccoFolder.importReservedBeds') 110 110 try: 111 111 beds = csv.DictReader(open("%s/import/%s.csv" % (i_home,name),"rb")) … … 169 169 no_import.append( format_error % bed) 170 170 continue 171 halls[hall] = hall_doc = hall_object.getContent() 171 halls[hall] = hall_doc = hall_object.getContent() 172 172 bid = "%(hall)s_%(block)s_%(room)s_%(bed)s" % bed 173 173 res = accommodation(bed = bid) … … 201 201 acco_doc.edit(mapping={'bed': bid}) 202 202 member = self.portal_membership.getAuthenticatedMember() 203 logger.info(' "%s","changed reserved bed %s for","%s"' % (member,bid,sid))203 logger.info('%s changed reserved bed %s for %s' % (member,bid,sid)) 204 204 accommodation.modifyRecord(bed = bid, student = sid) 205 205 imported.append( format % bed) … … 227 227 return self.REQUEST.RESPONSE.redirect("%s" % self.REQUEST.get('URL1')) 228 228 229 229 230 230 InitializeClass(AccoFolder) 231 231 … … 256 256 InitializeClass(AccoHall) 257 257 258 258 259 259 def addAccoHall(container, id, REQUEST=None, **kw): 260 260 """Add a AccoHall."""
Note: See TracChangeset for help on using the changeset viewer.