webcouturier.dropdownmenu and plone.browserlayer

13 Messages Forum Options Options
Permalink
Erik Myllymaki
webcouturier.dropdownmenu and plone.browserlayer
Reply Threaded More
Print post
Permalink
I found Denis Mishunov's presentaiton slides very informative and I want
to try out his dropdownmenus.


I add these new eggs to buildout.cfg:

eggs =
    plone.browserlayer
    webcouturier.dropdownmenu


after running ./bin/buildout the eggs directory now contains these two
new eggs:

webcouturier.dropdownmenu-1.1-py2.4.egg
plone.browserlayer-1.0rc2-py2.4.egg

I restart:

./bin/instance fg

there are no errors or warnings about these two new packages.

They do not appear in the zmi root under products (or should they?) and
they do not appear as extension profiles in portal_setup of my existing
Plone site.

They also do not appear as optional Extension Profiles when creating a
new Plone site.

Any direction appreciated - thanks.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Plone-Users mailing list
Plone-Users@...
https://lists.sourceforge.net/lists/listinfo/plone-users
Denis Mishunov
Re: webcouturier.dropdownmenu and plone.browserlayer
Reply Threaded More
Print post
Permalink
Hello Erik.

I'm glad you've found my slides informative.
I think you have forgot to add plone.browserlayer and  
webcouturier.dropdownmenu to zcml part of [instance] section like this:

[instance]
....
zcml =
        plone.browserlayer
         webcouturier.dropdownmenu

Try this. I'm sure you will see both extension profiles after  
restarting your Zope.

Good luck!

On Nov 1, 2007, at 7:25 PM, Erik Myllymaki wrote:

> I found Denis Mishunov's presentaiton slides very informative and I  
> want
> to try out his dropdownmenus.
>
>
> I add these new eggs to buildout.cfg:
>
> eggs =
>     plone.browserlayer
>     webcouturier.dropdownmenu
>
>
> after running ./bin/buildout the eggs directory now contains these two
> new eggs:
>
> webcouturier.dropdownmenu-1.1-py2.4.egg
> plone.browserlayer-1.0rc2-py2.4.egg
>
> I restart:
>
> ./bin/instance fg
>
> there are no errors or warnings about these two new packages.
>
> They do not appear in the zmi root under products (or should they?)  
> and
> they do not appear as extension profiles in portal_setup of my  
> existing
> Plone site.
>
> They also do not appear as optional Extension Profiles when creating a
> new Plone site.
>
> Any direction appreciated - thanks.
>
> ----------------------------------------------------------------------
> ---
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a  
> browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Plone-Users mailing list
> Plone-Users@...
> https://lists.sourceforge.net/lists/listinfo/plone-users

------------------------------------------------------------------
Denis Mishunov           denis@...

WEB COUTURIER      www.webcouturier.com
                                         info@...

Web Couturier - making style in Plone themes




-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Plone-Users mailing list
Plone-Users@...
https://lists.sourceforge.net/lists/listinfo/plone-users
Erik Myllymaki
Re: webcouturier.dropdownmenu and plone.browserlayer
Reply Threaded More
Print post
Permalink
Denis Mishunov wrote:
> Hello Erik.
>
> I'm glad you've found my slides informative.
> I think you have forgot to add plone.browserlayer and
> webcouturier.dropdownmenu to zcml part of [instance] section like this:

Thanks Denis - that explains it.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Plone-Users mailing list
Plone-Users@...
https://lists.sourceforge.net/lists/listinfo/plone-users
Martin Aspeli-2
Re: webcouturier.dropdownmenu and plone.browserlayer
Reply Threaded More
Print post
Permalink

Denis Mishunov wrote:
Hello Erik.

I'm glad you've found my slides informative.
I think you have forgot to add plone.browserlayer and  
webcouturier.dropdownmenu to zcml part of [instance] section like this:

[instance]
....
zcml =
        plone.browserlayer
         webcouturier.dropdownmenu

