Hi!

On 2014-08-23, Vincent Delecroix <20100.delecr...@gmail.com> wrote:
> You must bypass the element_class.
>
> 1) Convert your base classes to categorized classes using something along
>
> Parent P:
>     def ___init__(self):
>         self.element_class_A = self.__make_element_class__(MyElementA)
>         self.element_class_B = self.__make_element_class__(MyElementB)

Just for clarification: These two lines should not be at the *beginning
of __init__, as it is required that the category of self has already
been established. Note that self.element_class is a lazy attribute. So,
it may be a reasonable idea to turn self.element_class_A and
self.element_class_B into lazy attributes, too.

Best regards,
Simon

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to