Simple extension policy product doesn't show in Products

6 messages Options
Embed this post
Permalink
rcecil () Simple extension policy product doesn't show in Products
Reply Threaded More More options
Print post
Permalink
Hello,

I'm trying to follow Aspeli, pp 69-71, where he describes the initial creation of a policy product  using

paster create -t plone optilux.policy

I have tried the same using a fresh plone site (created via paster create -t plone3_buildout...). I named my policy product "me.test" (created in the src folder obviously).

I edited my buildout.cfg to add "me.test" under "eggs", "src/me.test" under "develop" and "me.test" under [instance] zcml, and then rerun buildout.

See: http://paste.plone.org/28645

I can go into bin/zopepy, and run

"from me import test"

and I get no errors.

When I restart plone/zope, the product doesn't show in Control_Panel under Add-On Products though.

Any ideas?

Contents of src/me.test: http://paste.plone.org/28646

Contents of src/me.test/me/test/configure.zcml: http://paste.plone.org/28647

Martin Aspeli () Re: Simple extension policy product doesn't show in Products
Reply Threaded More More options
Print post
Permalink
rcecil wrote:

> Hello,
>
> I'm trying to follow Aspeli, pp 69-71, where he describes the initial
> creation of a policy product  using
>
> paster create -t plone optilux.policy
>
> I have tried the same using a fresh plone site (created via paster create -t
> plone3_buildout...). I named my policy product "me.test" (created in the src
> folder obviously).
>
> I edited my buildout.cfg to add "me.test" under "eggs", "src/me.test" under
> "develop" and "me.test" under [instance] zcml, and then rerun buildout.
>
> See: http://paste.plone.org/28645
>
> I can go into bin/zopepy, and run
>
> "from me import test"
>
> and I get no errors.
>
> When I restart plone/zope, the product doesn't show in Control_Panel under
> Add-On Products though.

It shouldn't, necessarily. It'll only do that if it has a
<five:registerPackage />, but those are largely unnecessary these days.

If you can import it like you said, you're good to go.

Martin


--
Author of `Professional Plone Development`, a book for developers who
want to work with Plone. See http://martinaspeli.net/plone-book


_______________________________________________
Product-Developers mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/product-developers
rcecil () Re: Simple extension policy product doesn't show in Products
Reply Threaded More More options
Print post
Permalink
Hi Martin,

I did paste the "me/test/configure.zcml" which as the <five:registerPackage /> in it. Shouldn't that have worked?

http://paste.plone.org/28647

Thanks!

Martin Aspeli wrote:
rcecil wrote:
> Hello,
>
> I'm trying to follow Aspeli, pp 69-71, where he describes the initial
> creation of a policy product  using
>
> paster create -t plone optilux.policy
>
> I have tried the same using a fresh plone site (created via paster create -t
> plone3_buildout...). I named my policy product "me.test" (created in the src
> folder obviously).
>
> I edited my buildout.cfg to add "me.test" under "eggs", "src/me.test" under
> "develop" and "me.test" under [instance] zcml, and then rerun buildout.
>
> See: http://paste.plone.org/28645
>
> I can go into bin/zopepy, and run
>
> "from me import test"
>
> and I get no errors.
>
> When I restart plone/zope, the product doesn't show in Control_Panel under
> Add-On Products though.

It shouldn't, necessarily. It'll only do that if it has a
<five:registerPackage />, but those are largely unnecessary these days.

If you can import it like you said, you're good to go.

Martin


--
Author of `Professional Plone Development`, a book for developers who
want to work with Plone. See http://martinaspeli.net/plone-book


_______________________________________________
Product-Developers mailing list
Product-Developers@lists.plone.org
http://lists.plone.org/mailman/listinfo/product-developers
Maurits van Rees-3 () Re: Simple extension policy product doesn't show in Products
Reply Threaded More More options
Print post
Permalink
In reply to this post by rcecil
rcecil, on 2009-06-23:
>
> Hello,
>
> I'm trying to follow Aspeli, pp 69-71, where he describes the initial
> creation of a policy product  using
>
> paster create -t plone optilux.policy

I run into problems when I execute this literally and then actually
call the package me.test: there are several spots in the generated
that point to optilux.policy.  I would just do:

  paster create -t plone