Try this. I'm sure you will see both extension profiles after  
restarting your Zope.
You shouldn't need the plone.browserlayer line here, or under eggs. webcouturier.dropdownmenu should declare this as a dependency in its setup.py and should use an <include package="plone.browserlayer" /> in its configure.zcml - this way, you should only need to add it once to eggs and once to zcml (unless you do it with setup.py/configure.zcml in your own product).

Martin
Denis Mishunov
Re: webcouturier.dropdownmenu and plone.browserlayer
Reply Threaded More
Print post
Permalink
Hi, Martin.

So, webcouturier.dropdownmenu has

install_requires=[
           'setuptools',
           'plone.browserlayer >=1.0b3',
       ],

in setup.py

And it has
<include package="plone.browserlayer" />
in it's configure.zcml.

So, with these people don't need to add plone.browserlayer to their  
buildout.cfg, right? That's cool.

Thanks


On Nov 1, 2007, at 9:55 PM, Martin Aspeli wrote:

>
>
>
> Denis Mishunov wrote:
>>
>> Hello Erik.
>>
>> I'm glad you've found my slides informative.
>> I think you have forgot to add plone.browserlayer and
>> webcouturier.dropdownmenu to zcml part of [instance] section like  
>> this:
>>
>> [instance]
>> ....
>> zcml =
>> plone.browserlayer
>>          webcouturier.dropdownmenu
>>
>> Try this. I'm sure you will see both extension profiles after
>> restarting your Zope.
>>
>
> You shouldn't need the plone.browserlayer line here, or under eggs.
> webcouturier.dropdownmenu should declare this as a dependency in its
> setup.py and should use an <include package="plone.browserlayer" />  
> in its
> configure.zcml - this way, you should only need to add it once to  
> eggs and
> once to zcml (unless you do it with setup.py/configure.zcml in your  
> own
> product).
>
> Martin
> --
> View this message in context: http://www.nabble.com/ 
> webcouturier.dropdownmenu-and-plone.browserlayer-
> tf4732914s6742.html#a13536205
> Sent from the General Questions mailing list archive at Nabble.com.
>
>
> ----------------------------------------------------------------------
> ---
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a  
> browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Plone-Users mailing list
> Plone-Users@...
> https://lists.sourceforge.net/lists/listinfo/plone-users

------------------------------------------------------------------
Denis Mishunov           denis@...

WEB COUTURIER      www.webcouturier.com
                                         info@...

Web Couturier - making style in Plone themes




-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Plone-Users mailing list
Plone-Users@...
https://lists.sourceforge.net/lists/listinfo/plone-users
Martin Aspeli-2
Re: webcouturier.dropdownmenu and plone.browserlayer
Reply Threaded More
Print post
Permalink

Denis Mishunov wrote:
Hi, Martin.

So, webcouturier.dropdownmenu has

install_requires=[
           'setuptools',
           'plone.browserlayer >=1.0b3',
       ],

in setup.py

And it has
<include package="plone.browserlayer" />
in it's configure.zcml.

So, with these people don't need to add plone.browserlayer to their  
buildout.cfg, right? That's cool.
Correct.

