[PATCH 3 of 5 saem] [eac] Drop no more necessary code

Sylvain Thenault sylvain.thenault at logilab.fr
Fri Oct 6 17:03:56 CEST 2017


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1507274304 -7200
#      Fri Oct 06 09:18:24 2017 +0200
# Node ID ffcebfaa81425f8c6c6c2e197adcfe6dbe54fc9d
# Parent  037cd908fc92141b6cb9c3aa4f94bfe4c693d4c9
# Available At http://hg.logilab.org/review/cubes/saem_ref
#              hg pull http://hg.logilab.org/review/cubes/saem_ref -r ffcebfaa8142
[eac] Drop no more necessary code

eac 0.5.1 has been released, depends on it and drop related code.

diff --git a/cubicweb_saem_ref/__pkginfo__.py b/cubicweb_saem_ref/__pkginfo__.py
--- a/cubicweb_saem_ref/__pkginfo__.py
+++ b/cubicweb_saem_ref/__pkginfo__.py
@@ -15,11 +15,11 @@ description = "Référenciel de Système
 web = 'http://www.cubicweb.org/project/%s' % distname
 
 __depends__ = {
     'cubicweb[pyramid]': '>= 3.25.0, < 3.26.0',
     'cubicweb-squareui': None,
-    'cubicweb-eac': '>= 0.5.0, < 0.6.0',
+    'cubicweb-eac': '>= 0.5.1, < 0.6.0',
     'cubicweb-seda': '>= 0.10.0, < 0.11.0',
     'cubicweb-compound': '>= 0.6.0, < 0.7.0',
     'cubicweb-prov': '>= 0.4.0, < 0.5.0',
     'cubicweb-oaipmh': '>= 0.4.2, < 0.5.0',
     'cubicweb-relationwidget': '>= 0.4.0, < 0.5.0',
diff --git a/cubicweb_saem_ref/views/authorityrecord.py b/cubicweb_saem_ref/views/authorityrecord.py
--- a/cubicweb_saem_ref/views/authorityrecord.py
+++ b/cubicweb_saem_ref/views/authorityrecord.py
@@ -40,14 +40,10 @@ pvs = uicfg.primaryview_section
 pvdc = uicfg.primaryview_display_ctrl
 afs = uicfg.autoform_section
 aff = uicfg.autoform_field
 affk = uicfg.autoform_field_kwargs
 
-# XXX drop these two lines one eac > 0.5.0 is released
-afs.tag_object_of(('AgentPlace', 'place_address', 'PostalAddress'), 'main', 'hidden')
-afs.tag_object_of(('*', 'has_citation', '*'), 'main', 'hidden')
-
 for etype in ('AuthorityRecord',
               'AssociationRelation', 'ChronologicalRelation', 'HierarchicalRelation',
               'Mandate', 'LegalStatus', 'EACResourceRelation'):
     affk.set_field_kwargs(etype, 'start_date',
                           widget=JQueryIncompleteDatePicker(update_min='end_date'))
@@ -155,12 +151,10 @@ def get_record_names(form, field):
     return form._cw.execute('Any P WHERE NE parts P, NE is NameEntry').rows
 
 
 affk.set_field_kwargs('NameEntry', 'parts',
                       widget=TextInputCheckSimilar({'size': 80}, data_initfunc=get_record_names))
-# XXX can be removed once we depend on eac > 0.3
-affk.set_field_kwargs('NameEntry', 'form_variant', value=u'authorized')
 
 
 # hide record_id for now
 pvs.tag_attribute(('AuthorityRecord', 'record_id'), 'hidden')
 afs.tag_attribute(('AuthorityRecord', 'record_id'), 'main', 'hidden')


More information about the saem-devel mailing list