ForgeImporters/forgeimporters/google/code.py
def import_tool(self, project, user, project_name=None, mount_point=None,
                    mount_label=None, **kw):
        """ Import a Google Code repo into a new SVN, Git, or Hg Allura tool.

        """
        extractor = GoogleCodeProjectExtractor(project_name, 'source_browse')
        repo_type = extractor.get_repo_type()
        repo_url = get_repo_url(project_name, repo_type)
        app = project.install_app(
            repo_type,
            mount_point=mount_point or 'code',
            mount_label=mount_label or 'Code',
            init_from_url=repo_url,
            import_id={
                'source': self.source,
                'project_name': project_name,
            }
        )
        M.AuditLog.log(
            'import tool %s from %s on %s' % (
                app.config.options.mount_point,
                project_name, self.source,
            ), project=project, user=user, url=app.url)
        g.post_event('project_updated')
        return app
 Import a Google Code repo into a new SVN, Git, or Hg Allura tool.

        
Import a Google Code repo into a new SVN, Git, or Hg Allura tool.
Import a Google Code repo into a new SVN Git or Hg Allura tool .
def import_tool(self, project, user, project_name=None, mount_point=None,
                    mount_label=None, **kw):
        extractor = GoogleCodeProjectExtractor(project_name, 'source_browse')
        repo_type = extractor.get_repo_type()
        repo_url = get_repo_url(project_name, repo_type)
        app = project.install_app(
            repo_type,
            mount_point=mount_point or 'code',
            mount_label=mount_label or 'Code',
            init_from_url=repo_url,
            import_id={
                'source': self.source,
                'project_name': project_name,
            }
        )
        M.AuditLog.log(
            'import tool %s from %s on %s' % (
                app.config.options.mount_point,
                project_name, self.source,
            ), project=project, user=user, url=app.url)
        g.post_event('project_updated')
        return app
def import_tool ( self , project , user , project_name = None , mount_point = None , mount_label = None , ** kw ) : extractor = GoogleCodeProjectExtractor ( project_name , 'source_browse' ) repo_type = extractor . get_repo_type ( ) repo_url = get_repo_url ( project_name , repo_type ) app = project . install_app ( repo_type , mount_point = mount_point or 'code' , mount_label = mount_label or 'Code' , init_from_url = repo_url , import_id = { 'source' : self . source , 'project_name' : project_name , } ) M . AuditLog . log ( 'import tool %s from %s on %s' % ( app . config . options . mount_point , project_name , self . source , ) , project = project , user = user , url = app . url ) g . post_event ( 'project_updated' ) return app
Import a Google Code repo into a new SVN, Git, or Hg Allura tool.
Import a Google Code repo into a new SVN Git or Hg Allura tool .
""" Import a Google Code repo into a new SVN, Git, or Hg Allura tool.

        """
self
project
user
project_name
mount_point
mount_label