ims.fieldupdater 3.0.1__py3-none-any.whl → 3.0.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,66 +1,66 @@
1
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"
2
- lang="en-US"
3
- metal:use-macro="context/prefs_main_template/macros/master"
4
- i18n:domain="ims.fieldupdater">
5
-
6
- <tal:block metal:fill-slot="top_slot">
7
- <tal:block tal:define="dummy python:request.set('disable_border',1)"/>
8
- </tal:block>
9
-
10
- <body>
11
- <div metal:fill-slot="prefs_configlet_main"
12
- tal:define="errors python:request.get('errors', {});
13
- content_type python:request.get('content_type', '');">
14
-
15
- <h1 i18n:translate="heading_schema_field_manager">Schema Finder</h1>
16
-
17
- <tal:content_types tal:define="types view/get_types;">
18
- <form action="${context/absolute_url}/schema-finder" method="get">
19
- <fieldset>
20
- <legend>
21
- Choose a Content Type
22
- </legend>
23
-
24
- <div class="field">
25
- <label for="schemafield" i18n:translate="label_schema_field">
26
- Content Type
27
- </label>
28
-
29
- <select name="content_type" id="content_type"
30
- onchange="javascript:this.form.submit()">
31
- <option tal:repeat="type types"
32
- value="${type}"
33
- selected="${python:type==content_type}"
34
- i18n:translate=""
35
- i18n:domain="plone">
36
- ${type}
37
- </option>
38
- </select>
39
- </div>
40
- </fieldset>
41
- </form>
42
- </tal:content_types>
43
-
44
- <tal:schemas tal:condition="content_type" >
45
- <fieldset id="fieldset-schema">
46
- <legend>
47
- Choose Schema
48
- </legend>
49
- <p>
50
- In most cases you will want the base schema which is listed first. Following that are the behaviors
51
- available for this content type.
52
- </p>
53
- <ul>
54
- <tal:schema repeat="schema view/schemas">
55
- <li>
56
- <a href="${context/absolute_url}/mass-edit?schema=${schema/id}">
57
- ${schema/title}
58
- </a>
59
- </li>
60
- </tal:schema>
61
- </ul>
62
- </fieldset>
63
- </tal:schemas>
64
- </div>
65
- </body>
66
- </html>
1
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"
2
+ lang="en-US"
3
+ metal:use-macro="context/prefs_main_template/macros/master"
4
+ i18n:domain="ims.fieldupdater">
5
+
6
+ <tal:block metal:fill-slot="top_slot">
7
+ <tal:block tal:define="dummy python:request.set('disable_border',1)"/>
8
+ </tal:block>
9
+
10
+ <body>
11
+ <div metal:fill-slot="prefs_configlet_main"
12
+ tal:define="errors python:request.get('errors', {});
13
+ content_type python:request.get('content_type', '');">
14
+
15
+ <h1 i18n:translate="heading_schema_field_manager">Schema Finder</h1>
16
+
17
+ <tal:content_types tal:define="types view/get_types;">
18
+ <form action="${context/absolute_url}/schema-finder" method="get">
19
+ <fieldset>
20
+ <legend>
21
+ Choose a Content Type
22
+ </legend>
23
+
24
+ <div class="field">
25
+ <label for="schemafield" i18n:translate="label_schema_field">
26
+ Content Type
27
+ </label>
28
+
29
+ <select name="content_type" id="content_type"
30
+ onchange="javascript:this.form.submit()">
31
+ <option tal:repeat="type types"
32
+ value="${type}"
33
+ selected="${python:type==content_type}"
34
+ i18n:translate=""
35
+ i18n:domain="plone">
36
+ ${type}
37
+ </option>
38
+ </select>
39
+ </div>
40
+ </fieldset>
41
+ </form>
42
+ </tal:content_types>
43
+
44
+ <tal:schemas tal:condition="content_type" >
45
+ <fieldset id="fieldset-schema">
46
+ <legend>
47
+ Choose Schema
48
+ </legend>
49
+ <p>
50
+ In most cases you will want the base schema which is listed first. Following that are the behaviors
51
+ available for this content type.
52
+ </p>
53
+ <ul>
54
+ <tal:schema repeat="schema view/schemas">
55
+ <li>
56
+ <a href="${context/absolute_url}/mass-edit?schema=${schema/id}">
57
+ ${schema/title}
58
+ </a>
59
+ </li>
60
+ </tal:schema>
61
+ </ul>
62
+ </fieldset>
63
+ </tal:schemas>
64
+ </div>
65
+ </body>
66
+ </html>
@@ -1,21 +1,21 @@
1
- <configure
2
- xmlns="http://namespaces.zope.org/zope"
3
- xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
4
- i18n_domain="ims.fieldupdater">
5
-
6
- <include package=".browser"/>
7
-
8
- <genericsetup:registerProfile
9
- name="default"
10
- title="ims.fieldupdater"
11
- directory="profiles/default"
12
- description="Adds control panel configlet for this tool"
13
- provides="Products.GenericSetup.interfaces.EXTENSION"/>
14
-
15
- <genericsetup:registerProfile
16
- name="uninstall"
17
- title="ims.fieldupdater [uninstall]"
18
- directory="profiles/uninstall"
19
- provides="Products.GenericSetup.interfaces.EXTENSION"/>
20
-
1
+ <configure
2
+ xmlns="http://namespaces.zope.org/zope"
3
+ xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
4
+ i18n_domain="ims.fieldupdater">
5
+
6
+ <include package=".browser"/>
7
+
8
+ <genericsetup:registerProfile
9
+ name="default"
10
+ title="ims.fieldupdater"
11
+ directory="profiles/default"
12
+ description="Adds control panel configlet for this tool"
13
+ provides="Products.GenericSetup.interfaces.EXTENSION"/>
14
+
15
+ <genericsetup:registerProfile
16
+ name="uninstall"
17
+ title="ims.fieldupdater [uninstall]"
18
+ directory="profiles/uninstall"
19
+ provides="Products.GenericSetup.interfaces.EXTENSION"/>
20
+
21
21
  </configure>
