Example #1
0
 def remove(self, app):
     ApplicationFactory.remove(self, app)
     try:
         del self.apps_by_domain[app.domain]
     except KeyError:
         pass
     except AttributeError:
         pass
Example #2
0
 def remove(self, app):
     ApplicationFactory.remove(self, app)
     try:
         del self.apps_by_domain[app.domain]
     except KeyError:
         pass
     except AttributeError:
         pass
Example #3
0
 def __init__(self, inst):
     ApplicationFactory.__init__(self, inst)
     self.apps_by_domain = WeakValueDictionary()
     # to avoid garbage collection
     self.main_app = self.get_by_tag("main")
     self.main_host = self.main_app.main_host
Example #4
0
 def add(self, app):
     ApplicationFactory.add(self, app)
     try:
         self.apps_by_domain[app.domain] = app
     except AttributeError:
         pass
Example #5
0
 def __init__(self, inst):
     ApplicationFactory.__init__(self, inst)
     self.apps_by_domain = WeakValueDictionary()
     # to avoid garbage collection
     self.main_app = self.get_by_tag("main")
     self.main_host = self.main_app.main_host
Example #6
0
 def add(self, app):
     ApplicationFactory.add(self, app)
     try:
         self.apps_by_domain[app.domain] = app
     except AttributeError:
         pass