{"action":"created","comment":{"url":"https://api.github.com/repos/OCA/connector-interfaces/pulls/comments/31894685","id":31894685,"diff_hunk":"@@ -0,0 +1,56 @@\n+# -*- coding: utf-8 -*-\n+##############################################################################\n+#\n+#    Copyright (C) 2014 initOS GmbH & Co. KG (<http://www.initos.com>).\n+#\n+#    This program is free software: you can redistribute it and/or modify\n+#    it under the terms of the GNU Affero General Public License as\n+#    published by the Free Software Foundation, either version 3 of the\n+#    License, or (at your option) any later version.\n+#\n+#    This program is distributed in the hope that it will be useful,\n+#    but WITHOUT ANY WARRANTY; without even the implied warranty of\n+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+#    GNU Affero General Public License for more details.\n+#\n+#    You should have received a copy of the GNU Affero General Public License\n+#    along with this program.  If not, see <http://www.gnu.org/licenses/>.\n+#\n+##############################################################################\n+\n+from openerp.osv import orm, fields\n+from openerp.addons.connector_flow.task.abstract_task \\\n+    import abstract_chunk_write_task\n+\n+\n+class csv_partner_export(abstract_chunk_write_task):\n+    def run(self, config=None, async=True):\n+        # We will store the data that we want to export\n+        #  as list of lists, corresponding to the structured rows\n+        #  in the export file\n+        result_list = [['Name', 'ZIP Code']]\n+        partner_obj = self.session.pool.get('res.partner')","path":"connector_flow_example_ftp/res_partner.py","position":32,"original_position":32,"commit_id":"e1bb57453e03902b397167876fd9fbbf8acc6561","original_commit_id":"e1bb57453e03902b397167876fd9fbbf8acc6561","user":{"login":"guewen","id":417223,"avatar_url":"https://avatars.githubusercontent.com/u/417223?v=3","gravatar_id":"","url":"https://api.github.com/users/guewen","html_url":"https://github.com/guewen","followers_url":"https://api.github.com/users/guewen/followers","following_url":"https://api.github.com/users/guewen/following{/other_user}","gists_url":"https://api.github.com/users/guewen/gists{/gist_id}","starred_url":"https://api.github.com/users/guewen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guewen/subscriptions","organizations_url":"https://api.github.com/users/guewen/orgs","repos_url":"https://api.github.com/users/guewen/repos","events_url":"https://api.github.com/users/guewen/events{/privacy}","received_events_url":"https://api.github.com/users/guewen/received_events","type":"User","site_admin":false},"body":"Use `session.env`","created_at":"2015-06-08T08:28:56Z","updated_at":"2015-06-08T08:28:56Z","html_url":"https://github.com/OCA/connector-interfaces/pull/17#discussion_r31894685","pull_request_url":"https://api.github.com/repos/OCA/connector-interfaces/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/OCA/connector-interfaces/pulls/comments/31894685"},"html":{"href":"https://github.com/OCA/connector-interfaces/pull/17#discussion_r31894685"},"pull_request":{"href":"https://api.github.com/repos/OCA/connector-interfaces/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/OCA/connector-interfaces/pulls/17","id":36913192,"html_url":"https://github.com/OCA/connector-interfaces/pull/17","diff_url":"https://github.com/OCA/connector-interfaces/pull/17.diff","patch_url":"https://github.com/OCA/connector-interfaces/pull/17.patch","issue_url":"https://api.github.com/repos/OCA/connector-interfaces/issues/17","number":17,"state":"open","locked":false,"title":"8.0 connector flow","user":{"login":"codingforfun","id":1388003,"avatar_url":"https://avatars.githubusercontent.com/u/1388003?v=3","gravatar_id":"","url":"https://api.github.com/users/codingforfun","html_url":"https://github.com/codingforfun","followers_url":"https://api.github.com/users/codingforfun/followers","following_url":"https://api.github.com/users/codingforfun/following{/other_user}","gists_url":"https://api.github.com/users/codingforfun/gists{/gist_id}","starred_url":"https://api.github.com/users/codingforfun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codingforfun/subscriptions","organizations_url":"https://api.github.com/users/codingforfun/orgs","repos_url":"https://api.github.com/users/codingforfun/repos","events_url":"https://api.github.com/users/codingforfun/events{/privacy}","received_events_url":"https://api.github.com/users/codingforfun/received_events","type":"User","site_admin":false},"body":"Add 'connector_flow' module. This module provides a minimal framework for common\r\ndata import/export tasks based on the OpenERP Connector.","created_at":"2015-06-04T08:40:37Z","updated_at":"2015-06-08T08:28:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"952ca37e529686012cd2585f7eebd3d2c83a2540","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/OCA/connector-interfaces/pulls/17/commits","review_comments_url":"https://api.github.com/repos/OCA/connector-interfaces/pulls/17/comments","review_comment_url":"https://api.github.com/repos/OCA/connector-interfaces/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OCA/connector-interfaces/issues/17/comments","statuses_url":"https://api.github.com/repos/OCA/connector-interfaces/statuses/e1bb57453e03902b397167876fd9fbbf8acc6561","head":{"label":"initOS:8.0-connector_flow","ref":"8.0-connector_flow","sha":"e1bb57453e03902b397167876fd9fbbf8acc6561","user":{"login":"initOS","id":4948110,"avatar_url":"https://avatars.githubusercontent.com/u/4948110?v=3","gravatar_id":"","url":"https://api.github.com/users/initOS","html_url":"https://github.com/initOS","followers_url":"https://api.github.com/users/initOS/followers","following_url":"https://api.github.com/users/initOS/following{/other_user}","gists_url":"https://api.github.com/users/initOS/gists{/gist_id}","starred_url":"https://api.github.com/users/initOS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/initOS/subscriptions","organizations_url":"https://api.github.com/users/initOS/orgs","repos_url":"https://api.github.com/users/initOS/repos","events_url":"https://api.github.com/users/initOS/events{/privacy}","received_events_url":"https://api.github.com/users/initOS/received_events","type":"Organization","site_admin":false},"repo":{"id":26476290,"name":"connector-interfaces","full_name":"initOS/connector-interfaces","owner":{"login":"initOS","id":4948110,"avatar_url":"https://avatars.githubusercontent.com/u/4948110?v=3","gravatar_id":"","url":"https://api.github.com/users/initOS","html_url":"https://github.com/initOS","followers_url":"https://api.github.com/users/initOS/followers","following_url":"https://api.github.com/users/initOS/following{/other_user}","gists_url":"https://api.github.com/users/initOS/gists{/gist_id}","starred_url":"https://api.github.com/users/initOS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/initOS/subscriptions","organizations_url":"https://api.github.com/users/initOS/orgs","repos_url":"https://api.github.com/users/initOS/repos","events_url":"https://api.github.com/users/initOS/events{/privacy}","received_events_url":"https://api.github.com/users/initOS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/initOS/connector-interfaces","description":"","fork":true,"url":"https://api.github.com/repos/initOS/connector-interfaces","forks_url":"https://api.github.com/repos/initOS/connector-interfaces/forks","keys_url":"https://api.github.com/repos/initOS/connector-interfaces/keys{/key_id}","collaborators_url":"https://api.github.com/repos/initOS/connector-interfaces/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/initOS/connector-interfaces/teams","hooks_url":"https://api.github.com/repos/initOS/connector-interfaces/hooks","issue_events_url":"https://api.github.com/repos/initOS/connector-interfaces/issues/events{/number}","events_url":"https://api.github.com/repos/initOS/connector-interfaces/events","assignees_url":"https://api.github.com/repos/initOS/connector-interfaces/assignees{/user}","branches_url":"https://api.github.com/repos/initOS/connector-interfaces/branches{/branch}","tags_url":"https://api.github.com/repos/initOS/connector-interfaces/tags","blobs_url":"https://api.github.com/repos/initOS/connector-interfaces/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/initOS/connector-interfaces/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/initOS/connector-interfaces/git/refs{/sha}","trees_url":"https://api.github.com/repos/initOS/connector-interfaces/git/trees{/sha}","statuses_url":"https://api.github.com/repos/initOS/connector-interfaces/statuses/{sha}","languages_url":"https://api.github.com/repos/initOS/connector-interfaces/languages","stargazers_url":"https://api.github.com/repos/initOS/connector-interfaces/stargazers","contributors_url":"https://api.github.com/repos/initOS/connector-interfaces/contributors","subscribers_url":"https://api.github.com/repos/initOS/connector-interfaces/subscribers","subscription_url":"https://api.github.com/repos/initOS/connector-interfaces/subscription","commits_url":"https://api.github.com/repos/initOS/connector-interfaces/commits{/sha}","git_commits_url":"https://api.github.com/repos/initOS/connector-interfaces/git/commits{/sha}","comments_url":"https://api.github.com/repos/initOS/connector-interfaces/comments{/number}","issue_comment_url":"https://api.github.com/repos/initOS/connector-interfaces/issues/comments{/number}","contents_url":"https://api.github.com/repos/initOS/connector-interfaces/contents/{+path}","compare_url":"https://api.github.com/repos/initOS/connector-interfaces/compare/{base}...{head}","merges_url":"https://api.github.com/repos/initOS/connector-interfaces/merges","archive_url":"https://api.github.com/repos/initOS/connector-interfaces/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/initOS/connector-interfaces/downloads","issues_url":"https://api.github.com/repos/initOS/connector-interfaces/issues{/number}","pulls_url":"https://api.github.com/repos/initOS/connector-interfaces/pulls{/number}","milestones_url":"https://api.github.com/repos/initOS/connector-interfaces/milestones{/number}","notifications_url":"https://api.github.com/repos/initOS/connector-interfaces/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/initOS/connector-interfaces/labels{/name}","releases_url":"https://api.github.com/repos/initOS/connector-interfaces/releases{/id}","created_at":"2014-11-11T08:36:59Z","updated_at":"2014-12-18T13:29:06Z","pushed_at":"2015-06-04T09:36:15Z","git_url":"git://github.com/initOS/connector-interfaces.git","ssh_url":"git@github.com:initOS/connector-interfaces.git","clone_url":"https://github.com/initOS/connector-interfaces.git","svn_url":"https://github.com/initOS/connector-interfaces","homepage":null,"size":182,"stargazers_count":1,"watchers_count":1,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":0,"forks":3,"open_issues":0,"watchers":1,"default_branch":"7.0"}},"base":{"label":"OCA:8.0","ref":"8.0","sha":"a14881dad2df3a68d95603c5d615492360b2ffc0","user":{"login":"OCA","id":7600578,"avatar_url":"https://avatars.githubusercontent.com/u/7600578?v=3","gravatar_id":"","url":"https://api.github.com/users/OCA","html_url":"https://github.com/OCA","followers_url":"https://api.github.com/users/OCA/followers","following_url":"https://api.github.com/users/OCA/following{/other_user}","gists_url":"https://api.github.com/users/OCA/gists{/gist_id}","starred_url":"https://api.github.com/users/OCA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OCA/subscriptions","organizations_url":"https://api.github.com/users/OCA/orgs","repos_url":"https://api.github.com/users/OCA/repos","events_url":"https://api.github.com/users/OCA/events{/privacy}","received_events_url":"https://api.github.com/users/OCA/received_events","type":"Organization","site_admin":false},"repo":{"id":24750581,"name":"connector-interfaces","full_name":"OCA/connector-interfaces","owner":{"login":"OCA","id":7600578,"avatar_url":"https://avatars.githubusercontent.com/u/7600578?v=3","gravatar_id":"","url":"https://api.github.com/users/OCA","html_url":"https://github.com/OCA","followers_url":"https://api.github.com/users/OCA/followers","following_url":"https://api.github.com/users/OCA/following{/other_user}","gists_url":"https://api.github.com/users/OCA/gists{/gist_id}","starred_url":"https://api.github.com/users/OCA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OCA/subscriptions","organizations_url":"https://api.github.com/users/OCA/orgs","repos_url":"https://api.github.com/users/OCA/repos","events_url":"https://api.github.com/users/OCA/events{/privacy}","received_events_url":"https://api.github.com/users/OCA/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OCA/connector-interfaces","description":"Odoo Generic Connector for ODBC, .CSV,...","fork":false,"url":"https://api.github.com/repos/OCA/connector-interfaces","forks_url":"https://api.github.com/repos/OCA/connector-interfaces/forks","keys_url":"https://api.github.com/repos/OCA/connector-interfaces/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OCA/connector-interfaces/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OCA/connector-interfaces/teams","hooks_url":"https://api.github.com/repos/OCA/connector-interfaces/hooks","issue_events_url":"https://api.github.com/repos/OCA/connector-interfaces/issues/events{/number}","events_url":"https://api.github.com/repos/OCA/connector-interfaces/events","assignees_url":"https://api.github.com/repos/OCA/connector-interfaces/assignees{/user}","branches_url":"https://api.github.com/repos/OCA/connector-interfaces/branches{/branch}","tags_url":"https://api.github.com/repos/OCA/connector-interfaces/tags","blobs_url":"https://api.github.com/repos/OCA/connector-interfaces/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OCA/connector-interfaces/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OCA/connector-interfaces/git/refs{/sha}","trees_url":"https://api.github.com/repos/OCA/connector-interfaces/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OCA/connector-interfaces/statuses/{sha}","languages_url":"https://api.github.com/repos/OCA/connector-interfaces/languages","stargazers_url":"https://api.github.com/repos/OCA/connector-interfaces/stargazers","contributors_url":"https://api.github.com/repos/OCA/connector-interfaces/contributors","subscribers_url":"https://api.github.com/repos/OCA/connector-interfaces/subscribers","subscription_url":"https://api.github.com/repos/OCA/connector-interfaces/subscription","commits_url":"https://api.github.com/repos/OCA/connector-interfaces/commits{/sha}","git_commits_url":"https://api.github.com/repos/OCA/connector-interfaces/git/commits{/sha}","comments_url":"https://api.github.com/repos/OCA/connector-interfaces/comments{/number}","issue_comment_url":"https://api.github.com/repos/OCA/connector-interfaces/issues/comments{/number}","contents_url":"https://api.github.com/repos/OCA/connector-interfaces/contents/{+path}","compare_url":"https://api.github.com/repos/OCA/connector-interfaces/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OCA/connector-interfaces/merges","archive_url":"https://api.github.com/repos/OCA/connector-interfaces/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OCA/connector-interfaces/downloads","issues_url":"https://api.github.com/repos/OCA/connector-interfaces/issues{/number}","pulls_url":"https://api.github.com/repos/OCA/connector-interfaces/pulls{/number}","milestones_url":"https://api.github.com/repos/OCA/connector-interfaces/milestones{/number}","notifications_url":"https://api.github.com/repos/OCA/connector-interfaces/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OCA/connector-interfaces/labels{/name}","releases_url":"https://api.github.com/repos/OCA/connector-interfaces/releases{/id}","created_at":"2014-10-03T07:46:15Z","updated_at":"2015-05-11T18:08:52Z","pushed_at":"2015-06-04T09:36:15Z","git_url":"git://github.com/OCA/connector-interfaces.git","ssh_url":"git@github.com:OCA/connector-interfaces.git","clone_url":"https://github.com/OCA/connector-interfaces.git","svn_url":"https://github.com/OCA/connector-interfaces","homepage":"","size":1633,"stargazers_count":9,"watchers_count":9,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"open_issues_count":8,"forks":20,"open_issues":8,"watchers":9,"default_branch":"8.0"}},"_links":{"self":{"href":"https://api.github.com/repos/OCA/connector-interfaces/pulls/17"},"html":{"href":"https://github.com/OCA/connector-interfaces/pull/17"},"issue":{"href":"https://api.github.com/repos/OCA/connector-interfaces/issues/17"},"comments":{"href":"https://api.github.com/repos/OCA/connector-interfaces/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/OCA/connector-interfaces/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/OCA/connector-interfaces/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OCA/connector-interfaces/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/OCA/connector-interfaces/statuses/e1bb57453e03902b397167876fd9fbbf8acc6561"}}}}