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

All Samples(47)  |  Call(34)  |  Derive(0)  |  Import(13)

        def get_var(vars, name):
    for var in vars:
        if var.name == name:
            return var
    else:
        raise ValueError("No such var: %r" % name)
        


src/t/e/templer.plone-1.0b4/src/templer/plone/plone.py   templer.plone(Download)
import copy
 
from templer.core.base import get_var
from templer.core.vars import EASY
from templer.core.vars import EXPERT
        help=ROBOT_HELP,
    ))
    get_var(vars, 'namespace_package').default = 'collective'
    get_var(vars, 'package').default = 'example'
 
        help=GS_PROFILE_HELP,
    ))
    get_var(vars, 'namespace_package').default = 'collective'
    get_var(vars, 'namespace_package2').default = 'nested'
    get_var(vars, 'package').default = 'example'

src/t/e/templer.plone-HEAD/src/templer/plone/plone.py   templer.plone(Download)
import copy
 
from templer.core.base import get_var
from templer.core.vars import EASY
from templer.core.vars import EXPERT
        help=ROBOT_HELP,
    ))
    get_var(vars, 'namespace_package').default = 'collective'
    get_var(vars, 'package').default = 'example'
 
        help=GS_PROFILE_HELP,
    ))
    get_var(vars, 'namespace_package').default = 'collective'
    get_var(vars, 'namespace_package2').default = 'nested'
    get_var(vars, 'package').default = 'example'

src/t/e/templer.plone-1.0b4/src/templer/plone/archetype.py   templer.plone(Download)
import copy
 
from templer.plone import Plone
from templer.core.base import get_var
from templer.core.vars import StringVar, EASY, EXPERT
    ))
    #zope2product should always default to True
    get_var(vars, 'zope2product').default = True
    #add_profile should always default to True for archetype packages
    get_var(vars, 'add_profile').default = True
    #add_profile need not appear as a question for archetype packages
    get_var(vars, 'add_profile').modes = (EXPERT, )

src/t/e/templer.plone-HEAD/src/templer/plone/archetype.py   templer.plone(Download)
import copy
 
from templer.plone import Plone
from templer.core.base import get_var
from templer.core.vars import StringVar, EASY, EXPERT
    ))
    #zope2product should always default to True
    get_var(vars, 'zope2product').default = True
    #add_profile should always default to True for archetype packages
    get_var(vars, 'add_profile').default = True
    #add_profile need not appear as a question for archetype packages
    get_var(vars, 'add_profile').modes = (EXPERT, )

src/t/e/templer.core-HEAD/src/templer/core/nested_namespace.py   templer.core(Download)
import copy
 
from templer.core.base import get_var
from templer.core.vars import EXPERT
from templer.core.basic_namespace import BasicNamespace
 
    vars = copy.deepcopy(BasicNamespace.vars)
    get_var(vars, 'namespace_package').default = 'my'
    vars.insert(2, VAR_NS2)
    get_var(vars, 'package').default = 'example'

src/t/e/templer.core-1.0b4/src/templer/core/nested_namespace.py   templer.core(Download)
import copy
 
from templer.core.base import get_var
from templer.core.vars import EXPERT
from templer.core.basic_namespace import BasicNamespace
 
    vars = copy.deepcopy(BasicNamespace.vars)
    get_var(vars, 'namespace_package').default = 'my'
    vars.insert(2, VAR_NS2)
    get_var(vars, 'package').default = 'example'

src/t/e/templer.zope-1.0b2/src/templer/zope/nested_zope.py   templer.zope(Download)
import copy 
from templer.core.base import get_var
from templer.zope import abstract_zope
 
 
    use_cheetah = True
    vars = copy.deepcopy(abstract_zope.AbstractNestedZope.vars)
    get_var(vars, 'namespace_package').default = 'myzopelib'
    get_var(vars, 'package').default = 'example'
 

src/t/e/templer.zope-1.0b2/src/templer/zope/basic_zope.py   templer.zope(Download)
import copy 
from templer.core.base import get_var
from templer.zope import abstract_zope
 
 
 
    vars = copy.deepcopy(abstract_zope.AbstractZope.vars)
    get_var(vars, 'namespace_package').default = 'myzopelib'
    get_var(vars, 'package').default = 'example'
 

src/t/o/tooth.paste-2.0/tooth/paste/dotdotpackage.py   tooth.paste(Download)
from tooth.paste.dotpackage import DotPackage
 
from templer.core.base import get_var
from templer.core.nested_namespace import VAR_NS2
 
 
    vars = copy.deepcopy(DotPackage.vars)
    get_var(vars, 'namespace_package').default = 'my'
    vars.insert(2, VAR_NS2)
    get_var(vars, 'package').default = 'example'

src/t/e/templer.dexterity-1.0a1/src/templer/dexterity/dexterity.py   templer.dexterity(Download)
import copy
 
from templer.plone import Plone
from templer.core.base import get_var
from templer.core.vars import StringVar
    ))
    #add_profile should always default to True for dexterity packages
    get_var(vars, 'add_profile').default = True
    #add_profile need not appear as a question for dexterity packages
    get_var(vars, 'add_profile').modes = (EXPERT, )

  1 | 2  Next