Skip to content

Commit

Permalink
- No longer depends on deprecated z3c.viewlet.
Browse files Browse the repository at this point in the history
- Fixed tests to run with current ``z3c.form``.

- Fixed long_description to render property on pypi.
  • Loading branch information
Michael Howitz committed Feb 19, 2009
1 parent ea0722a commit f9a66cb
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 26 deletions.
18 changes: 14 additions & 4 deletions CHANGES.txt
Expand Up @@ -2,13 +2,23 @@
CHANGES
=======

Version 0.5.1 (2008-01-24)
--------------------------
0.5.2 (unreleased)
------------------

- No longer depends on deprecated ``z3c.viewlet``.

- Fixed tests to run with current ``z3c.form``.

- Fixed long_description to render property on pypi.


0.5.1 (2008-01-24)
------------------

- Bug: Fix meta-data.


Version 0.5.0 (2008-01-21)
--------------------------
0.5.0 (2008-01-21)
------------------

- Initial Release
14 changes: 8 additions & 6 deletions setup.py
Expand Up @@ -16,17 +16,17 @@
$Id:$
"""
import os
import xml.sax.saxutils
from setuptools import setup, find_packages

def read(*rnames):
text = open(os.path.join(os.path.dirname(__file__), *rnames)).read()
return xml.sax.saxutils.escape(text)
return open(os.path.join(os.path.dirname(__file__), *rnames)).read()

version = '0.5.2dev'

setup (
name='z3c.layer.ready2go',
version='0.5.2dev',
author = "Stephan Richter, Roger Ineichen and the Zope Community",
version=version,
author="Stephan Richter, Roger Ineichen and the Zope Community",
author_email = "zope-dev@zope.org",
description = "A ready to go layer for Zope3",
long_description=(
Expand Down Expand Up @@ -63,7 +63,9 @@ def read(*rnames):
'zope.app.testing',
'zope.app.zcmlfiles',
'zope.app.twisted',
'zope.app.session',
'zc.configuration',
'z3c.form [test]',
],
),
install_requires = [
Expand All @@ -75,7 +77,7 @@ def read(*rnames):
'z3c.form',
'z3c.formui',
'z3c.pagelet',
'z3c.viewlet',
'zope.viewlet',
'z3c.layer.pagelet',
'z3c.form',
'z3c.formui',
Expand Down
26 changes: 14 additions & 12 deletions src/z3c/layer/ready2go/README.txt
Expand Up @@ -313,11 +313,12 @@ Let's now render the page. Note the output doesn't contain the layout template:
>>> addForm.update()
>>> print addForm.render()
<form action="http://127.0.0.1" method="post"
enctype="multipart/form-data" class="edit-form"
name="form" id="form">
enctype="multipart/form-data" class="edit-form"
name="form" id="form">
<div class="viewspace">
<div class="required-info">
<span class="required">*</span> &ndash; required
<span class="required">*</span>
&ndash; required
</div>
<div>
<div id="form-widgets-name-row" class="row">
Expand All @@ -327,9 +328,10 @@ Let's now render the page. Note the output doesn't contain the layout template:
<span class="required">*</span>
</label>
</div>
<div class="widget"><input type="text" id="form-widgets-name"
name="form.widgets.name"
class="text-widget required textline-field" value="" />
<div class="widget">
<input id="form-widgets-name" name="form.widgets.name"
class="text-widget required textline-field"
value="" type="text" />
</div>
</div>
<div id="form-widgets-age-row" class="row">
Expand All @@ -338,18 +340,18 @@ Let's now render the page. Note the output doesn't contain the layout template:
<span>Age</span>
</label>
</div>
<div class="widget"><input type="text" id="form-widgets-age"
name="form.widgets.age" class="text-widget int-field"
value="20" />
<div class="widget">
<input id="form-widgets-age" name="form.widgets.age"
class="text-widget int-field"
value="20" type="text" />
</div>
</div>
</div>
</div>
<div>
<div class="buttons">
<input type="submit" id="form-buttons-add"
name="form.buttons.add"
class="submit-widget button-field" value="Add" />
<input id="form-buttons-add" name="form.buttons.add"
class="submit-widget button-field" value="Add" type="submit" />
</div>
</div>
</form>
Expand Down
3 changes: 0 additions & 3 deletions src/z3c/layer/ready2go/SETUP.cfg

This file was deleted.

1 change: 0 additions & 1 deletion src/z3c/layer/ready2go/ftesting.zcml
Expand Up @@ -30,7 +30,6 @@
<!-- meta configure -->
<include package="zope.i18n" file="meta.zcml" />
<include package="zope.app.component" file="meta.zcml" />
<include package="zope.app.component.browser" file="meta.zcml" />
<include package="zope.app.pagetemplate" file="meta.zcml" />
<include package="zope.app.publication" file="meta.zcml" />
<include package="zope.app.publisher" file="meta.zcml" />
Expand Down

0 comments on commit f9a66cb

Please sign in to comment.