Simone Orsi
Tue, 09 Feb 2010 03:44:53 -0800
Re-hola :) On 02/09/2010 11:48 AM, Diego Purpo wrote: > Signori, buongiorno. > > Sempre alle prime armi su Plone. > > Immagino che sia un argomento già trattato e per questo me ne scuso, > ma vorrei sapere come creo una marker interface? > Ne posso creare una direttamente nel mio tema?
certo. Puoi creare tutte quelle che vuoi esattamente come dichiari tutte
le altre interfacce.
Quando crei un tema con /paster /viene creata proprio una marker
interface per il tuo tema in **MyTheme/browser/interfaces.py:
from plone.theme.interfaces import IDefaultPloneLayer
class IThemeSpecific(IDefaultPloneLayer):
"""Marker interface that defines a Zope 3 skin layer bound to a Skin
Selection in portal_skins.
"""
Dai un occhiata qui ad esempio:
http://maurits.vanrees.org/weblog/archive/2007/06/using-interfaces-in-a-plone-product/
anche questo ti può essere utile:
http://www.plone.it/scopri/documentazione/how-to/Sovrascrivere-i-portlet-in-Plone-3.0/?searchterm=marker%20interface
Spero ti sia d'aiuto.
Ciao,
Simo
_______________________________________________ Plone-IT mailing list Plone-IT@lists.plone.org http://lists.plone.org/mailman/listinfo/plone-it http://www.nabble.com/Plone---Italy-f21728.html