Пример #1
0
 def _makehandler(self):
     if hasattr(self, 'handler'):
         return
     vfs = VFS_Zip(self.config, self.vfs, self.basename)
     from pygopherd.handlers import HandlerMultiplexer
     self.handler = HandlerMultiplexer.getHandler(self.getselector(),
                                                  self.searchrequest,
                                                  self.protocol,
                                                  self.config,
                                                  vfs = vfs)
Пример #2
0
 def _makehandler(self):
     if hasattr(self, 'handler'):
         return
     vfs = VFS_Zip(self.config, self.vfs, self.basename)
     from pygopherd.handlers import HandlerMultiplexer
     self.handler = HandlerMultiplexer.getHandler(self.getselector(),
                                                  self.searchrequest,
                                                  self.protocol,
                                                  self.config,
                                                  vfs=vfs)
Пример #3
0
 def gethandler(self):
     """Gets the handler for this object's selector."""
     if not self.handler:
         self.handler = HandlerMultiplexer.getHandler(
             self.selector, self.searchrequest, self, self.config)
     return self.handler
Пример #4
0
 def gethandler(self):
     """Gets the handler for this object's selector."""
     if not self.handler:
         self.handler = HandlerMultiplexer.getHandler(self.selector, self.searchrequest,
                                            self, self.config)
     return self.handler