@@ -1,11 +1,11 @@
1
- <?xml version="1.0"?>
2
- <object name="portal_controlpanel" meta_type="Plone Control Panel Tool"
3
- xmlns:i18n="http://xml.zope.org/namespaces/i18n" i18n:domain="plone">
4
- <configlet title="Mass Edits" action_id="FieldUpdater"
5
- appId="ims.fieldupdater" category="Products" condition_expr=""
6
- icon_expr="string:pencil-square"
7
- url_expr="string:${portal_url}/@@mass-edit"
8
- visible="True" i18n:attributes="title">
9
- <permission>Manage portal</permission>
10
- </configlet>
1
+ <?xml version="1.0"?>
2
+ <object name="portal_controlpanel" meta_type="Plone Control Panel Tool"
3
+ xmlns:i18n="http://xml.zope.org/namespaces/i18n" i18n:domain="plone">
4
+ <configlet title="Mass Edits" action_id="FieldUpdater"
5
+ appId="ims.fieldupdater" category="Products" condition_expr=""
6
+ icon_expr="string:pencil-square"
7
+ url_expr="string:${portal_url}/@@mass-edit"
8
+ visible="True" i18n:attributes="title">
9
+ <permission>Manage portal</permission>
10
+ </configlet>
11
11
  </object>
@@ -1,4 +1,4 @@
1
- <?xml version="1.0"?>
2
- <metadata>
3
- <version>1</version>
1
+ <?xml version="1.0"?>
2
+ <metadata>
3
+ <version>1</version>
4
4
  </metadata>
@@ -1,5 +1,5 @@
1
- <?xml version="1.0"?>
2
- <object name="portal_controlpanel" meta_type="Plone Control Panel Tool"
3
- xmlns:i18n="http://xml.zope.org/namespaces/i18n" i18n:domain="plone">
4
- <configlet action_id="FieldUpdater" remove="true"/>
1
+ <?xml version="1.0"?>
2
+ <object name="portal_controlpanel" meta_type="Plone Control Panel Tool"
3
+ xmlns:i18n="http://xml.zope.org/namespaces/i18n" i18n:domain="plone">
4
+ <configlet action_id="FieldUpdater" remove="true"/>
5
5
  </object>
