def __call__(self):
     self.forkloop = forkloop
     if self.request.get('fork', False):
         try:
             self.forkloop.spawnNewChild()
         except CannotSpawnNewChild as e:
             logger.error(str(e.args[0]))
     return self.index()
예제 #2
0
 def __call__(self):
     self.forkloop = forkloop
     if self.request.get('fork', False):
         try:
             self.forkloop.spawnNewChild()
         except CannotSpawnNewChild as e:
             logger.error(str(e.args[0]))
     return self.index()
예제 #3
0
    def on_any_event(self, event):
        ext = event.src_path.split(".")[-1].lower()
        if ext not in self.allowed_extensions:
            return

        logger.info("Got '%s' event on %s" % (event.event_type, event.src_path))

        try:
            self.forkloop.spawnNewChild()
        except CannotSpawnNewChild as e:
            logger.error(str(e.args[0]))
예제 #4
0
    def on_any_event(self, event):
        ext = event.src_path.split(".")[-1].lower()
        if ext not in self.allowed_extensions:
            return

        logger.info("Got '%s' event on %s" %
                    (event.event_type, event.src_path))

        try:
            self.forkloop.spawnNewChild()
        except CannotSpawnNewChild as e:
            logger.error(str(e.args[0]))
    def on_any_event(self, event):
        ext = event.src_path.split(".")[-1].lower()
        if ext not in self.allowed_extensions:
            return

        logger.info("Got '%s' event on %s" %
            (event.event_type, event.src_path))

        if ext in ( "html", "xml" ):
            notify(ThemeChanged())
            logger.info("Signaling plone.app.theming")
            return

        try:
            self.forkloop.spawnNewChild()
        except CannotSpawnNewChild as e:
            logger.error(str(e.args[0]))