Re: [Zope3-Users] Multi platform dev environment

2009-06-02 Thread Shailesh Kumar
Hi Edward,
Philipp's book (2nd edition which I use) is written with Zope 3.3 in mind.
This was released few years ago. Since then, there has been quite a lot of
evolution in terms of how zope 3 is organized, how instances are created
etc.
- People now use zc.buildout commonly for creating instances and
distributing applications.
-  zopeproject is one recipe for zc.buildout way of doing things.
- People in the zope 3 development community are generally using
zc.buildout
- zopeproject based buildouts I believe can be distributed in its entirety.
They contain all the eggs necessary for your application.

I for myself, have continued to stick with the Zope 3.3.1 for this long as
Philipp's book covered it in quite detail and migrating to the newer ways of
organizing applications would require some work.

For more information about buildout, please visit http://www.buildout.org/


With regards,
- Shailesh




On Tue, Jun 2, 2009 at 6:12 AM, Edward Zwart ed.zw...@softserv.ca wrote:

 On Sat, May 30, 2009 at 12:00 AM, Shailesh Kumar shaile...@gmail.com
 wrote:
  Web component development with Zope 3 by Philipp von Weitershausen has
 been
  my best resource on zope 3 developement all these years. Find more about
  this book at : http://worldcookery.com/About

 Thanks Shailesh, I'm reading this book now actually!  I'm following
 along, and see where I was confused before.  I had inherited an
 instance created with zopeproject
 (http://pypi.python.org/pypi/zopeproject).  When I follow
 Weitershausen, I use mkzopeinstance, and get the following directory
 structure in the instance folder:

 bin/
 etc/
 lib/
 log/
 var/

 But running zopeproject produces:

 .installed.cfg
 apidoc.zcml
 bin/
 buildout.cfg
 debug.ini
 deploy.ini
 develop-eggs/
 log/
 parts/
 setup.py
 site.zcml
 src/
 var/
 zdaemon.conf
 zope.conf

 setup.py is a new config file, and site.zcml and zope.conf are in the
 root directory now instead of etc.

 Weitershausen deals with setup.py in the last chapter (of the 3rd
 edition anyway) when talking about distribution, and he mentions a
 layout similar to this.  But zopeproject seems to be the way to get
 started not the way to distribute... so I'm confused again.

 Can anyone explain the difference of these layouts/approaches to me?
 Much appreciated!

 e.

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Multi platform dev environment

2009-06-01 Thread Edward Zwart
On Sat, May 30, 2009 at 12:00 AM, Shailesh Kumar shaile...@gmail.com wrote:
 Web component development with Zope 3 by Philipp von Weitershausen has been
 my best resource on zope 3 developement all these years. Find more about
 this book at : http://worldcookery.com/About

Thanks Shailesh, I'm reading this book now actually!  I'm following
along, and see where I was confused before.  I had inherited an
instance created with zopeproject
(http://pypi.python.org/pypi/zopeproject).  When I follow
Weitershausen, I use mkzopeinstance, and get the following directory
structure in the instance folder:

bin/
etc/
lib/
log/
var/

But running zopeproject produces:

.installed.cfg
apidoc.zcml
bin/
buildout.cfg
debug.ini
deploy.ini
develop-eggs/
log/
parts/
setup.py
site.zcml
src/
var/
zdaemon.conf
zope.conf

setup.py is a new config file, and site.zcml and zope.conf are in the
root directory now instead of etc.

Weitershausen deals with setup.py in the last chapter (of the 3rd
edition anyway) when talking about distribution, and he mentions a
layout similar to this.  But zopeproject seems to be the way to get
started not the way to distribute... so I'm confused again.

Can anyone explain the difference of these layouts/approaches to me?
Much appreciated!

e.
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Multi platform dev environment

2009-05-30 Thread Shailesh Kumar
Hello,

I have been using Zope 3 primarily on Windows platforms for last 2.5 years.
This is what I do for the typical setup:

- Install Python 2.4.4
- Install Python for Windows extensions for Python 2.4
- Install Zope 3.3.1  (the binary installer)
- Go to C:\Python24\Scripts
- Use mkzopeinstance script to make a zope instance
- Checkout my application packages into the zope instance
- Run my application

Using the binary installers for everything works fine for me.

Apart from these, I use some more packages:
- ReportLab
- Python Imaging Library
- z3c.rml
- etc.


My SVN repository consists of my application package only. I don't check in
the zope instance to SVN. After checking out the application package in my
zope instance, I need to copy the application-configure.zcml into zope
instance's etc\package-include directory.


The zope 3.3.1 instances work perfectly as Windows services out of the box.


At times I experimented with virtualenv, and grok. But haven't been able to
stabilze their workflows on Windows so far.



Web component development with Zope 3 by Philipp von Weitershausen has been
my best resource on zope 3 developement all these years. Find more about
this book at : http://worldcookery.com/About

With regards,
- Shailesh





On Fri, May 29, 2009 at 10:47 PM, Edward Zwart ed.zw...@softserv.ca wrote:

 If I'm asking in the wrong place, please redirect me, thanks.

 I'm new to Zope 3 (coming from LAMP) and am having some trouble finding
 resources on how best to set up my dev environment.  I will be working in
 Windows and testing (and ultimately deploying) on Linux.
 I'm slightly confused about what to include in my svn repo.  ...everything
 from the server instance down?  That gives me the server config files, the
 db and my own code, but also a lot of stuff I don't really need, no?  Also,
 so far I've got 2 different directory structures on Windows and Linux.

 The Linux install was created with virtualenv, and the Windows one
 following the screencast Installing Zope 3.2 on windows from
 http://wiki.zope.org/zope3/Zope3Wiki#tutorials).

 So, obviously that's not okay, but I'm not really sure how to proceed.  I
 tried installing Zope with virtalenv in Cygwin, but ran into problems.  I
 just wanted to check in with some experts about the way I'm proceeding
 before continuing.

 Any advice or pointers to resources is greatly appreciated.

 Thanks

 e.

 ___
 Zope3-users mailing list
 Zope3-users@zope.org
 http://mail.zope.org/mailman/listinfo/zope3-users


___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users