(package)
return callable(getattr(base, 'render', None))
Determine if the specified Pylons project (package) defines a
    render callable in their base module
Determine if the specified Pylons project (package) defines a
    render callable in their base module
Determine if the specified Pylons project ( package ) defines a render callable in their base module
def defines_render(package):
    """Determine if the specified Pylons project (package) defines a
    render callable in their base module
    """
    base_module = (is_minimal_template(package) and package + '.controllers' or
                   package + '.lib.base')
    try:
        base = __import__(base_module, globals(), locals(), ['__doc__'])
    except:
        return False
    return callable(getattr(base, 'render', None))
def defines_render ( package ) : base_module = ( is_minimal_template ( package ) and package + '.controllers' or package + '.lib.base' ) try : base = __import__ ( base_module , globals ( ) , locals ( ) , [ '__doc__' ] ) except : return False return callable ( getattr ( base , 'render' , None ) )