Skip to content

Commit

Permalink
Merge pull request #99 from plone/config-with-default-template-f81c1b30
Browse files Browse the repository at this point in the history
Config with default template
  • Loading branch information
gforcada authored Mar 7, 2023
2 parents f81c1b3 + 75c72b4 commit 6182d47
Show file tree
Hide file tree
Showing 27 changed files with 356 additions and 254 deletions.
2 changes: 1 addition & 1 deletion .meta.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# https://github.com/plone/meta/tree/master/config/default
[meta]
template = "default"
commit-id = "78307cdf"
commit-id = "13d8d6c0"

[dependencies]
mappings = [
Expand Down
42 changes: 42 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Generated from:
# https://github.com/plone/meta/tree/master/config/default
ci:
autofix_prs: false
autoupdate_schedule: monthly

repos:
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
hooks:
- id: pyupgrade
args: [--py38-plus]
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
- repo: https://github.com/collective/zpretty
rev: 3.0.2
hooks:
- id: zpretty
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
hooks:
- id: flake8
- repo: https://github.com/codespell-project/codespell
rev: v2.2.2
hooks:
- id: codespell
additional_dependencies:
- tomli
- repo: https://github.com/mgedmin/check-manifest
rev: "0.49"
hooks:
- id: check-manifest
- repo: https://github.com/regebro/pyroma
rev: "4.2"
hooks:
- id: pyroma
2 changes: 2 additions & 0 deletions news/13d8d6c0.internal
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Update configuration files.
[plone devs]
7 changes: 4 additions & 3 deletions plone/schemaeditor/browser/configure.zcml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<configure
xmlns="http://namespaces.zope.org/zope"
xmlns:browser="http://namespaces.zope.org/browser"
i18n_domain="plone">
i18n_domain="plone"
>

<include package=".field"/>
<include package=".schema" />
<include package=".field" />
<include package=".schema" />

</configure>
64 changes: 32 additions & 32 deletions plone/schemaeditor/browser/field/configure.zcml
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
<configure
xmlns="http://namespaces.zope.org/zope"
xmlns:five="http://namespaces.zope.org/five"
xmlns:browser="http://namespaces.zope.org/browser"
i18n_domain="plone">
xmlns:five="http://namespaces.zope.org/five"
i18n_domain="plone"
>

<browser:page
name="edit"
for="...interfaces.IFieldContext"
class=".edit.EditView"
permission="plone.schemaeditor.ManageSchemata" />
<browser:page
name="edit"
for="...interfaces.IFieldContext"
class=".edit.EditView"
permission="plone.schemaeditor.ManageSchemata"
/>

<adapter
factory=".edit.FieldTitleAdapter" />
<adapter
factory=".edit.FieldDataManager" />
<adapter factory=".edit.FieldTitleAdapter" />
<adapter factory=".edit.FieldDataManager" />

<browser:page
name="order"
for="...interfaces.IFieldContext"
class=".order.FieldOrderView"
attribute="move"
permission="plone.schemaeditor.ManageSchemata"
/>
<browser:page
name="order"
for="...interfaces.IFieldContext"
class=".order.FieldOrderView"
attribute="move"
permission="plone.schemaeditor.ManageSchemata"
/>

<browser:page
name="delete"
for="...interfaces.IFieldContext"
class=".order.FieldOrderView"
attribute="delete"
permission="plone.schemaeditor.ManageSchemata"
/>
<browser:page
name="delete"
for="...interfaces.IFieldContext"
class=".order.FieldOrderView"
attribute="delete"
permission="plone.schemaeditor.ManageSchemata"
/>

<browser:page
name="changefieldset"
for="...interfaces.IFieldContext"
class=".fieldset.ChangeFieldsetView"
attribute="change"
permission="plone.schemaeditor.ManageSchemata"
/>
<browser:page
name="changefieldset"
for="...interfaces.IFieldContext"
class=".fieldset.ChangeFieldsetView"
attribute="change"
permission="plone.schemaeditor.ManageSchemata"
/>

</configure>
20 changes: 12 additions & 8 deletions plone/schemaeditor/browser/field/edit.pt
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:metal="http://xml.zope.org/namespaces/metal"
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
xmlns:metal="http://xml.zope.org/namespaces/metal"
xmlns:tal="http://xml.zope.org/namespaces/tal"
lang="en"
i18n:domain="plone">
xml:lang="en"
i18n:domain="plone"
>

<body>
<h1 class="documentFirstHeading" tal:content="view/label"></h1>
<body>
<h1 class="documentFirstHeading"
tal:content="view/label"
></h1>
<div id="content">
<tal:block tal:replace="structure view/contents|view/render"/>
<tal:block tal:replace="structure view/contents|view/render" />
</div>
</body>
</body>
</html>
1 change: 0 additions & 1 deletion plone/schemaeditor/browser/field/edit.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ def __get__(self, inst, cls=None):

@implementer(IFieldProxy)
class FieldProxy:

__providedBy__ = FieldProxySpecification()

def __init__(self, context):
Expand Down
20 changes: 12 additions & 8 deletions plone/schemaeditor/browser/schema/add.pt
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:metal="http://xml.zope.org/namespaces/metal"
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
xmlns:metal="http://xml.zope.org/namespaces/metal"
xmlns:tal="http://xml.zope.org/namespaces/tal"
lang="en"
i18n:domain="plone">
xml:lang="en"
i18n:domain="plone"
>

<body>
<h1 class="documentFirstHeading" tal:content="view/label"></h1>
<body>
<h1 class="documentFirstHeading"
tal:content="view/label"
></h1>
<div id="content">
<tal:block tal:replace="structure view/contents|view/render"/>
<tal:block tal:replace="structure view/contents|view/render" />
</div>
</body>
</body>
</html>
1 change: 0 additions & 1 deletion plone/schemaeditor/browser/schema/add_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@


class FieldAddForm(AutoExtensibleForm, form.AddForm):

fields = field.Fields(interfaces.INewField)
label = _("Add new field")
id = "add-field-form"
Expand Down
1 change: 0 additions & 1 deletion plone/schemaeditor/browser/schema/add_fieldset.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@


class FieldsetAddForm(form.AddForm):

fields = field.Fields(INewFieldset)
label = _("Add new fieldset")
id = "add-fieldset-form"
Expand Down
38 changes: 20 additions & 18 deletions plone/schemaeditor/browser/schema/configure.zcml
Original file line number Diff line number Diff line change
@@ -1,34 +1,36 @@
<configure
xmlns="http://namespaces.zope.org/zope"
xmlns:five="http://namespaces.zope.org/five"
xmlns:browser="http://namespaces.zope.org/browser"
i18n_domain="plone">
xmlns:five="http://namespaces.zope.org/five"
i18n_domain="plone"
>

<browser:page
name="edit"
for="plone.schemaeditor.interfaces.ISchemaContext"
class=".listing.SchemaListingPage"
permission="plone.schemaeditor.ManageSchemata" />
permission="plone.schemaeditor.ManageSchemata"
/>

<browser:page
name="add-field"
for="plone.schemaeditor.interfaces.ISchemaContext"
class=".add_field.FieldAddFormPage"
permission="plone.schemaeditor.ManageSchemata"
/>
name="add-field"
for="plone.schemaeditor.interfaces.ISchemaContext"
class=".add_field.FieldAddFormPage"
permission="plone.schemaeditor.ManageSchemata"
/>

<browser:page
name="add-fieldset"
for="plone.schemaeditor.interfaces.ISchemaContext"
class=".add_fieldset.FieldsetAddFormPage"
permission="plone.schemaeditor.ManageSchemata"
/>
name="add-fieldset"
for="plone.schemaeditor.interfaces.ISchemaContext"
class=".add_fieldset.FieldsetAddFormPage"
permission="plone.schemaeditor.ManageSchemata"
/>

<browser:page
name="delete-fieldset"
for="plone.schemaeditor.interfaces.ISchemaContext"
class=".delete_fieldset.DeleteFieldset"
permission="plone.schemaeditor.ManageSchemata"
/>
name="delete-fieldset"
for="plone.schemaeditor.interfaces.ISchemaContext"
class=".delete_fieldset.DeleteFieldset"
permission="plone.schemaeditor.ManageSchemata"
/>

</configure>
1 change: 0 additions & 1 deletion plone/schemaeditor/browser/schema/listing.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

@implementer(IEditForm)
class SchemaListing(AutoExtensibleForm, form.Form):

ignoreContext = True
ignoreRequest = True
showEmptyGroups = True
Expand Down
Loading

0 comments on commit 6182d47

Please sign in to comment.