On Tue, 2010-01-19 at 15:33 -0500, Stephan Richter wrote:
> On Tuesday 19 January 2010, Michael Howitz wrote:
> > >>> class AddressGroup(group.Group):
> > >>>    label = 'Address'
> > >>>    fields = field.Fields(zope.schema.TextLine(
> > >>>            __name__ = 'owner',
> > >>>            title='Owner',
> > >>>            readOnly=True)
> > >>>    fields += field.Fields(IAddress).select('street')
> > >>> 
> > >>>    def getContext(self):
> > >>
> > >> 
> > >> Should be "getContent", I think.
> > 
> Yes, probably a typo. the context is already exposed publically via the 
> context attribute, while the content is generally a lookup.
> 
Yes it's a typo, sorry...

sagblmi
> Regards,
> Stephan

_______________________________________________
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )

Reply via email to