Skip to content

Commit

Permalink
- updated tests after zope refactoring
Browse files Browse the repository at this point in the history
Huh!
Getting distribution for 'zc.sourcefactory'.
Got zc.sourcefactory 0.3.5.

My buildout is pulling zc.sourcefactory 0.3.5 from pypi
but the latest version is 0.4.0. This version still
depends on zope.app.form.browser.interfaces.ITerms and
raises a ITerms deprecation warning.
I can't find out why, I do not see any fixed version in buildout.cfg

Any hints?
  • Loading branch information
projekt01 committed Feb 2, 2009
1 parent 09fd919 commit a72de71
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
19 changes: 10 additions & 9 deletions src/z3c/form/browser/object.txt
Expand Up @@ -565,12 +565,13 @@ Let's see our event log:
4

>>> printEvents()
<zope.app.event.objectevent.ObjectCreatedEvent object at ...>
<zope.app.event.objectevent.ObjectModifiedEvent object at ...>
<zope.lifecycleevent.ObjectCreatedEvent object at ...>
<zope.lifecycleevent.ObjectModifiedEvent object at ...>
<InterfaceClass z3c.form.testing.IMySubObject>
('foofield', 'barfield')
<zope.app.event.objectevent.ObjectCreatedEvent object at ...>
<zope.app.container.contained.ContainerModifiedEvent object at ...>
<zope.lifecycleevent.ObjectCreatedEvent object at ...>
<zope.container.contained.ContainerModifiedEvent object at ...>


>>> eventlog=[]

Expand Down Expand Up @@ -664,13 +665,14 @@ Let's see our event log:
2

>>> printEvents()
<zope.app.event.objectevent.ObjectModifiedEvent object at ...>
<zope.lifecycleevent.ObjectModifiedEvent object at ...>
<InterfaceClass z3c.form.testing.IMySubObject>
('foofield', 'barfield')
<zope.app.event.objectevent.ObjectModifiedEvent object at ...>
<zope.lifecycleevent.ObjectModifiedEvent object at ...>
<InterfaceClass z3c.form.testing.IMyObject>
('subobject',)


>>> eventlog=[]


Expand Down Expand Up @@ -1147,15 +1149,14 @@ Until updating the form:
>>> len(eventlog)
2
>>> printEvents()
<zope.app.event.objectevent.ObjectModifiedEvent object at ...>
<zope.lifecycleevent.ObjectModifiedEvent object at ...>
<InterfaceClass z3c.form.testing.IMySubObject>
('foofield', 'barfield')
<zope.app.event.objectevent.ObjectModifiedEvent object at ...>
<zope.lifecycleevent.ObjectModifiedEvent object at ...>
<InterfaceClass z3c.form.testing.IMyObject>
('subobject', 'name')



Object in an Object situation
=============================

Expand Down
2 changes: 1 addition & 1 deletion src/z3c/form/form.txt
Expand Up @@ -905,7 +905,7 @@ We can now look at the event:

>>> event = eventlog[-1]
>>> event
<zope.app.event.objectevent.ObjectModifiedEvent object at ...>
<zope.lifecycleevent.ObjectModifiedEvent object at ...>

>>> attrs = event.descriptions[0]
>>> attrs.interface
Expand Down
2 changes: 1 addition & 1 deletion src/z3c/form/group.txt
Expand Up @@ -445,7 +445,7 @@ Let's look at the event:

>>> event = eventlog[-1]
>>> event
<zope.app.event.objectevent.ObjectModifiedEvent object at ...>
<zope.lifecycleevent.ObjectModifiedEvent object at ...>

The event's description contains the changed Interface and the names of
all changed fields, even if they where in different groups:
Expand Down

0 comments on commit a72de71

Please sign in to comment.