def path(self, which=None):
        """Extend ``nailgun.entity_mixins.Entity.path``.

        The format of the returned path depends on the value of ``which``:

        build_pxe_default
            /config_templates/build_pxe_default
        clone
            /config_templates/clone
        revision
            /config_templates/revision

        ``super`` is called otherwise.

        """
        if which in ('build_pxe_default', 'clone', 'revision'):
            prefix = 'self' if which == 'clone' else 'base'
            return '{0}/{1}'.format(
                super(ConfigTemplate, self).path(prefix),
                which
            )
        return super(ConfigTemplate, self).path(which)
def path ( self , which = None ) : if which in ( 'build_pxe_default' , 'clone' , 'revision' ) : prefix = 'self' if which == 'clone' else 'base' return '{0}/{1}' . format ( super ( ConfigTemplate , self ) . path ( prefix ) , which ) return super ( ConfigTemplate , self ) . path ( which )
Extend ``nailgun.entity_mixins.Entity.path``.

        The format of the returned path depends on the value of ``which``:

        build_pxe_default
            /config_templates/build_pxe_default
        clone
            /config_templates/clone
        revision
            /config_templates/revision

        ``super`` is called otherwise.