Ignore:
Timestamp:
19 Mar 2007, 21:45:44 (18 years ago)
Author:
joachim
Message:

merged changes from trunk to joachim-event-branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/branches/joachim-event-branch/Accommodation.py

    r1449 r1596  
    107107        no_import = []
    108108        imported = []
    109         logger = logging.getLogger('Import.%s' % name)
     109        logger = logging.getLogger('Accommodation.AccoFolder.importReservedBeds')
    110110        try:
    111111            beds = csv.DictReader(open("%s/import/%s.csv" % (i_home,name),"rb"))
     
    169169                    no_import.append( format_error % bed)
    170170                    continue
    171                 halls[hall] = hall_doc = hall_object.getContent() 
     171                halls[hall] = hall_doc = hall_object.getContent()
    172172            bid = "%(hall)s_%(block)s_%(room)s_%(bed)s" % bed
    173173            res = accommodation(bed = bid)
     
    201201                    acco_doc.edit(mapping={'bed': bid})
    202202                    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))
    204204            accommodation.modifyRecord(bed = bid, student = sid)
    205205            imported.append( format % bed)
     
    227227        return self.REQUEST.RESPONSE.redirect("%s" % self.REQUEST.get('URL1'))
    228228
    229        
     229
    230230InitializeClass(AccoFolder)
    231231
     
    256256InitializeClass(AccoHall)
    257257
    258    
     258
    259259def addAccoHall(container, id, REQUEST=None, **kw):
    260260    """Add a AccoHall."""
Note: See TracChangeset for help on using the changeset viewer.