Example #1
0
    def delete(self, *args, **kw):
        # If so, handle renumbering
        # kw['handleMarkernos'] is set in test to quickly clone Places. Do not want to process markernos
        if not 'handleMarkernos' in kw or kw['handleMarkernos']:
            placeMarkernos = PlaceMarkernos(self, isdeleted=True)
            placeMarkernos.handleChange()

        if 'handleMarkernos' in kw:
            del (kw['handleMarkernos'])  # was just temp

        super(Place, self).delete(*args, **kw)
Example #2
0
 def delete(self, *args, **kw):
     # If so, handle renumbering
     # kw['handleMarkernos'] is set in test to quickly clone Places. Do not want to process markernos
     if not 'handleMarkernos' in kw or kw['handleMarkernos']:
         placeMarkernos = PlaceMarkernos(self, isdeleted = True)
         placeMarkernos.handleChange()
         
     if 'handleMarkernos' in kw:
         del(kw['handleMarkernos']) # was just temp
     
     super(Place, self).delete(*args, **kw)
Example #3
0
    def save(self, *args, **kw):
        self.ParseDetails()
        self.geocoded = True if (self.point.y and self.point.x) else False

        # gonna try ignoring new markers to later assign number
        if self.id:
            # In order to handle renumbering of markerno's, I need to see if markno has changed.
            # If so, handle renumbering
            # kw['handleMarkernos'] is set in test to quickly clone Places. Do not want to process markernos
            if not 'handleMarkernos' in kw or kw['handleMarkernos']:
                isnew = True if not self.id else False
                placeMarkernos = PlaceMarkernos(self, isnew=isnew)
                placeMarkernos.handleChange()

        if 'handleMarkernos' in kw:
            del (kw['handleMarkernos'])  # was just temp

        super(Place, self).save(*args, **kw)
Example #4
0
 def save(self, *args, **kw):
     self.ParseDetails()
     self.geocoded = True if (self.point.y and self.point.x) else False
     
     
     # gonna try ignoring new markers to later assign number
     if self.id:
         # In order to handle renumbering of markerno's, I need to see if markno has changed.
         # If so, handle renumbering
         # kw['handleMarkernos'] is set in test to quickly clone Places. Do not want to process markernos
         if not 'handleMarkernos' in kw or kw['handleMarkernos']:
             isnew = True if not self.id else False
             placeMarkernos = PlaceMarkernos(self, isnew = isnew)
             placeMarkernos.handleChange()
             
     if 'handleMarkernos' in kw:
         del(kw['handleMarkernos']) # was just temp
         
     super(Place, self).save(*args, **kw)