Skip to content
This repository has been archived by the owner on Dec 17, 2020. It is now read-only.

Commit

Permalink
Convert all files to native line endings.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgedmin committed Feb 26, 2013
1 parent 4259872 commit 40c9371
Show file tree
Hide file tree
Showing 13 changed files with 525 additions and 525 deletions.
2 changes: 1 addition & 1 deletion AUTHOR.txt
@@ -1 +1 @@
Roger Ineichen (roger <at> projekt01 <dot> ch)
Roger Ineichen (roger <at> projekt01 <dot> ch)
4 changes: 2 additions & 2 deletions README.txt
@@ -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.
14 changes: 7 additions & 7 deletions src/z3c/__init__.py
@@ -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

2 changes: 1 addition & 1 deletion src/z3c/tabular/__init__.py
@@ -1 +1 @@
# make a package
# make a package
86 changes: 43 additions & 43 deletions src/z3c/tabular/browser.zcml
@@ -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>
14 changes: 7 additions & 7 deletions src/z3c/tabular/configure.zcml
@@ -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>
38 changes: 19 additions & 19 deletions src/z3c/tabular/formtable.pt
@@ -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>
70 changes: 35 additions & 35 deletions src/z3c/tabular/interfaces.py
@@ -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."""
60 changes: 30 additions & 30 deletions src/z3c/tabular/subformtable.pt
@@ -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>
32 changes: 16 additions & 16 deletions src/z3c/tabular/table.pt
@@ -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>

0 comments on commit 40c9371

Please sign in to comment.