def refresh(self): localityHelper = LocalityDataReader() localityHelper.refreshData() matching_localitys = localityHelper.getAllRecordsBy_locidloc( self.locality.locidloc) self.set_locality(matching_localitys[0]) # refresh also categories from Web to Database CategoryDataReader().refreshData() self.categories = CategoryDataReader().getAllRecords()
def _start_refresh(self, popup): popup.write("1/2 : Mise à jour des Points d'intérêt :") pointofinterestHelper = PointOfInterestDataReader() pointofinterestHelper.refreshData(popup) self.setItems( self.locality, pointofinterestHelper.getAllRecordsBy_poiidloc( self.locality.locidloc)) # refresh also categories from Web to Database popup.write("2/2 : Mise à jour des Catégories :") CategoryDataReader().refreshData(popup) self.category_collection = CategoryDataReader().getAllRecords() popup.write("Terminé !") popup.dismiss()
def _do_refresh_data(self, popup): popup.write("1/2 : Mise à jour de la Localité :") localityHelper = LocalityDataReader() localityHelper.refreshData(popup) matching_localitys = localityHelper.getAllRecordsBy_locidloc( self.locality.locidloc) if 0 in matching_localitys.keys(): self.set_locality(matching_localitys[0]) # refresh also categories from Web to Database popup.write("2/2 : Mise à jour des Catégories :") CategoryDataReader().refreshData(popup) self.categories = CategoryDataReader().getAllRecords() popup.write("Terminé !") popup.dismiss()
def __init__(self, aName): super(PointOfInterest, self).__init__() self.name = aName self.locality = None self.poi = None self.categories = CategoryDataReader().getAllRecords() self.audio = None
def refresh(self): localityHelper = LocalityDataReader() localityHelper.refreshData() self.setItems(localityHelper.getAllRecords()) # refresh also categories from Web to Database CategoryDataReader().refreshData()
def __init__(self): ''' Constructor ''' self.type = 'simple' # points on interest for this OverlayServer self.pois = [] self.categories = CategoryDataReader().getAllRecords() self.current_position = (0, 0)
def __init__(self, aName): super(ListPointOfInterests, self).__init__() self.name = aName self.allItems = {} # prepare display self.setItems(None, {}) self.updateDisplay() self.pointofinterest = None self.locality = None self.category_collection = CategoryDataReader().getAllRecords() self.active_categories = []
def _start_refresh(self, popup): popup.write("1/2 : Mise à jour des Localités :") localityHelper = LocalityDataReader() localityHelper.refreshData(popup) self.setItems(localityHelper.getAllRecords()) # refresh also categories from Web to Database popup.write("2/2 : Mise à jour des Catégories :") CategoryDataReader().refreshData(popup) popup.write("Terminé !") popup.dismiss()
def refresh(self): categoryHelper = CategoryDataReader() categoryHelper.refreshData() self.setItems(categoryHelper.getAllRecords())
def __init__(self, aName): super(Locality, self).__init__() self.name = aName self.locality = None self.categories = CategoryDataReader().getAllRecords() self.active_categories = self.categories.keys()