Skip to content

Commit

Permalink
final touches about z3c.pt
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Groszer committed Jun 13, 2009
1 parent a7829cb commit d29c5fc
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 19 deletions.
9 changes: 9 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ CHANGES
Version 2.0.0 (unreleased)
--------------------------

- KGS 3.4 compatibility. This is a real hard thing, because z3c.form tests
use lxml >= 2.1.1 to check test output, but KGS 3.4 has lxml 1.3.6.
Therefore we agree on that if tests pass with all package versions nailed by
KGS 3.4 but lxml overridden to 2.1.1 then the z3c.form package works with a
plain KGS 3.4.

- Feature: Removed hard z3c.ptcompat and thus z3c.pt dependency.
If you have z3c.ptcompat on the pythonpath it will be used.

- Feature: Added nested group support. Groups are rendered as fieldsets.
Nested fieldsets are very useful when designing forms.

Expand Down
13 changes: 0 additions & 13 deletions buildout.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,6 @@
develop = . benchmark
parts = test checker coverage-test coverage-report docs i18n python

#####################################################
# REMOVE THIS BEFORE MERGE!
extends = http://download.zope.org/zope3.4/3.4.0/versions.cfg
versions = versions

[versions]
z3c.form=
lxml = 2.1.1
zc.sourcefactory = 0.4.0
zope.container = 3.8.1
#
#####################################################

[test-environment]
CHAMELEON_DEBUG = False
CHAMELEON_CACHE = False
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def read(*rnames):
'z3c.coverage',
'z3c.template',
'zc.sourcefactory',
'lxml',
'lxml >= 2.1.1',
],
adding = ['zope.app.container'],
docs = ['z3c.recipe.sphinxdoc'],
Expand Down
8 changes: 3 additions & 5 deletions src/z3c/form/ptcompat.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,14 @@
"""
__docformat__ = "reStructuredText"

#import utilities from z3c.ptcompat when available and set AVAILABLE flag

try:
from z3c.ptcompat import ViewPageTemplateFile
from z3c.ptcompat import bind_template
AVAILABLE = True
except ImportError:
AVAILABLE = False

if AVAILABLE:
#ViewPageTemplateFile = ptcompat.ViewPageTemplateFile
from z3c.ptcompat import bind_template
else:
from zope.app.pagetemplate.viewpagetemplatefile import ViewPageTemplateFile
from zope.app.pagetemplate.viewpagetemplatefile import BoundPageTemplate \
as bind_template

0 comments on commit d29c5fc

Please sign in to comment.