[Zope] ZClass inheritance and contained objects (Zope 2.3.0)
Arno Gross
arno.gross@consotec.de
Sun, 11 Feb 2001 09:42:40 -0100
Maybe this is not the most suitable answer,
but in my situation I have a ZClass 'NewsItem' which
inherits from DTMLDocument and has its own property sheet (e.g. property
'abstract') I can access the document_src from a Python Script with
container.document_src() (Don't miss the parentheses, this took some time to
find) and the property with container.abstract.
Arno Gross, arno.gross@consotec.de
On Sat, 10 Feb 2001, Oliver Frommel wrote:
> Hello,
>
> a similar problem as the one with property inheritance I have now with objects
> contained by a ZClass. I add a DTML Method to a ZClass in the Product Manager.
> Is this DTML Method now supposed to show up in the Contents tab of a ZClass
> Instance? At least it doesn't here which I found somehow strange.
> On the other hand if I try to add a DTML Method with the same name (as the one
> added to the ZClass) to the Instance I get an error:
>
> Error Type: Bad Request
> Error Value: The id "text_obj" is invalid--it is already in use.
>
> is this the default behaviour? If yes, how can I make ZClass Instances contain
> certain objects on creation?
>
> thanks
> --Oliver
>
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )