Skip to content

Commit

Permalink
Remove unused test object.
Browse files Browse the repository at this point in the history
  • Loading branch information
strichter committed Mar 25, 2009
1 parent 2e52dd0 commit 3444913
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion src/z3c/form/browser/object.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1162,7 +1162,7 @@ Object in an Object situation
We define an interface containing a subobject, and an addform for it:

>>> from z3c.form import form, field
>>> from z3c.form.testing import MyComplexObject, IMyComplexObject
>>> from z3c.form.testing import IMyComplexObject

Note, that creating an object will print some information about it:

Expand Down
5 changes: 0 additions & 5 deletions src/z3c/form/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,6 @@ class IMyComplexObject(zope.interface.Interface):
subobject = zope.schema.Object(title=u'my object', schema=IMySecond)
name = zope.schema.TextLine(title=u'name')

class MyComplexObject(object):
zope.interface.implements(IMyComplexObject)
def __init__(self, name=u'', subobject=None):
self.subobject=subobject
self.name=name

class IMySubObjectMulti(zope.interface.Interface):
foofield = zope.schema.Int(
Expand Down

0 comments on commit 3444913

Please sign in to comment.