Re: RFC: schema by interface
whit <whit-UE+B0n23d/[email protected]> Tue, 02 May 2006 16:55:37 -0500
| Newsgroups | gmane.comp.web.zope.plone.archetypes.devel |
|---|---|
| Message-ID | <[email protected]> |
Martin Aspeli wrote: <snip> > Whit, how do you feel about pushing this for Plone 3.0? What are the risks? > I'm assuming it works pretty seamlessly with storage, validation etc. currently, the schema returned is exactly the same as before. I want to clean this up to use a function rather than a class. > The main risk I could see would be that if people are being Bad (tm) and > accessing the schema via instance.schema instead of instance.Schema(), > they'll only get the on-type schema, not the whole enchilada. if you access the schema directly, the results will be the same as now (implicit wrapping wad of objects). This only really become an issue later when the schema is not stored on the object. Replacing schema with a property is one way around this and *maybe* actually deprecating obj.Schema() over several releases might result in a slightly cleaner api. I'm not sure > that matters a great deal, though - we'll obviously make sure nothing in AT > or ATCT do that. > > /me is excited > nice! -w ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642