[Checkins] SVN: z3c.wizard/trunk/ - use new zope packages
Roger Ineichen
roger at projekt01.ch
Sun Feb 22 01:01:55 EST 2009
Log message for revision 96991:
- use new zope packages
- prepare for initial release
Changed:
U z3c.wizard/trunk/CHANGES.txt
U z3c.wizard/trunk/setup.py
U z3c.wizard/trunk/src/z3c/wizard/README.txt
U z3c.wizard/trunk/src/z3c/wizard/interfaces.py
U z3c.wizard/trunk/src/z3c/wizard/wizard.py
U z3c.wizard/trunk/src/z3c/wizard/zcml.py
-=-
Modified: z3c.wizard/trunk/CHANGES.txt
===================================================================
--- z3c.wizard/trunk/CHANGES.txt 2009-02-22 05:35:43 UTC (rev 96990)
+++ z3c.wizard/trunk/CHANGES.txt 2009-02-22 06:01:54 UTC (rev 96991)
@@ -3,7 +3,7 @@
=======
-Version 0.5.0dev (unreleased)
------------------------------
+0.5.0 (2009-02-22)
+------------------
- Initial Release
Modified: z3c.wizard/trunk/setup.py
===================================================================
--- z3c.wizard/trunk/setup.py 2009-02-22 05:35:43 UTC (rev 96990)
+++ z3c.wizard/trunk/setup.py 2009-02-22 06:01:54 UTC (rev 96991)
@@ -23,13 +23,18 @@
setup (
name='z3c.wizard',
- version='0.5.0dev',
+ version='0.5.0',
author = "Roger Ineichen and the Zope Community",
author_email = "zope3-dev at zope.org",
description = "Wizard based on z3c.form for for Zope3",
long_description=(
read('README.txt')
+ '\n\n' +
+ 'Detailed Documentation\n'
+ '**********************\n'
+ + '\n\n' +
+ read('src', 'z3c', 'wizard', 'README.txt')
+ + '\n\n' +
read('CHANGES.txt')
),
license = "ZPL 2.1",
@@ -44,7 +49,7 @@
'Operating System :: OS Independent',
'Topic :: Internet :: WWW/HTTP',
'Framework :: Zope3'],
- url = 'http://cheeseshop.python.org/pypi/z3c.wizard',
+ url = 'http://pypi.python.org/pypi/z3c.wizard',
packages = find_packages('src'),
include_package_data = True,
package_dir = {'':'src'},
@@ -65,14 +70,13 @@
'z3c.formui',
'z3c.i18n',
'z3c.pagelet',
- 'zope.app.component',
'zope.app.publisher',
'zope.component',
'zope.configuration',
- 'zope.contentprovider',
'zope.event',
'zope.interface',
'zope.lifecycleevent',
+ 'zope.location',
'zope.publisher',
'zope.schema',
'zope.security',
Modified: z3c.wizard/trunk/src/z3c/wizard/README.txt
===================================================================
--- z3c.wizard/trunk/src/z3c/wizard/README.txt 2009-02-22 05:35:43 UTC (rev 96990)
+++ z3c.wizard/trunk/src/z3c/wizard/README.txt 2009-02-22 06:01:54 UTC (rev 96991)
@@ -38,14 +38,12 @@
>>> from zope.configuration import xmlconfig
>>> import zope.component
>>> import zope.viewlet
- >>> import zope.app.component
>>> import zope.app.publisher.browser
>>> import z3c.macro
>>> import z3c.template
>>> import z3c.formui
>>> xmlconfig.XMLConfig('meta.zcml', zope.component)()
>>> xmlconfig.XMLConfig('meta.zcml', zope.viewlet)()
- >>> xmlconfig.XMLConfig('meta.zcml', zope.app.component)()
>>> xmlconfig.XMLConfig('meta.zcml', zope.app.publisher.browser)()
>>> xmlconfig.XMLConfig('meta.zcml', z3c.macro)()
>>> xmlconfig.XMLConfig('meta.zcml', z3c.template)()
@@ -64,10 +62,11 @@
>>> import zope.interface
>>> import zope.schema
+ >>> from zope.location.interfaces import ILocation
>>> from zope.schema.fieldproperty import FieldProperty
- >>> class IPerson(zope.interface.Interface):
+ >>> class IPerson(ILocation):
... """Person interface."""
- ...
+ ...
... firstName = zope.schema.TextLine(title=u'First Name')
... lastName = zope.schema.TextLine(title=u'Last Name')
... street = zope.schema.TextLine(title=u'Street')
@@ -77,6 +76,8 @@
... """Person content."""
... zope.interface.implements(IPerson)
...
+ ... __name__ = __parent__ = None
+ ...
... firstName = FieldProperty(IPerson['firstName'])
... lastName = FieldProperty(IPerson['lastName'])
... street = FieldProperty(IPerson['street'])
Modified: z3c.wizard/trunk/src/z3c/wizard/interfaces.py
===================================================================
--- z3c.wizard/trunk/src/z3c/wizard/interfaces.py 2009-02-22 05:35:43 UTC (rev 96990)
+++ z3c.wizard/trunk/src/z3c/wizard/interfaces.py 2009-02-22 06:01:54 UTC (rev 96991)
@@ -19,7 +19,6 @@
import zope.interface
import zope.schema
import zope.location.interfaces
-from zope.contentprovider.interfaces import IContentProvider
from z3c.i18n import MessageFactory as _
from z3c.form import interfaces
Modified: z3c.wizard/trunk/src/z3c/wizard/wizard.py
===================================================================
--- z3c.wizard/trunk/src/z3c/wizard/wizard.py 2009-02-22 05:35:43 UTC (rev 96990)
+++ z3c.wizard/trunk/src/z3c/wizard/wizard.py 2009-02-22 06:01:54 UTC (rev 96991)
@@ -18,7 +18,6 @@
import zope.component
import zope.interface
-from zope.cachedescriptors.property import Lazy
from zope.publisher.interfaces import NotFound
from zope.traversing.browser import absoluteURL
Modified: z3c.wizard/trunk/src/z3c/wizard/zcml.py
===================================================================
--- z3c.wizard/trunk/src/z3c/wizard/zcml.py 2009-02-22 05:35:43 UTC (rev 96990)
+++ z3c.wizard/trunk/src/z3c/wizard/zcml.py 2009-02-22 06:01:54 UTC (rev 96991)
@@ -26,7 +26,6 @@
from zope.publisher.interfaces.browser import IDefaultBrowserLayer
from zope.app.publisher.browser import viewmeta
-from zope.app.component import metadirectives
import z3c.pagelet.zcml
@@ -43,7 +42,7 @@
"""
-class IWizardStepDirective(metadirectives.IBasicViewInformation):
+class IWizardStepDirective(zope.interface.Interface):
"""A directive to register a new wizard step.
The wizard step directive also supports an undefined set of keyword
@@ -73,6 +72,15 @@
required=False
)
+ layer = zope.configuration.fields.GlobalInterface(
+ title=u"The layer the view is in.",
+ description=u"""
+ A skin is composed of layers. It is common to put skin
+ specific views in a layer named after the skin. If the 'layer'
+ attribute is not supplied, it defaults to 'default'.""",
+ required=False,
+ )
+
wizard = zope.configuration.fields.GlobalObject(
title=u"Wizard",
description=u"The wizard interface or class this step is for.",
@@ -88,7 +96,33 @@
default=interfaces.IPagelet,
)
+ allowed_interface = zope.configuration.fields.Tokens(
+ title=u"Interface that is also allowed if user has permission.",
+ description=u"""
+ By default, 'permission' only applies to viewing the view and
+ any possible sub views. By specifying this attribute, you can
+ make the permission also apply to everything described in the
+ supplied interface.
+ Multiple interfaces can be provided, separated by
+ whitespace.""",
+ required=False,
+ value_type=zope.configuration.fields.GlobalInterface(),
+ )
+
+ allowed_attributes = zope.configuration.fields.Tokens(
+ title=u"View attributes that are also allowed if the user"
+ " has permission.",
+ description=u"""
+ By default, 'permission' only applies to viewing the view and
+ any possible sub views. By specifying 'allowed_attributes',
+ you can make the permission also apply to the extra attributes
+ on the view object.""",
+ required=False,
+ value_type=zope.configuration.fields.PythonIdentifier(),
+ )
+
+
# Arbitrary keys and values are allowed to be passed to the wizard.
IWizardDirective.setTaggedValue('keyword_arguments', True)
More information about the Checkins
mailing list