Example #1
0
 def set_profile(self, profile):
     """Set current profile."""
     if poor.conf.profile == profile: return
     poor.conf.set_profile(profile)
     self.basemap = poor.MapManager()
     self.set_basemap(poor.conf.basemap)
     self.set_geocoder(poor.conf.geocoder)
     self.set_guide(poor.conf.guide)
     self.set_router(poor.conf.router)
Example #2
0
 def initialize(self):
     """Initialize all components that may depend on licenses."""
     self.basemap = poor.MapManager()
     self.geocoder = None
     self.guide = None
     self.router = None
     self.set_basemap(poor.conf.basemap)
     self.set_geocoder(poor.conf.geocoder)
     self.set_guide(poor.conf.guide)
     self.set_router(poor.conf.router)
Example #3
0
 def __init__(self):
     """Initialize an :class:`Application` instance."""
     self.basemap = poor.MapManager()
     self.geocoder = None
     self.guide = None
     self.history = poor.HistoryManager()
     self.narrative = poor.Narrative()
     self.router = None
     self.sun = poor.Sun()
     self.voice_tester = None
     self.set_basemap(poor.conf.basemap)
     self.set_geocoder(poor.conf.geocoder)
     self.set_guide(poor.conf.guide)
     self.set_router(poor.conf.router)
Example #4
0
 def __init__(self):
     """Initialize an :class:`Application` instance."""
     self.basemap = poor.MapManager()
     self.geocoder = None
     self.guide = None
     self.history = poor.HistoryManager()
     self.magfield = poor.MagField()
     self.router = None
     self.sun = poor.Sun()
     self._voice = {}
     self.set_basemap(poor.conf.basemap)
     self.set_geocoder(poor.conf.geocoder)
     self.set_guide(poor.conf.guide)
     self.set_router(poor.conf.router)