zc.buildout and zope.conf and parts directory

6 Messages Forum Options Options
Permalink
Sean K
zc.buildout and zope.conf and parts directory
Reply Threaded More
Print post
Permalink
when using zc.buildout Martin mentions in his book not to modify the parts
directory created by buildout.  I need to edit zope.conf and include
external scripts in the extensions directory- how do I do this with
buildout?



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Plone-Users mailing list
Plone-Users@...
https://lists.sourceforge.net/lists/listinfo/plone-users
Donna Snow (SnowWrite)-2
Re: zc.buildout and zope.conf and parts directory
Reply Threaded More
Print post
Permalink
Rather than modifying the zope.conf directly make your changes in buildout.cfg

There is a section called [instance] where you make changes you'd normally make in zope.conf...then rerun buildout

Donna M. Snow

On Sat, Jun 28, 2008 at 4:21 PM, Sean K <sean@...> wrote:
when using zc.buildout Martin mentions in his book not to modify the parts
directory created by buildout.  I need to edit zope.conf and include
external scripts in the extensions directory- how do I do this with
buildout?



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Plone-Users mailing list
Plone-Users@...
https://lists.sourceforge.net/lists/listinfo/plone-users


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Plone-Users mailing list
Plone-Users@...
https://lists.sourceforge.net/lists/listinfo/plone-users
Andreas Jung-5
Re: zc.buildout and zope.conf and parts directory
Reply Threaded More
Print post
Permalink


--On 28. Juni 2008 19:21:03 -0400 Sean K <sean@...> wrote:

> when using zc.buildout Martin mentions in his book not to modify the
> parts  directory created by buildout.  I need to edit zope.conf

Check the zope2instance recipe docs.

>and
> include  external scripts in the extensions directory-

a) Move externals methods inside your own custom product and
   install/uninstall them properly as one would do it using
   GenericSetup or with in your Install.py file (obsolete with GS)

or

b) install your existing scripts as part of a fixup step (last in
   buildout chain) using some recipe performing arbitrary command line
   calls (check PyPI for related recipes - there are roughly five or six
   recipes performing such a task)

-aj

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Plone-Users mailing list
Plone-Users@...
https://lists.sourceforge.net/lists/listinfo/plone-users

attachment0 (201 bytes) Download Attachment
Sean K
Re: zc.buildout and zope.conf and parts directory
Reply Threaded More
Print post
Permalink
I noticed that I do not have an Extensions directory in my custom content
types skin folder.  I am using argouml and archgenxml 2.0 to create the
product for Plone 3.  Previous uses of Archenxml 1.x did create an
Extensions directory
for me automatically with Plone 2.5.

I want to add scripts to the Extensions directory of my product.  How to I
make the products Extensions directory usable if I create one manually on
the file
system?  I think that I need at minimum an Install.py file but I am not sure
what to put in it.



-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Plone-Users mailing list
Plone-Users@...
https://lists.sourceforge.net/lists/listinfo/plone-users
Andreas Jung-5
Re: zc.buildout and zope.conf and parts directory
Reply Threaded More
Print post
Permalink


--On 4. Juli 2008 13:14:08 -0400 Sean K <sean@...> wrote:

> I noticed that I do not have an Extensions directory in my custom content
> types skin folder.

? The Extension is usually located directly under
Products/<yourproduct>/Extensions. It does not long under skins.

> I want to add scripts to the Extensions directory of my product.  How to I
> make the products Extensions directory usable if I create one manually on
> the file
> system?

Usable?

 I think that I need at minimum an Install.py file but I am not
> sure what to put in it.

What is the point with Install.py? Pre-Plone 3.0 products used
to put their installation code inside
Products/<yourproduct>/Extensions/Install.py. You can use
any existing product for Plone 2.x as an example...
In the Plone 3.0 you want to use Generic Setup for most of the tasks.
Refer to the related docs on plone.org.

-aj

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Plone-Users mailing list
Plone-Users@...
https://lists.sourceforge.net/lists/listinfo/plone-users

attachment0 (201 bytes) Download Attachment
Sean K
Re: zc.buildout and zope.conf and parts directory
Reply Threaded More
Print post
Permalink
> I noticed that I do not have an Extensions directory in my custom content
> types skin folder.

? The Extension is usually located directly under
Products/<yourproduct>/Extensions. It does not long under skins.

Sorry, I misspoke here, I meant my products Exntensions directory insteak of
skin.

> I want to add scripts to the Extensions directory of my product.  How to I
> make the products Extensions directory usable if I create one manually on
> the file
> system?

Usable?

Yeah I did not know if it needed something special to make the scripts in it
accessible to plone.  After finding a page explaining it I see that it does
not.   The comments at the bottom of this page basically answered my
question:
http://plone.org/documentation/how-to/create-and-use-an-external-method

1) move the external script to a Products.MyProduct.Extensions directory
which can be created manually and does not need to contain anything other
than the external scripts.

2) edit the external script location through the ZMI to be:
   MyProduct.modulewithexternalmethod





-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Plone-Users mailing list
Plone-Users@...
https://lists.sourceforge.net/lists/listinfo/plone-users