[pkg] move to new "cube as package" layout
authorPhilippe Pepiot <philippe.pepiot@logilab.fr>
Thu, 23 Feb 2017 11:40:36 +0100
changeset 150 555661aebe9a
parent 148 2ab08aa253ed
child 151 96ac1ae0bade
[pkg] move to new "cube as package" layout
MANIFEST.in
__init__.py
__pkginfo__.py
cubicweb_sherpa/__init__.py
cubicweb_sherpa/__pkginfo__.py
cubicweb_sherpa/data/cubes.sherpa.css
cubicweb_sherpa/data/fonts/Open_Sans/LICENSE.txt
cubicweb_sherpa/data/fonts/Open_Sans/OpenSans-Bold.ttf
cubicweb_sherpa/data/fonts/Open_Sans/OpenSans-BoldItalic.ttf
cubicweb_sherpa/data/fonts/Open_Sans/OpenSans-CondBold.ttf
cubicweb_sherpa/data/fonts/Open_Sans/OpenSans-CondLight.ttf
cubicweb_sherpa/data/fonts/Open_Sans/OpenSans-CondLightItalic.ttf
cubicweb_sherpa/data/fonts/Open_Sans/OpenSans-ExtraBold.ttf
cubicweb_sherpa/data/fonts/Open_Sans/OpenSans-ExtraBoldItalic.ttf
cubicweb_sherpa/data/fonts/Open_Sans/OpenSans-Italic.ttf
cubicweb_sherpa/data/fonts/Open_Sans/OpenSans-Light.ttf
cubicweb_sherpa/data/fonts/Open_Sans/OpenSans-LightItalic.ttf
cubicweb_sherpa/data/fonts/Open_Sans/OpenSans-Regular.ttf
cubicweb_sherpa/data/fonts/Open_Sans/OpenSans-Semibold.ttf
cubicweb_sherpa/data/fonts/Open_Sans/OpenSans-SemiboldItalic.ttf
cubicweb_sherpa/data/fonts/Open_Sans/readme.txt
cubicweb_sherpa/data/fonts/lovelo/Lovelo-Black.otf
cubicweb_sherpa/data/fonts/lovelo/licence.txt
cubicweb_sherpa/data/images/exemple_bordereau.png
cubicweb_sherpa/data/images/exemple_invalide.png
cubicweb_sherpa/data/images/exemple_profil.png
cubicweb_sherpa/data/images/exemple_valide.png
cubicweb_sherpa/data/images/logo_SHERPA.png
cubicweb_sherpa/data/images/logo_SHERPA_2.png
cubicweb_sherpa/data/images/logo_SIAF.png
cubicweb_sherpa/data/images/seda.png
cubicweb_sherpa/data/images/sherpa_bordereau.png
cubicweb_sherpa/data/images/sherpa_general.png
cubicweb_sherpa/data/images/sherpa_profil.png
cubicweb_sherpa/i18n/en.po
cubicweb_sherpa/i18n/fr.po
cubicweb_sherpa/migration/postcreate.py
cubicweb_sherpa/site_cubicweb.py
cubicweb_sherpa/uiprops.py
cubicweb_sherpa/views/__init__.py
cubicweb_sherpa/views/components.py
cubicweb_sherpa/views/management.py
cubicweb_sherpa/views/templates.py
cubicweb_sherpa/views/templates/index.jinja2
cubicweb_sherpa/views/templates/maintemplate.jinja2
cubicweb_sherpa/views/templates/project.jinja2
cubicweb_sherpa/views/templates/seda.jinja2
cubicweb_sherpa/views/templates/utilisation.jinja2
data/cubes.sherpa.css
data/fonts/Open_Sans/LICENSE.txt
data/fonts/Open_Sans/OpenSans-Bold.ttf
data/fonts/Open_Sans/OpenSans-BoldItalic.ttf
data/fonts/Open_Sans/OpenSans-CondBold.ttf
data/fonts/Open_Sans/OpenSans-CondLight.ttf
data/fonts/Open_Sans/OpenSans-CondLightItalic.ttf
data/fonts/Open_Sans/OpenSans-ExtraBold.ttf
data/fonts/Open_Sans/OpenSans-ExtraBoldItalic.ttf
data/fonts/Open_Sans/OpenSans-Italic.ttf
data/fonts/Open_Sans/OpenSans-Light.ttf
data/fonts/Open_Sans/OpenSans-LightItalic.ttf
data/fonts/Open_Sans/OpenSans-Regular.ttf
data/fonts/Open_Sans/OpenSans-Semibold.ttf
data/fonts/Open_Sans/OpenSans-SemiboldItalic.ttf
data/fonts/Open_Sans/readme.txt
data/fonts/lovelo/Lovelo-Black.otf
data/fonts/lovelo/licence.txt
data/images/exemple_bordereau.png
data/images/exemple_invalide.png
data/images/exemple_profil.png
data/images/exemple_valide.png
data/images/logo_SHERPA.png
data/images/logo_SHERPA_2.png
data/images/logo_SIAF.png
data/images/seda.png
data/images/sherpa_bordereau.png
data/images/sherpa_general.png
data/images/sherpa_profil.png
i18n/en.po
i18n/fr.po
migration/postcreate.py
setup.py
site_cubicweb.py
tox.ini
uiprops.py
views/__init__.py
views/components.py
views/management.py
views/templates.py
views/templates/index.jinja2
views/templates/maintemplate.jinja2
views/templates/project.jinja2
views/templates/seda.jinja2
views/templates/utilisation.jinja2
--- a/MANIFEST.in	Thu Feb 23 10:40:28 2017 +0100
+++ b/MANIFEST.in	Thu Feb 23 11:40:36 2017 +0100
@@ -1,9 +1,9 @@
-include *.py
-include */*.py
+recursive-include cubicweb_sherpa *.py
+recursive-include cubicweb_sherpa/data *.gif *.png *.ico *.css *.js *.otf *.ttf *.txt
+recursive-include cubicweb_sherpa/i18n *.po
+include cubicweb_sherpa/views/templates/*.jinja2
 include tox.ini
 include doc/Makefile doc/conf.py doc/*.rst
-include views/templates/*.jinja2
-recursive-include data *.gif *.png *.ico *.css *.js *.otf *.ttf *.txt
-recursive-include i18n *.po
 
+prune __pkginfo__.py
 prune docker
--- a/__init__.py	Thu Feb 23 10:40:28 2017 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,4 +0,0 @@
-"""cubicweb-agape2 application package
-
-SEDA v2 profile generator
-"""
--- a/__pkginfo__.py	Thu Feb 23 10:40:28 2017 +0100
+++ b/__pkginfo__.py	Thu Feb 23 11:40:36 2017 +0100
@@ -1,60 +1,1 @@
-# pylint: disable=W0622
-"""cubicweb-agape2 application packaging information"""
-
-from os import listdir as _listdir
-from os.path import join, isdir
-from glob import glob
-
-
-modname = 'sherpa'
-distname = 'cubicweb-sherpa'
-
-numversion = (0, 2, 0)
-version = '.'.join(str(num) for num in numversion)
-
-license = 'GPL'
-author = 'LOGILAB S.A. (Paris, FRANCE)'
-author_email = 'contact@logilab.fr'
-description = 'SEDA v2 profile generator'
-web = 'http://www.cubicweb.org/project/%s' % distname
-
-__depends__ = {
-    'cubicweb': '>= 3.24.0', 'six': '>= 1.4.0',
-    'cubicweb-seda': None,
-    'cubicweb-registration': None,
-    'cubicweb-rememberme': None,
-    'cubicweb-relationwidget': None,
-    'jinja2': None,
-}
-
-__recommends__ = {}
-
-classifiers = [
-    'Environment :: Web Environment',
-    'Framework :: CubicWeb',
-    'Programming Language :: Python',
-    'Programming Language :: JavaScript',
-]
-
-THIS_CUBE_DIR = join('share', 'cubicweb', 'cubes', modname)
-
-
-def listdir(dirpath):
-    return [join(dirpath, fname) for fname in _listdir(dirpath)
-            if fname[0] != '.' and not fname.endswith('.pyc')
-            and not fname.endswith('~')
-            and not isdir(join(dirpath, fname))]
-
-
-data_files = [
-    # common files
-    [THIS_CUBE_DIR, [fname for fname in glob('*.py') if fname != 'setup.py']],
-]
-# check for possible extended cube layout
-for dname in ('entities', 'views', 'sobjects', 'hooks', 'schema', 'data',
-              'wdoc', 'i18n', 'migration',
-              'views/templates', 'data/fonts/lovelo', 'data/fonts/Open_Sans', 'data/images'):
-    if isdir(dname):
-        data_files.append([join(THIS_CUBE_DIR, dname), listdir(dname)])
-# Note: here, you'll need to add subdirectories if you want
-# them to be included in the debian package
+cubicweb_sherpa/__pkginfo__.py
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cubicweb_sherpa/__init__.py	Thu Feb 23 11:40:36 2017 +0100
@@ -0,0 +1,4 @@
+"""cubicweb-agape2 application package
+
+SEDA v2 profile generator
+"""
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cubicweb_sherpa/__pkginfo__.py	Thu Feb 23 11:40:36 2017 +0100
@@ -0,0 +1,33 @@
+# pylint: disable=W0622
+"""cubicweb-sherpa application packaging information"""
+
+modname = 'sherpa'
+distname = 'cubicweb-sherpa'
+
+numversion = (0, 2, 0)
+version = '.'.join(str(num) for num in numversion)
+
+license = 'GPL'
+author = 'LOGILAB S.A. (Paris, FRANCE)'
+author_email = 'contact@logilab.fr'
+description = 'SEDA v2 profile generator'
+web = 'http://www.cubicweb.org/project/%s' % distname
+
+__depends__ = {
+    'cubicweb': '>= 3.24.0',
+    'six': '>= 1.4.0',
+    'cubicweb-seda': None,
+    'cubicweb-registration': None,
+    'cubicweb-rememberme': None,
+    'cubicweb-relationwidget': None,
+    'jinja2': None,
+}
+
+__recommends__ = {}
+
+classifiers = [
+    'Environment :: Web Environment',
+    'Framework :: CubicWeb',
+    'Programming Language :: Python',
+    'Programming Language :: JavaScript',
+]
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cubicweb_sherpa/data/cubes.sherpa.css	Thu Feb 23 11:40:36 2017 +0100
@@ -0,0 +1,583 @@
+/* Font face & icon */
+
+@font-face {
+  font-family: 'OpenSans';
+  src: url('fonts/Open_Sans/OpenSans-Regular.ttf') format('truetype');
+  font-weight: 300;
+  font-style: normal;
+}
+
+@font-face {
+  font-family: 'OpenSans';
+  src: url('fonts/Open_Sans/OpenSans-LightItalic.ttf') format('truetype');
+  font-weight: 100;
+  font-style: italic;
+}
+
+@font-face {
+  font-family: 'lovelo';
+  src: url('fonts/lovelo/Lovelo-Black.otf') format('truetype');
+  font-weight: 100;
+}
+
+html {font-size: 100%;}
+
+body {
+  font-family: 'OpenSans';
+  font-size: 0.9em;
+}
+
+a, a:visited, a:hover, a:focus {
+  text-decoration: none;
+}
+
+hr {
+  border-top: 1px solid #dedede;
+}
+
+
+/* nav bar */
+
+.nav .open > a,
+.nav .open > a:focus,
+.nav .open > a:hover {
+  background-color: #fff;
+  border: none;
+  border-color: #fff
+}
+
+
+.navbar-sherpa {
+  background-color: #ffffff;
+  border-radius: 0;
+  border-style: solid;
+  border-width: 0 0 1.2em 0;
+  border-color: #0d4e96;
+  margin-bottom: 0;
+}
+.navbar-sherpa .logoSHERPA {
+  overflow: auto;
+}
+
+.navbar-sherpa .logoSHERPA img{
+  display: block;
+  height: 7em;
+  padding: 10px;
+  float: right;
+}
+
+.navbar-sherpa .logoSIAF {
+  margin: auto;
+  display: block;
+  height: 8em;
+  margin-top: 1em;
+}
+
+.navbar-sherpa a {
+  display: block;
+}
+
+.navbar-sherpa h1 {
+  margin-bottom: 0px;
+  width: 100%;
+  color: #626262;
+  font-size: 1em;
+  font-style: italic;
+  padding-bottom: 1em;
+  text-align: right;
+}
+
+.navbar-sherpa #search_box input {
+  border-radius: 0;
+}
+
+/*breadcrumbs */
+
+.breadcrumb {
+  background-color: #0b6ba8;
+  color: #fff;
+  border-radius: 0;
+  list-style: none;
+  font-size: 1.3em;
+  padding-top: 0.8em;
+  padding-bottom: 0.8em;
+  margin-bottom: 0;
+}
+
+.breadcrumb a {
+  color: #fff;
+}
+
+.breadcrumbs_wrapper {
+  background-color: #0b6ba8;
+}
+
+/* aside */
+#aside-main-left {
+  margin-top : 3em;
+}
+
+#aside-main-left .panel-heading,
+#aside-main-left .facetTitle,
+.rsetbox .panel-heading {
+  border-radius: 0;
+  color: white;
+  border: 0;
+  box-shadow: 0;
+}
+
+#aside-main-left .panel-heading {
+  background-color: #0d4e96;
+  font-size: 1.2em;
+}
+
+#aside-main-left .panel-default {
+  border: 0;
+}
+
+#aside-main-left .panel-body {
+  padding: 0;
+  padding-top: 1.5em;
+  background-color: #f6f6f6;
+  padding: 1em 0.8em 0.8em 1em;
+  border-bottom: 1px solid #dedede;
+}
+
+.rsetbox {
+  border-radius: 0;
+}
+
+#aside-main-left .panel-heading > .panel-title {
+  font-weight: bold;
+}
+
+#aside-main-left .facetTitle {
+  font-weight: lighter;
+  color: #333;
+  margin-top: 0.5em;
+}
+
+#aside-main-left .facetBody {
+  padding: 0;
+  border: 0;
+}
+
+#aside-main-left .panel-body > .panel-title {
+  color: white;
+  font-weight: bold;
+}
+
+#aside-main-left .panel {
+  border-radius: 0;
+}
+
+/* main content */
+
+#contentmain h1{
+  margin-top: 1em;
+  text-align: center;
+  color: #0d4e96;
+  padding-bottom: 1.5em;
+  padding-top: 0.5em;
+  font-size: 2em;
+  line-height: 1.1;
+  font-weight: bold;
+}
+
+#contentmain h2 {
+  color: #0d4e96;
+  margin: auto;
+  display: block;
+  font-size: 1.6em;
+  text-align: left;
+  margin-bottom: 1em;
+  margin-top: 2em;
+  font-family: 'lovelo';
+  font-weight: bold;
+}
+
+#contentmain .list-striped {
+  padding-left: 0;
+}
+
+#contentmain .list-striped > li > a {
+  padding : 0.4em 0 0.4em 0;
+  display: block;
+}
+
+#contentmain .list-striped li {
+  border-bottom: 1px solid #dbdbdb;
+  background-color: white;
+}
+
+#contentmain .list-striped li:hover {
+  border-bottom: 1px solid #0d4e96;
+  background-color: #e2f0ff;
+}
+
+
+#contentmain .panel-default {
+  border: 0;
+}
+
+#contentmain .panel-heading {
+  background-color: #0d4e96;
+  font-size: 1.2em;
+  border-radius: 0;
+  color: white;
+  border: 0;
+}
+
+#contentmain .panel-body {
+  padding: 0;
+  padding-top: 1.5em;
+  background-color: #f6f6f6;
+  padding: 1em 0.8em 0.8em 1em;
+  border-bottom: 1px solid #dedede;
+}
+
+
+
+#contentmain .panel-heading a {
+  color: white;
+  padding : 0.4em 0 0.4em 0;
+  display: block;
+}
+
+#buttons-wrapper {
+  text-align: center;
+  margin-bottom:4em;
+}
+
+#buttons-wrapper a {
+  color: #fff;
+  background-color: #0d4e96;
+  border-color: #ccc;
+  padding: 1em 2em 1em 2em;
+  border-radius: 0;
+  font-weight: bold;
+}
+
+#buttons-wrapper a:hover {
+  background-color: #0b6ba8;
+}
+
+/* table */
+
+table { font-size: 1em;}
+
+.cw-table-primary-entity th {
+  color: #333;
+}
+
+#seda_at_data_objects_tab h2 {
+  color: #5f5f5f;
+  margin: auto;
+  font-size: 1em;
+  text-align: left;
+  font-weight: bold;
+}
+
+#contentmain tr {
+  border-bottom: 1px solid #dbdbdb;
+}
+
+
+/* tabs */
+
+#contentmain .nav-tabs li.active a {
+  border-bottom: 2px solid #0d4e96;
+  font-weight: bold;
+  background-color: #e2f0ff;
+}
+
+#contentmain .nav-tabs li a {
+  color: #333;
+  padding-right: 2em;
+  padding-left: 2em;
+  border: 2px solid #fff;
+  border-radius: 0;
+  margin-bottom: 1px;
+}
+
+#contentmain .nav-tabs li:hover a {
+  border-bottom: 2px solid #0d4e96;
+  background-color: #fff;
+}
+
+#contentmain p {
+  line-height: 2em;
+  padding-bottom: 0;
+}
+
+#contentmain li {
+  line-height: 2em;
+  text-align: justify;
+}
+
+/* home page */
+
+#contentmain .emphasis {
+  font-weight: bold;
+  color: #000;
+}
+
+#contentmain #presentation,
+#contentmain #seda {
+  padding-bottom: 3.5em;
+}
+
+#contentmain #presentation p {
+  text-align: center;
+}
+
+#contentmain #projetSherpa {
+  padding-bottom: 3.5em;
+}
+
+#contentmain #accueil h2 {
+  margin: auto;
+  display: block;
+  font-size: 2em;
+  color: #0d4e96;
+  text-align: center;
+  margin-bottom: 1em;
+  margin-top: 2em;
+  font-family: 'lovelo';
+}
+
+
+#contentmain #accueil h3{
+  color: #333;
+  text-transform: uppercase;
+  text-align: center;
+  min-height: 50px;
+}
+
+#accueil section {
+  overflow: auto;
+}
+
+#contentmain p {
+  text-align: justify;
+}
+
+#contentmain .utilisation h4 {
+  color: #0d4e96;
+  margin-top: 1.1em;
+}
+
+
+.iconWrapper{
+  text-align: center;
+}
+
+.icon-section {
+  font-size: 40px;
+}
+
+.underline {
+  position: relative;
+  bottom: 7px;
+  display: inline-block;
+  z-index: 1;
+  width: 5em;
+  height: 1px;
+  background: #626262;
+}
+
+.losange {
+  height: 1em;
+  width: 1em;
+  display: inline-block;
+  background: #0d4e96;
+  -ms-transform: rotate(45deg); /* Internet Explorer */
+  -moz-transform: rotate(45deg); /* Firefox */
+  -webkit-transform: rotate(45deg); /* Safari et Chrome */
+  -o-transform: rotate(45deg); /* Opera */
+}
+
+.mr {
+  margin-right: 20px;
+}
+
+.ml {
+  margin-left: 20px;
+}
+
+.titleUnderline {
+  text-align: center;
+  margin-bottom: 1.5em;
+}
+
+
+/* project page */
+
+#sherpa-project-page .column-wrap {
+    overflow: hidden;
+}
+
+#sherpa-project-page > div {
+  margin-bottom: 2em;
+}
+
+#sherpa-project-page .vcenter {
+  margin-bottom: -99999px;
+  padding-bottom: 99999px;
+}
+
+#sherpa-project-page img {
+  max-height: 100px;
+}
+
+#sherpa-project-page  .project-image {
+  display: block;
+  margin: auto;
+}
+
+#sherpa-project-page h2::after,
+#sherpa-seda-page h2:after,
+#utilisation h2::after {
+  content: "";
+  display: block;
+  width: 108px;
+  height: 3px;
+  background-color: #0d4e96;
+  margin-top: 0.6em;
+  margin-bottom: 2em;
+}
+
+
+#sherpa-project-page h2 {
+  margin-top: auto;
+  text-align: left;
+}
+
+#sherpa-project-page .img-bottom {
+  margin: 1em 0 2em 0;
+  margin-top: 5em;
+}
+
+#sherpa-project-page .img-bottom img {
+  max-height: 300px;
+}
+
+#sherpa-project-page .exemple-image {
+  float: left;
+  height: 3em;
+  padding-right: 1em;
+}
+
+/* utilisation */
+
+#utilisation .font-openSans {
+  font-family: 'OpenSans';
+}
+
+
+#utilisation .form:first-child {
+  border-right: 1px solid grey;
+}
+
+#utilisation .form > p {
+  padding-left: 2em;
+  padding-bottom: 2em;
+}
+
+/* seda static page */
+
+#sherpa-seda-page .seda-img {
+  margin: auto;
+  max-height: 300px;
+}
+
+
+/* footer */
+
+#pagefooter {
+  background-color: #0d4e96;
+  font-size: 1.25em;
+  color: #fff;
+  overflow: hidden;
+  padding: 2em;
+}
+
+#pagefooter a{
+  color: #fff;
+}
+
+#pagefooter h3 {
+  text-align: left;
+  font-family: 'lovelo';
+}
+#pagefooter .links {
+  overflow: hidden;
+  display: inline-block;
+}
+
+#pagefooter .links > div {
+  padding-left: 2em;
+}
+
+#pagefooter .links a {
+  display: block;
+  text-align: left;
+  line-height: 2em;
+}
+
+#pagefooter a:hover {
+  text-decoration: underline;
+}
+
+#pagefooter #sherpa-resources {
+  float: left;
+  padding-right: 4em;
+  border-left: 1px solid transparent;
+  border-right: 1px solid transparent;
+}
+
+#pagefooter #sherpa-navigation {
+  float: left;
+  margin-top: 2em;
+}
+
+#pagefooter  #copyright{
+  margin-top: 3em;
+  padding: 1.5em 0 1.5em 0;
+  border-top: 1px solid white;
+  border-bottom: 1px solid white;
+  clear: both;
+}
+
+/*media queries */
+
+.page-content {
+    padding-left: 5px;
+}
+
+@media (min-width: 990px) {
+  .page-content {
+    padding : 0 5em 0 5em;
+  }
+
+  .breadcrumb {
+    padding-left: 4.1em;
+  }
+}
+
+@media(min-width: 760px){
+  #pagefooter #sherpa-navigation {
+    float: left;
+    margin-top: auto;
+  }
+
+  #pagefooter #sherpa-resources {
+    border-right: 1px solid white;
+    border-left: 1px solid white;
+  }
+}
+
+/* XXX remove me once seda > 0.6.1 is released */
+.cw-table-primary-entity td {
+  width: 67%;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cubicweb_sherpa/data/fonts/Open_Sans/LICENSE.txt	Thu Feb 23 11:40:36 2017 +0100
@@ -0,0 +1,202 @@
+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
Binary file cubicweb_sherpa/data/fonts/Open_Sans/OpenSans-Bold.ttf has changed
Binary file cubicweb_sherpa/data/fonts/Open_Sans/OpenSans-BoldItalic.ttf has changed
Binary file cubicweb_sherpa/data/fonts/Open_Sans/OpenSans-CondBold.ttf has changed
Binary file cubicweb_sherpa/data/fonts/Open_Sans/OpenSans-CondLight.ttf has changed
Binary file cubicweb_sherpa/data/fonts/Open_Sans/OpenSans-CondLightItalic.ttf has changed
Binary file cubicweb_sherpa/data/fonts/Open_Sans/OpenSans-ExtraBold.ttf has changed
Binary file cubicweb_sherpa/data/fonts/Open_Sans/OpenSans-ExtraBoldItalic.ttf has changed
Binary file cubicweb_sherpa/data/fonts/Open_Sans/OpenSans-Italic.ttf has changed
Binary file cubicweb_sherpa/data/fonts/Open_Sans/OpenSans-Light.ttf has changed
Binary file cubicweb_sherpa/data/fonts/Open_Sans/OpenSans-LightItalic.ttf has changed
Binary file cubicweb_sherpa/data/fonts/Open_Sans/OpenSans-Regular.ttf has changed
Binary file cubicweb_sherpa/data/fonts/Open_Sans/OpenSans-Semibold.ttf has changed
Binary file cubicweb_sherpa/data/fonts/Open_Sans/OpenSans-SemiboldItalic.ttf has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cubicweb_sherpa/data/fonts/Open_Sans/readme.txt	Thu Feb 23 11:40:36 2017 +0100
@@ -0,0 +1,40 @@
+Congratulations, you have successfully downloaded font file! 
+
+This font is provided to you by Fonts2u.com – the largest online 
+repository of free fonts for Windows and Mac.
+
+
+
+How to install this font on your computer?
+
+For Windows 7 / Vista users:
+
+- Right-click the font file(s) and choose "Install".
+
+For users of the previous Windows versions:
+
+- Copy the included file(s) into a default Windows font folder 
+  (usually C:\WINDOWS\FONTS or C:\WINNT\FONTS)
+
+For Mac users:
+
+Mac OS X 10.3 or above (including the FontBook)
+
+- Double-click the font file and hit "Install font" button at 
+  the bottom of the preview.
+
+Mac OS X
+
+- Either copy the font file(s) to /Library/Fonts (for all users), 
+  or to /Users/Your_username/Library/Fonts (for you only).
+
+Mac OS 9 or earlier
+
+- You have to convert the font file(s) you have downloaded. 
+  Drag the font suitcases into the System folder. The system 
+  will propose you to add them to the Fonts folder.
+
+For Linux users:
+
+- Copy the font file(s) to /USR/SHARE/FONTS
+
Binary file cubicweb_sherpa/data/fonts/lovelo/Lovelo-Black.otf has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cubicweb_sherpa/data/fonts/lovelo/licence.txt	Thu Feb 23 11:40:36 2017 +0100
@@ -0,0 +1,2 @@
+Lovelo free font is remake of the original Lovelo Inline – designed by Renzler Design, Vienna, Austria.
+Downloaded from http://www.fontfabric.com/lovelo-font/ 
Binary file cubicweb_sherpa/data/images/exemple_bordereau.png has changed
Binary file cubicweb_sherpa/data/images/exemple_invalide.png has changed
Binary file cubicweb_sherpa/data/images/exemple_profil.png has changed
Binary file cubicweb_sherpa/data/images/exemple_valide.png has changed
Binary file cubicweb_sherpa/data/images/logo_SHERPA.png has changed
Binary file cubicweb_sherpa/data/images/logo_SHERPA_2.png has changed
Binary file cubicweb_sherpa/data/images/logo_SIAF.png has changed
Binary file cubicweb_sherpa/data/images/seda.png has changed
Binary file cubicweb_sherpa/data/images/sherpa_bordereau.png has changed
Binary file cubicweb_sherpa/data/images/sherpa_general.png has changed
Binary file cubicweb_sherpa/data/images/sherpa_profil.png has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cubicweb_sherpa/i18n/en.po	Thu Feb 23 11:40:36 2017 +0100
@@ -0,0 +1,31 @@
+msgid ""
+msgstr ""
+"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Generated-By: pygettext.py 1.5\n"
+"Plural-Forms: nplurals=2; plural=(n > 1);\n"
+
+msgid "Import AuthorityRecord"
+msgstr ""
+
+msgid "Import ConceptScheme"
+msgstr ""
+
+msgid "ctxcomponents_sherpa.add_entity"
+msgstr ""
+
+# schema pot file, generated on 2017-02-23 09:38:25
+#
+# singular and plural forms for each entity type
+# subject and object forms for each relation type
+# (no object form for final or symmetric relation types)
+msgid "ctxcomponents_sherpa.add_entity_description"
+msgstr ""
+
+msgid "ctxcomponents_sherpa.import_entity"
+msgstr ""
+
+msgid "ctxcomponents_sherpa.import_entity_description"
+msgstr ""
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cubicweb_sherpa/i18n/fr.po	Thu Feb 23 11:40:36 2017 +0100
@@ -0,0 +1,31 @@
+msgid ""
+msgstr ""
+"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Generated-By: pygettext.py 1.5\n"
+"Plural-Forms: nplurals=2; plural=(n > 1);\n"
+
+msgid "Import AuthorityRecord"
+msgstr "Importer une notice d'autorité"
+
+msgid "Import ConceptScheme"
+msgstr "Importer un vocabulaire contrôlé"
+
+msgid "ctxcomponents_sherpa.add_entity"
+msgstr ""
+
+# schema pot file, generated on 2017-02-23 09:38:25
+#
+# singular and plural forms for each entity type
+# subject and object forms for each relation type
+# (no object form for final or symmetric relation types)
+msgid "ctxcomponents_sherpa.add_entity_description"
+msgstr ""
+
+msgid "ctxcomponents_sherpa.import_entity"
+msgstr ""
+
+msgid "ctxcomponents_sherpa.import_entity_description"
+msgstr ""
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cubicweb_sherpa/migration/postcreate.py	Thu Feb 23 11:40:36 2017 +0100
@@ -0,0 +1,26 @@
+# copyright 2016 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+# contact http://www.logilab.fr -- mailto:contact@logilab.fr
+#
+# This program is free software: you can redistribute it and/or modify it under
+# the terms of the GNU General Public License as published by the Free
+# Software Foundation, either version 2.1 of the License, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
+# details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+"""cubicweb-agape2 postcreate script, executed at instance creation time or when
+the cube is added to an existing instance.
+
+You could setup site properties or a workflow here for example.
+"""
+
+# Example of site property change
+set_property('ui.site-title', u'Agape 2')
+set_property('ui.language', u'fr')
+set_property('ui.date-format', u'%d/%m/%Y')
+set_property('ui.datetime-format', u'%d/%m/%Y %H:%M')
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cubicweb_sherpa/site_cubicweb.py	Thu Feb 23 11:40:36 2017 +0100
@@ -0,0 +1,24 @@
+# copyright 2016 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+# contact http://www.logilab.fr -- mailto:contact@logilab.fr
+#
+# This program is free software: you can redistribute it and/or modify it under
+# the terms of the GNU General Public License as published by the Free
+# Software Foundation, either version 2.1 of the License, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
+# details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program. If not, see <http://www.gnu.org/licenses/>.
+
+from logilab.common.decorators import monkeypatch
+
+from cubicweb.web import request
+
+
+@monkeypatch(request._CubicWebRequestBase)
+def negotiated_language(self):
+    return 'fr'
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cubicweb_sherpa/uiprops.py	Thu Feb 23 11:40:36 2017 +0100
@@ -0,0 +1,4 @@
+# flake8: noqa
+STYLESHEETS.extend([
+    data('cubes.sherpa.css')
+])
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cubicweb_sherpa/views/__init__.py	Thu Feb 23 11:40:36 2017 +0100
@@ -0,0 +1,80 @@
+# -*- coding: utf-8
+# copyright 2017 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+# contact http://www.logilab.fr -- mailto:contact@logilab.fr
+#
+# This program is free software: you can redistribute it and/or modify it under
+# the terms of the GNU Lesser General Public License as published by the Free
+# Software Foundation, either version 2.1 of the License, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+# details.
+#
+# You should have received a copy of the GNU Lesser General Public License along
+# with this program. If not, see <http://www.gnu.org/licenses/>.
+
+from jinja2 import Environment, PackageLoader
+
+from cubicweb.view import View
+from cubicweb.web.views import urlrewrite, startup
+
+_JINJA_ENV = Environment(loader=PackageLoader('cubicweb_sherpa.views'))
+
+
+def jinja_render(template_name, **ctx):
+    """Return a string containing result of rendering of Jinja2's `template_name` with
+    `ctx` as context.
+    """
+    template = _JINJA_ENV.get_template(template_name + '.jinja2')
+    return template.render(**ctx)
+
+
+class JinjaStaticView(View):
+    """Abstract base class to render static pages from a jinja template."""
+    __abstract__ = True
+    template_name = None
+    title = None
+
+    def call(self, **kw):
+        self.w(jinja_render(self.template_name,
+                            title=self._cw._(self.title),
+                            data_url=self._cw.datadir_url))
+
+
+def jinja_static_view(template_name, title=None, regid=None):
+    """Generate a sub-class of JinjaStaticView parametrized with its `template_name` and `title`.
+
+    `__regid__` is built by prepending 'sherpa.' to template_name.
+    """
+    class_name = template_name.capitalize() + 'View'
+    if regid is None:
+        regid = 'sherpa.' + template_name
+
+    return type(class_name, (JinjaStaticView,), {'__regid__': regid,
+                                                 'template_name': template_name,
+                                                 'title': title})
+
+
+ProjectView = jinja_static_view('project', u'Sherpa un générateur de profils')
+UtilisationView = jinja_static_view('utilisation', u'Pour commencer')
+SedaView = jinja_static_view('seda', u'Le SEDA')
+IndexView = jinja_static_view('index', regid='index')
+
+
+class SherpaReqRewriter(urlrewrite.SimpleReqRewriter):
+    rules = [
+        ('/', dict(vid='sherpa.index')),
+        ('/project', dict(vid='sherpa.project')),
+        ('/utilisation', dict(vid='sherpa.utilisation')),
+        ('/seda', dict(vid='sherpa.seda')),
+    ]
+
+
+def registration_callback(vreg):
+    from cubicweb.web.views import bookmark
+
+    vreg.register_and_replace(IndexView, startup.IndexView)
+    vreg.register_all(globals().values(), __name__, (IndexView,))
+    vreg.unregister(bookmark.BookmarksBox)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cubicweb_sherpa/views/components.py	Thu Feb 23 11:40:36 2017 +0100
@@ -0,0 +1,96 @@
+# copyright 2017 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+# contact http://www.logilab.fr -- mailto:contact@logilab.fr
+#
+# This program is free software: you can redistribute it and/or modify it under
+# the terms of the GNU Lesser General Public License as published by the Free
+# Software Foundation, either version 2.1 of the License, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+# details.
+#
+# You should have received a copy of the GNU Lesser General Public License along
+# with this program. If not, see <http://www.gnu.org/licenses/>.
+"""cubicweb-sherpa components, originaly copied from the saem_ref cube."""
+
+from cubicweb import _, tags
+from cubicweb.predicates import multi_lines_rset, has_permission, is_instance
+from cubicweb.web import component
+
+
+def add_etype_link(req, etype, text=u'', klass='icon-plus-circled pull-right',
+                   **urlparams):
+    """Return an HTML link to add an entity of type 'etype'."""
+    vreg = req.vreg
+    eschema = vreg.schema.eschema(etype)
+    if eschema.has_perm(req, 'add'):
+        url = vreg['etypes'].etype_class(etype).cw_create_url(req, **urlparams)
+        return tags.a(text, href=url, klass=klass,
+                      title=req.__('New %s' % etype))
+    return u''
+
+
+def import_etype_link(req, etype, url):
+    """Return an HTML link to the view that may be used to import an entity of type `etype`.
+    """
+    eschema = req.vreg.schema.eschema(etype)
+    if eschema.has_perm(req, 'add'):
+        return tags.a(u'', href=url, klass='icon-upload pull-right',
+                      title=req.__('Import %s' % etype))
+    return u''
+
+
+class AddEntityComponent(component.CtxComponent):
+    """Component with 'add' link to be displayed in 'same etype' views usually 'SameETypeListView'.
+    """
+    __regid__ = 'sherpa.add_entity'
+    __select__ = (component.CtxComponent.__select__ & multi_lines_rset() & has_permission('add') &
+                  is_instance('AuthorityRecord', 'ConceptScheme',
+                              'SEDAArchiveTransfer', 'SEDAArchiveUnit'))
+    context = 'navtop'
+    extra_kwargs = {'SEDAArchiveUnit': {'unit_type': 'unit_content'}}
+
+    def render_body(self, w):
+        etype = self.cw_rset.description[0][0]
+        w(add_etype_link(self._cw, etype, **self.extra_kwargs.get(etype, {})))
+
+
+class ImportEntityComponent(component.CtxComponent):
+    """Component with 'import' link to be displayed in 'same etype' views usually
+    'SameETypeListView'.
+
+    Concret class should fill the `import_vid` class attribute and add a proper `is_instance`
+    selector.
+    """
+    __abstract__ = True
+    __regid__ = 'sherpa.import_entity'
+    __select__ = component.CtxComponent.__select__ & multi_lines_rset() & has_permission('add')
+    import_url = None  # URL of the view that may be used to import data
+    context = 'navtop'
+
+    def render_body(self, w):
+        etype = self.cw_rset.description[0][0]
+        w(import_etype_link(self._cw, etype, self.import_url))
+
+
+class EACImportComponent(ImportEntityComponent):
+    """Component with a link to import an authority record from an EAC-CPF file."""
+    __select__ = (ImportEntityComponent.__select__
+                  & is_instance('AuthorityRecord'))
+    _('Import AuthorityRecord')  # generate message used by the import component
+
+    @property
+    def import_url(self):
+        return self._cw.build_url('view', vid='eac.import')
+
+
+class SKOSImportComponent(ImportEntityComponent):
+    """Component with a link to import a concept scheme from a SKOS file."""
+    __select__ = ImportEntityComponent.__select__ & is_instance('ConceptScheme')
+    _('Import ConceptScheme')  # generate message used by the import component
+
+    @property
+    def import_url(self):
+        return self._cw.build_url('add/skossource')
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cubicweb_sherpa/views/management.py	Thu Feb 23 11:40:36 2017 +0100
@@ -0,0 +1,64 @@
+# copyright 2017 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+# contact http://www.logilab.fr -- mailto:contact@logilab.fr
+#
+# This program is free software: you can redistribute it and/or modify it under
+# the terms of the GNU Lesser General Public License as published by the Free
+# Software Foundation, either version 2.1 of the License, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+# details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+from logilab.mtconverter import xml_escape
+
+from cubicweb.predicates import relation_possible, one_line_rset, non_final_entity
+from cubicweb.web import action, formwidgets
+from cubicweb.web.formfields import guess_field
+from cubicweb.web.views import actions, management
+
+from cubes.relationwidget.views import RelationFacetWidget
+
+
+class SherpaSecurityManagementView(management.SecurityManagementView):
+    """Security view overriden to hide permissions definitions and using a
+    RelationFacetWidget to edit owner"""
+    __select__ = (management.SecurityManagementView.__select__ &
+                  relation_possible('owned_by', action='add'))
+
+    def entity_call(self, entity):
+        w = self.w
+        w(u'<h1><span class="etype">%s</span> <a href="%s">%s</a></h1>'
+          % (entity.dc_type().capitalize(),
+             xml_escape(entity.absolute_url()),
+             xml_escape(entity.dc_title())))
+        w('<h2>%s</h2>' % self._cw.__('Manage security'))
+        msg = self._cw.__('ownerships have been changed')
+        form = self._cw.vreg['forms'].select(
+            'base', self._cw, entity=entity,
+            form_renderer_id='base', submitmsg=msg,
+            form_buttons=[formwidgets.SubmitButton()],
+            domid='ownership%s' % entity.eid,
+            __redirectvid='security',
+            __redirectpath=entity.rest_path())
+        field = guess_field(entity.e_schema,
+                            self._cw.vreg.schema['owned_by'],
+                            req=self._cw,
+                            widget=RelationFacetWidget())
+        field.help = None
+        form.append_field(field)
+        form.render(w=w, display_progress_div=False)
+
+
+actions.ManagePermissionsAction.__select__ = (
+    action.Action.__select__ & one_line_rset() & non_final_entity()
+    & relation_possible('owned_by', action='add'))
+
+
+def registration_callback(vreg):
+    vreg.register_all(globals().values(), __name__)
+    vreg.unregister(management.SecurityManagementView)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cubicweb_sherpa/views/templates.py	Thu Feb 23 11:40:36 2017 +0100
@@ -0,0 +1,147 @@
+# -*- coding: utf-8
+# copyright 2017 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+# contact http://www.logilab.fr -- mailto:contact@logilab.fr
+#
+# This program is free software: you can redistribute it and/or modify it under
+# the terms of the GNU Lesser General Public License as published by the Free
+# Software Foundation, either version 2.1 of the License, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+# details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+"""sherpa views/templates"""
+
+from logilab.common.decorators import monkeypatch
+
+from cubicweb.utils import HTMLHead, UStringIO
+from cubicweb.web.views import basetemplates
+
+from . import jinja_render
+
+
+# Bootstrap configuration.
+basetemplates.TheMainTemplate.twbs_container_cls = 'container-fluid'
+
+
+@monkeypatch(HTMLHead)
+def add_onload(self, jscode):
+    """original `add_onload` implementation use `$(cw)`
+    but `cw` variable is not available
+    in francearchive, use `$` instead"""
+    self.add_post_inline_script(u"""$(function() {
+  %s
+});""" % jscode)
+
+
+class SherpaMainTemplate(basetemplates.TheMainTemplate):
+
+    def call(self, view):
+        self.set_request_content_type()
+        self.write_doctype()
+        self.template_header(self.content_type, view=view)
+        context = self.template_context(view)
+        self.w(jinja_render('maintemplate', **context))
+
+    def template_context(self, view):
+        """Return the main-template's context."""
+        # left boxes
+        left_boxes = list(self._cw.vreg['ctxcomponents'].poss_visible_objects(
+            self._cw, rset=self.cw_rset, view=view, context='left'))
+        stream = UStringIO()
+        for box in left_boxes:
+            box.render(w=stream.write, view=view)
+        left_boxes_html = stream.getvalue()
+        # header
+        stream = UStringIO()
+        w = stream.write
+        components = self.get_components(view, context='header-right')
+        if components:
+            w(u'<ul class="nav navbar-nav navbar-right">')
+            for component in components:
+                w(u'<li>')
+                component.render(w=w)
+                w(u'</li>')
+            w(u'</ul>')
+        right_header_component = stream.getvalue()
+        # application message
+        msgcomp = self._cw.vreg['components'].select_or_none(
+            'applmessages', self._cw, rset=self.cw_rset)
+        application_message = msgcomp.render() if msgcomp else u''
+        # breadcrumbs
+        stream = UStringIO()
+        w = stream.write
+        components = self.get_components(view, context='header-center')
+        if components:
+            for component in components:
+                component.render(w=w)
+        breadcrumbs = stream.getvalue()
+        # contextual components
+        contextual_components = self._cw.view('contentheader', rset=self.cw_rset, view=view)
+
+        ctx = self.base_context()
+        url = self._cw.build_url
+        ctx.update({
+            'title': view.page_title(),
+            'page_content': view.render(),
+            'breadcrumbs': breadcrumbs,
+            'application_message': application_message,
+            'contextual_components': contextual_components,
+            'right_header_component': right_header_component,
+            'left_boxes': left_boxes_html,
+            'side_box': {
+                'goTo_links': [
+                    {'url': url('SEDAArchiveTransfer'),
+                     'label': 'profils SEDA'},
+                    {'url': url('sedalib'),
+                     'label': u"unités d'archive"},
+                    {'url': url('AuthorityRecord'),
+                     'label': u"notices d'autorité"},
+                    {'url': url('ConceptScheme'),
+                     'label': u"vocabulaires"},
+                ],
+            },
+            'footer': {
+                'resources': [
+                    {'url': url('shema_seda'),
+                     'label': u'Schéma du SEDA 2.0'},
+                    {'url': url('dictionnaire'),
+                     'label': 'Dictionnaire des balises'},
+                    {'url': url('documentation_fonctionnelle'),
+                     'label': 'Documentation fonctionnelle'},
+                    {'url': url('documentation_technique'),
+                     'label': 'Documentation technique'},
+                ],
+                'navigation_Link': [
+                    {'url': url('project'),
+                     'label': u'SHERPA, un générateur de profils'},
+                    {'url': url('utilisation'),
+                     'label': "Pour commencer"},
+                    {'url': url('seda'),
+                     'label': "Le SEDA"},
+                ]
+            },
+        })
+        ctx.update(getattr(view, 'template_context', lambda: {})())
+
+        return ctx
+
+    def base_context(self):
+        """Return a basic context using standard cubicweb information."""
+        req = self._cw
+        return {
+            'page_id': 'contentmain',
+            '_': req._,
+            'user': req.user.login,
+            'base_url': req.build_url(''),
+            'data_url': req.datadir_url,
+            'current_url': req.relative_path(),
+        }
+
+
+def registration_callback(vreg):
+    vreg.register_and_replace(SherpaMainTemplate, basetemplates.TheMainTemplate)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cubicweb_sherpa/views/templates/index.jinja2	Thu Feb 23 11:40:36 2017 +0100
@@ -0,0 +1,47 @@
+<div class="col-md-12" id="accueil">
+
+  <section id="presentation">
+      <h2>Créer un profil</h2>
+      <div class="titleUnderline">
+        <span class="underline mr"></span>
+        <span class="losange"></span>
+        <span class="underline ml"></span>
+      </div>
+
+
+      <div class="col-md-10 col-md-offset-1">
+      <div id="buttons-wrapper">
+        <a href="/SEDAArchiveTransfer" class="btn btn-default">Profils Seda</a>
+      </div>
+
+        <p>
+SHERPA est un outil qui permet de créer des profils d'archivage conformes au standard d'échange en mode collaboratif.
+        </p>
+      </div>
+  </section>
+
+
+  <section id="seda">
+    <h2> Pour commencer </h2>
+    <div class="titleUnderline">
+      <span class="underline mr"></span>
+      <span class="losange"></span>
+      <span class="underline ml"></span>
+    </div>
+
+    <div id="buttons-wrapper">
+      <a href="/project" class="btn btn-default">SHERPA un générateur de profils</a>
+      <a href="/utilisation" class="btn btn-default">Comment utiliser SHERPA ?</a>
+      <a href="/seda" class="btn btn-default">Le SEDA</a>
+    </div>
+
+    <div class="col-md-12">
+      <p>
+      Le projet <span class="emphasis">SHERPA</span> a été conduit par le Service interministériel des Archives de France en 2016 afin de doter le <span class="emphasis">réseau des services publics d’archives</span> d’un outil disponible en ligne et permettant de <span class="emphasis">rédiger des profils d’archivage</span> conformes au <span class="emphasis">Standard</span> d’échange des données pour l’archivage, version 2.0.
+     <br>
+     Le projet SHERPA a été réalisé en collaboration avec le projet <a href="http://saem.e-bordeaux.org/">SAEM</a> auquel participent le Conseil départemental de la Gironde, Bordeaux Métropole et la Ville de Bordeaux, dans une optique de mutualisation des moyens. SHERPA a été réalisé par la société LOGILAB. Son code source est librement réutilisable.<br>
+     Licence : ### LICENCE ###
+      </p>
+    </div>
+  </section>
+</div>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cubicweb_sherpa/views/templates/maintemplate.jinja2	Thu Feb 23 11:40:36 2017 +0100
@@ -0,0 +1,73 @@
+<body>
+  <nav class="navbar navbar-default navbar-sherpa" role="banner">
+    <div class="container-fluid">
+      <div class="col-md-2 hidden-xs hidden-sm">
+        <a href="{{ base_url }}"><img src="{{ data_url }}images/logo_SIAF.png" class="logoSIAF" /></a>
+      </div>
+      <div class="col-md-7 col-xs-8">
+        <a href="/">
+          <div class="logoSHERPA">
+            <img src="{{ data_url }}images/logo_SHERPA_2.png" class="img-responsive"/>
+          </div>
+          <div class="textSHERPA">
+            <h1>Service H&eacute;berg&eacute; pour la R&eacute;daction de Profils d&#39;Archivage</h1>
+          </div>
+        </a>
+      </div>
+      <div class="col-md-3 col-xs-4">
+        {{ right_header_component }}
+      </div>
+    </div>
+  </nav>
+  {% if breadcrumbs %}
+  <nav role="navigation" class="breadcrumbs_wrapper">
+    <div class="col-md-offset-2">
+      {{ breadcrumbs }}
+    </div>
+  </nav>
+  {% endif %}
+  <div id="{{page_id}}" class="container-fluid" role="main">
+    <aside id="aside-main-left" class="col-md-2 cwjs-aside">
+      {{ left_boxes }}
+      <div class="panel panel-default contextFreeBox facet_filterbox" id="facet_filterbox">
+        <div class="panel-heading">
+          <div class="panel-title">navigation</div>
+        </div>
+        <div class="panel-body">
+          <ul class="list-unstyled">
+            {% for page in side_box.goTo_links %}
+            <li class="facetvalue"><a href='{{ page.url }}'> {{ page.label }}</a></li>
+            {% endfor %}
+          </ul>
+        </div>
+      </div>
+    </aside>
+    <div class="col-md-10 page-content" id="pageContent">
+      {{ application_message }}
+      {{ contextual_components }}
+      {{ page_content }}
+    </div>
+  </div>
+  <div class="container-fluid">
+    <footer role="contentinfo" id="pagefooter">
+      <section class="links">
+        <div id="sherpa-resources">
+        <h3>Ressources</h3>
+        {% for resource in footer.resources %}
+          <a href='{{ resource.url }}'> {{ resource.label }}</a>
+        {% endfor %}
+        </div>
+        <div id="sherpa-navigation">
+        <h3>Navigation</h3>
+        {% for page in footer.navigation_Link %}
+          <a href='{{ page.url }}'> {{ page.label }}</a>
+        {% endfor %}
+        </div>
+      </section>
+      <div id="copyright">
+        <span>copyright</span> |
+        <span><a href="">contact</a></span>
+      </div>
+    </footer>
+  </div>
+</body>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cubicweb_sherpa/views/templates/project.jinja2	Thu Feb 23 11:40:36 2017 +0100
@@ -0,0 +1,99 @@
+<h1>{{ title }}</h1>
+
+<section id="sherpa-project-page">
+  <div class="column-wrap">
+    <div class="col-md-2 vcenter">
+      <img class="img-responsive project-image" src="{{ data_url }}images/sherpa_bordereau.png"/>
+    </div>
+    <div class="col-md-9">
+      <h2>Du bordereau de versement ...</h2>
+      <p>
+        Le bordereau de versement est le document qui accompagne toute entrée d’archives publiques dans un service d’archives. Le bordereau contient des informations sur le service producteur et/ou versant, le service d’archives et une description sommaire des archives qui constituent le versement. Le bordereau matérialise le transfert de responsabilité entre le service versant et le service d’archives. C’est donc un document indispensable.
+      </p>
+      <p>
+        Dans le monde numérique, le bordereau de versement peut être dématérialisé, mais il continue d’avoir la même utilité et doit comporter les mêmes informations qu’un bordereau papier. C’est pourquoi le Standard d’échange de données pour l’archivage propose une modélisation des informations qui constituent le bordereau de versement.
+      </p>
+    </div>
+  </div>
+  <div class="column-wrap">
+    <div class="col-md-2 vcenter">
+      <img class="img-responsive project-image" src="{{ data_url }}images/sherpa_profil.png"/>
+    </div>
+    <div class="col-md-9">
+      <h2>… au profil d’archivage</h2>
+      <p>
+        Toute entrée de documents dans un service d’archives fait l’objet d’une série de contrôles destinés à vérifier la conformité de cette entrée aux attentes du service en matière sanitaire, de conditionnement, etc. Le contrôle du bordereau de versement en fait partie.
+      </p>
+      <p>
+        Dans le monde numérique, le Système d’archivage électronique (SAE) va lui aussi effectuer une série de contrôles, pour la plupart automatisés et pré-paramétrés (format, taille des fichiers, etc.). Il va également réaliser un contrôle du bordereau de versement. Pour évaluer la conformité du bordereau, le SAE doit savoir précisément ce qui est attendu dans ce bordereau et donc disposer d’une matrice de bordereau appelée profil d’archivage. Le profil est, pour un flux donné, la matrice de référence à partir de laquelle le SAE va pouvoir contrôler la conformité des bordereaux de versement de ce flux.
+      </p>
+    </div>
+
+  </div>
+  <div class="img-bottom">
+    <img class="img-responsive project-image" src="{{ data_url }}images/sherpa_general.png"/>
+  </div>
+  
+  <div class="col-md-12">
+    <h2>Exemple</h2>
+
+    <table class="table">
+        <tbody>
+            <thead>
+            <tr>
+              <th>Profil</th>
+              <th>Bordereau</th>
+              <th>Vérification</th>
+            </tr>
+          </thead>
+          <tr>
+            <td>
+                <p><img class="img-responsive exemple-image" src="{{ data_url }}images/exemple_profil.png"/></p>
+                <p>J’attends un nom de service versant de façon obligatoire</p>
+            </td>
+            <td>
+              <p><img class="img-responsive exemple-image" src="{{ data_url }}images/exemple_bordereau.png"/></p>
+              <p>Le service versant de mon versement est « Direction XXX »</p>
+            </td>
+            <td><img class="img-responsive exemple-image" src="{{ data_url }}images/exemple_valide.png"/></td>
+          </tr>
+          <tr>
+            <td>
+              <p><img class="img-responsive exemple-image" src="{{ data_url }}images/exemple_profil.png"/></p>
+              <p>J’attends 35 fichiers dans le versement</p>
+            </td>
+            <td>
+              <p><img class="img-responsive exemple-image" src="{{ data_url }}images/exemple_bordereau.png"/></p>
+              <p>Mon versement contient 40 fichiers</p>
+            </td>
+            <td><img class="img-responsive exemple-image" src="{{ data_url }}images/exemple_invalide.png"/></td>
+          </tr>
+          <tr>
+            <td>
+              <p><img class="img-responsive exemple-image" src="{{ data_url }}images/exemple_profil.png"/></p>
+              <p>J’attends au niveau Dossier le terme d’indexation YYY</p>
+            </td>
+            <td>
+              <p><img class="img-responsive exemple-image" src="{{ data_url }}images/exemple_bordereau.png"/></p>
+              <p>Mon versement contient au niveau Dossier le terme d’indexation YYY</p>
+            </td>
+            <td><img class="img-responsive exemple-image" src="{{ data_url }}images/exemple_valide.png"/></td>
+          </tr>
+        </tbody>
+      </table>
+
+  </div>
+
+  <div class="col-md-12">
+    <h2>Un générateur de profils</h2>
+    <p>
+    Les bordereaux de versement conformes au standard d’échange de données pour l’archivage sont des fichiers de format XML. Les profils d’archivage utilisent pour leur part des langages comme XSD ou RelaxNG qui permettent de définir la structure et le type de contenu d’un document XML.
+    </p>
+    <p>
+      SHERPA propose une interface simple et ergonomique pour rédiger des profils d’archivage et les exporter en RelaxNG. SHERPA permet également d’exporter une documentation associée au profil, lisible par un humain.
+    </p>
+  </div>
+
+
+
+</section>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cubicweb_sherpa/views/templates/seda.jinja2	Thu Feb 23 11:40:36 2017 +0100
@@ -0,0 +1,39 @@
+<h1>{{ title }}</h1>
+
+<section id="sherpa-seda-page">
+
+    <div class="col-md-3">
+      <img class="img-responsive seda-img" src="{{ data_url }}images/seda.png"/>
+    </div>
+
+    <div class="col-md-9">
+      <p>
+        Si les processus d’archivage et les documents qui leur sont associés (bordereaux) demeurent entièrement valables dans le monde numérique, celui-ci exige cependant une formalisation et une standardisation beaucoup plus fortes de ces processus et documents associés afin de pouvoir aller vers davantage d’automatisation.
+        Le standard d’échange de données pour l’archivage permet de modéliser les transactions d’un processus d’archivage (transfert, communication, élimination, modification et restitution) entre différents acteurs (service producteur, service versant, service d’archives et demandeur d’archives) . Il précise les types, l’ordre et la forme des messages échangés. Il définit d’autre part les métadonnées à utiliser pour décrire, gérer et pérenniser l’information.
+
+        Plusieurs versions du standard ont été successivement publiées en mars 2006 (version 0.1), janvier 2010 (version 0.2), septembre 2012 (version 1.0) et décembre 2015 (version 2.0 conforme à la norme MEDONA).
+      </p>
+
+      <p>
+        Le standard est une déclinaison technique des pratiques archivistiques utilisées dans le monde papier. Les principes du SEDA reprennent donc largement les concepts métier tels que l’usage des bordereaux (versement, élimination), l’application du contrôle scientifique et technique (transaction de demande d’autorisation), la définition des acteurs ou l’apposition de règles de gestion (sorts finaux et communicabilité).
+      </p>
+    </div>
+    <div class="col-md-12">
+      <h2>Les agents</h2>
+
+      <p>
+        Le SEDA permet d’associer aux transactions des Agents, qui sont des personnes ou des collectivités (concepts inspirés de la norme ISAAR-CPF) afin de décrire les archives échangées ou de spécifier des informations de gestion les concernant. Le modèle de métadonnées utilisé pour décrire ces agents est identique qu’il s’agisse d’identifier les acteurs de l’échange ou d’indiquer la provenance d’un document.
+        Un agent peut être utilisé plusieurs fois dans différentes transactions et peut également avoir plusieurs rôles attribués dans les messages du SEDA.
+
+        C’est pourquoi SHERPA propose de gérer un seul référentiel « Agents » dont les notices peuvent être utilisées dans tous les profils d’archivage rédigés dans l’application. Le rédacteur peut ainsi alimenter et maintenir une seule liste de référence pour l’ensemble de son corpus de profils.
+    </p>
+
+    <h2>Les vocabulaires </h2>
+    <p>
+      Le SEDA permet d’ajouter des termes d’indexation à tous les niveaux de description du plan de classement. Il s’inspire en la matière des pratiques d’indexation telles qu’elles sont recommandées par l’ EAD. Il est donc nécessaire de gérer des listes de vocabulaires d’indexation.
+      D’autres listes de valeurs contrôlées sont également utilisées dans le SEDA, notamment pour échanger les métadonnées techniques (telles que les référentiels de format, d’encodage…), les métadonnées descriptives (telles que les niveaux de description, les langues…) et les métadonnées de gestion (telles que les sorts finaux, les délais de communicabilité…).
+
+      C’est pourquoi SHERPA propose de gérer un seul référentiel « Vocabulaires » dont les références et les valeurs peuvent être utilisées dans l’ensemble des profils rédigés dans l’application. Le rédacteur peut ainsi alimenter et maintenir un ensemble de listes de références unique pour l’ensemble du corpus de profils.
+    </p>
+    </div>
+</section>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cubicweb_sherpa/views/templates/utilisation.jinja2	Thu Feb 23 11:40:36 2017 +0100
@@ -0,0 +1,60 @@
+<h1>{{ title }}</h1>
+<section id="utilisation">
+  <div id="utilisationWrapper">
+    <div class="utilisation col-xs-12">
+      <div>
+        <h2>Formulaire complet <span class="font-openSans">&amp;</span> formulaire simplifié</h2>
+        <p>
+          SHERPA est basé sur la version 2.0 du Standard d’échange de données pour l’archivage.
+        </p>
+          <div class="form">
+            <h4><span class="icon-right-dir"></span>Formulaire complet</h4>
+            <p>
+              Le formulaire complet propose l’exhaustivité des métadonnées du SEDA 2.0 mais ne permet pas d’exporter le profil créé dans les anciennes versions du SEDA, moins riches en métadonnées.
+            </p>
+          </div>
+
+          <div class="form">
+            <h4><span class="icon-right-dir"></span>Formulaire simplifié</h4>
+            <p>
+              Une version simplifiée de l’outil a également été développée afin d’une part de faciliter sa prise en main  et d’autre part d’exporter des profils simples dans toutes les versions du Standard (0.2, 1.0 et 2.0). Ces profils simples sont nécessairement moins riches en métadonnées que les profils complets conformes au SEDA 2.0.
+            </p>
+          </div>
+      </div>
+    </div>
+
+    <div class="utilisation col-xs-12">
+
+      <div>
+        <h2>Travail modulaire</h2>
+        <p>
+          Sherpa repose sur une approche modulaire. Il est donc possible de décrire des unités d'archives à n'importe quel niveau et de les agencer ensuite pour créer un ou plusieurs profils.
+        </p>
+      </div>
+  </div>
+
+    <div class="utilisation col-xs-12">
+
+      <div>
+        <h2>Travail en référentiel</h2>
+        <p>
+          Comme indiqué ci-dessus, le SEDA 2.0 fonctionne, pour un certain nombre de valeurs, avec des référentiels externes qu’il convient donc de définir à l’extérieur du profil. SHERPA met en œuvre ce principe en proposant des zones permettant d’alimenter et de mettre à jour les agents et les vocabulaires utilisés dans les échanges.
+          Le rédacteur peut gérer des listes de valeurs contrôlées référencées dans les bordereaux de transfert ainsi que des notices d’agents employées pour identifier les acteurs. Ces deux types de ressources centralisées peuvent être utilisés dans l’ensemble du corpus de profils.
+        </p>
+      </div>
+  </div>
+
+  <div class="utilisation col-xs-12">
+
+    <div>
+      <h2>Travail collaboratif</h2>
+      <p>
+        SHERPA est une application web et est proposé en tant que service hébergé par le Service interministériel des Archives de France. Les modules référentiels d’Agents et de Vocabulaires sont communs à toute la communauté d’utilisateurs, de même que le corpus de profils et d'unités d'archives.
+
+        Un système d’habilitation simplifié permet à tous les utilisateurs connectés de consulter le travail des autres utilisateurs. Le rédacteur d’un profil peut le modifier à tout moment et peut étendre les droits de modifications à d’autres utilisateurs s’il le souhaite.
+
+        L’ensemble des contenus est accessible en lecture à la communauté d’utilisateurs de SHERPA. Un utilisateur peut via la page gestion des permissions, donner des droits d’écriture sur les profils et les notices d’autorité qu’il a créés à un autre utilisateur. Sans avoir les droits d’écriture, il est néanmoins possible de copier un profil existant afin de le modifier.
+      </p>
+    </div>
+  </div>
+</section>
--- a/data/cubes.sherpa.css	Thu Feb 23 10:40:28 2017 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,583 +0,0 @@
-/* Font face & icon */
-
-@font-face {
-  font-family: 'OpenSans';
-  src: url('fonts/Open_Sans/OpenSans-Regular.ttf') format('truetype');
-  font-weight: 300;
-  font-style: normal;
-}
-
-@font-face {
-  font-family: 'OpenSans';
-  src: url('fonts/Open_Sans/OpenSans-LightItalic.ttf') format('truetype');
-  font-weight: 100;
-  font-style: italic;
-}
-
-@font-face {
-  font-family: 'lovelo';
-  src: url('fonts/lovelo/Lovelo-Black.otf') format('truetype');
-  font-weight: 100;
-}
-
-html {font-size: 100%;}
-
-body {
-  font-family: 'OpenSans';
-  font-size: 0.9em;
-}
-
-a, a:visited, a:hover, a:focus {
-  text-decoration: none;
-}
-
-hr {
-  border-top: 1px solid #dedede;
-}
-
-
-/* nav bar */
-
-.nav .open > a,
-.nav .open > a:focus,
-.nav .open > a:hover {
-  background-color: #fff;
-  border: none;
-  border-color: #fff
-}
-
-
-.navbar-sherpa {
-  background-color: #ffffff;
-  border-radius: 0;
-  border-style: solid;
-  border-width: 0 0 1.2em 0;
-  border-color: #0d4e96;
-  margin-bottom: 0;
-}
-.navbar-sherpa .logoSHERPA {
-  overflow: auto;
-}
-
-.navbar-sherpa .logoSHERPA img{
-  display: block;
-  height: 7em;
-  padding: 10px;
-  float: right;
-}
-
-.navbar-sherpa .logoSIAF {
-  margin: auto;
-  display: block;
-  height: 8em;
-  margin-top: 1em;
-}
-
-.navbar-sherpa a {
-  display: block;
-}
-
-.navbar-sherpa h1 {
-  margin-bottom: 0px;
-  width: 100%;
-  color: #626262;
-  font-size: 1em;
-  font-style: italic;
-  padding-bottom: 1em;
-  text-align: right;
-}
-
-.navbar-sherpa #search_box input {
-  border-radius: 0;
-}
-
-/*breadcrumbs */
-
-.breadcrumb {
-  background-color: #0b6ba8;
-  color: #fff;
-  border-radius: 0;
-  list-style: none;
-  font-size: 1.3em;
-  padding-top: 0.8em;
-  padding-bottom: 0.8em;
-  margin-bottom: 0;
-}
-
-.breadcrumb a {
-  color: #fff;
-}
-
-.breadcrumbs_wrapper {
-  background-color: #0b6ba8;
-}
-
-/* aside */
-#aside-main-left {
-  margin-top : 3em;
-}
-
-#aside-main-left .panel-heading,
-#aside-main-left .facetTitle,
-.rsetbox .panel-heading {
-  border-radius: 0;
-  color: white;
-  border: 0;
-  box-shadow: 0;
-}
-
-#aside-main-left .panel-heading {
-  background-color: #0d4e96;
-  font-size: 1.2em;
-}
-
-#aside-main-left .panel-default {
-  border: 0;
-}
-
-#aside-main-left .panel-body {
-  padding: 0;
-  padding-top: 1.5em;
-  background-color: #f6f6f6;
-  padding: 1em 0.8em 0.8em 1em;
-  border-bottom: 1px solid #dedede;
-}
-
-.rsetbox {
-  border-radius: 0;
-}
-
-#aside-main-left .panel-heading > .panel-title {
-  font-weight: bold;
-}
-
-#aside-main-left .facetTitle {
-  font-weight: lighter;
-  color: #333;
-  margin-top: 0.5em;
-}
-
-#aside-main-left .facetBody {
-  padding: 0;
-  border: 0;
-}
-
-#aside-main-left .panel-body > .panel-title {
-  color: white;
-  font-weight: bold;
-}
-
-#aside-main-left .panel {
-  border-radius: 0;
-}
-
-/* main content */
-
-#contentmain h1{
-  margin-top: 1em;
-  text-align: center;
-  color: #0d4e96;
-  padding-bottom: 1.5em;
-  padding-top: 0.5em;
-  font-size: 2em;
-  line-height: 1.1;
-  font-weight: bold;
-}
-
-#contentmain h2 {
-  color: #0d4e96;
-  margin: auto;
-  display: block;
-  font-size: 1.6em;
-  text-align: left;
-  margin-bottom: 1em;
-  margin-top: 2em;
-  font-family: 'lovelo';
-  font-weight: bold;
-}
-
-#contentmain .list-striped {
-  padding-left: 0;
-}
-
-#contentmain .list-striped > li > a {
-  padding : 0.4em 0 0.4em 0;
-  display: block;
-}
-
-#contentmain .list-striped li {
-  border-bottom: 1px solid #dbdbdb;
-  background-color: white;
-}
-
-#contentmain .list-striped li:hover {
-  border-bottom: 1px solid #0d4e96;
-  background-color: #e2f0ff;
-}
-
-
-#contentmain .panel-default {
-  border: 0;
-}
-
-#contentmain .panel-heading {
-  background-color: #0d4e96;
-  font-size: 1.2em;
-  border-radius: 0;
-  color: white;
-  border: 0;
-}
-
-#contentmain .panel-body {
-  padding: 0;
-  padding-top: 1.5em;
-  background-color: #f6f6f6;
-  padding: 1em 0.8em 0.8em 1em;
-  border-bottom: 1px solid #dedede;
-}
-
-
-
-#contentmain .panel-heading a {
-  color: white;
-  padding : 0.4em 0 0.4em 0;
-  display: block;
-}
-
-#buttons-wrapper {
-  text-align: center;
-  margin-bottom:4em;
-}
-
-#buttons-wrapper a {
-  color: #fff;
-  background-color: #0d4e96;
-  border-color: #ccc;
-  padding: 1em 2em 1em 2em;
-  border-radius: 0;
-  font-weight: bold;
-}
-
-#buttons-wrapper a:hover {
-  background-color: #0b6ba8;
-}
-
-/* table */
-
-table { font-size: 1em;}
-
-.cw-table-primary-entity th {
-  color: #333;
-}
-
-#seda_at_data_objects_tab h2 {
-  color: #5f5f5f;
-  margin: auto;
-  font-size: 1em;
-  text-align: left;
-  font-weight: bold;
-}
-
-#contentmain tr {
-  border-bottom: 1px solid #dbdbdb;
-}
-
-
-/* tabs */
-
-#contentmain .nav-tabs li.active a {
-  border-bottom: 2px solid #0d4e96;
-  font-weight: bold;
-  background-color: #e2f0ff;
-}
-
-#contentmain .nav-tabs li a {
-  color: #333;
-  padding-right: 2em;
-  padding-left: 2em;
-  border: 2px solid #fff;
-  border-radius: 0;
-  margin-bottom: 1px;
-}
-
-#contentmain .nav-tabs li:hover a {
-  border-bottom: 2px solid #0d4e96;
-  background-color: #fff;
-}
-
-#contentmain p {
-  line-height: 2em;
-  padding-bottom: 0;
-}
-
-#contentmain li {
-  line-height: 2em;
-  text-align: justify;
-}
-
-/* home page */
-
-#contentmain .emphasis {
-  font-weight: bold;
-  color: #000;
-}
-
-#contentmain #presentation,
-#contentmain #seda {
-  padding-bottom: 3.5em;
-}
-
-#contentmain #presentation p {
-  text-align: center;
-}
-
-#contentmain #projetSherpa {
-  padding-bottom: 3.5em;
-}
-
-#contentmain #accueil h2 {
-  margin: auto;
-  display: block;
-  font-size: 2em;
-  color: #0d4e96;
-  text-align: center;
-  margin-bottom: 1em;
-  margin-top: 2em;
-  font-family: 'lovelo';
-}
-
-
-#contentmain #accueil h3{
-  color: #333;
-  text-transform: uppercase;
-  text-align: center;
-  min-height: 50px;
-}
-
-#accueil section {
-  overflow: auto;
-}
-
-#contentmain p {
-  text-align: justify;
-}
-
-#contentmain .utilisation h4 {
-  color: #0d4e96;
-  margin-top: 1.1em;
-}
-
-
-.iconWrapper{
-  text-align: center;
-}
-
-.icon-section {
-  font-size: 40px;
-}
-
-.underline {
-  position: relative;
-  bottom: 7px;
-  display: inline-block;
-  z-index: 1;
-  width: 5em;
-  height: 1px;
-  background: #626262;
-}
-
-.losange {
-  height: 1em;
-  width: 1em;
-  display: inline-block;
-  background: #0d4e96;
-  -ms-transform: rotate(45deg); /* Internet Explorer */
-  -moz-transform: rotate(45deg); /* Firefox */
-  -webkit-transform: rotate(45deg); /* Safari et Chrome */
-  -o-transform: rotate(45deg); /* Opera */
-}
-
-.mr {
-  margin-right: 20px;
-}
-
-.ml {
-  margin-left: 20px;
-}
-
-.titleUnderline {
-  text-align: center;
-  margin-bottom: 1.5em;
-}
-
-
-/* project page */
-
-#sherpa-project-page .column-wrap {
-    overflow: hidden;
-}
-
-#sherpa-project-page > div {
-  margin-bottom: 2em;
-}
-
-#sherpa-project-page .vcenter {
-  margin-bottom: -99999px;
-  padding-bottom: 99999px;
-}
-
-#sherpa-project-page img {
-  max-height: 100px;
-}
-
-#sherpa-project-page  .project-image {
-  display: block;
-  margin: auto;
-}
-
-#sherpa-project-page h2::after,
-#sherpa-seda-page h2:after,
-#utilisation h2::after {
-  content: "";
-  display: block;
-  width: 108px;
-  height: 3px;
-  background-color: #0d4e96;
-  margin-top: 0.6em;
-  margin-bottom: 2em;
-}
-
-
-#sherpa-project-page h2 {
-  margin-top: auto;
-  text-align: left;
-}
-
-#sherpa-project-page .img-bottom {
-  margin: 1em 0 2em 0;
-  margin-top: 5em;
-}
-
-#sherpa-project-page .img-bottom img {
-  max-height: 300px;
-}
-
-#sherpa-project-page .exemple-image {
-  float: left;
-  height: 3em;
-  padding-right: 1em;
-}
-
-/* utilisation */
-
-#utilisation .font-openSans {
-  font-family: 'OpenSans';
-}
-
-
-#utilisation .form:first-child {
-  border-right: 1px solid grey;
-}
-
-#utilisation .form > p {
-  padding-left: 2em;
-  padding-bottom: 2em;
-}
-
-/* seda static page */
-
-#sherpa-seda-page .seda-img {
-  margin: auto;
-  max-height: 300px;
-}
-
-
-/* footer */
-
-#pagefooter {
-  background-color: #0d4e96;
-  font-size: 1.25em;
-  color: #fff;
-  overflow: hidden;
-  padding: 2em;
-}
-
-#pagefooter a{
-  color: #fff;
-}
-
-#pagefooter h3 {
-  text-align: left;
-  font-family: 'lovelo';
-}
-#pagefooter .links {
-  overflow: hidden;
-  display: inline-block;
-}
-
-#pagefooter .links > div {
-  padding-left: 2em;
-}
-
-#pagefooter .links a {
-  display: block;
-  text-align: left;
-  line-height: 2em;
-}
-
-#pagefooter a:hover {
-  text-decoration: underline;
-}
-
-#pagefooter #sherpa-resources {
-  float: left;
-  padding-right: 4em;
-  border-left: 1px solid transparent;
-  border-right: 1px solid transparent;
-}
-
-#pagefooter #sherpa-navigation {
-  float: left;
-  margin-top: 2em;
-}
-
-#pagefooter  #copyright{
-  margin-top: 3em;
-  padding: 1.5em 0 1.5em 0;
-  border-top: 1px solid white;
-  border-bottom: 1px solid white;
-  clear: both;
-}
-
-/*media queries */
-
-.page-content {
-    padding-left: 5px;
-}
-
-@media (min-width: 990px) {
-  .page-content {
-    padding : 0 5em 0 5em;
-  }
-
-  .breadcrumb {
-    padding-left: 4.1em;
-  }
-}
-
-@media(min-width: 760px){
-  #pagefooter #sherpa-navigation {
-    float: left;
-    margin-top: auto;
-  }
-
-  #pagefooter #sherpa-resources {
-    border-right: 1px solid white;
-    border-left: 1px solid white;
-  }
-}
-
-/* XXX remove me once seda > 0.6.1 is released */
-.cw-table-primary-entity td {
-  width: 67%;
-}
--- a/data/fonts/Open_Sans/LICENSE.txt	Thu Feb 23 10:40:28 2017 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,202 +0,0 @@
-
-                                 Apache License
-                           Version 2.0, January 2004
-                        http://www.apache.org/licenses/
-
-   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
-   1. Definitions.
-
-      "License" shall mean the terms and conditions for use, reproduction,
-      and distribution as defined by Sections 1 through 9 of this document.
-
-      "Licensor" shall mean the copyright owner or entity authorized by
-      the copyright owner that is granting the License.
-
-      "Legal Entity" shall mean the union of the acting entity and all
-      other entities that control, are controlled by, or are under common
-      control with that entity. For the purposes of this definition,
-      "control" means (i) the power, direct or indirect, to cause the
-      direction or management of such entity, whether by contract or
-      otherwise, or (ii) ownership of fifty percent (50%) or more of the
-      outstanding shares, or (iii) beneficial ownership of such entity.
-
-      "You" (or "Your") shall mean an individual or Legal Entity
-      exercising permissions granted by this License.
-
-      "Source" form shall mean the preferred form for making modifications,
-      including but not limited to software source code, documentation
-      source, and configuration files.
-
-      "Object" form shall mean any form resulting from mechanical
-      transformation or translation of a Source form, including but
-      not limited to compiled object code, generated documentation,
-      and conversions to other media types.
-
-      "Work" shall mean the work of authorship, whether in Source or
-      Object form, made available under the License, as indicated by a
-      copyright notice that is included in or attached to the work
-      (an example is provided in the Appendix below).
-
-      "Derivative Works" shall mean any work, whether in Source or Object
-      form, that is based on (or derived from) the Work and for which the
-      editorial revisions, annotations, elaborations, or other modifications
-      represent, as a whole, an original work of authorship. For the purposes
-      of this License, Derivative Works shall not include works that remain
-      separable from, or merely link (or bind by name) to the interfaces of,
-      the Work and Derivative Works thereof.
-
-      "Contribution" shall mean any work of authorship, including
-      the original version of the Work and any modifications or additions
-      to that Work or Derivative Works thereof, that is intentionally
-      submitted to Licensor for inclusion in the Work by the copyright owner
-      or by an individual or Legal Entity authorized to submit on behalf of
-      the copyright owner. For the purposes of this definition, "submitted"
-      means any form of electronic, verbal, or written communication sent
-      to the Licensor or its representatives, including but not limited to
-      communication on electronic mailing lists, source code control systems,
-      and issue tracking systems that are managed by, or on behalf of, the
-      Licensor for the purpose of discussing and improving the Work, but
-      excluding communication that is conspicuously marked or otherwise
-      designated in writing by the copyright owner as "Not a Contribution."
-
-      "Contributor" shall mean Licensor and any individual or Legal Entity
-      on behalf of whom a Contribution has been received by Licensor and
-      subsequently incorporated within the Work.
-
-   2. Grant of Copyright License. Subject to the terms and conditions of
-      this License, each Contributor hereby grants to You a perpetual,
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-      copyright license to reproduce, prepare Derivative Works of,
-      publicly display, publicly perform, sublicense, and distribute the
-      Work and such Derivative Works in Source or Object form.
-
-   3. Grant of Patent License. Subject to the terms and conditions of
-      this License, each Contributor hereby grants to You a perpetual,
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-      (except as stated in this section) patent license to make, have made,
-      use, offer to sell, sell, import, and otherwise transfer the Work,
-      where such license applies only to those patent claims licensable
-      by such Contributor that are necessarily infringed by their
-      Contribution(s) alone or by combination of their Contribution(s)
-      with the Work to which such Contribution(s) was submitted. If You
-      institute patent litigation against any entity (including a
-      cross-claim or counterclaim in a lawsuit) alleging that the Work
-      or a Contribution incorporated within the Work constitutes direct
-      or contributory patent infringement, then any patent licenses
-      granted to You under this License for that Work shall terminate
-      as of the date such litigation is filed.
-
-   4. Redistribution. You may reproduce and distribute copies of the
-      Work or Derivative Works thereof in any medium, with or without
-      modifications, and in Source or Object form, provided that You
-      meet the following conditions:
-
-      (a) You must give any other recipients of the Work or
-          Derivative Works a copy of this License; and
-
-      (b) You must cause any modified files to carry prominent notices
-          stating that You changed the files; and
-
-      (c) You must retain, in the Source form of any Derivative Works
-          that You distribute, all copyright, patent, trademark, and
-          attribution notices from the Source form of the Work,
-          excluding those notices that do not pertain to any part of
-          the Derivative Works; and
-
-      (d) If the Work includes a "NOTICE" text file as part of its
-          distribution, then any Derivative Works that You distribute must
-          include a readable copy of the attribution notices contained
-          within such NOTICE file, excluding those notices that do not
-          pertain to any part of the Derivative Works, in at least one
-          of the following places: within a NOTICE text file distributed
-          as part of the Derivative Works; within the Source form or
-          documentation, if provided along with the Derivative Works; or,
-          within a display generated by the Derivative Works, if and
-          wherever such third-party notices normally appear. The contents
-          of the NOTICE file are for informational purposes only and
-          do not modify the License. You may add Your own attribution
-          notices within Derivative Works that You distribute, alongside
-          or as an addendum to the NOTICE text from the Work, provided
-          that such additional attribution notices cannot be construed
-          as modifying the License.
-
-      You may add Your own copyright statement to Your modifications and
-      may provide additional or different license terms and conditions
-      for use, reproduction, or distribution of Your modifications, or
-      for any such Derivative Works as a whole, provided Your use,
-      reproduction, and distribution of the Work otherwise complies with
-      the conditions stated in this License.
-
-   5. Submission of Contributions. Unless You explicitly state otherwise,
-      any Contribution intentionally submitted for inclusion in the Work
-      by You to the Licensor shall be under the terms and conditions of
-      this License, without any additional terms or conditions.
-      Notwithstanding the above, nothing herein shall supersede or modify
-      the terms of any separate license agreement you may have executed
-      with Licensor regarding such Contributions.
-
-   6. Trademarks. This License does not grant permission to use the trade
-      names, trademarks, service marks, or product names of the Licensor,
-      except as required for reasonable and customary use in describing the
-      origin of the Work and reproducing the content of the NOTICE file.
-
-   7. Disclaimer of Warranty. Unless required by applicable law or
-      agreed to in writing, Licensor provides the Work (and each
-      Contributor provides its Contributions) on an "AS IS" BASIS,
-      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
-      implied, including, without limitation, any warranties or conditions
-      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
-      PARTICULAR PURPOSE. You are solely responsible for determining the
-      appropriateness of using or redistributing the Work and assume any
-      risks associated with Your exercise of permissions under this License.
-
-   8. Limitation of Liability. In no event and under no legal theory,
-      whether in tort (including negligence), contract, or otherwise,
-      unless required by applicable law (such as deliberate and grossly
-      negligent acts) or agreed to in writing, shall any Contributor be
-      liable to You for damages, including any direct, indirect, special,
-      incidental, or consequential damages of any character arising as a
-      result of this License or out of the use or inability to use the
-      Work (including but not limited to damages for loss of goodwill,
-      work stoppage, computer failure or malfunction, or any and all
-      other commercial damages or losses), even if such Contributor
-      has been advised of the possibility of such damages.
-
-   9. Accepting Warranty or Additional Liability. While redistributing
-      the Work or Derivative Works thereof, You may choose to offer,
-      and charge a fee for, acceptance of support, warranty, indemnity,
-      or other liability obligations and/or rights consistent with this
-      License. However, in accepting such obligations, You may act only
-      on Your own behalf and on Your sole responsibility, not on behalf
-      of any other Contributor, and only if You agree to indemnify,
-      defend, and hold each Contributor harmless for any liability
-      incurred by, or claims asserted against, such Contributor by reason
-      of your accepting any such warranty or additional liability.
-
-   END OF TERMS AND CONDITIONS
-
-   APPENDIX: How to apply the Apache License to your work.
-
-      To apply the Apache License to your work, attach the following
-      boilerplate notice, with the fields enclosed by brackets "[]"
-      replaced with your own identifying information. (Don't include
-      the brackets!)  The text should be enclosed in the appropriate
-      comment syntax for the file format. We also recommend that a
-      file or class name and description of purpose be included on the
-      same "printed page" as the copyright notice for easier
-      identification within third-party archives.
-
-   Copyright [yyyy] [name of copyright owner]
-
-   Licensed under the Apache License, Version 2.0 (the "License");
-   you may not use this file except in compliance with the License.
-   You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
Binary file data/fonts/Open_Sans/OpenSans-Bold.ttf has changed
Binary file data/fonts/Open_Sans/OpenSans-BoldItalic.ttf has changed
Binary file data/fonts/Open_Sans/OpenSans-CondBold.ttf has changed
Binary file data/fonts/Open_Sans/OpenSans-CondLight.ttf has changed
Binary file data/fonts/Open_Sans/OpenSans-CondLightItalic.ttf has changed
Binary file data/fonts/Open_Sans/OpenSans-ExtraBold.ttf has changed
Binary file data/fonts/Open_Sans/OpenSans-ExtraBoldItalic.ttf has changed
Binary file data/fonts/Open_Sans/OpenSans-Italic.ttf has changed
Binary file data/fonts/Open_Sans/OpenSans-Light.ttf has changed
Binary file data/fonts/Open_Sans/OpenSans-LightItalic.ttf has changed
Binary file data/fonts/Open_Sans/OpenSans-Regular.ttf has changed
Binary file data/fonts/Open_Sans/OpenSans-Semibold.ttf has changed
Binary file data/fonts/Open_Sans/OpenSans-SemiboldItalic.ttf has changed
--- a/data/fonts/Open_Sans/readme.txt	Thu Feb 23 10:40:28 2017 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,40 +0,0 @@
-Congratulations, you have successfully downloaded font file! 
-
-This font is provided to you by Fonts2u.com – the largest online 
-repository of free fonts for Windows and Mac.
-
-
-
-How to install this font on your computer?
-
-For Windows 7 / Vista users:
-
-- Right-click the font file(s) and choose "Install".
-
-For users of the previous Windows versions:
-
-- Copy the included file(s) into a default Windows font folder 
-  (usually C:\WINDOWS\FONTS or C:\WINNT\FONTS)
-
-For Mac users:
-
-Mac OS X 10.3 or above (including the FontBook)
-
-- Double-click the font file and hit "Install font" button at 
-  the bottom of the preview.
-
-Mac OS X
-
-- Either copy the font file(s) to /Library/Fonts (for all users), 
-  or to /Users/Your_username/Library/Fonts (for you only).
-
-Mac OS 9 or earlier
-
-- You have to convert the font file(s) you have downloaded. 
-  Drag the font suitcases into the System folder. The system 
-  will propose you to add them to the Fonts folder.
-
-For Linux users:
-
-- Copy the font file(s) to /USR/SHARE/FONTS
-
Binary file data/fonts/lovelo/Lovelo-Black.otf has changed
--- a/data/fonts/lovelo/licence.txt	Thu Feb 23 10:40:28 2017 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,2 +0,0 @@
-Lovelo free font is remake of the original Lovelo Inline – designed by Renzler Design, Vienna, Austria.
-Downloaded from http://www.fontfabric.com/lovelo-font/ 
Binary file data/images/exemple_bordereau.png has changed
Binary file data/images/exemple_invalide.png has changed
Binary file data/images/exemple_profil.png has changed
Binary file data/images/exemple_valide.png has changed
Binary file data/images/logo_SHERPA.png has changed
Binary file data/images/logo_SHERPA_2.png has changed
Binary file data/images/logo_SIAF.png has changed
Binary file data/images/seda.png has changed
Binary file data/images/sherpa_bordereau.png has changed
Binary file data/images/sherpa_general.png has changed
Binary file data/images/sherpa_profil.png has changed
--- a/i18n/en.po	Thu Feb 23 10:40:28 2017 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,31 +0,0 @@
-msgid ""
-msgstr ""
-"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Generated-By: pygettext.py 1.5\n"
-"Plural-Forms: nplurals=2; plural=(n > 1);\n"
-
-msgid "Import AuthorityRecord"
-msgstr ""
-
-msgid "Import ConceptScheme"
-msgstr ""
-
-msgid "ctxcomponents_sherpa.add_entity"
-msgstr ""
-
-# schema pot file, generated on 2017-02-23 09:38:25
-#
-# singular and plural forms for each entity type
-# subject and object forms for each relation type
-# (no object form for final or symmetric relation types)
-msgid "ctxcomponents_sherpa.add_entity_description"
-msgstr ""
-
-msgid "ctxcomponents_sherpa.import_entity"
-msgstr ""
-
-msgid "ctxcomponents_sherpa.import_entity_description"
-msgstr ""
--- a/i18n/fr.po	Thu Feb 23 10:40:28 2017 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,31 +0,0 @@
-msgid ""
-msgstr ""
-"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Generated-By: pygettext.py 1.5\n"
-"Plural-Forms: nplurals=2; plural=(n > 1);\n"
-
-msgid "Import AuthorityRecord"
-msgstr "Importer une notice d'autorité"
-
-msgid "Import ConceptScheme"
-msgstr "Importer un vocabulaire contrôlé"
-
-msgid "ctxcomponents_sherpa.add_entity"
-msgstr ""
-
-# schema pot file, generated on 2017-02-23 09:38:25
-#
-# singular and plural forms for each entity type
-# subject and object forms for each relation type
-# (no object form for final or symmetric relation types)
-msgid "ctxcomponents_sherpa.add_entity_description"
-msgstr ""
-
-msgid "ctxcomponents_sherpa.import_entity"
-msgstr ""
-
-msgid "ctxcomponents_sherpa.import_entity_description"
-msgstr ""
--- a/migration/postcreate.py	Thu Feb 23 10:40:28 2017 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,26 +0,0 @@
-# copyright 2016 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
-# contact http://www.logilab.fr -- mailto:contact@logilab.fr
-#
-# This program is free software: you can redistribute it and/or modify it under
-# the terms of the GNU General Public License as published by the Free
-# Software Foundation, either version 2.1 of the License, or (at your option)
-# any later version.
-#
-# This program is distributed in the hope that it will be useful, but WITHOUT
-# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
-# details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""cubicweb-agape2 postcreate script, executed at instance creation time or when
-the cube is added to an existing instance.
-
-You could setup site properties or a workflow here for example.
-"""
-
-# Example of site property change
-set_property('ui.site-title', u'Agape 2')
-set_property('ui.language', u'fr')
-set_property('ui.date-format', u'%d/%m/%Y')
-set_property('ui.datetime-format', u'%d/%m/%Y %H:%M')
--- a/setup.py	Thu Feb 23 10:40:28 2017 +0100
+++ b/setup.py	Thu Feb 23 11:40:36 2017 +0100
@@ -22,185 +22,61 @@
 """
 __docformat__ = "restructuredtext en"
 
