This repository has been archived by the owner on Dec 17, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert all files to native line endings.
- Loading branch information
Showing
13 changed files
with
525 additions
and
525 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Roger Ineichen (roger <at> projekt01 <dot> ch) | ||
Roger Ineichen (roger <at> projekt01 <dot> ch) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
This package provides a table implementation including form support for Zope3 | ||
based on z3c.form and z3c.table. | ||
This package provides a table implementation including form support for Zope3 | ||
based on z3c.form and z3c.table. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
try: | ||
# Declare this a namespace package if pkg_resources is available. | ||
import pkg_resources | ||
pkg_resources.declare_namespace('z3c') | ||
except ImportError: | ||
pass | ||
try: | ||
# Declare this a namespace package if pkg_resources is available. | ||
import pkg_resources | ||
pkg_resources.declare_namespace('z3c') | ||
except ImportError: | ||
pass | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
# make a package | ||
# make a package |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,43 @@ | ||
<configure | ||
xmlns:zope="http://namespaces.zope.org/zope" | ||
xmlns="http://namespaces.zope.org/browser" | ||
xmlns:z3c="http://namespaces.zope.org/z3c" | ||
i18n_domain="z3c"> | ||
|
||
<z3c:template | ||
template="table.pt" | ||
for=".interfaces.ITemplateTable" | ||
layer="zope.publisher.interfaces.browser.IBrowserRequest" | ||
/> | ||
|
||
<z3c:template | ||
template="formtable.pt" | ||
for=".interfaces.IFormTable" | ||
layer="zope.publisher.interfaces.browser.IBrowserRequest" | ||
/> | ||
|
||
<z3c:template | ||
template="subformtable.pt" | ||
for=".interfaces.ISubFormTable" | ||
layer="zope.publisher.interfaces.browser.IBrowserRequest" | ||
/> | ||
|
||
<z3c:macro | ||
name="z3c-tabular-table" | ||
template="formtable.pt" | ||
layer="zope.publisher.interfaces.browser.IBrowserRequest" | ||
/> | ||
|
||
<z3c:macro | ||
name="z3c-tabular-formtable" | ||
template="formtable.pt" | ||
layer="zope.publisher.interfaces.browser.IBrowserRequest" | ||
/> | ||
|
||
<z3c:macro | ||
name="z3c-tabular-subformtable" | ||
template="formtable.pt" | ||
layer="zope.publisher.interfaces.browser.IBrowserRequest" | ||
/> | ||
|
||
</configure> | ||
<configure | ||
xmlns:zope="http://namespaces.zope.org/zope" | ||
xmlns="http://namespaces.zope.org/browser" | ||
xmlns:z3c="http://namespaces.zope.org/z3c" | ||
i18n_domain="z3c"> | ||
|
||
<z3c:template | ||
template="table.pt" | ||
for=".interfaces.ITemplateTable" | ||
layer="zope.publisher.interfaces.browser.IBrowserRequest" | ||
/> | ||
|
||
<z3c:template | ||
template="formtable.pt" | ||
for=".interfaces.IFormTable" | ||
layer="zope.publisher.interfaces.browser.IBrowserRequest" | ||
/> | ||
|
||
<z3c:template | ||
template="subformtable.pt" | ||
for=".interfaces.ISubFormTable" | ||
layer="zope.publisher.interfaces.browser.IBrowserRequest" | ||
/> | ||
|
||
<z3c:macro | ||
name="z3c-tabular-table" | ||
template="formtable.pt" | ||
layer="zope.publisher.interfaces.browser.IBrowserRequest" | ||
/> | ||
|
||
<z3c:macro | ||
name="z3c-tabular-formtable" | ||
template="formtable.pt" | ||
layer="zope.publisher.interfaces.browser.IBrowserRequest" | ||
/> | ||
|
||
<z3c:macro | ||
name="z3c-tabular-subformtable" | ||
template="formtable.pt" | ||
layer="zope.publisher.interfaces.browser.IBrowserRequest" | ||
/> | ||
|
||
</configure> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<configure | ||
xmlns="http://namespaces.zope.org/zope" | ||
i18n_domain="z3c"> | ||
|
||
<include file="browser.zcml" /> | ||
|
||
</configure> | ||
<configure | ||
xmlns="http://namespaces.zope.org/zope" | ||
i18n_domain="z3c"> | ||
|
||
<include file="browser.zcml" /> | ||
|
||
</configure> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
<div metal:define-macro="z3c-tabular-formtable" | ||
metal:extend-macro="macro:form"> | ||
<div metal:fill-slot="main" | ||
tal:define="batch view/renderBatch"> | ||
<div class="tabluarTable"> | ||
<tal:block replace="structure view/renderTable"> | ||
table | ||
</tal:block> | ||
</div> | ||
<div class="batch" tal:condition="batch"> | ||
<tal:block replace="structure batch"> | ||
table | ||
</tal:block> | ||
</div> | ||
<div class="tabluarForm"> | ||
<div metal:use-macro="macro:widget-rows" /> | ||
</div> | ||
</div> | ||
</div> | ||
<div metal:define-macro="z3c-tabular-formtable" | ||
metal:extend-macro="macro:form"> | ||
<div metal:fill-slot="main" | ||
tal:define="batch view/renderBatch"> | ||
<div class="tabluarTable"> | ||
<tal:block replace="structure view/renderTable"> | ||
table | ||
</tal:block> | ||
</div> | ||
<div class="batch" tal:condition="batch"> | ||
<tal:block replace="structure batch"> | ||
table | ||
</tal:block> | ||
</div> | ||
<div class="tabluarForm"> | ||
<div metal:use-macro="macro:widget-rows" /> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
############################################################################## | ||
# | ||
# Copyright (c) 2008 Zope Foundation and Contributors. | ||
# All Rights Reserved. | ||
# | ||
# This software is subject to the provisions of the Zope Public License, | ||
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. | ||
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED | ||
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS | ||
# FOR A PARTICULAR PURPOSE. | ||
# | ||
############################################################################## | ||
""" | ||
$Id:$ | ||
""" | ||
__docformat__ = "reStructuredText" | ||
|
||
import z3c.table.interfaces | ||
|
||
|
||
class ITemplateTable(z3c.table.interfaces.ITable): | ||
"""Template aware table.""" | ||
|
||
|
||
class IFormTable(ITemplateTable): | ||
"""Table including a form setup.""" | ||
|
||
|
||
class IDeleteFormTable(IFormTable): | ||
"""Delete button aware table including a form setup.""" | ||
|
||
|
||
class ISubFormTable(IDeleteFormTable): | ||
"""Table including a sub form for one selected item.""" | ||
############################################################################## | ||
# | ||
# Copyright (c) 2008 Zope Foundation and Contributors. | ||
# All Rights Reserved. | ||
# | ||
# This software is subject to the provisions of the Zope Public License, | ||
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. | ||
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED | ||
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS | ||
# FOR A PARTICULAR PURPOSE. | ||
# | ||
############################################################################## | ||
""" | ||
$Id:$ | ||
""" | ||
__docformat__ = "reStructuredText" | ||
|
||
import z3c.table.interfaces | ||
|
||
|
||
class ITemplateTable(z3c.table.interfaces.ITable): | ||
"""Template aware table.""" | ||
|
||
|
||
class IFormTable(ITemplateTable): | ||
"""Table including a form setup.""" | ||
|
||
|
||
class IDeleteFormTable(IFormTable): | ||
"""Delete button aware table including a form setup.""" | ||
|
||
|
||
class ISubFormTable(IDeleteFormTable): | ||
"""Table including a sub form for one selected item.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
<div metal:define-macro="z3c-tabular-subformtable" | ||
metal:extend-macro="macro:form"> | ||
<div metal:fill-slot="main"> | ||
<table width="100%" border="0" cellspacing="0" cellpadding="0"> | ||
<tr> | ||
<td valign="top" | ||
tal:define="batch view/renderBatch"> | ||
<div> | ||
<tal:block replace="structure view/renderTable"> | ||
table | ||
</tal:block> | ||
</div> | ||
<div class="batch" tal:condition="batch"> | ||
<tal:block replace="structure batch"> | ||
table | ||
</tal:block> | ||
</div> | ||
</td> | ||
<td valign="top" | ||
tal:define="subForm nocall:view/subForm"> | ||
<div class="tableForm" tal:condition="nocall:subForm"> | ||
<tal:block replace="structure subForm/render"> | ||
form | ||
</tal:block> | ||
</div> | ||
</td> | ||
</tr> | ||
</table> | ||
</div> | ||
</div> | ||
<div metal:define-macro="z3c-tabular-subformtable" | ||
metal:extend-macro="macro:form"> | ||
<div metal:fill-slot="main"> | ||
<table width="100%" border="0" cellspacing="0" cellpadding="0"> | ||
<tr> | ||
<td valign="top" | ||
tal:define="batch view/renderBatch"> | ||
<div> | ||
<tal:block replace="structure view/renderTable"> | ||
table | ||
</tal:block> | ||
</div> | ||
<div class="batch" tal:condition="batch"> | ||
<tal:block replace="structure batch"> | ||
table | ||
</tal:block> | ||
</div> | ||
</td> | ||
<td valign="top" | ||
tal:define="subForm nocall:view/subForm"> | ||
<div class="tableForm" tal:condition="nocall:subForm"> | ||
<tal:block replace="structure subForm/render"> | ||
form | ||
</tal:block> | ||
</div> | ||
</td> | ||
</tr> | ||
</table> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
<div metal:define-macro="z3c-tabular-table" | ||
metal:extend-macro="macro:form"> | ||
<div metal:fill-slot="main" | ||
tal:define="batch view/renderBatch"> | ||
<div class="tabluarTable"> | ||
<tal:block replace="structure view/renderTable"> | ||
table | ||
</tal:block> | ||
</div> | ||
<div class="batch" tal:condition="batch"> | ||
<tal:block replace="structure batch"> | ||
table | ||
</tal:block> | ||
</div> | ||
</div> | ||
</div> | ||
<div metal:define-macro="z3c-tabular-table" | ||
metal:extend-macro="macro:form"> | ||
<div metal:fill-slot="main" | ||
tal:define="batch view/renderBatch"> | ||
<div class="tabluarTable"> | ||
<tal:block replace="structure view/renderTable"> | ||
table | ||
</tal:block> | ||
</div> | ||
<div class="batch" tal:condition="batch"> | ||
<tal:block replace="structure batch"> | ||
table | ||
</tal:block> | ||
</div> | ||
</div> | ||
</div> |
Oops, something went wrong.