{"action":"created","comment":{"url":"https://api.github.com/repos/camptocamp/c2cgeoportal/pulls/comments/89785028","pull_request_review_id":10318905,"id":89785028,"diff_hunk":"@@ -116,3 +116,93 @@ To print the layers in the high quality you you should add those ``Metadata``:\n .. note::\n \n    See also: :ref:`administrator_administrate_metadata`, :ref:`administrator_administrate_ogc_server`.\n+\n+.. _integrator_ngeo_add:\n+\n+Add a new interface\n+-------------------\n+\n+Be sure that's you have all the required files:\n+\n+.. prompt:: bash\n+\n+   mkdir demo/static-ngeo\n+   cp -r CONST_create_template/demo/static-ngeo/components demo/static-ngeo/\n+   cp -r CONST_create_template/demo/static-ngeo/images demo/static-ngeo/\n+   mkdir demo/static-ngeo/js\n+   cp CONST_create_template/demo/static-ngeo/js/<package>module.js demo/static-ngeo/js/\n+   mkdir demo/static-ngeo/less\n+   cp CONST_create_template/demo/static-ngeo/less/<package>.less demo/static-ngeo/less/\n+   # Add all the new files to Git\n+   git add demo/static-ngeo\n+\n+Get the default interface files, for the mobile:\n+\n+.. prompt:: bash\n+\n+  cp CONST_create_template/<package>/templates/mobile.html <package>/templates/<inferface>.html\n+  cp CONST_create_template/<package>/static-ngeo/less/mobile.less <package>/templates/<inferface>.less\n+  cp CONST_create_template/<package>/static-ngeo/js/mobile.js <package>/static-ngeo/js/<inferface>.js\n+\n+Get the default interface files, for the desktop:\n+\n+.. prompt:: bash\n+\n+  cp CONST_create_template/<package>/templates/desktop.html <package>/templates/<inferface>.html\n+  cp CONST_create_template/<package>/static-ngeo/less/desktop.less <package>/templates/<inferface>.less\n+  cp CONST_create_template/<package>/static-ngeo/js/desktop.js <package>/static-ngeo/js/<inferface>.js\n+\n+Add them to Git:\n+\n+.. prompt:: bash\n+\n+  git add <package>/templates/<inferface>.html\n+  git add <package>/templates/<inferface>.less\n+  git add <package>/static-ngeo/js/<inferface>.js\n+\n+Update the interface in your ``<package>/__init__.py`` file:\n+\n+.. code:: python\n+\n+  add_interface(config, \"<interface>\", INTERFACE_TYPE_NGEO)\n+\n+The used method has the following API:\n+\n+``add_interface(config, interface_name=None, interface_type=INTERFACE_TYPE_CGXP, **kwargs)``:\n+\n+``config`` is the application configuration object.\n+\n+``interface_name`` is the name specified in the ``interface`` table,\n+also used to create the route path.\n+\n+``interface_type`` may be either ``INTERFACE_TYPE_CGXP``, ``INTERFACE_TYPE_NGEO`` or\n+``INTERFACE_TYPE_NGEO_CATALOGUE``. Constants available in ``c2cgeoportal``.\n+\n+Database\n+--------\n+\n+The administration interface gives access to an ``interface`` table listing the\n+available interfaces (or pages) of the application.\n+The default interfaces are ``desktop`` add ``mobile``.\n+\n+Checker\n+-------\n+\n+Enable the checker for the new interface.\n+\n+We suggest to add only the main checker in the ``defaults`` it's what's done by default.\n+\n+And in the ``all`` (``vars.checker.all``) check all the ngeo interface in standard and debug mode:","path":"doc/integrator/ngeo.rst","position":114,"original_position":114,"commit_id":"c201d09c328da6dce566eb1e6e86b6d4ed2831bf","original_commit_id":"35ba042ff4de9d6f0b3c4f9f19fc544965e136cd","user":{"login":"sbrunner","id":353872,"avatar_url":"https://avatars.githubusercontent.com/u/353872?v=3","gravatar_id":"","url":"https://api.github.com/users/sbrunner","html_url":"https://github.com/sbrunner","followers_url":"https://api.github.com/users/sbrunner/followers","following_url":"https://api.github.com/users/sbrunner/following{/other_user}","gists_url":"https://api.github.com/users/sbrunner/gists{/gist_id}","starred_url":"https://api.github.com/users/sbrunner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbrunner/subscriptions","organizations_url":"https://api.github.com/users/sbrunner/orgs","repos_url":"https://api.github.com/users/sbrunner/repos","events_url":"https://api.github.com/users/sbrunner/events{/privacy}","received_events_url":"https://api.github.com/users/sbrunner/received_events","type":"User","site_admin":false},"body":"type all ...","created_at":"2016-11-28T13:58:55Z","updated_at":"2016-11-28T13:58:55Z","html_url":"https://github.com/camptocamp/c2cgeoportal/pull/2678#discussion_r89785028","pull_request_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/pulls/2678","_links":{"self":{"href":"https://api.github.com/repos/camptocamp/c2cgeoportal/pulls/comments/89785028"},"html":{"href":"https://github.com/camptocamp/c2cgeoportal/pull/2678#discussion_r89785028"},"pull_request":{"href":"https://api.github.com/repos/camptocamp/c2cgeoportal/pulls/2678"}}},"pull_request":{"url":"https://api.github.com/repos/camptocamp/c2cgeoportal/pulls/2678","id":95175095,"html_url":"https://github.com/camptocamp/c2cgeoportal/pull/2678","diff_url":"https://github.com/camptocamp/c2cgeoportal/pull/2678.diff","patch_url":"https://github.com/camptocamp/c2cgeoportal/pull/2678.patch","issue_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/issues/2678","number":2678,"state":"open","locked":false,"title":"Add a legacy features page, simplify the configuration","user":{"login":"sbrunner","id":353872,"avatar_url":"https://avatars.githubusercontent.com/u/353872?v=3","gravatar_id":"","url":"https://api.github.com/users/sbrunner","html_url":"https://github.com/sbrunner","followers_url":"https://api.github.com/users/sbrunner/followers","following_url":"https://api.github.com/users/sbrunner/following{/other_user}","gists_url":"https://api.github.com/users/sbrunner/gists{/gist_id}","starred_url":"https://api.github.com/users/sbrunner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbrunner/subscriptions","organizations_url":"https://api.github.com/users/sbrunner/orgs","repos_url":"https://api.github.com/users/sbrunner/repos","events_url":"https://api.github.com/users/sbrunner/events{/privacy}","received_events_url":"https://api.github.com/users/sbrunner/received_events","type":"User","site_admin":false},"body":"fix #2666, #2665","created_at":"2016-11-24T13:03:55Z","updated_at":"2016-11-28T13:58:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f97c717a4dd3af7c5a1857f154f60f5da8127b6e","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/camptocamp/c2cgeoportal/milestones/36","html_url":"https://github.com/camptocamp/c2cgeoportal/milestones/2.1","labels_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/milestones/36/labels","id":1330997,"number":36,"title":"2.1","description":"","creator":{"login":"sbrunner","id":353872,"avatar_url":"https://avatars.githubusercontent.com/u/353872?v=3","gravatar_id":"","url":"https://api.github.com/users/sbrunner","html_url":"https://github.com/sbrunner","followers_url":"https://api.github.com/users/sbrunner/followers","following_url":"https://api.github.com/users/sbrunner/following{/other_user}","gists_url":"https://api.github.com/users/sbrunner/gists{/gist_id}","starred_url":"https://api.github.com/users/sbrunner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbrunner/subscriptions","organizations_url":"https://api.github.com/users/sbrunner/orgs","repos_url":"https://api.github.com/users/sbrunner/repos","events_url":"https://api.github.com/users/sbrunner/events{/privacy}","received_events_url":"https://api.github.com/users/sbrunner/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":371,"state":"open","created_at":"2015-09-30T12:23:30Z","updated_at":"2016-11-28T11:09:13Z","due_on":"2016-05-24T22:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/pulls/2678/commits","review_comments_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/pulls/2678/comments","review_comment_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/issues/2678/comments","statuses_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/statuses/c201d09c328da6dce566eb1e6e86b6d4ed2831bf","head":{"label":"camptocamp:doc","ref":"doc","sha":"c201d09c328da6dce566eb1e6e86b6d4ed2831bf","user":{"login":"camptocamp","id":28109,"avatar_url":"https://avatars.githubusercontent.com/u/28109?v=3","gravatar_id":"","url":"https://api.github.com/users/camptocamp","html_url":"https://github.com/camptocamp","followers_url":"https://api.github.com/users/camptocamp/followers","following_url":"https://api.github.com/users/camptocamp/following{/other_user}","gists_url":"https://api.github.com/users/camptocamp/gists{/gist_id}","starred_url":"https://api.github.com/users/camptocamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/camptocamp/subscriptions","organizations_url":"https://api.github.com/users/camptocamp/orgs","repos_url":"https://api.github.com/users/camptocamp/repos","events_url":"https://api.github.com/users/camptocamp/events{/privacy}","received_events_url":"https://api.github.com/users/camptocamp/received_events","type":"Organization","site_admin":false},"repo":{"id":2932773,"name":"c2cgeoportal","full_name":"camptocamp/c2cgeoportal","owner":{"login":"camptocamp","id":28109,"avatar_url":"https://avatars.githubusercontent.com/u/28109?v=3","gravatar_id":"","url":"https://api.github.com/users/camptocamp","html_url":"https://github.com/camptocamp","followers_url":"https://api.github.com/users/camptocamp/followers","following_url":"https://api.github.com/users/camptocamp/following{/other_user}","gists_url":"https://api.github.com/users/camptocamp/gists{/gist_id}","starred_url":"https://api.github.com/users/camptocamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/camptocamp/subscriptions","organizations_url":"https://api.github.com/users/camptocamp/orgs","repos_url":"https://api.github.com/users/camptocamp/repos","events_url":"https://api.github.com/users/camptocamp/events{/privacy}","received_events_url":"https://api.github.com/users/camptocamp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/camptocamp/c2cgeoportal","description":"c2cgeoportal application","fork":false,"url":"https://api.github.com/repos/camptocamp/c2cgeoportal","forks_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/forks","keys_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/teams","hooks_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/hooks","issue_events_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/issues/events{/number}","events_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/events","assignees_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/assignees{/user}","branches_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/branches{/branch}","tags_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/tags","blobs_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/git/refs{/sha}","trees_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/statuses/{sha}","languages_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/languages","stargazers_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/stargazers","contributors_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/contributors","subscribers_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/subscribers","subscription_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/subscription","commits_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/commits{/sha}","git_commits_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/git/commits{/sha}","comments_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/comments{/number}","issue_comment_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/issues/comments{/number}","contents_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/contents/{+path}","compare_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/merges","archive_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/downloads","issues_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/issues{/number}","pulls_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/pulls{/number}","milestones_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/milestones{/number}","notifications_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/labels{/name}","releases_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/releases{/id}","deployments_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/deployments","created_at":"2011-12-07T13:42:59Z","updated_at":"2016-11-17T21:39:41Z","pushed_at":"2016-11-28T13:50:36Z","git_url":"git://github.com/camptocamp/c2cgeoportal.git","ssh_url":"git@github.com:camptocamp/c2cgeoportal.git","clone_url":"https://github.com/camptocamp/c2cgeoportal.git","svn_url":"https://github.com/camptocamp/c2cgeoportal","homepage":"","size":358918,"stargazers_count":25,"watchers_count":25,"language":"PLpgSQL","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":27,"mirror_url":null,"open_issues_count":97,"forks":27,"open_issues":97,"watchers":25,"default_branch":"master"}},"base":{"label":"camptocamp:master","ref":"master","sha":"67680a379ba0d1f634d9a5f2ac568112b470617d","user":{"login":"camptocamp","id":28109,"avatar_url":"https://avatars.githubusercontent.com/u/28109?v=3","gravatar_id":"","url":"https://api.github.com/users/camptocamp","html_url":"https://github.com/camptocamp","followers_url":"https://api.github.com/users/camptocamp/followers","following_url":"https://api.github.com/users/camptocamp/following{/other_user}","gists_url":"https://api.github.com/users/camptocamp/gists{/gist_id}","starred_url":"https://api.github.com/users/camptocamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/camptocamp/subscriptions","organizations_url":"https://api.github.com/users/camptocamp/orgs","repos_url":"https://api.github.com/users/camptocamp/repos","events_url":"https://api.github.com/users/camptocamp/events{/privacy}","received_events_url":"https://api.github.com/users/camptocamp/received_events","type":"Organization","site_admin":false},"repo":{"id":2932773,"name":"c2cgeoportal","full_name":"camptocamp/c2cgeoportal","owner":{"login":"camptocamp","id":28109,"avatar_url":"https://avatars.githubusercontent.com/u/28109?v=3","gravatar_id":"","url":"https://api.github.com/users/camptocamp","html_url":"https://github.com/camptocamp","followers_url":"https://api.github.com/users/camptocamp/followers","following_url":"https://api.github.com/users/camptocamp/following{/other_user}","gists_url":"https://api.github.com/users/camptocamp/gists{/gist_id}","starred_url":"https://api.github.com/users/camptocamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/camptocamp/subscriptions","organizations_url":"https://api.github.com/users/camptocamp/orgs","repos_url":"https://api.github.com/users/camptocamp/repos","events_url":"https://api.github.com/users/camptocamp/events{/privacy}","received_events_url":"https://api.github.com/users/camptocamp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/camptocamp/c2cgeoportal","description":"c2cgeoportal application","fork":false,"url":"https://api.github.com/repos/camptocamp/c2cgeoportal","forks_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/forks","keys_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/teams","hooks_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/hooks","issue_events_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/issues/events{/number}","events_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/events","assignees_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/assignees{/user}","branches_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/branches{/branch}","tags_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/tags","blobs_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/git/refs{/sha}","trees_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/statuses/{sha}","languages_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/languages","stargazers_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/stargazers","contributors_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/contributors","subscribers_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/subscribers","subscription_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/subscription","commits_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/commits{/sha}","git_commits_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/git/commits{/sha}","comments_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/comments{/number}","issue_comment_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/issues/comments{/number}","contents_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/contents/{+path}","compare_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/merges","archive_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/downloads","issues_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/issues{/number}","pulls_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/pulls{/number}","milestones_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/milestones{/number}","notifications_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/labels{/name}","releases_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/releases{/id}","deployments_url":"https://api.github.com/repos/camptocamp/c2cgeoportal/deployments","created_at":"2011-12-07T13:42:59Z","updated_at":"2016-11-17T21:39:41Z","pushed_at":"2016-11-28T13:50:36Z","git_url":"git://github.com/camptocamp/c2cgeoportal.git","ssh_url":"git@github.com:camptocamp/c2cgeoportal.git","clone_url":"https://github.com/camptocamp/c2cgeoportal.git","svn_url":"https://github.com/camptocamp/c2cgeoportal","homepage":"","size":358918,"stargazers_count":25,"watchers_count":25,"language":"PLpgSQL","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":27,"mirror_url":null,"open_issues_count":97,"forks":27,"open_issues":97,"watchers":25,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/camptocamp/c2cgeoportal/pulls/2678"},"html":{"href":"https://github.com/camptocamp/c2cgeoportal/pull/2678"},"issue":{"href":"https://api.github.com/repos/camptocamp/c2cgeoportal/issues/2678"},"comments":{"href":"https://api.github.com/repos/camptocamp/c2cgeoportal/issues/2678/comments"},"review_comments":{"href":"https://api.github.com/repos/camptocamp/c2cgeoportal/pulls/2678/comments"},"review_comment":{"href":"https://api.github.com/repos/camptocamp/c2cgeoportal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/camptocamp/c2cgeoportal/pulls/2678/commits"},"statuses":{"href":"https://api.github.com/repos/camptocamp/c2cgeoportal/statuses/c201d09c328da6dce566eb1e6e86b6d4ed2831bf"}}}}
{"actor":{"display_login":"sbrunner"}}