-import os
-import sys
-import shutil
-from os.path import exists, join, walk
-
-try:
-    if os.environ.get('NO_SETUPTOOLS'):
-        raise ImportError()  # do as there is no setuptools
-    from setuptools import setup
-    from setuptools.command import install_lib
-    USE_SETUPTOOLS = True
-except ImportError:
-    from distutils.core import setup
-    from distutils.command import install_lib
-    USE_SETUPTOOLS = False
-from distutils.command import install_data
-
-# import required features
-from __pkginfo__ import modname, version, license, description, web, \
-    author, author_email, classifiers
-
-if exists('README'):
-    long_description = open('README').read()
-else:
-    long_description = ''
+from os.path import join, dirname
 
-# import optional features
-import __pkginfo__
-if USE_SETUPTOOLS:
-    requires = {}
-    for entry in ("__depends__",):  # "__recommends__"):
-        requires.update(getattr(__pkginfo__, entry, {}))
-    install_requires = [("%s %s" % (d, v and v or "")).strip()
-                        for d, v in requires.items()]
-else:
-    install_requires = []
-
-distname = getattr(__pkginfo__, 'distname', modname)
-scripts = getattr(__pkginfo__, 'scripts', ())
-include_dirs = getattr(__pkginfo__, 'include_dirs', ())
-data_files = getattr(__pkginfo__, 'data_files', None)
-ext_modules = getattr(__pkginfo__, 'ext_modules', None)
-dependency_links = getattr(__pkginfo__, 'dependency_links', ())
-
-BASE_BLACKLIST = ('CVS', '.svn', '.hg', 'debian', 'dist', 'build')
-IGNORED_EXTENSIONS = ('.pyc', '.pyo', '.elc', '~')
-
-
-def ensure_scripts(linux_scripts):
-    """
-    Creates the proper script names required for each platform
-    (taken from 4Suite)
-    """
-    from distutils import util
-    if util.get_platform()[:3] == 'win':
-        scripts_ = [script + '.bat' for script in linux_scripts]
-    else:
-        scripts_ = linux_scripts
-    return scripts_
+from setuptools import find_packages, setup
 
 
-def export(from_dir, to_dir,
-           blacklist=BASE_BLACKLIST,
-           ignore_ext=IGNORED_EXTENSIONS,
-           verbose=True):
-    """make a mirror of from_dir in to_dir, omitting directories and files
-    listed in the black list
-    """
-    def make_mirror(arg, directory, fnames):
-        """walk handler"""
-        for norecurs in blacklist:
-            try:
-                fnames.remove(norecurs)
-            except ValueError:
-                pass
-        for filename in fnames:
-            # don't include binary files
-            if filename[-4:] in ignore_ext:
-                continue
-            if filename[-1] == '~':
-                continue
-            src = join(directory, filename)
-            dest = to_dir + src[len(from_dir):]
-            if verbose:
-                sys.stderr.write('%s -> %s\n' % (src, dest))
-            if os.path.isdir(src):
-                if not exists(dest):
-                    os.mkdir(dest)
-            else:
-                if exists(dest):
-                    os.remove(dest)
-                shutil.copy2(src, dest)
-    try:
-        os.mkdir(to_dir)
-    except OSError as ex:
-        # file exists ?
-        import errno
-        if ex.errno != errno.EEXIST:
-            raise
-    walk(from_dir, make_mirror, None)
+here = dirname(__file__)
+
+# load metadata from the __pkginfo__.py file so there is no risk of conflict
+# see https://packaging.python.org/en/latest/single_source_version.html
+pkginfo = join(here, 'cubicweb_sherpa', '__pkginfo__.py')
+__pkginfo__ = {}
+with open(pkginfo) as f:
+    exec(f.read(), __pkginfo__)
+
+# get required metadatas
+distname = __pkginfo__['distname']
+version = __pkginfo__['version']
+license = __pkginfo__['license']
+description = __pkginfo__['description']
+web = __pkginfo__['web']
+author = __pkginfo__['author']
+author_email = __pkginfo__['author_email']
+classifiers = __pkginfo__['classifiers']
+
+with open(join(here, 'README')) as f:
+    long_description = f.read()
+
+# get optional metadatas
+data_files = __pkginfo__.get('data_files', None)
+dependency_links = __pkginfo__.get('dependency_links', ())
+
+requires = {}
+for entry in ("__depends__",):  # "__recommends__"):
+    requires.update(__pkginfo__.get(entry, {}))
+install_requires = ["{0} {1}".format(d, v and v or "").strip()
+                    for d, v in requires.items()]
 
 
-class MyInstallLib(install_lib.install_lib):
-    """extend install_lib command to handle  package __init__.py and
-    include_dirs variable if necessary
-    """
-    def run(self):
-        """overridden from install_lib class"""
-        install_lib.install_lib.run(self)
-        # manually install included directories if any
-        if include_dirs:
-            base = modname
-            for directory in include_dirs:
-                dest = join(self.install_dir, base, directory)
-                export(directory, dest, verbose=False)
-
-# re-enable copying data files in sys.prefix
-old_install_data = install_data.install_data
-if USE_SETUPTOOLS:
-    # overwrite InstallData to use sys.prefix instead of the egg directory
-    class MyInstallData(old_install_data):
-        """A class that manages data files installation"""
-        def run(self):
-            _old_install_dir = self.install_dir
-            if self.install_dir.endswith('egg'):
-                self.install_dir = sys.prefix
-            old_install_data.run(self)
-            self.install_dir = _old_install_dir
-    try:
-        # only if easy_install available
-        import setuptools.command.easy_install  # noqa
-        # monkey patch: Crack SandboxViolation verification
-        from setuptools.sandbox import DirectorySandbox as DS
-        old_ok = DS._ok
-
-        def _ok(self, path):
-            """Return True if ``path`` can be written during installation."""
-            out = old_ok(self, path)  # here for side effect from setuptools
-            realpath = os.path.normcase(os.path.realpath(path))
-            allowed_path = os.path.normcase(sys.prefix)
-            if realpath.startswith(allowed_path):
-                out = True
-            return out
-        DS._ok = _ok
-    except ImportError:
-        pass
-
-
-def install(**kwargs):
-    """setup entry point"""
-    if USE_SETUPTOOLS:
-        if '--force-manifest' in sys.argv:
-            sys.argv.remove('--force-manifest')
-    # install-layout option was introduced in 2.5.3-1~exp1
-    elif sys.version_info < (2, 5, 4) and '--install-layout=deb' in sys.argv:
-        sys.argv.remove('--install-layout=deb')
-    cmdclass = {'install_lib': MyInstallLib}
-    if USE_SETUPTOOLS:
-        kwargs['install_requires'] = install_requires
-        kwargs['dependency_links'] = dependency_links
-        kwargs['zip_safe'] = False
-        cmdclass['install_data'] = MyInstallData
-
-    return setup(name=distname,
-                 version=version,
-                 license=license,
-                 description=description,
-                 long_description=long_description,
-                 author=author,
-                 author_email=author_email,
-                 url=web,
-                 scripts=ensure_scripts(scripts),
-                 data_files=data_files,
-                 ext_modules=ext_modules,
-                 cmdclass=cmdclass,
-                 classifiers=classifiers,
-                 **kwargs
-                 )
-
-
-if __name__ == '__main__':
-    install()
+setup(
+    name=distname,
+    version=version,
+    license=license,
+    description=description,
+    long_description=long_description,
+    author=author,
+    author_email=author_email,
+    url=web,
+    classifiers=classifiers,
+    packages=find_packages(exclude=['test']),
+    install_requires=install_requires,
+    include_package_data=True,
+    entry_points={
+        'cubicweb.cubes': [
+            'sherpa=cubicweb_sherpa',
+        ],
+    },
+    zip_safe=False,
+)
--- a/site_cubicweb.py	Thu Feb 23 10:40:28 2017 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,24 +0,0 @@
-# copyright 2016 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
-# contact http://www.logilab.fr -- mailto:contact@logilab.fr
-#
-# This program is free software: you can redistribute it and/or modify it under
-# the terms of the GNU General Public License as published by the Free
-# Software Foundation, either version 2.1 of the License, or (at your option)
-# any later version.
-#
-# This program is distributed in the hope that it will be useful, but WITHOUT
-# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
-# details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program. If not, see <http://www.gnu.org/licenses/>.
-
-from logilab.common.decorators import monkeypatch
-
-from cubicweb.web import request
-
-
-@monkeypatch(request._CubicWebRequestBase)
-def negotiated_language(self):
-    return 'fr'
--- a/tox.ini	Thu Feb 23 10:40:28 2017 +0100
+++ b/tox.ini	Thu Feb 23 11:40:36 2017 +0100
@@ -30,4 +30,4 @@
 ignore = W503
 max-line-length = 100
 max-complexity = 12
