Beispiel #1
0
    def _retrieveComponent(self, instance, componentName):
        actor = instance.retrieveComponent(componentName, factory='actor', vault=['actors'])

        # if we were successful, return
        if actor:
            actor.aliases.append(self.name)
            return actor, actor.getLocator()

        # otherwise, try again
        return Facility._retrieveComponent(self, instance, componentName)
Beispiel #2
0
    def _retrieveComponent(self, instance, componentName, args):
        form = instance.retrieveComponent(
            componentName, factory='form', args=args, vault=['forms'])

        # if we were successful, return
        if form:
            form.aliases.append(self.name)
            return form, form.getLocator()

        # otherwise, try again
        return Facility._retrieveComponent(self, instance, componentName, args)
    def _retrieveComponent(self, instance, componentName, args):
        dataobject = instance.retrieveComponent(
            componentName, factory='dataobject', args=args, vault=['dataobjects'])

        # if we were successful, return
        if dataobject:
            dataobject.aliases.append(self.name)
            return dataobject, dataobject.getLocator()

        # otherwise, try again
        return Facility._retrieveComponent(self, instance, componentName, args)
Beispiel #4
0
    def _retrieveComponent(self, instance, componentName, args):
        worker = instance.retrieveComponent(
            componentName, factory='iworker', args=args, vault=['iworkers'])

        # if we were successful, return
        if worker:
            worker.aliases.append(self.name)
            return worker, worker.getLocator()

        # otherwise, try again
        return Facility._retrieveComponent(self, instance, componentName, args)
Beispiel #5
0
    def _retrieveComponent(self, instance, componentName, args):
        worker = instance.retrieveComponent(componentName,
                                            factory='iworker',
                                            args=args,
                                            vault=['iworkers'])

        # if we were successful, return
        if worker:
            worker.aliases.append(self.name)
            return worker, worker.getLocator()

        # otherwise, try again
        return Facility._retrieveComponent(self, instance, componentName, args)
Beispiel #6
0
    def _retrieveComponent(self, instance, componentName, args):
        form = instance.retrieveComponent(componentName,
                                          factory='form',
                                          args=args,
                                          vault=['forms'])

        # if we were successful, return
        if form:
            form.aliases.append(self.name)
            return form, form.getLocator()

        # otherwise, try again
        return Facility._retrieveComponent(self, instance, componentName, args)
    def _retrieveComponent(self, instance, componentName, args):
        dataobject = instance.retrieveComponent(componentName,
                                                factory='dataobject',
                                                args=args,
                                                vault=['dataobjects'])

        # if we were successful, return
        if dataobject:
            dataobject.aliases.append(self.name)
            return dataobject, dataobject.getLocator()

        # otherwise, try again
        return Facility._retrieveComponent(self, instance, componentName, args)