Create a controller that provides a landing page to import a project from Google Code hosting. The landing page should ask for a project name and provide a list of all the tools (wiki, downloads, tracker, etc) supported for import, with a checkbox for each. When submitted, it should pull the basic project info (description, icon, license) from the summary page (e.g., https://code.google.com/p/modwsgi/) and create a stub project with that data.
The description and icon values have
itemprop attributes of "description" and "image", respectively, but the license will take a little bit of processing to extract.
The importers for the tools will be done in separate tickets. The list of supported tools should be discovered by iterating the entry-points in the group
allura.importers looking for importers with a
source attribute equal to "Google Code". Use the importer's
target_app attribute to get the
tool_label (and possibly icon?) for display. See the mailing list for more information.
The project importer should register itself as an entry point under the
allura.project_importers group, and should expose a
source attribute with the value of "Google Code". I'm thinking the controller should be under an app-less tool called
ForgeImporters/forgeimporters/google/project.py or such.
Log in to post a comment.