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

Commit

Permalink
Moved browser dependencies to 'zmi' extras
Browse files Browse the repository at this point in the history
  • Loading branch information
fafhrd91 committed Dec 27, 2009
1 parent 7a475c0 commit b43d20c
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 12 deletions.
4 changes: 2 additions & 2 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
CHANGES
=======

Version 1.2.1 (Unreleased)
Version 1.2.1 (2009-12-27)
--------------------------

- ...
- Moved browser dependencies to 'zmi' extras


Version 1.2.0 (2009-12-19)
Expand Down
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ def read(*rnames):
'zope.app.testing',
'zope.app.zcmlfiles',
],
zmi = [
'zope.browserpage',
'zope.formlib',
],
),
install_requires = [
'setuptools',
Expand Down
5 changes: 3 additions & 2 deletions src/z3c/configurator/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,14 @@ The value must exist and be valid:
>>> configurator.configure(something, {'foo': u'my value'})
Traceback (most recent call last):
...
RequiredMissing
RequiredMissing: bar

>>> something = Something()
>>> configurator.configure(something, {'foo': u'my value', 'bar': 1})
Traceback (most recent call last):
...
WrongType: (1, <type 'unicode'>)
WrongType: (1, <type 'unicode'>, 'bar')


Data Namespaces
---------------
Expand Down
4 changes: 1 addition & 3 deletions src/z3c/configurator/browser/configure.zcml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<configure
xmlns:zope="http://namespaces.zope.org/zope"
xmlns="http://namespaces.zope.org/browser"
xmlns:zcml="http://namespaces.zope.org/zcml"
zcml:condition="installed zope.formlib"
i18n_domain="z3c.configurator">

<page
Expand All @@ -12,5 +10,5 @@
title="Configurators"
class=".views.ConfigureForm"
menu="zmi_views"/>

</configure>
1 change: 1 addition & 0 deletions src/z3c/configurator/browser/ftesting.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
<include package="zope.app.form.browser" />
<include package="zope.formlib" />
<include package="z3c.configurator"/>
<include package="z3c.configurator.browser" />

<adapter
name="z3c.configurator.testing.settitle"
Expand Down
4 changes: 2 additions & 2 deletions src/z3c/configurator/browser/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

from zope import formlib
from zope.formlib import form
from zope.app.pagetemplate import namedtemplate
from zope.app.pagetemplate import ViewPageTemplateFile
from zope.browserpage import namedtemplate
from zope.browserpage import ViewPageTemplateFile
from z3c.configurator import interfaces
from z3c.configurator.i18n import _
from z3c.configurator import configurator
Expand Down
2 changes: 0 additions & 2 deletions src/z3c/configurator/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,5 @@
component=".vocabulary.pluginNamesVocabulary"
provides="zope.schema.interfaces.IVocabularyFactory"
name="Configurator Plugin Names"/>

<include package=".browser"/>

</configure>
1 change: 0 additions & 1 deletion src/z3c/configurator/z3c.configurator-configure.zcml

This file was deleted.

0 comments on commit b43d20c

Please sign in to comment.