Martin
stefan
Re: webcouturier.dropdownmenu and plone.browserlayer
Reply Threaded More
Print post
Permalink
Sorry, I'm a bit of a beginner, so please be patient. I am running Plone using the Unified installer, with the following setup:
    *  Plone 3.1.1
    * CMF 2.1.1
    * Zope (Zope 2.10.5-final, python 2.4.4, linux2)
    * Python 2.4.4 (#1, May 27 2008, 11:57:25) [GCC 4.3.0 20080428 (Red Hat 4.3.0-8)]
    * PIL 1.1.6

I tried installing the Webcouturier drop-down menus but cannot get it to work, I believe I am supposed to apply browserlayer profile in the site's ZMI/portal_setup/Import... however, I have no plone.browserlayer (or similar) to import! I have also tried adding it using the buildout.cfg and see:
      plone.browserlayer-1.0rc2-py2.4.egg
in my eggs directory, but again when I restart Plone I still cannot import it. I have already imported the Dropdown menus through Add/Remove Products but it doesn't work, I presume because I don't have the browser layer support. Also, browser layer support is supposed to be part of Plone 3.1.x so I have no idea why it appears to be missing....
Sergey V.
Re: webcouturier.dropdownmenu and plone.browserlayer
Reply Threaded More
Print post
Permalink

swach wrote:
I have already imported the Dropdown menus through Add/Remove Products but it doesn't work, I presume because I don't have the browser layer support. Also, browser layer support is supposed to be part of Plone 3.1.x so I have no idea why it appears to be missing....
AFAIK, newer versions of browserlayer do all their registrations in zcml, so no profile import needed anyomore (and there is no profile to import, too). And it IS shipped with plone 3.1.x, so the problem must be somewhere else.
stefan
Re: webcouturier.dropdownmenu and plone.browserlayer
Reply Threaded More
Print post
Permalink
Any ideas where to look, Denys Mishunov suggested I would need to import it, but hasn't been able to guide me any further yet....

Sergey V. wrote:
swach wrote:
I have already imported the Dropdown menus through Add/Remove Products but it doesn't work, I presume because I don't have the browser layer support. Also, browser layer support is supposed to be part of Plone 3.1.x so I have no idea why it appears to be missing....
AFAIK, newer versions of browserlayer do all their registrations in zcml, so no profile import needed anyomore (and there is no profile to import, too). And it IS shipped with plone 3.1.x, so the problem must be somewhere else.
grahamperrin-2
Re: webcouturier.dropdownmenu and plone.browserlayer
Reply Threaded More
Print post
Permalink
swach wrote:
I am running Plone using the Unified installer, with the following setup:
    *  Plone 3.1.1



Any ideas where to look, Denys Mishunov suggested I would need to import it, but hasn't been able to guide me any further yet....
For this class of Plone installation, AFAIR you shouldn't need to import anything.

If in your buildout.cfg for 3.1.1 you have
    webcouturier.dropdownmenu
in the eggs and zcml sections,
and if you have run the buildout command,
then in Add/Remove Products you should find something like

> Dropdown menus profile unknown
> Extension profile for dropdown menu
stefan
Re: webcouturier.dropdownmenu and plone.browserlayer
Reply Threaded More
Print post
Permalink
OK, good news and bad news!

I tried adding a new site and selected "Dropdown menus profile" from the following list of Extension Profiles:
   Dropdown menus profile
   Workflow Policy Support
   Working Copy Support
   Open-ID Authentication
   b-org Local role
   NuPlone
, added a few folders, and it WORKS!  

Now the Webcouturier instructions at http://plone.org/products/webcouturier-dropdownmenu state:
    * if you want to add dropdown menus functionality to already-existing Plone site, you need to apply Local browser layer support extension profile and then Dropdown menus profile. You can do it either in portal_setup/Import or in portal_quickinstaller by simple installation procedure.
    * In Plone 3.1 you can simply install Dropdown menus profile in portal_quickinstaller without need of prior installation of Local browser layer support.

IMPORTANT For Plone 3.0.x you should use plone.browserlayer 1.0.rc3. Be sure to define the right version of plone.browserlayer in your buildout.cfg (you are using buildout, aren't you? ;)). For Plone 3.1.x just use the most recent one, shipped with Plone.

Since I have Plone 3.1.x all I tried doing was adding the Dropdown Menus profile using the portal_quickinstaller, that didn't work, then I tried adding the plone.browserlayer in my buildout.cfg and it still didn't work (could it have placed an older plone.browserlayer in my Plone and that caused the problem ... it placed plone.browserlayer-1.0rc2-py2.4.egg in my eggs directory) but I don't think that is the problem because I would never have done it if it worked after adding the Dropdown menu support.

I checked under the portal quickinstaller for my site and it states the following:
 Plone QuickInstaller Tool at  /ultralloy/portal_quickinstaller
Installable Products
       
 
        Product Name Version
        Workflow Policy Support (CMFPlacefulWorkflow) 1.3.1
        Marshall 1.0.0
        NuPlone trunk
        Working Copy Support (Iterate) 1.1.0
        OpenID Authentication Support 1.1
                       
Installed Products
        Product Version at Install time Product version
        PloneKeywordManager 1.5-alpha1 1.5-alpha1
        Dropdown menus profile unknown unknown

So, it works for new sites but not for existing... any recommendations how to fault find?

grahamperrin wrote:
swach wrote:
I am running Plone using the Unified installer, with the following setup:
    *  Plone 3.1.1



Any ideas where to look, Denys Mishunov suggested I would need to import it, but hasn't been able to guide me any further yet....
For this class of Plone installation, AFAIR you shouldn't need to import anything.

If in your buildout.cfg for 3.1.1 you have
    webcouturier.dropdownmenu
in the eggs and zcml sections,
and if you have run the buildout command,
then in Add/Remove Products you should find something like

> Dropdown menus profile unknown
> Extension profile for dropdown menu
stefan
Re: webcouturier.dropdownmenu and plone.browserlayer
Reply Threaded More
Print post
Permalink
Sorry, another thing. Interesting is that when I first installed dropdown menus on my old site I noticed the tabs suddenly looked odd (see below) (i.e. colours merged and not crisp)



With the new site added where the dropdowns work it looks as it does when I remove dropdowns from my old site and as it originally looked (see below) (i.e. no blue between the tabs...)




OK, good news and bad news!

I tried adding a new site and selected "Dropdown menus profile" from the following list of Extension Profiles:
   Dropdown menus profile
   Workflow Policy Support
   Working Copy Support
   Open-ID Authentication
   b-org Local role
   NuPlone
, added a few folders, and it WORKS!  

Now the Webcouturier instructions at http://plone.org/products/webcouturier-dropdownmenu state:
    * if you want to add dropdown menus functionality to already-existing Plone site, you need to apply Local browser layer support extension profile and then Dropdown menus profile. You can do it either in portal_setup/Import or in portal_quickinstaller by simple installation procedure.
    * In Plone 3.1 you can simply install Dropdown menus profile in portal_quickinstaller without need of prior installation of Local browser layer support.

IMPORTANT For Plone 3.0.x you should use plone.browserlayer 1.0.rc3. Be sure to define the right version of plone.browserlayer in your buildout.cfg (you are using buildout, aren't you? ;)). For Plone 3.1.x just use the most recent one, shipped with Plone.

Since I have Plone 3.1.x all I tried doing was adding the Dropdown Menus profile using the portal_quickinstaller, that didn't work, then I tried adding the plone.browserlayer in my buildout.cfg and it still didn't work (could it have placed an older plone.browserlayer in my Plone and that caused the problem ... it placed plone.browserlayer-1.0rc2-py2.4.egg in my eggs directory) but I don't think that is the problem because I would never have done it if it worked after adding the Dropdown menu support.

I checked under the portal quickinstaller for my site and it states the following:
 Plone QuickInstaller Tool at  /ultralloy/portal_quickinstaller
Installable Products
       
 
        Product Name Version
        Workflow Policy Support (CMFPlacefulWorkflow) 1.3.1
        Marshall 1.0.0
        NuPlone trunk
        Working Copy Support (Iterate) 1.1.0
        OpenID Authentication Support 1.1
                       
Installed Products
        Product Version at Install time Product version
        PloneKeywordManager 1.5-alpha1 1.5-alpha1
        Dropdown menus profile unknown unknown

So, it works for new sites but not for existing... any recommendations how to fault find?

grahamperrin wrote:
swach wrote:
I am running Plone using the Unified installer, with the following setup:
    *  Plone 3.1.1



Any ideas where to look, Denys Mishunov suggested I would need to import it, but hasn't been able to guide me any further yet....
For this class of Plone installation, AFAIR you shouldn't need to import anything.

If in your buildout.cfg for 3.1.1 you have
    webcouturier.dropdownmenu
in the eggs and zcml sections,
and if you have run the buildout command,
then in Add/Remove Products you should find something like

> Dropdown menus profile unknown
> Extension profile for dropdown menu

stefan
Re: webcouturier.dropdownmenu and plone.browserlayer
Reply Threaded More
Print post
Permalink
OK, there doesn't seem to be any advice on getting the dropdown menu's to work on an existing site... so, what would be the best way to move the whole site to a new site and yet keep all the data and URL's the same?