コード例 #1
0
    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()
コード例 #2
0
    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()
コード例 #3
0
    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()
コード例 #4
0
	def __init__(self, aName):
		super(PointOfInterest, self).__init__()
		self.name = aName
		self.locality = None
		self.poi = None
		self.categories = CategoryDataReader().getAllRecords()
		self.audio = None
コード例 #5
0
    def refresh(self):
        localityHelper = LocalityDataReader()
        localityHelper.refreshData()
        self.setItems(localityHelper.getAllRecords())

        # refresh also categories from Web to Database
        CategoryDataReader().refreshData()
コード例 #6
0
    def __init__(self):
        '''
		Constructor
		'''
        self.type = 'simple'
        # points on interest for this OverlayServer
        self.pois = []
        self.categories = CategoryDataReader().getAllRecords()
        self.current_position = (0, 0)
コード例 #7
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 = []
コード例 #8
0
    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()
コード例 #9
0
 def refresh(self):
     categoryHelper = CategoryDataReader()
     categoryHelper.refreshData()
     self.setItems(categoryHelper.getAllRecords())
コード例 #10
0
 def __init__(self, aName):
     super(Locality, self).__init__()
     self.name = aName
     self.locality = None
     self.categories = CategoryDataReader().getAllRecords()
     self.active_categories = self.categories.keys()