Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)
Inject variables and functions to a class
Used for chuck_setup and chuck_module helpers

src/d/j/django-chuck-0.2.3/django_chuck/commands/setup_project.py   Django-Chuck(Download)
                self.cfg["modules"] = chuck_setup.modules
 
            self.inject_variables_and_functions(chuck_setup)
 
        # No chuck_setup file was found
                module = module_cache.get(module_name)
                if module.cfg:
                    self.inject_variables_and_functions(module.cfg)
                if module.post_setup:
                    module.post_setup()

src/d/j/django-chuck-HEAD/django_chuck/commands/setup_project.py   django-chuck(Download)
                self.cfg["modules"] = chuck_setup.modules
 
            self.inject_variables_and_functions(chuck_setup)
 
        # No chuck_setup file was found
                module = module_cache.get(module_name)
                if module.cfg:
                    self.inject_variables_and_functions(module.cfg)
                if module.post_setup:
                    module.post_setup()

src/d/j/django-chuck-0.2.3/django_chuck/commands/install_modules.py   Django-Chuck(Download)
        # Module has post build action? Remember it
        if module.cfg:
            cfg = self.inject_variables_and_functions(module.cfg)
            setattr(cfg, "installed_modules", self.installed_modules)
            if module.post_build:

src/d/j/django-chuck-HEAD/django_chuck/commands/install_modules.py   django-chuck(Download)
        # Module has post build action? Remember it
        if module.cfg:
            cfg = self.inject_variables_and_functions(module.cfg)
            setattr(cfg, "installed_modules", self.installed_modules)
            if module.post_build: