[Grok-dev] Annotations Documentation
Paul Wilson
paulalexwilson at gmail.com
Sun Jan 18 11:35:39 EST 2009
2008/12/11 Martijn Faassen <faassen at startifact.com>:
> Paul Wilson wrote:
>> Confused: at http://grok.zope.org/doc/current/reference/components.html#grok-annotation,
>> should the last 2 lines read:
>>
>> livestock1.unique = 101
>> livestock2.unique = 102
>>
>> ??
>>
>> (Also, I think class ``Branding`` should have an attribute "unique"
>> rather than "unqiue"....)
>
> Good catch. Sebastian is right that anything else can be persisted, but
> I still class that as a typo.
>
> I've fixed this in SVN, thanks!
Also, in the annotations documentation:
class ISerialBrand(interface.Interface):
unique = interface.Attribute("Brands")
class Branding(grok.Annotation):
grok.implements(IBranding)
unique = 0
Shouldn't ``Branding`` be implementing ``ISerialBrand`` rather than
``IBranding``?
Cheers,
Paul
More information about the Grok-dev
mailing list