Re: [Zope-dev] how to access propertiesheets of a base ZClass

2000-12-03 Thread Jim Washington

Hi, Joachim

I just answered almost the same thing on the zope list, so it's fresh in
memory.

Joachim Schmitz wrote:
> 
> in a derived ZClass
> 
> I created a ZClass Field
> 
> with a propersheet Basic with some Properties like:
> 
> name,title,type,order and so on.
> I defined also a new view for this Basic Propertysheet FieldBasic.
> 
> Now I defined an IntField ZClass with the Field as baseclass, and wanted to
> access and set for example the type-property. But in my new ZClass I don't
> have a FieldBasic management tab.
> 
> If I create a new instance of Field I get the FieldBasic tab.
> any enlightment to this is welcome.

Good.  You created the view in the base class.  This was important.

Click the Views tab in your IntField ZClass.  There should be something
called propertysheets/Basic/manage in the Method select list.  It came
from the Field class.  Use it.  You may name it "FieldBasic" if you
wish.

Regards,

-- Jim Washington

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] how to access propertiesheets of a base ZClass

2000-12-03 Thread Steve Spicklemire


Hi Joachim,

   You want to initialize the value of a property that is inherited
from a base class to some constant value? I think you'll need to do
that in the constructor.

   e.g.,  

in the IntField_add method, inside the





tags...

-steve

> "Joachim" == Joachim Schmitz <[EMAIL PROTECTED]> writes:

Joachim> in a derived ZClass

Joachim> I created a ZClass Field

Joachim> with a propersheet Basic with some Properties like:

Joachim> name,title,type,order and so on.  I defined also a new
Joachim> view for this Basic Propertysheet FieldBasic.

Joachim> Now I defined an IntField ZClass with the Field as
Joachim> baseclass, and wanted to access and set for example the
Joachim> type-property. But in my new ZClass I don't have a
Joachim> FieldBasic management tab.

Joachim> If I create a new instance of Field I get the FieldBasic
Joachim> tab.  any enlightment to this is welcome.


Joachim> Mit freundlichen Grüßen

Joachim> Joachim Schmitz

  
Joachim> AixtraWare, Ing. Büro für Internetanwendungen
Joachim> Hüsgenstr. 33a, D-52457 Aldenhoven Telefon:
Joachim> +49-2464-8851, FAX: +49-2464-905163


Joachim> ___ Zope-Dev
Joachim> maillist - [EMAIL PROTECTED]
Joachim> http://lists.zope.org/mailman/listinfo/zope-dev ** No
Joachim> cross posts or HTML encoding!  ** (Related lists -
Joachim> http://lists.zope.org/mailman/listinfo/zope-announce
Joachim> http://lists.zope.org/mailman/listinfo/zope )


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] how to access propertiesheets of a base ZClass

2000-12-03 Thread Joachim Schmitz

in a derived ZClass

I created a ZClass Field

with a propersheet Basic with some Properties like:

name,title,type,order and so on.
I defined also a new view for this Basic Propertysheet FieldBasic.

Now I defined an IntField ZClass with the Field as baseclass, and wanted to
access and set for example the type-property. But in my new ZClass I don't
have a FieldBasic management tab.

If I create a new instance of Field I get the FieldBasic tab.
any enlightment to this is welcome.


Mit freundlichen Grüßen

Joachim Schmitz  

  
AixtraWare, Ing. Büro für Internetanwendungen
Hüsgenstr. 33a, D-52457 Aldenhoven  
Telefon: +49-2464-8851, FAX: +49-2464-905163


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )