Gidday!
Rebuilding my simple site with zopeproject & eggs.
I have an introductory demo site used for a presentation to my AUSOM programmers SIG and published as "There's Zope For Me Yet!" in Ausom News Vol 28, No 8, Sept 07.(www.ausom.net.au).


The original instance was called 'zope3demo' and the root folder was called 'books'. It keeps a database of book reviews and allows the administrator to edit and add new reviews. Others can view only.
That all works fine.
Trying to keep up to date I wanted to redo the presentation using eggs and zopeproject. Following the steps at the zopeproject web page, I began the new version like this:
$ zopeproject Books
etc etc ............
Before modifying anything I started the server with:
$ ./bin/paster serve deploy.ini
and the default site went well. So I stopped the server.
Next I cd to ~/Books/src/books (automatically generated folder 'books') and began adding files and folders most of which were exact copies of those in the original working site built on an instance.
$ touch interfaces.py bookreview.py
$ mkdir ~/Books/src/books/browser
etc etc ............
EXCEPT however the ~/Books/src/books/configure.zcml has to be different.
The contents of my original
~/zope3demo/lib/python/books/configure.zcml
had to be appended to the bottom of the automatically generated
~/Books/src/books/configure.zcml
AND another EXCEPT:
There is no equivalent file path to 'books-configure.zcml':
 ~/zope3demo/etc/package-includes/books-configure.zcml
where one had an entry like this;
<include package="books"/>

Presumably this is now taken care of in the site.zcml which is automatically generated
and includes the same line?
_________________________________
I fired it up like this:
$ cd ~/Books
$ bin/paster serve deploy.ini
Starting server in PID 198.
------
2007-10-02T13:15:34 INFO paste.httpserver.ThreadPool Cannot use kill_thread_limit as ctypes/killthread is not available
serving on http://127.0.0.1:8080
...................
and all goes well from there! I can add and edit reviews as before.
____________________________________
ONE PROBLEM:
I wasn't able to access ++apidoc++
In ~/Books/zope.conf I uncommented the 'devmode on' line
and restarted, logging in as manager. I do get the developer mode warning, but the 'Introspector' tab didn't appear in ZMI and nor does the ++apidoc++ address work.
I tried adding the lines:
xmlns:apidoc="http://namespaces.zope.org/apidoc";
<include package="zope.app.apidoc"/>
<include package="zope.app.apidoc" file="meta.zcml" />
to appropriate spots in the site.zcml file
BUT I was plagued with configuration errors like this:
........
File "/Users/georgewright/buildout-eggs/tmpWlIac6/ zope.component-3.4.0a1-py2.4.egg/zope/component/_api.py", line 207, in getUtility ComponentLookupError: (<InterfaceClass zope.app.applicationcontrol.interfaces.IServerControl>, '')


Maybe someone can help?
______________________________________
ANOTHER PROBLEM:
I don't get the access logs constantly running in Terminal that I was used to.
How do I start these up?
_______________________________________

I hope these notes can be of some help for others attempting the same thing.

George Wright
http://users.bigpond.net.au/George.Wright/
http://www.labyrinth.net.au/~gwright



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

Reply via email to