Re: customization

Pierre Lorenzon <[email protected]> Wed, 27 Jun 2007 14:54:35 +0200 (CEST)
Newsgroups gmane.emacs.eieio
Message-ID <[email protected]>
Hi, Sorry !


From: Pierre Lorenzon <[email protected]>
Subject: [cedet-eieio] customization
Date: Tue, 26 Jun 2007 15:27:03 +0200 (CEST)

> 
> Hi 
> 
> I am very interested in using the customizing facilities
> provided by the eieio package. But !
> 
> I defined a class whose only slot is a list which will be
> filled with objects. So the custom type I found the most
> appropriated was (repeat object).

  No !


> 
> ex : (defclass test () ((list :custom (repeat object))))
> 
> Objects are very simple objects in order to test the
> mechanism. When an object is created and customized with
> eieio-customize-object everything goes well : it displays
> correctly as would display any editable-list. It means with the
> ins and del button for each itm. But when trying to click the
> ins button an error occurs ! 
> 
> "No create method specified"
> 
> This error comes from the  eieio-object-value-create
> method. Indeed this method tries to retrieve  :objecttype) or
> or :objectcreatefcn attribute from the newly created child

  Yes and they have to be set in the the type declaration !

> widget. But method widget-editable-list-entry-create in the
> wid-edit library does not set any of this attributes. 
> 
> So what does this mean ? Can't we use the repat type without
> any slight modification ? Do we have to define a slightly
> modified type to handle this creation problem ?
> 
> Once more, if there is something to implement I can try to do
> it but I only want to be sure that it is not something that I
> misunderstood !

  In dded there was something I misunderstood ! 


> 
> Regards
> 
> Pierre

  Regards

  Pierre


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/