Adding a my own portlet manager
julien.63
julien.63 at FREE.FR
Mon Sep 24 12:23:36 UTC 2007
<
Martin Aspeli wrote:
>
> <julien.63 wrote:
>>> Hi,
>>> Based on this tutorial
>>> http://plone.org/documentation/how-to/adding-portlet-managers/view?searchterm=portlet
>>>http://plone.org/documentation/how-to/adding-portlet-managers/view?searchterm=portlet
>>> ,I'm trying to add my own portlet in my own portlet manager in my own
>>> view.
>>> I have a problem with the portlet manager.
>>> The server restart normally but I have the following error message when
>>> refreshing the page :
>>>
>>> ContentProviderLookupError: LastPublicationPortletManager
>>
>>That suggests the portlet manager local utility has not been registered;
>>
>>> It's comes from this file, which is my viewlet (in
>>> {myProduct}/browser/template/sancy.pt)
>>> <div style="background-color:#7E7C7C; color:white; height:100px;
>>> margin-top:10px; width:100%;">
>>> <tal:block replace="structure provider:LastPublicationPortletManager"
>>> />
>>> </div>
>>>
>>> It's sounds like it could not find the porlet manager. If I comment the
>>> tal
>>> tag, then it works fine (I mean, the viewlet is displayed without any
>>> errors...)
>>> I've defined the portlet manager like this:
>>> in {myProduct}/browser/interfaces.py
>>> from plone.portlets.interfaces import IPortletManager
>>> class ILastPublicationContent(IPortletManager):
>>> """we need our own portlet manager for last publication.
>>> """
>>>
>>> in {myProduct}/profiles/default/portlets.xml
>>> <?xml version="1.0"?>
>>> <portlets>
>>> <portletmanager
>>> name="LastPublicationPortletManager"
>>>
>>This shouldn't matter at all, but as a matter of convention the name of
>>the manager should correspond to the name of your product, e.g.
>>lecastyle.LastPublication. This minimises the risk of conflict with
>>other products.
>>>
>>> type="Products.LECAStyle.browser.interfaces.ILastPublicationContent"
>>> />
>>
>>I assume there's a </portlets> here as well... otherwise, this looks
>>right to me.
>>
>>> Am I missing something to get the portlet manager ?
>>
>>Did you install the GS profile/product? Were there any errors? Try to
>>install just that step from your profile in portal_setup and watch for
>>errors.
>
> Hi Martin,
> thanks for your help.
>
> Concerning the generic setup, I've just put this :
>
> <genericsetup:registerProfile
> name="default"
> title="LECAStyle"
> directory="profiles/default"
> description="Extension profile for LECAStyle."
> provides="Products.GenericSetup.interfaces.EXTENSION"
> />
>
> in {myProduct}/configure.zcml
>
> I didn't do anything else, so I assume it's not installed, right?
>
> In the profile tab of the portal setup of my plone instance, the drop down
> menu has only four possibilities:
> * CMFDefault Site
> * Site Plone
> * Simple PAS content profile
> * Empty PAS content profile
>
> Is my product supposed to appear in this menu?
>
> Julien
>
>>
>>Martin
>>
>>--
>>Acquisition is a jealous mistress
>
>
> _______________________________________________
> Product-Developers mailing list
> Product-Developers at lists.plone.org
> http://lists.plone.org/mailman/listinfo/product-developers
>
>
--
View this message in context: http://www.nabble.com/Adding-a-my-own-portlet-manager-tf4493310s20094.html#a12858781
Sent from the Product Developers mailing list archive at Nabble.com.
More information about the Product-Developers
mailing list