def _createShortId(self): short_id = 0 if self.createdAt is not None: try: short_id = time_to_epoch(self.createdAt) except: pass return short_id
def short_id(self): """We use a 'short' id for the track map based on the creation date to save memory in RCP's config """ short_id = 0 if self.created is not None: try: short_id = time_to_epoch(self.created) except ValueError as error: Logger.error("TrackManager: could not create short id: " + error.message) return short_id