[Zope3-Users] Where has "validateMapping" gone ?

Stephan Richter srichter at cosmos.phy.tufts.edu
Fri Mar 4 06:17:14 EST 2005


On Thursday 24 February 2005 22:10, Sakesun Roykiattisak wrote:
> "zope.schema.validateMapping" was mentioned several times in
> "zope/schema/README.txt"
>
>     $ python
>     >>> class Bookmark:
>     ...     def __init__(self, url):
>     ...         self.url = url
>     ...
>     >>> from zope.schema import TextLine, validateMapping
>     >>> from zope.interface import Interface
>     >>> class IBookmark(Interface):
>     ...     url = TextLine(title=u'url of the bookmark')
>     ...
>     ...
>     >>> obj = Bookmark(u'zope website', u'http://www.zope.org',
>     ...                keywords=('web', 'python'))
>     >>> validateMapping(IBookmark, obj.__dict__)
>
>
>
> But I cannot find "validateMapping" anywhere besides README.txt. Where
> has it gone ?

This README.txt is totally outdated. :-( It is not a doctest, so noone ever 
bothered fixing the documentation, when the API changed, probably a long time 
ago.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training


More information about the Zope3-users mailing list