[Plone-IT] Customizzare News Item per singola istanza Plone

Giorgio Pieretti giorgio.pieretti a openprojects.it
Ven 8 Feb 2013 09:32:44 UTC


Hai ragione :)
piazzando un bel:

for="mio.prodotto.interfaces.IMioLayer"

si risolve.
- 1 :)

Il 08/02/2013 10:08, Luca Fabbri ha scritto:
> 2013/2/8 Giorgio Pieretti <giorgio.pieretti a openprojects.it>:
>> Ottima idea, provato, non cambia nulla :(
>> INOLTRE ho individuato un altro problema: nel caso in cui i prodotti che
>> usano archetypes.schemaextender su uno stesso portal_type (in questo
>> caso News Item) dovessero essere più di uno, si genera un errore alla
>> partenza di Plone:
>>
>>  raise ConfigurationConflictError(conflicts)
>> zope.configuration.config.ConfigurationConflictError: Conflicting
>> configuration actions
>>   For: ('adapter', (<InterfaceClass
>> Products.ATContentTypes.interfaces.news.IATNewsItem>,), <InterfaceClass
>> archetypes.schemaextender.interfaces.ISchemaExtender>, '')
>>
>> In pratica, posso usare archetypes.schemaextender solo su UN portal_type
>> in UNA specifica Plone istance :( :(
>> Me ne sono accorto quando nel buildout avevo abilitato il mio prodotto +
>> test.extender
>> Mi sa che l'idea della collective.contentrules.talesaction potrebbe
>> essere vincente...
>> PER ora risolverò creando un nuovo oggetto ed ereditando, sennò sto
>> lavoro non lo finisco mai più :) ma alla prossima Plone istance tenterò
>> la strada della talesaction...
>> GRAZIE A TUTTI PER L'AIUTO! :)
>>
> No, questo è un problema noto, devi creare dei named adapter (è
> scritto anche nella documentazione del pacchetto).
>
>

-- 
--
Ing. Giorgio Pieretti
Web & Apps developer
giorgio.pieretti a openprojects.it

OPENPROJECTS di Giorgio Pieretti
via Mameli 33/E
34015 - Muggia (TS)
Cell  +39 338 3579793
Tel   +39 040 9278161
Fax   +39 040 9890519
http://www.openprojects.it


------------------------------------------------------------------
The information in this email is confidential and is intended
solely for the addressee(s). Access to this email by anyone
else is unauthorised. If you are not an intended recipient,
you must not read, use or disseminate the information
contained in the email. Any views expressed in this message
are those of the individual sender, except where the sender
specifically states them to be the views of Openprojects di 
Giorgio Pieretti



Maggiori informazioni sulla lista Plone-IT