@@ -1,53 +1,53 @@
1
- from plone.app.contenttypes.testing import PLONE_APP_CONTENTTYPES_FIXTURE
2
- from plone.app.robotframework.testing import REMOTE_LIBRARY_BUNDLE_FIXTURE
3
- from plone.app.testing import FunctionalTesting
4
- from plone.app.testing import IntegrationTesting
5
- from plone.app.testing import PloneSandboxLayer
6
- from plone.app.testing import applyProfile
7
- from plone.protect import auto
8
- from plone.testing.zope import WSGI_SERVER_FIXTURE
9
-
10
- import ims.fieldupdater
11
-
12
- ORIGINAL_CSRF_DISABLED = auto.CSRF_DISABLED
13
-
14
-
15
- class FieldUpdaterLayer(PloneSandboxLayer):
16
- defaultBases = (PLONE_APP_CONTENTTYPES_FIXTURE,)
17
-
18
- def setUpZope(self, app, configurationContext):
19
- auto.CSRF_DISABLED = True
20
- self.loadZCML(package=ims.fieldupdater)
21
-
22
- def tearDownZope(self, app):
23
- auto.CSRF_DISABLED = ORIGINAL_CSRF_DISABLED
24
-
25
- def setUpPloneSite(self, portal):
26
- applyProfile(portal, "ims.fieldupdater:default")
27
-
28
-
29
- FIXTURE = FieldUpdaterLayer()
30
-
31
- INTEGRATION_TESTING = IntegrationTesting(
32
- bases=(FIXTURE,),
33
- name="FieldUpdaterLayer:IntegrationTesting",
34
- )
35
-
36
- FUNCTIONAL_TESTING = FunctionalTesting(
37
- bases=(FIXTURE, WSGI_SERVER_FIXTURE),
38
- name="FieldUpdaterLayer:FunctionalTesting",
39
- )
40
-
41
- RESTAPI_TESTING = FunctionalTesting(
42
- bases=(FIXTURE, WSGI_SERVER_FIXTURE),
43
- name="FieldUpdaterLayer:RestAPITesting",
44
- )
45
-
46
- ACCEPTANCE_TESTING = FunctionalTesting(
47
- bases=(
48
- FIXTURE,
49
- REMOTE_LIBRARY_BUNDLE_FIXTURE,
50
- WSGI_SERVER_FIXTURE,
51
- ),
52
- name="FieldUpdaterLayer:AcceptanceTesting",
53
- )
1
+ from plone.app.contenttypes.testing import PLONE_APP_CONTENTTYPES_FIXTURE
2
+ from plone.app.robotframework.testing import REMOTE_LIBRARY_BUNDLE_FIXTURE
3
+ from plone.app.testing import FunctionalTesting
4
+ from plone.app.testing import IntegrationTesting
5
+ from plone.app.testing import PloneSandboxLayer
6
+ from plone.app.testing import applyProfile
7
+ from plone.protect import auto
8
+ from plone.testing.zope import WSGI_SERVER_FIXTURE
9
+
10
+ import ims.fieldupdater
11
+
12
+ ORIGINAL_CSRF_DISABLED = auto.CSRF_DISABLED
13
+
14
+
15
+ class FieldUpdaterLayer(PloneSandboxLayer):
16
+ defaultBases = (PLONE_APP_CONTENTTYPES_FIXTURE,)
17
+
18
+ def setUpZope(self, app, configurationContext):
19
+ auto.CSRF_DISABLED = True
20
+ self.loadZCML(package=ims.fieldupdater)
21
+
22
+ def tearDownZope(self, app):
23
+ auto.CSRF_DISABLED = ORIGINAL_CSRF_DISABLED
24
+
25
+ def setUpPloneSite(self, portal):
26
+ applyProfile(portal, "ims.fieldupdater:default")
27
+
28
+
29
+ FIXTURE = FieldUpdaterLayer()
30
+
31
+ INTEGRATION_TESTING = IntegrationTesting(
32
+ bases=(FIXTURE,),
33
+ name="FieldUpdaterLayer:IntegrationTesting",
34
+ )
35
+
36
+ FUNCTIONAL_TESTING = FunctionalTesting(
37
+ bases=(FIXTURE, WSGI_SERVER_FIXTURE),
38
+ name="FieldUpdaterLayer:FunctionalTesting",
39
+ )
40
+
41
+ RESTAPI_TESTING = FunctionalTesting(
42
+ bases=(FIXTURE, WSGI_SERVER_FIXTURE),
43
+ name="FieldUpdaterLayer:RestAPITesting",
44
+ )
45
+
46
+ ACCEPTANCE_TESTING = FunctionalTesting(
47
+ bases=(
48
+ FIXTURE,
49
+ REMOTE_LIBRARY_BUNDLE_FIXTURE,
50
+ WSGI_SERVER_FIXTURE,
51
+ ),
52
+ name="FieldUpdaterLayer:AcceptanceTesting",
53
+ )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ims.fieldupdater
3
- Version: 3.0.1
3
+ Version: 3.0.3
4
4
  Summary: Update all objects in Plone based on a schema/field strategy
5
5
  Project-URL: homepage, https://git.imsweb.com/plone/ims.fieldupdater
6
6
  Project-URL: documentation, https://git.imsweb.com/plone/ims.fieldupdater