-exclude = setup.py,doc/conf.py,migration/*,.tox/*
+exclude = setup.py,doc/conf.py,cubicweb_sherpa/migration/*,.tox/*
--- a/uiprops.py	Thu Feb 23 10:40:28 2017 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,4 +0,0 @@
-# flake8: noqa
-STYLESHEETS.extend([
-    data('cubes.sherpa.css')
-])
--- a/views/__init__.py	Thu Feb 23 10:40:28 2017 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,80 +0,0 @@
-# -*- coding: utf-8
-# copyright 2017 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
-# contact http://www.logilab.fr -- mailto:contact@logilab.fr
-#
-# This program is free software: you can redistribute it and/or modify it under
-# the terms of the GNU Lesser General Public License as published by the Free
-# Software Foundation, either version 2.1 of the License, or (at your option)
-# any later version.
-#
-# This program is distributed in the hope that it will be useful, but WITHOUT
-# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-# details.
-#
-# You should have received a copy of the GNU Lesser General Public License along
-# with this program. If not, see <http://www.gnu.org/licenses/>.
-
-from jinja2 import Environment, PackageLoader
-
-from cubicweb.view import View
-from cubicweb.web.views import urlrewrite, startup
-
-_JINJA_ENV = Environment(loader=PackageLoader('cubes.sherpa.views'))
-
-
-def jinja_render(template_name, **ctx):
-    """Return a string containing result of rendering of Jinja2's `template_name` with
-    `ctx` as context.
-    """
-    template = _JINJA_ENV.get_template(template_name + '.jinja2')
-    return template.render(**ctx)
-
-
-class JinjaStaticView(View):
-    """Abstract base class to render static pages from a jinja template."""
-    __abstract__ = True
-    template_name = None
-    title = None
-
-    def call(self, **kw):
-        self.w(jinja_render(self.template_name,
-                            title=self._cw._(self.title),
-                            data_url=self._cw.datadir_url))
-
-
-def jinja_static_view(template_name, title=None, regid=None):
-    """Generate a sub-class of JinjaStaticView parametrized with its `template_name` and `title`.
-
-    `__regid__` is built by prepending 'sherpa.' to template_name.
-    """
-    class_name = template_name.capitalize() + 'View'
-    if regid is None:
-        regid = 'sherpa.' + template_name
-
-    return type(class_name, (JinjaStaticView,), {'__regid__': regid,
-                                                 'template_name': template_name,
-                                                 'title': title})
-
-
-ProjectView = jinja_static_view('project', u'Sherpa un générateur de profils')
-UtilisationView = jinja_static_view('utilisation', u'Pour commencer')
-SedaView = jinja_static_view('seda', u'Le SEDA')
-IndexView = jinja_static_view('index', regid='index')
-
-
-class SherpaReqRewriter(urlrewrite.SimpleReqRewriter):
-    rules = [
-        ('/', dict(vid='sherpa.index')),
-        ('/project', dict(vid='sherpa.project')),
-        ('/utilisation', dict(vid='sherpa.utilisation')),
-        ('/seda', dict(vid='sherpa.seda')),
-    ]
-
-
-def registration_callback(vreg):
-    from cubicweb.web.views import bookmark
-
-    vreg.register_and_replace(IndexView, startup.IndexView)
-    vreg.register_all(globals().values(), __name__, (IndexView,))
-    vreg.unregister(bookmark.BookmarksBox)
--- a/views/components.py	Thu Feb 23 10:40:28 2017 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,96 +0,0 @@
-# copyright 2017 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
-# contact http://www.logilab.fr -- mailto:contact@logilab.fr
-#
-# This program is free software: you can redistribute it and/or modify it under
-# the terms of the GNU Lesser General Public License as published by the Free
-# Software Foundation, either version 2.1 of the License, or (at your option)
-# any later version.
-#
-# This program is distributed in the hope that it will be useful, but WITHOUT
-# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-# details.
-#
-# You should have received a copy of the GNU Lesser General Public License along
-# with this program. If not, see <http://www.gnu.org/licenses/>.
-"""cubicweb-sherpa components, originaly copied from the saem_ref cube."""
-
-from cubicweb import _, tags
-from cubicweb.predicates import multi_lines_rset, has_permission, is_instance
-from cubicweb.web import component
-
-
-def add_etype_link(req, etype, text=u'', klass='icon-plus-circled pull-right',
-                   **urlparams):
-    """Return an HTML link to add an entity of type 'etype'."""
-    vreg = req.vreg
-    eschema = vreg.schema.eschema(etype)
-    if eschema.has_perm(req, 'add'):
-        url = vreg['etypes'].etype_class(etype).cw_create_url(req, **urlparams)
-        return tags.a(text, href=url, klass=klass,
-                      title=req.__('New %s' % etype))
-    return u''
-
-
-def import_etype_link(req, etype, url):
-    """Return an HTML link to the view that may be used to import an entity of type `etype`.
-    """
-    eschema = req.vreg.schema.eschema(etype)
-    if eschema.has_perm(req, 'add'):
-        return tags.a(u'', href=url, klass='icon-upload pull-right',
-                      title=req.__('Import %s' % etype))
-    return u''
-
-
-class AddEntityComponent(component.CtxComponent):
-    """Component with 'add' link to be displayed in 'same etype' views usually 'SameETypeListView'.
-    """
-    __regid__ = 'sherpa.add_entity'
-    __select__ = (component.CtxComponent.__select__ & multi_lines_rset() & has_permission('add') &
-                  is_instance('AuthorityRecord', 'ConceptScheme',
-                              'SEDAArchiveTransfer', 'SEDAArchiveUnit'))
-    context = 'navtop'
-    extra_kwargs = {'SEDAArchiveUnit': {'unit_type': 'unit_content'}}
-
-    def render_body(self, w):
-        etype = self.cw_rset.description[0][0]
-        w(add_etype_link(self._cw, etype, **self.extra_kwargs.get(etype, {})))
-
-
-class ImportEntityComponent(component.CtxComponent):
-    """Component with 'import' link to be displayed in 'same etype' views usually
-    'SameETypeListView'.
-
-    Concret class should fill the `import_vid` class attribute and add a proper `is_instance`
-    selector.
-    """
-    __abstract__ = True
-    __regid__ = 'sherpa.import_entity'
-    __select__ = component.CtxComponent.__select__ & multi_lines_rset() & has_permission('add')
-    import_url = None  # URL of the view that may be used to import data
-    context = 'navtop'
-
-    def render_body(self, w):
-        etype = self.cw_rset.description[0][0]
-        w(import_etype_link(self._cw, etype, self.import_url))
-
-
-class EACImportComponent(ImportEntityComponent):
-    """Component with a link to import an authority record from an EAC-CPF file."""
-    __select__ = (ImportEntityComponent.__select__
-                  & is_instance('AuthorityRecord'))
-    _('Import AuthorityRecord')  # generate message used by the import component
-
-    @property
-    def import_url(self):
-        return self._cw.build_url('view', vid='eac.import')
-
-
-class SKOSImportComponent(ImportEntityComponent):
-    """Component with a link to import a concept scheme from a SKOS file."""
-    __select__ = ImportEntityComponent.__select__ & is_instance('ConceptScheme')
-    _('Import ConceptScheme')  # generate message used by the import component
-
-    @property
-    def import_url(self):
-        return self._cw.build_url('add/skossource')
--- a/views/management.py	Thu Feb 23 10:40:28 2017 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,64 +0,0 @@
-# copyright 2017 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
-# contact http://www.logilab.fr -- mailto:contact@logilab.fr
-#
-# This program is free software: you can redistribute it and/or modify it under
-# the terms of the GNU Lesser General Public License as published by the Free
-# Software Foundation, either version 2.1 of the License, or (at your option)
-# any later version.
-#
-# This program is distributed in the hope that it will be useful, but WITHOUT
-# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-# details.
-#
-# You should have received a copy of the GNU Lesser General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-from logilab.mtconverter import xml_escape
-
-from cubicweb.predicates import relation_possible, one_line_rset, non_final_entity
-from cubicweb.web import action, formwidgets
-from cubicweb.web.formfields import guess_field
-from cubicweb.web.views import actions, management
-
-from cubes.relationwidget.views import RelationFacetWidget
-
-
-class SherpaSecurityManagementView(management.SecurityManagementView):
-    """Security view overriden to hide permissions definitions and using a
-    RelationFacetWidget to edit owner"""
-    __select__ = (management.SecurityManagementView.__select__ &
-                  relation_possible('owned_by', action='add'))
-
-    def entity_call(self, entity):
-        w = self.w
-        w(u'<h1><span class="etype">%s</span> <a href="%s">%s</a></h1>'
-          % (entity.dc_type().capitalize(),
-             xml_escape(entity.absolute_url()),
-             xml_escape(entity.dc_title())))
-        w('<h2>%s</h2>' % self._cw.__('Manage security'))
-        msg = self._cw.__('ownerships have been changed')
-        form = self._cw.vreg['forms'].select(
-            'base', self._cw, entity=entity,
-            form_renderer_id='base', submitmsg=msg,
-            form_buttons=[formwidgets.SubmitButton()],
-            domid='ownership%s' % entity.eid,
-            __redirectvid='security',
-            __redirectpath=entity.rest_path())
-        field = guess_field(entity.e_schema,
-                            self._cw.vreg.schema['owned_by'],
-                            req=self._cw,
-                            widget=RelationFacetWidget())
-        field.help = None
-        form.append_field(field)
-        form.render(w=w, display_progress_div=False)
-
-
-actions.ManagePermissionsAction.__select__ = (
-    action.Action.__select__ & one_line_rset() & non_final_entity()
-    & relation_possible('owned_by', action='add'))
-
-
-def registration_callback(vreg):
-    vreg.register_all(globals().values(), __name__)
-    vreg.unregister(management.SecurityManagementView)
--- a/views/templates.py	Thu Feb 23 10:40:28 2017 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,147 +0,0 @@
-# -*- coding: utf-8
-# copyright 2017 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
-# contact http://www.logilab.fr -- mailto:contact@logilab.fr
-#
-# This program is free software: you can redistribute it and/or modify it under
-# the terms of the GNU Lesser General Public License as published by the Free
-# Software Foundation, either version 2.1 of the License, or (at your option)
-# any later version.
-#
-# This program is distributed in the hope that it will be useful, but WITHOUT
-# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-# details.
-#
-# You should have received a copy of the GNU Lesser General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-"""sherpa views/templates"""
-
-from logilab.common.decorators import monkeypatch
-
-from cubicweb.utils import HTMLHead, UStringIO
-from cubicweb.web.views import basetemplates
-
-from . import jinja_render
-
-
-# Bootstrap configuration.
-basetemplates.TheMainTemplate.twbs_container_cls = 'container-fluid'
-
-
-@monkeypatch(HTMLHead)
-def add_onload(self, jscode):
-    """original `add_onload` implementation use `$(cw)`
-    but `cw` variable is not available
-    in francearchive, use `$` instead"""
-    self.add_post_inline_script(u"""$(function() {
-  %s
-});""" % jscode)
-
-
-class SherpaMainTemplate(basetemplates.TheMainTemplate):
-
-    def call(self, view):
-        self.set_request_content_type()
-        self.write_doctype()
-        self.template_header(self.content_type, view=view)
-        context = self.template_context(view)
-        self.w(jinja_render('maintemplate', **context))
-
-    def template_context(self, view):
-        """Return the main-template's context."""
-        # left boxes
-        left_boxes = list(self._cw.vreg['ctxcomponents'].poss_visible_objects(
-            self._cw, rset=self.cw_rset, view=view, context='left'))
-        stream = UStringIO()
-        for box in left_boxes:
-            box.render(w=stream.write, view=view)
-        left_boxes_html = stream.getvalue()
-        # header
-        stream = UStringIO()
-        w = stream.write
-        components = self.get_components(view, context='header-right')
-        if components:
-            w(u'<ul class="nav navbar-nav navbar-right">')
-            for component in components:
-                w(u'<li>')
-                component.render(w=w)
-                w(u'</li>')
-            w(u'</ul>')
-        right_header_component = stream.getvalue()
-        # application message
-        msgcomp = self._cw.vreg['components'].select_or_none(
-            'applmessages', self._cw, rset=self.cw_rset)
-        application_message = msgcomp.render() if msgcomp else u''
-        # breadcrumbs
-        stream = UStringIO()
-        w = stream.write
-        components = self.get_components(view, context='header-center')
-        if components:
-            for component in components:
-                component.render(w=w)
-        breadcrumbs = stream.getvalue()
-        # contextual components
-        contextual_components = self._cw.view('contentheader', rset=self.cw_rset, view=view)
-
-        ctx = self.base_context()
-        url = self._cw.build_url
-        ctx.update({
-            'title': view.page_title(),
-            'page_content': view.render(),
-            'breadcrumbs': breadcrumbs,
-            'application_message': application_message,
-            'contextual_components': contextual_components,
-            'right_header_component': right_header_component,
-            'left_boxes': left_boxes_html,
-            'side_box': {
-                'goTo_links': [
-                    {'url': url('SEDAArchiveTransfer'),
-                     'label': 'profils SEDA'},
-                    {'url': url('sedalib'),
-                     'label': u"unités d'archive"},
-                    {'url': url('AuthorityRecord'),
-                     'label': u"notices d'autorité"},
-                    {'url': url('ConceptScheme'),
-                     'label': u"vocabulaires"},
-                ],
-            },
-            'footer': {
-                'resources': [
-                    {'url': url('shema_seda'),
-                     'label': u'Schéma du SEDA 2.0'},
-                    {'url': url('dictionnaire'),
-                     'label': 'Dictionnaire des balises'},
-                    {'url': url('documentation_fonctionnelle'),
-                     'label': 'Documentation fonctionnelle'},
-                    {'url': url('documentation_technique'),
-                     'label': 'Documentation technique'},
-                ],
-                'navigation_Link': [
-                    {'url': url('project'),
-                     'label': u'SHERPA, un générateur de profils'},
-                    {'url': url('utilisation'),
-                     'label': "Pour commencer"},
-                    {'url': url('seda'),
-                     'label': "Le SEDA"},
-                ]
-            },
-        })
-        ctx.update(getattr(view, 'template_context', lambda: {})())
-
-        return ctx
-
-    def base_context(self):
-        """Return a basic context using standard cubicweb information."""
-        req = self._cw
-        return {
-            'page_id': 'contentmain',
-            '_': req._,
-            'user': req.user.login,
-            'base_url': req.build_url(''),
-            'data_url': req.datadir_url,
-            'current_url': req.relative_path(),
-        }
-
-
-def registration_callback(vreg):
-    vreg.register_and_replace(SherpaMainTemplate, basetemplates.TheMainTemplate)
--- a/views/templates/index.jinja2	Thu Feb 23 10:40:28 2017 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,47 +0,0 @@
-<div class="col-md-12" id="accueil">
-
-  <section id="presentation">
-      <h2>Créer un profil</h2>
-      <div class="titleUnderline">
-        <span class="underline mr"></span>
-        <span class="losange"></span>
-        <span class="underline ml"></span>
-      </div>
-
-
-      <div class="col-md-10 col-md-offset-1">
-      <div id="buttons-wrapper">
-        <a href="/SEDAArchiveTransfer" class="btn btn-default">Profils Seda</a>
-      </div>
-
-        <p>
-SHERPA est un outil qui permet de créer des profils d'archivage conformes au standard d'échange en mode collaboratif.
-        </p>
-      </div>
-  </section>
-
-
-  <section id="seda">
-    <h2> Pour commencer </h2>
-    <div class="titleUnderline">
-      <span class="underline mr"></span>
-      <span class="losange"></span>
-      <span class="underline ml"></span>
-    </div>
-
-    <div id="buttons-wrapper">
-      <a href="/project" class="btn btn-default">SHERPA un générateur de profils</a>
-      <a href="/utilisation" class="btn btn-default">Comment utiliser SHERPA ?</a>
-      <a href="/seda" class="btn btn-default">Le SEDA</a>
-    </div>
-
-    <div class="col-md-12">
-      <p>
-      Le projet <span class="emphasis">SHERPA</span> a été conduit par le Service interministériel des Archives de France en 2016 afin de doter le <span class="emphasis">réseau des services publics d’archives</span> d’un outil disponible en ligne et permettant de <span class="emphasis">rédiger des profils d’archivage</span> conformes au <span class="emphasis">Standard</span> d’échange des données pour l’archivage, version 2.0.
-     <br>
-     Le projet SHERPA a été réalisé en collaboration avec le projet <a href="http://saem.e-bordeaux.org/">SAEM</a> auquel participent le Conseil départemental de la Gironde, Bordeaux Métropole et la Ville de Bordeaux, dans une optique de mutualisation des moyens. SHERPA a été réalisé par la société LOGILAB. Son code source est librement réutilisable.<br>
-     Licence : ### LICENCE ###
-      </p>
-    </div>
-  </section>
-</div>
--- a/views/templates/maintemplate.jinja2	Thu Feb 23 10:40:28 2017 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,73 +0,0 @@
-<body>
-  <nav class="navbar navbar-default navbar-sherpa" role="banner">
-    <div class="container-fluid">
-      <div class="col-md-2 hidden-xs hidden-sm">
-        <a href="{{ base_url }}"><img src="{{ data_url }}images/logo_SIAF.png" class="logoSIAF" /></a>
-      </div>
-      <div class="col-md-7 col-xs-8">
-        <a href="/">
-          <div class="logoSHERPA">
-            <img src="{{ data_url }}images/logo_SHERPA_2.png" class="img-responsive"/>
-          </div>
-          <div class="textSHERPA">
-            <h1>Service H&eacute;berg&eacute; pour la R&eacute;daction de Profils d&#39;Archivage</h1>
-          </div>
-        </a>
-      </div>
-      <div class="col-md-3 col-xs-4">
-        {{ right_header_component }}
-      </div>
-    </div>
-  </nav>
-  {% if breadcrumbs %}
-  <nav role="navigation" class="breadcrumbs_wrapper">
-    <div class="col-md-offset-2">
-      {{ breadcrumbs }}
-    </div>
-  </nav>
-  {% endif %}
-  <div id="{{page_id}}" class="container-fluid" role="main">
-    <aside id="aside-main-left" class="col-md-2 cwjs-aside">
-      {{ left_boxes }}
-      <div class="panel panel-default contextFreeBox facet_filterbox" id="facet_filterbox">
-        <div class="panel-heading">
-          <div class="panel-title">navigation</div>
-        </div>
-        <div class="panel-body">
-          <ul class="list-unstyled">
-            {% for page in side_box.goTo_links %}
-            <li class="facetvalue"><a href='{{ page.url }}'> {{ page.label }}</a></li>
-            {% endfor %}
-          </ul>
-        </div>
-      </div>
-    </aside>
-    <div class="col-md-10 page-content" id="pageContent">
-      {{ application_message }}
-      {{ contextual_components }}
-      {{ page_content }}
-    </div>
-  </div>
-  <div class="container-fluid">
-    <footer role="contentinfo" id="pagefooter">
-      <section class="links">
-        <div id="sherpa-resources">
-        <h3>Ressources</h3>
-        {% for resource in footer.resources %}
-          <a href='{{ resource.url }}'> {{ resource.label }}</a>
-        {% endfor %}
-        </div>
-        <div id="sherpa-navigation">
-        <h3>Navigation</h3>
-        {% for page in footer.navigation_Link %}
-          <a href='{{ page.url }}'> {{ page.label }}</a>
-        {% endfor %}
-        </div>
-      </section>
-      <div id="copyright">
-        <span>copyright</span> |
-        <span><a href="">contact</a></span>
-      </div>
-    </footer>
-  </div>
-</body>
--- a/views/templates/project.jinja2	Thu Feb 23 10:40:28 2017 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,99 +0,0 @@
-<h1>{{ title }}</h1>
-
-<section id="sherpa-project-page">
-  <div class="column-wrap">
-    <div class="col-md-2 vcenter">
-      <img class="img-responsive project-image" src="{{ data_url }}images/sherpa_bordereau.png"/>
-    </div>
-    <div class="col-md-9">
-      <h2>Du bordereau de versement ...</h2>
-      <p>
-        Le bordereau de versement est le document qui accompagne toute entrée d’archives publiques dans un service d’archives. Le bordereau contient des informations sur le service producteur et/ou versant, le service d’archives et une description sommaire des archives qui constituent le versement. Le bordereau matérialise le transfert de responsabilité entre le service versant et le service d’archives. C’est donc un document indispensable.
-      </p>
-      <p>
-        Dans le monde numérique, le bordereau de versement peut être dématérialisé, mais il continue d’avoir la même utilité et doit comporter les mêmes informations qu’un bordereau papier. C’est pourquoi le Standard d’échange de données pour l’archivage propose une modélisation des informations qui constituent le bordereau de versement.
-      </p>
-    </div>
-  </div>
-  <div class="column-wrap">
-    <div class="col-md-2 vcenter">
-      <img class="img-responsive project-image" src="{{ data_url }}images/sherpa_profil.png"/>
-    </div>
-    <div class="col-md-9">
-      <h2>… au profil d’archivage</h2>
-      <p>
-        Toute entrée de documents dans un service d’archives fait l’objet d’une série de contrôles destinés à vérifier la conformité de cette entrée aux attentes du service en matière sanitaire, de conditionnement, etc. Le contrôle du bordereau de versement en fait partie.
-      </p>
-      <p>
-        Dans le monde numérique, le Système d’archivage électronique (SAE) va lui aussi effectuer une série de contrôles, pour la plupart automatisés et pré-paramétrés (format, taille des fichiers, etc.). Il va également réaliser un contrôle du bordereau de versement. Pour évaluer la conformité du bordereau, le SAE doit savoir précisément ce qui est attendu dans ce bordereau et donc disposer d’une matrice de bordereau appelée profil d’archivage. Le profil est, pour un flux donné, la matrice de référence à partir de laquelle le SAE va pouvoir contrôler la conformité des bordereaux de versement de ce flux.
-      </p>
-    </div>
-
-  </div>
-  <div class="img-bottom">
-    <img class="img-responsive project-image" src="{{ data_url }}images/sherpa_general.png"/>
-  </div>
-  
-  <div class="col-md-12">
-    <h2>Exemple</h2>
-
-    <table class="table">
-        <tbody>
-            <thead>
-            <tr>
-              <th>Profil</th>
-              <th>Bordereau</th>
-              <th>Vérification</th>
-            </tr>
-          </thead>
-          <tr>
-            <td>
-                <p><img class="img-responsive exemple-image" src="{{ data_url }}images/exemple_profil.png"/></p>
-                <p>J’attends un nom de service versant de façon obligatoire</p>
-            </td>
-            <td>
-              <p><img class="img-responsive exemple-image" src="{{ data_url }}images/exemple_bordereau.png"/></p>
-              <p>Le service versant de mon versement est « Direction XXX »</p>
-            </td>
-            <td><img class="img-responsive exemple-image" src="{{ data_url }}images/exemple_valide.png"/></td>
-          </tr>
-          <tr>
-            <td>
-              <p><img class="img-responsive exemple-image" src="{{ data_url }}images/exemple_profil.png"/></p>
-              <p>J’attends 35 fichiers dans le versement</p>
-            </td>
-            <td>
-              <p><img class="img-responsive exemple-image" src="{{ data_url }}images/exemple_bordereau.png"/></p>
-              <p>Mon versement contient 40 fichiers</p>
-            </td>
-            <td><img class="img-responsive exemple-image" src="{{ data_url }}images/exemple_invalide.png"/></td>
-          </tr>
-          <tr>
-            <td>
-              <p><img class="img-responsive exemple-image" src="{{ data_url }}images/exemple_profil.png"/></p>
-              <p>J’attends au niveau Dossier le terme d’indexation YYY</p>
-            </td>
-            <td>
-              <p><img class="img-responsive exemple-image" src="{{ data_url }}images/exemple_bordereau.png"/></p>
-              <p>Mon versement contient au niveau Dossier le terme d’indexation YYY</p>
-            </td>
-            <td><img class="img-responsive exemple-image" src="{{ data_url }}images/exemple_valide.png"/></td>
-          </tr>
-        </tbody>
-      </table>
-
-  </div>
-
-  <div class="col-md-12">
-    <h2>Un générateur de profils</h2>
-    <p>
-    Les bordereaux de versement conformes au standard d’échange de données pour l’archivage sont des fichiers de format XML. Les profils d’archivage utilisent pour leur part des langages comme XSD ou RelaxNG qui permettent de définir la structure et le type de contenu d’un document XML.
-    </p>
-    <p>
-      SHERPA propose une interface simple et ergonomique pour rédiger des profils d’archivage et les exporter en RelaxNG. SHERPA permet également d’exporter une documentation associée au profil, lisible par un humain.
-    </p>
-  </div>
-
-
-
-</section>
--- a/views/templates/seda.jinja2	Thu Feb 23 10:40:28 2017 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,39 +0,0 @@
-<h1>{{ title }}</h1>
-
-<section id="sherpa-seda-page">
-
-    <div class="col-md-3">
-      <img class="img-responsive seda-img" src="{{ data_url }}images/seda.png"/>
-    </div>
-
-    <div class="col-md-9">
-      <p>
-        Si les processus d’archivage et les documents qui leur sont associés (bordereaux) demeurent entièrement valables dans le monde numérique, celui-ci exige cependant une formalisation et une standardisation beaucoup plus fortes de ces processus et documents associés afin de pouvoir aller vers davantage d’automatisation.
-        Le standard d’échange de données pour l’archivage permet de modéliser les transactions d’un processus d’archivage (transfert, communication, élimination, modification et restitution) entre différents acteurs (service producteur, service versant, service d’archives et demandeur d’archives) . Il précise les types, l’ordre et la forme des messages échangés. Il définit d’autre part les métadonnées à utiliser pour décrire, gérer et pérenniser l’information.
-
-        Plusieurs versions du standard ont été successivement publiées en mars 2006 (version 0.1), janvier 2010 (version 0.2), septembre 2012 (version 1.0) et décembre 2015 (version 2.0 conforme à la norme MEDONA).
-      </p>
-
-      <p>
-        Le standard est une déclinaison technique des pratiques archivistiques utilisées dans le monde papier. Les principes du SEDA reprennent donc largement les concepts métier tels que l’usage des bordereaux (versement, élimination), l’application du contrôle scientifique et technique (transaction de demande d’autorisation), la définition des acteurs ou l’apposition de règles de gestion (sorts finaux et communicabilité).
-      </p>
-    </div>
-    <div class="col-md-12">
-      <h2>Les agents</h2>
-
-      <p>
-        Le SEDA permet d’associer aux transactions des Agents, qui sont des personnes ou des collectivités (concepts inspirés de la norme ISAAR-CPF) afin de décrire les archives échangées ou de spécifier des informations de gestion les concernant. Le modèle de métadonnées utilisé pour décrire ces agents est identique qu’il s’agisse d’identifier les acteurs de l’échange ou d’indiquer la provenance d’un document.
-        Un agent peut être utilisé plusieurs fois dans différentes transactions et peut également avoir plusieurs rôles attribués dans les messages du SEDA.
-
-        C’est pourquoi SHERPA propose de gérer un seul référentiel « Agents » dont les notices peuvent être utilisées dans tous les profils d’archivage rédigés dans l’application. Le rédacteur peut ainsi alimenter et maintenir une seule liste de référence pour l’ensemble de son corpus de profils.
-    </p>
-
-    <h2>Les vocabulaires </h2>
-    <p>
-      Le SEDA permet d’ajouter des termes d’indexation à tous les niveaux de description du plan de classement. Il s’inspire en la matière des pratiques d’indexation telles qu’elles sont recommandées par l’ EAD. Il est donc nécessaire de gérer des listes de vocabulaires d’indexation.
-      D’autres listes de valeurs contrôlées sont également utilisées dans le SEDA, notamment pour échanger les métadonnées techniques (telles que les référentiels de format, d’encodage…), les métadonnées descriptives (telles que les niveaux de description, les langues…) et les métadonnées de gestion (telles que les sorts finaux, les délais de communicabilité…).
-
-      C’est pourquoi SHERPA propose de gérer un seul référentiel « Vocabulaires » dont les références et les valeurs peuvent être utilisées dans l’ensemble des profils rédigés dans l’application. Le rédacteur peut ainsi alimenter et maintenir un ensemble de listes de références unique pour l’ensemble du corpus de profils.
-    </p>
-    </div>
-</section>
--- a/views/templates/utilisation.jinja2	Thu Feb 23 10:40:28 2017 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,60 +0,0 @@
-<h1>{{ title }}</h1>
-<section id="utilisation">
-  <div id="utilisationWrapper">
-    <div class="utilisation col-xs-12">
-      <div>
-        <h2>Formulaire complet <span class="font-openSans">&amp;</span> formulaire simplifié</h2>
-        <p>
-          SHERPA est basé sur la version 2.0 du Standard d’échange de données pour l’archivage.
-        </p>
-          <div class="form">
-            <h4><span class="icon-right-dir"></span>Formulaire complet</h4>
-            <p>
-              Le formulaire complet propose l’exhaustivité des métadonnées du SEDA 2.0 mais ne permet pas d’exporter le profil créé dans les anciennes versions du SEDA, moins riches en métadonnées.
-            </p>
-          </div>
-
-          <div class="form">
-            <h4><span class="icon-right-dir"></span>Formulaire simplifié</h4>
-            <p>
-              Une version simplifiée de l’outil a également été développée afin d’une part de faciliter sa prise en main  et d’autre part d’exporter des profils simples dans toutes les versions du Standard (0.2, 1.0 et 2.0). Ces profils simples sont nécessairement moins riches en métadonnées que les profils complets conformes au SEDA 2.0.
-            </p>
-          </div>
-      </div>
-    </div>
-
-    <div class="utilisation col-xs-12">
-
-      <div>
-        <h2>Travail modulaire</h2>
-        <p>
-          Sherpa repose sur une approche modulaire. Il est donc possible de décrire des unités d'archives à n'importe quel niveau et de les agencer ensuite pour créer un ou plusieurs profils.
-        </p>
-      </div>
-  </div>
-
-    <div class="utilisation col-xs-12">
-
-      <div>
-        <h2>Travail en référentiel</h2>
-        <p>
-          Comme indiqué ci-dessus, le SEDA 2.0 fonctionne, pour un certain nombre de valeurs, avec des référentiels externes qu’il convient donc de définir à l’extérieur du profil. SHERPA met en œuvre ce principe en proposant des zones permettant d’alimenter et de mettre à jour les agents et les vocabulaires utilisés dans les échanges.
-          Le rédacteur peut gérer des listes de valeurs contrôlées référencées dans les bordereaux de transfert ainsi que des notices d’agents employées pour identifier les acteurs. Ces deux types de ressources centralisées peuvent être utilisés dans l’ensemble du corpus de profils.
-        </p>
-      </div>
-  </div>
-
-  <div class="utilisation col-xs-12">
-
-    <div>
-      <h2>Travail collaboratif</h2>
-      <p>
-        SHERPA est une application web et est proposé en tant que service hébergé par le Service interministériel des Archives de France. Les modules référentiels d’Agents et de Vocabulaires sont communs à toute la communauté d’utilisateurs, de même que le corpus de profils et d'unités d'archives.
-
-        Un système d’habilitation simplifié permet à tous les utilisateurs connectés de consulter le travail des autres utilisateurs. Le rédacteur d’un profil peut le modifier à tout moment et peut étendre les droits de modifications à d’autres utilisateurs s’il le souhaite.
-
-        L’ensemble des contenus est accessible en lecture à la communauté d’utilisateurs de SHERPA. Un utilisateur peut via la page gestion des permissions, donner des droits d’écriture sur les profils et les notices d’autorité qu’il a créés à un autre utilisateur. Sans avoir les droits d’écriture, il est néanmoins possible de copier un profil existant afin de le modifier.
-      </p>
-    </div>
-  </div>
-</section>