I have somethig like this:<br>interfaces.py<br><br>class IPerson(Interface):<br> """<br> Personal data interface<br> """<br> fullname = schema.TextLine(title=u"Fullname",
<br> description=u"Enter the person fullname",<br> required=True,<br> default=u'',<br> )<br>...
<br><br>class IClient(Interface):<br> """<br> Client of the company<br> """<br> client_type = schema.Choice(title=u"Client type",<br> required=True,<br>
description=u"Select the client type",<br> values=['Bank','Broker','Other'],)<br>...<br clear="all"><br>client.py<br><br>class Client(grok.Container
):<br> implements(IPerson, IClient)<br><br>Thie works fine.<br><br>But I'm trying to use this:<br>in interfaces.py<br>class IClient(IPerson)<br> ...<br>in client.py<br>class Client(grok.Container):<br>
implements(IClient)<br>
<br>but when I try to edit a client instance i get this:<br><br> File "/home/sancho/buildout-eggs/grok-0.10-py2.4.egg/grok/formlib.py", line 18, in success<br> return self.success_handler(self.form, **data)
<br> File "/home/sancho/revoluciones/proyectos/sac/Sac/src/sac/client.py", line 109, in save<br> self.applyData(self,**data)<br> File "/home/sancho/buildout-eggs/grok-0.10-py2.4.egg/grok/components.py", line 424, in applyData
<br> self.adapters, update=True)<br> File "/home/sancho/buildout-eggs/grok-0.10-py2.4.egg/grok/formlib.py", line 139, in apply_data_event<br> changes = apply_data(context, form_fields, data, adapters, update)
<br> File "/home/sancho/buildout-eggs/grok-0.10-py2.4.egg/grok/formlib.py", line 118, in apply_data<br> adapter = interface(context)<br>TypeError: ('Could not adapt', <sac.client.EditClient object at 0x99de3ac>, <InterfaceClass
sac.interfaces.IPerson>)<br><br>help please?<br><br>-- <br>Santiago Videla<br><a href="http://www.revolucionesweb.com.ar">www.revolucionesweb.com.ar</a><br><br>Sigue la mata dando de que hablar siempre abajo y a la izquierda donde el pensamiento que se hace corazón resplandece con la palabra sencilla y humilde que
l@s tod@s somos.