@@ -0,0 +1,15 @@
1
+ ims/fieldupdater/__init__.py,sha256=Q6545wq84hsDOa9b1vNE7q8Lur4EI253jy43Jx_5AS8,108
2
+ ims/fieldupdater/configure.zcml,sha256=XzjvBz_wQLJF57i-8dVOyq8hJ4hmAwN59e8u-xHo8Bw,717
3
+ ims/fieldupdater/testing.py,sha256=VUme-WPYsPM228xw9RNK-ZJHS_WlYokEPGcDs8ygSMk,1508
4
+ ims/fieldupdater/browser/__init__.py,sha256=MsSFjiLMLJZ7QhUPpVBWKiyDnCzryquRyr329NoCACI,2
5
+ ims/fieldupdater/browser/configure.zcml,sha256=gDg1aCneETqWVRZ7A6AZN9rBxmkhISTx_jNsxbX5AUI,500
6
+ ims/fieldupdater/browser/mass.pt,sha256=1KO2vqZaWM8uumPv10wWyT7KRlVoikCRDWbdZNVlXgA,11454
7
+ ims/fieldupdater/browser/mass.py,sha256=xzq4rkUx9gJuP9V2Ucren9BTzozPoYTbbawpd6cXTa8,15421
8
+ ims/fieldupdater/browser/schema.pt,sha256=e_XHK1Mi3bJd6iyZ5T33GiRL5NtZ-dxNemgFxmjhxeA,2368
9
+ ims/fieldupdater/profiles/default/controlpanel.xml,sha256=bQGQWeqdk1SM4WLlHQqlHJYaafUOR3tQ3RI6PTSx-rs,544
10
+ ims/fieldupdater/profiles/default/metadata.xml,sha256=JoYjQsedax0AZx1ToWXVw9OwYv9h7idF1JYELQGe5YE,69
11
+ ims/fieldupdater/profiles/uninstall/controlpanel.xml,sha256=DL402N_S8bDlu5BLneHnRwISAvuvLXvMNknOB58rJq8,237
12
+ ims_fieldupdater-3.0.3.dist-info/METADATA,sha256=DH1eImv54qqla_ee7loaO7tYqz80ErrgBFKJwsbxOKQ,844
13
+ ims_fieldupdater-3.0.3.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
14
+ ims_fieldupdater-3.0.3.dist-info/entry_points.txt,sha256=ue9oriqwbY5mDverBYmB-21XfmR2FdG-YWncKEEp-pE,42
15
+ ims_fieldupdater-3.0.3.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.27.0
2
+ Generator: hatchling 1.28.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -1,15 +0,0 @@
1
- ims/fieldupdater/__init__.py,sha256=3yK8CS4fOpjH1mIHIfDsR-wtvzbphfkmZ8RVqPK09To,112
2
- ims/fieldupdater/configure.zcml,sha256=eAIJlfutXffrwbVQ-lcLtdyCxaY5xWuZ_w1XzhXNYZ4,737
3
- ims/fieldupdater/testing.py,sha256=kyBncg8or4YgYMjwRhp6w3u46Jg8nnhY0Zph1oEI0MA,1561
4
- ims/fieldupdater/browser/__init__.py,sha256=_6Yl-eMBve0mGQA-aiFg4qvQ7GUCV5eGvIcoRf4mEPw,3
5
- ims/fieldupdater/browser/configure.zcml,sha256=LHDCGWHqOWjSnU1E6PmZhr2iOjid_Y2T2QsHq_atagU,515
6
- ims/fieldupdater/browser/mass.pt,sha256=WBl2U8tbKE3RglKk4_fI1tXQ6w_vLwrLBZxHfjUYRCM,11051
7
- ims/fieldupdater/browser/mass.py,sha256=W0TbjUHvq03tMwWwJOsC5ZBI2HDXVZyx5Jwn7HC2iy0,15479
8
- ims/fieldupdater/browser/schema.pt,sha256=o3AwxD_1Gh6EcTMivOHJ5Bn1yy5lEjxI588ZkDHZWi4,2434
9
- ims/fieldupdater/profiles/default/controlpanel.xml,sha256=TLa6jqZhxlJI2_f1KYCngZDz6Qbui4weTq2a0WsnIAk,554
10
- ims/fieldupdater/profiles/default/metadata.xml,sha256=hU9lnPsp-DKFzuIwKVuk8tG2nw2K5dFRD8JZWU8GT1s,72
11
- ims/fieldupdater/profiles/uninstall/controlpanel.xml,sha256=Tv4FnIVdt-azQV-_h5G7eZfZNJJ6ZArQjCt1rqVFK6Y,241
12
- ims.fieldupdater-3.0.1.dist-info/METADATA,sha256=218IxGHN0PBAthL1dyZDR8pR-8UxX0zfRAF9HL5YJY8,844
13
- ims.fieldupdater-3.0.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
14
- ims.fieldupdater-3.0.1.dist-info/entry_points.txt,sha256=ue9oriqwbY5mDverBYmB-21XfmR2FdG-YWncKEEp-pE,42
15
- ims.fieldupdater-3.0.1.dist-info/RECORD,,