> I have tried the same using a fresh plone site (created via paster create -t
> plone3_buildout...). I named my policy product "me.test" (created in the src
> folder obviously).
>
> I edited my buildout.cfg to add "me.test" under "eggs", "src/me.test" under
> "develop" and "me.test" under [instance] zcml, and then rerun buildout.
>
> See: http://paste.plone.org/28645
>
> I can go into bin/zopepy, and run
>
> "from me import test"
>
> and I get no errors.
>
> When I restart plone/zope, the product doesn't show in Control_Panel under
> Add-On Products though.

Do you mean the Zope Control Panel or the Plone control panel (site
setup)?  I assume the Zope one, so the Products url would be
http://localhost:8080/Control_Panel/Products/manage_main

Is that the one you mean?

If yes, then it works fine for me when I try it.

Do you get any errors when starting the instance on the foreground,
so with 'bin/instance fg'?  The normal 'bin/instance start' can
continue when faced with errors that on the foreground would quit the
process.  The jury is still out on whether that is a feature or a
bug... ;-)

> Any ideas?
>
> Contents of src/me.test: http://paste.plone.org/28646
>
> Contents of src/me.test/me/test/configure.zcml: http://paste.plone.org/28647

Both seem fine.

--
Maurits van Rees | http://maurits.vanrees.org/
            Work | http://zestsoftware.nl/
"This is your day, don't let them take it away." [Barlow Girl]


_______________________________________________
Product-Developers mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/product-developers
rcecil () Re: Simple extension policy product doesn't show in Products
Reply Threaded More More options
Print post
Permalink
Hi Maurits,

Thanks for the help.  Indeed what I was referring to was portal_quickinstaller, at the Plone instance, not the Products in the Zope root control panel. I'm not clear at this point why it shows up in the latter and not the former. What defines what shows up in the Plone site?

Thanks


Maurits van Rees-3 wrote:
rcecil, on 2009-06-23:
>
> Hello,
>
> I'm trying to follow Aspeli, pp 69-71, where he describes the initial
> creation of a policy product  using
>
> paster create -t plone optilux.policy

I run into problems when I execute this literally and then actually
call the package me.test: there are several spots in the generated
that point to optilux.policy.  I would just do:

  paster create -t plone

> I have tried the same using a fresh plone site (created via paster create -t
> plone3_buildout...). I named my policy product "me.test" (created in the src
> folder obviously).
>
> I edited my buildout.cfg to add "me.test" under "eggs", "src/me.test" under
> "develop" and "me.test" under [instance] zcml, and then rerun buildout.
>
> See: http://paste.plone.org/28645
>
> I can go into bin/zopepy, and run
>
> "from me import test"
>
> and I get no errors.
>
> When I restart plone/zope, the product doesn't show in Control_Panel under
> Add-On Products though.

Do you mean the Zope Control Panel or the Plone control panel (site
setup)?  I assume the Zope one, so the Products url would be
http://localhost:8080/Control_Panel/Products/manage_main

Is that the one you mean?

If yes, then it works fine for me when I try it.

Do you get any errors when starting the instance on the foreground,
so with 'bin/instance fg'?  The normal 'bin/instance start' can
continue when faced with errors that on the foreground would quit the
process.  The jury is still out on whether that is a feature or a
bug... ;-)

> Any ideas?
>
> Contents of src/me.test: http://paste.plone.org/28646
>
> Contents of src/me.test/me/test/configure.zcml: http://paste.plone.org/28647

Both seem fine.

--
Maurits van Rees | http://maurits.vanrees.org/
            Work | http://zestsoftware.nl/
"This is your day, don't let them take it away." [Barlow Girl]


_______________________________________________
Product-Developers mailing list
Product-Developers@lists.plone.org
http://lists.plone.org/mailman/listinfo/product-developers
Maurits van Rees-3 () Re: Simple extension policy product doesn't show in Products
Reply Threaded More More options
Print post
Permalink
rcecil, on 2009-06-24:
>
> Hi Maurits,
>
> Thanks for the help.  Indeed what I was referring to was
> portal_quickinstaller, at the Plone instance, not the Products in the Zope
> root control panel. I'm not clear at this point why it shows up in the
> latter and not the former. What defines what shows up in the Plone site?

Only products that have installation code are listed in the
portal_quickinstaller.  Practically speaking: you need a GenericSetup
profile.  There should be a chapter in Martin's book that talks about
those.

There is hardly anything in your code yet, so there is also nothing
that needs installing yet.

--
Maurits van Rees | http://maurits.vanrees.org/
            Work | http://zestsoftware.nl/
"This is your day, don't let them take it away." [Barlow Girl]


_______________________________________________
Product-Developers mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/product-developers