Exemplo n.º 1
0
 def enterEstate(self, requestStatus):
     self.notify.debug('enterEstate: requestStatus = %s' % requestStatus)
     ownerId = requestStatus.get('ownerId')
     if ownerId:
         self.estateOwnerId = ownerId
     zoneId = requestStatus['zoneId']
     self.notify.debug('enterEstate, ownerId = %s, zoneId = %s' % (self.estateOwnerId, zoneId))
     self.accept(self.estateDoneEvent, self.handleEstateDone)
     self.place = Estate.Estate(self, self.estateOwnerId, zoneId, self.fsm.getStateNamed('estate'), self.estateDoneEvent)
     base.cr.playGame.setPlace(self.place)
     self.place.load()
     self.place.enter(requestStatus)
     self.estateZoneId = zoneId
     
     newsManager = base.cr.newsManager
     if newsManager:
         holidayIds = base.cr.newsManager.getDecorationHolidayId()
         if ToontownGlobals.HALLOWEEN_COSTUMES in holidayIds or ToontownGlobals.SPOOKY_COSTUMES in holidayIds:
             self.plane.startWitch()
             
         else:
             self.plane.startAirplane()
             
     else:
         self.plane.startAirplane()
Exemplo n.º 2
0
 def enterEstate(self, requestStatus):
     self.notify.debug('enterEstate: requestStatus = %s' % requestStatus)
     ownerId = requestStatus.get('ownerId')
     if ownerId:
         self.estateOwnerId = ownerId
     zoneId = requestStatus['zoneId']
     self.notify.debug('enterEstate, ownerId = %s, zoneId = %s' % (self.estateOwnerId, zoneId))
     self.accept(self.estateDoneEvent, self.handleEstateDone)
     self.place = Estate.Estate(self, self.estateOwnerId, zoneId, self.fsm.getStateNamed('estate'), self.estateDoneEvent)
     base.cr.playGame.setPlace(self.place)
     self.place.load()
     self.place.enter(requestStatus)
     self.estateZoneId = zoneId
Exemplo n.º 3
0
        lst = []
        for r in row:
            new_row = r.text  #  Convert to text
            lst.append(new_row)

        data = []
        new_row = []
        for i in range(0, len(lst)):
            '''split the data to rows'''
            new_row.append(lst[i])
            if validate(lst[i]):
                new_row.remove(lst[i])

                data.append(new_row)
                new_row = [lst[i]]
        Estate.deals_property(data)

        temp_dict = {}
        for i in data:
            '''Each element to key'''
            temp_list = []
            if len(i) > 0:
                if "\u0590" <= i[0] <= "\u05EA":  # If hebrew inside
                    temp_dict = {**temp_dict, **{"Adresss": i[0]}}
                elif validate(i[0]):  # if date
                    cr_date = datetime.datetime.strptime(i[0], '%d.%m.%Y')
                    cr_date = cr_date.strftime("%d/%m/%Y")
                    temp_dict = {**temp_dict, **{"Selling Date": cr_date}}

                if "\u0590" <= i[1] <= "\u05EA":
                    temp_dict = {**temp_dict, **{"Adresss": i[1]}}