[BlueBream] seeking clarifications in zope.container

Baiju M baiju.m.mail at gmail.com
Mon Oct 11 08:19:49 EDT 2010


Remember the fate of class advisors in Python 3:
http://www.mail-archive.com/zope-dev@zope.org/msg34250.html

So, a decorator based syntax would be better.
Yes, this is true for 'implements', 'adapts' etc.

Regards,
Baiju M

On Mon, Oct 11, 2010 at 5:47 PM, Adam GROSZER <agroszer at gmail.com> wrote:
> Hello Joshua,
>
> If you decrypt ;-) zope.container.constraints.[contains and containers]
> they just do the same.
> I prefer zope.container.constraints.[contains and containers], they're
> more concise and readble.
>
> Monday, October 11, 2010, 2:09:34 PM, you wrote:
>
> JI> Hello all,
> JI>         I am new to bluebream and I find it hard to get the entire picture just
> JI> by reading the documentation at
> JI> http://bluebream.zope.org/doc/1.0/index.html so I was going through
> JI> documentation of individual libraries at pypi.python.org. Some libraries
> JI> don't have any documentation (eg. zope.publisher) making my learning
> JI> curve even more difficult.
> JI>         Anyways coming to the point when I was reading the documentation for
> JI> zope.container in pypi, the method mentioned there to express
> JI> restrictions on containers and contained items was using
> JI> zope.container.constraints.[contains and containers] but the Tutorial 2
> JI> of bluebream teaches me to add a __setitem__ method to ICollector then
> JI> to use ItemTypePrecondition and ContainerTypeConstraint.
>
> JI>         Which one should I follow? Am I missing some thing? Please excuse my
> JI> ignorance if my question sounds too novice.
>
> JI> Thank you
>
>
> --
> Best regards,
>  Adam GROSZER                            mailto:agroszer at gmail.com
> --
> Quote of the day:
> Vique's Law: A man without religion is like a fish without a bicycle.
>
> _______________________________________________
> bluebream mailing list
> bluebream at zope.org
> https://mail.zope.org/mailman/listinfo/bluebream
>


More information about the bluebream mailing list