Re: [Zope3-Users] Unable to start ZEO server
Michael Thanks for the reply I tried again to start ZEO with python2.4 instead of 2.6 - now have a different problem: georgewr$ python2.4 /usr/local/Zope-3.4.0c1/lib/python/ZEO/runzeo.py -a /tmp/zeosocket -f /tmp/test.fs Traceback (most recent call last): File "/usr/local/Zope-3.4.0c1/lib/python/ZEO/runzeo.py", line 43, in ? import ZConfig, ZConfig.datatypes ImportError: No module named ZConfig I do have python 2.4 and the ZConfig.datatypes is present - although it is within Zope "Dependencies" /Users/georgewr/Zope-3.4.0c1/Dependencies/ZConfig-Zope-3.4.0c1/ZConfig/datatypes.py Should it be there? Is it findable there? I know there is a more recent Zope available. Regards George On 15/06/2011, at 2:22 AM, Michael Howitz wrote: > Am 26.05.2011 um 11:49 schrieb George Wright: >> Attempting to start up ZEO server on Mac OSX 10.6.7 >> There are a couple of copies of the problem LoopCallback.py - in >> Zope-3.4.0c1 (Dependencies and build) but not in the ZEO folder >> Appreciate any help. >> George >> >> $ python /usr/local/Zope-3.4.0c1/lib/python/ZEO/runzeo.py -a /tmp/zeosocket >> -f /tmp/test.fs >> /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/zope/__init__.py:1: >> UserWarning: Module pkg_resources was already imported from > [...] >> File "/usr/local/Zope-3.4.0c1/lib/python/ZEO/runzeo.py", line 244, in >> loop_forever >> import ThreadedAsync.LoopCallback >> ImportError: No module named ThreadedAsync.LoopCallback > > Zope 3.4 requires Python 2.4 to run, Python 2.6 is too new. > > > Yours sincerely, > -- > Michael Howitz · m...@gocept.com · software developer > gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany > http://gocept.com · tel +49 345 1229889 8 · fax +49 345 1229889 1 > Zope and Plone consulting and development > George Wright georg...@bigpond.net.au http://www.labyrinth.net.au/~gwright ___ Zope3-users mailing list Zope3-users@zope.org https://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Unable to start ZEO server
Attempting to start up ZEO server on Mac OSX 10.6.7 There are a couple of copies of the problem LoopCallback.py - in Zope-3.4.0c1 (Dependencies and build) but not in the ZEO folder Appreciate any help. George $ python /usr/local/Zope-3.4.0c1/lib/python/ZEO/runzeo.py -a /tmp/zeosocket -f /tmp/test.fs /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/zope/__init__.py:1: UserWarning: Module pkg_resources was already imported from /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.pyc, but /Library/Python/2.6/site-packages is being added to sys.path __import__('pkg_resources').declare_namespace(__name__) /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/zope/__init__.py:1: UserWarning: Module site was already imported from /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site.pyc, but /Library/Python/2.6/site-packages is being added to sys.path __import__('pkg_resources').declare_namespace(__name__) -- 2011-05-26T18:21:06 INFO ZEO.runzeo (739) opening storage '1' using FileStorage -- 2011-05-26T18:21:06 WARNING ZODB.FileStorage Ignoring index for /tmp/test.fs -- 2011-05-26T18:21:06 INFO ZEO.StorageServer StorageServer created RW with storages: 1:RW:/tmp/test.fs -- 2011-05-26T18:21:06 INFO ZEO.zrpc (739) listening on /tmp/zeosocket -- 2011-05-26T18:21:06 INFO ZEO.runzeo (739) closing storage '1' Traceback (most recent call last): File "/usr/local/Zope-3.4.0c1/lib/python/ZEO/runzeo.py", line 356, in main() File "/usr/local/Zope-3.4.0c1/lib/python/ZEO/runzeo.py", line 353, in main s.main() File "/usr/local/Zope-3.4.0c1/lib/python/ZEO/runzeo.py", line 141, in main self.loop_forever() File "/usr/local/Zope-3.4.0c1/lib/python/ZEO/runzeo.py", line 244, in loop_forever import ThreadedAsync.LoopCallback ImportError: No module named ThreadedAsync.LoopCallback George Wright georg...@bigpond.net.au http://www.labyrinth.net.au/~gwright ___ Zope3-users mailing list Zope3-users@zope.org https://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Z3ext 1.0 Beta3 Released
OK Nikolay It worked this time. New problem: I am unable to satisfy the date format requirement on an edit screen! For example I tried to create a new News item. I have tried everything I can think of but continue to get this message: The datetime string did not match the pattern u'M/d/yy h:mm a' Could someone give me an example of a date entry that does work? (My location is Australia. Mac OSX 10.5.8) Regards George On 23/08/2009, at 7:12 PM, Nikolay Kim wrote: > problem is fixed > > just run ./bin/buildout again > > > On Aug 23, 2009, at 5:16 AM, George Wright wrote: > >> I downloaded Z3ext 1.0 Beta3. >> The installation did not run smoothly - just stopped in middle of >> self >> test cycle. >> ... ... ... George Wright georg...@bigpond.net.au http://mywebsite.bigpond.net.au/georgewr/ http://www.labyrinth.net.au/~gwright ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Z3ext 1.0 Beta3 Released
I downloaded Z3ext 1.0 Beta3. The installation did not run smoothly - just stopped in middle of self test cycle. ... ... ... Creating missing __init__.py for zopyx.txng3.ext Got zopyx.txng3.ext 3.3.1. Getting distribution for 'z3ext.persistentpageelement==1.3.0'. Got z3ext.persistentpageelement 1.3.0. Getting distribution for 'z3ext.persistentresource==1.4.2'. Got z3ext.persistentresource 1.4.2. Stopped here After keyboard interrupt then Re-doing it as sudo it ran to completion but failed to start the server: geomacbk:z3extnet georgewr$ sudo ./bin/instance fg /Users/georgewr/z3extnet/parts/app/runzope -C /Users/georgewr/z3extnet/ parts/instance/zope.conf /Users/georgewr/.buildout/eggs/zope.configuration-3.6.0-py2.5.egg/zope/ configuration/config.py:194: DeprecationWarning: defaultView: The zope:defaultView directive has been deprecated in favor of the browser:defaultView directive. Will be gone in Zope 3.3. obj = getattr(mod, oname) -- 2009-08-23T09:06:29 WARNING ZODB.FileStorage Ignoring index for /Users/ georgewr/z3extnet/parts/var/Data.fs Traceback (most recent call last): File "/Users/georgewr/z3extnet/parts/app/runzope", line 251, in zope.app.twisted.main.main() File "/Users/georgewr/.buildout/eggs/zope.app.twisted-3.4.1- py2.5.egg/zope/app/twisted/main.py", line 74, in main service = setup(load_options(args)) File "/Users/georgewr/.buildout/eggs/zope.app.twisted-3.4.1- py2.5.egg/zope/app/twisted/main.py", line 149, in setup notify(zope.app.appsetup.interfaces.DatabaseOpened(db)) File "/Users/georgewr/.buildout/eggs/zope.event-3.4.0-py2.5.egg/ zope/event/__init__.py", line 23, in notify subscriber(event) File "/Users/georgewr/.buildout/eggs/zope.component-3.4.0-py2.5.egg/ zope/component/event.py", line 26, in dispatch for ignored in zope.component.subscribers(event, None): File "/Users/georgewr/.buildout/eggs/zope.component-3.4.0-py2.5.egg/ zope/component/_api.py", line 130, in subscribers return sitemanager.subscribers(objects, interface) File "/Users/georgewr/.buildout/eggs/zope.component-3.4.0-py2.5.egg/ zope/component/registry.py", line 290, in subscribers return self.adapters.subscribers(objects, provided) File "/Users/georgewr/.buildout/eggs/zope.interface-3.4.1-py2.5- macosx-10.5-i386.egg/zope/interface/adapter.py", line 535, in subscribers subscription(*objects) File "/Users/georgewr/.buildout/eggs/z3ext.portal-1.0.1-py2.5.egg/ z3ext/portal/bootstrap.py", line 45, in bootstrapSubscriber reconfigurePortal(portal) File "/Users/georgewr/.buildout/eggs/z3ext.portal-1.0.1-py2.5.egg/ z3ext/portal/config.py", line 51, in reconfigurePortal configure(portal, {}) File "/Users/georgewr/.buildout/eggs/z3c.configurator-1.1.2- py2.5.egg/z3c/configurator/configurator.py", line 84, in configure plugin(d) File "/Users/georgewr/z3extnet/src/z3ext/instance/homesite/ content.py", line 57, in __call__ 'portlet.personalbar', 'portlet.actions', 'portlet.login') File "/Users/georgewr/.buildout/eggs/z3ext.portlet-1.6.1-py2.5.egg/ z3ext/portlet/configproperty.py", line 123, in __set__ field = self.__field.bind(inst) File "/Users/georgewr/.buildout/eggs/zope.schema-3.4.0-py2.5.egg/ zope/schema/_field.py", line 389, in bind clone.value_type = clone.value_type.bind(object) File "/Users/georgewr/.buildout/eggs/zope.schema-3.4.0-py2.5.egg/ zope/schema/_field.py", line 278, in bind clone.vocabulary = vr.get(object, self.vocabularyName) File "/Users/georgewr/.buildout/eggs/zope.app.schema-3.4.0- py2.5.egg/zope/app/schema/vocabulary.py", line 33, in get return factory(context) File "/Users/georgewr/.buildout/eggs/z3ext.portlet-1.6.1-py2.5.egg/ z3ext/portlet/vocabulary.py", line 44, in __call__ (context, getRequest(), manager, None), manager.portlettype)) File "/Users/georgewr/.buildout/eggs/zope.component-3.4.0-py2.5.egg/ zope/component/registry.py", line 219, in getAdapters adapter = factory(*objects) File "/Users/georgewr/.buildout/eggs/z3ext.calendar-0.6.0-py2.5.egg/ z3ext/calendar/calendarportlet.py", line 54, in __init__ self.year, self.month = self.getCurrentDate() File "/Users/georgewr/.buildout/eggs/z3ext.calendar-0.6.0-py2.5.egg/ z3ext/calendar/calendarportlet.py", line 140, in getCurrentDate year = request.get('pyear', None) AttributeError: 'NoneType' object has no attribute 'get' geomacbk:z3extnet georgewr$ Even after discarding Data.fs got the same errors. ?? Regards George On 18/08/2009, at 2:00 AM, zope3-users-requ...@zope.org wrote: > Z3ext 1.0 Beta3 Released George Wright georg...@bigpond.net.au http://mywebsite.bigpond.net.au/georgewr/ http://www.labyrinth.net.au/~gwright ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] ZwikiForZope3 start problems
Gidday Following guides for setting up the Zwiki For Zope3 here: http://wiki.zope.org/zope3/ZwikiForZope3 I have had some problems. It seems to have installed OK with this procedure: svn co svn://svn.zope.org/repos/main/zwiki/trunk zwiki cd zwiki python2.4 bootstrap.py ./bin/buildout ./instance fg EXCEPT for the last step - which I presume is a typo - should be ./ bin/instance fg ? Anyhow I get an error message beginning: /Users/georgewr/zwiki/parts/zwikiapp/runzope -C /Users/georgewr/zwiki/ parts/instance/zope.conf Traceback (most recent call last): File "/Users/georgewr/zwiki/parts/zwikiapp/runzope", line 110, in ? zope.app.twisted.main.main() File "/Users/georgewr/.buildout/eggs/zope.app.twisted-3.4.1- py2.4.egg/zope/app/twisted/main.py", line 74, in main service = setup(load_options(args)) # Some skipped but I can send it on if it helps .. and ending: File "/Users/georgewr/.buildout/eggs/zope.configuration-3.4.1- py2.4.egg/zope/configuration/fields.py", line 141, in fromUnicode raise schema.ValidationError(v) zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "/Users/ georgewr/zwiki/parts/zwikiapp/site.zcml", line 15.0-15.27 ZopeXMLConfigurationError: File "/Users/georgewr/zwiki/src/zwiki/ configure.zcml", line 285.2-285.32 ZopeXMLConfigurationError: File "/Users/georgewr/zwiki/src/zwiki/ browser/configure.zcml", line 6.2-6.29 ZopeXMLConfigurationError: File "/Users/georgewr/zwiki/src/zwiki/ browser/skin/configure.zcml", line 20.0-21.51 ConfigurationError: ('Invalid value for', 'layer', "ImportError: Couldn't import wiki, No module named wiki") Now there is a module called 'wiki.py' in zwiki/src/zwiki/wiki.py There is this comment "BBB 2006/02/18, to be removed after 12 months" appearing in both the browser/skin/__init__ and the browser/skin/ configure.zcml files. I wonder if that has anything to do with it? By the way. If I run ./bin/test I get the same error + "Total: 48 tests, 0 failures, 1 errors in 1.820 seconds." George Wright georg...@bigpond.net.au http://mywebsite.bigpond.net.au/georgewr/ http://www.labyrinth.net.au/~gwright ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Install zope3 problems
Gidday I'm having probs installing zope3 on OSX 10.5.5 I've downloaded Zope-3.4.0c1 and ./configure demanded python2.4.3 not the 2.5.1 or 2.6 that I have. I got and installed 2.4.5 and configured using that python - couldn't find 2.4.3 ./configure --with-python /usr/local/bin/python2.4 (By the way the readme has a double dash in front of the python which is an error: ./configure --with--python /usr/local/bin/python2.4) Then "make" worked OK I did "make check" and got hundreds of s BUT everything just stops on a dot and that's it!! I've waited a long time. In Terminal 'top' shows python2.4 is running but with very low activity. I did also get other messages during check like this: """ .. Failure in test allow_duplicate_arguments (zdaemon.tests.tests) Failed doctest test for zdaemon.tests.tests.allow_duplicate_arguments File "/Users/georgewr/Zope-3.4.0c1/build/lib.macosx-10.5-i386-2.4/ zdaemon/tests/tests.py", line 66, in allow_duplicate_arguments -- File "/Users/georgewr/Zope-3.4.0c1/build/lib.macosx-10.5-i386-2.4/ zdaemon/tests/tests.py", line 84, in zdaemon.tests.tests.allow_duplicate_arguments Failed example: system("./zdaemon -Cconf -Cconf -Cconf stop") Expected: daemon process stopped Got: . Daemon manager not running. ........... """ I haven't yet tried to do make install. Should I ignore the make check? George Wright [EMAIL PROTECTED] http://mywebsite.bigpond.net.au/georgewr/ http://www.labyrinth.net.au/~gwright ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Re: How do you develop in zope 3?
Gidday I am very interested to read some replies to this. I'm in much the same situation and very confused now. On 20/02/2008, at 4:00 AM, [EMAIL PROTECTED] wrote: How do you develop in zope 3? First a few words: After trying from time to time Zope 3 (X3, 3.0...) finally a month ago I jumped in full time. Thanks to Philipp von Weitershausen's book, my previous problems were solved. So I downloaded the zope 3 tar.gz and started to practice... only to discover eggs, buildouts, paster and friends (yes, pretty much I've been living under a programmer's rock). Well, no problem. After reading http://pypi.python.org/pypi/ zopeproject/ and http://pypi.python.org/pypi/zc.buildout I was on track again. So basically, what I do is: # Create a virtual environment $ python2.4 bin/virtual-python.py --prefix=~/zope3/ # install easy_setup $ ~/zope3/bin/python bin/ez_setup.py # Install zopeproject (of course, all these steps are made just once) $ ~/zope/bin/easy_install zopeproject # make the projects $ ~/zope/bin/zopeproject webdev and then edit setup.py, buildout.cfg. and work in src/webdev. So long, so fine. But here come my doubts: *) Is it the way the experienced zope developers work? How do you set the environment for a site or a package development? *) I'm working in more than a package. I'm developing a blog, a user manager, etc. Should I create a new project for each package? How do I include in my site (under development) my packages (under development)? *) What recipe do you use to fetch a package via svn? George Wright http://www.labyrinth.net.au/~gwright ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Re: z3ext
Gidday I downloaded z3ext and installed as per instructions. Then: $ cd z3ext $ ./bin/app /Users/georgewright/z3ext/eggs/zope.configuration-3.4.0-py2.4.egg/ zope/configuration/config.py:197: DeprecationWarning: IRolePermissionMap is deprecated. It has moved to zope.securitypolicy.interfaces This reference will be removed somedays obj = getattr(mod, oname) -- 2008-02-14T20:07:49 WARNING ZODB.FileStorage Ignoring index for / Users/georgewright/z3ext/parts/var/Data.fs Traceback (most recent call last): File "./bin/app", line 164, in ? zope.app.twisted.main.main([ File "/Users/georgewright/z3ext/eggs/tmpPIly5P/ zope.app.twisted-3.4.0-py2.4.egg/zope/app/twisted/main.py", line 74, in main ... File "/Library/Frameworks/Python.framework/Versions/2.4//lib/ python2.4/subprocess.py", line 975, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory What's happening here? 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
[Zope3-Users] virtualenv problems
Gidday I have been trying to set up a virtualenv as has been suggested several times on this list. Following steps in section 1.4 of "Zope Component Architecture.pdf" I have a path problem: $ easy_install virtualenv ... virtualenv 0.8.4 is already the active version in easy-install.pth Installing virtualenv script to /Library/Frameworks/Python.framework/ Versions/2.4/bin Using /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ site-packages/virtualenv-0.8.4-py2.4.egg ... Finished processing dependencies for virtualenv $ virtualenv myvirtualenv New python executable in myvirtualenv/bin/Python ERROR: The executable myvirtualenv/bin/Python is not functioning ERROR: It thinks sys.prefix is '/Library/Frameworks/Python.framework/ Versions/2.4' (should be '/Users/georgewright/myvirtualenv') ERROR: virtualenv is not compatible with this system or executable $ How do I fix that sys.prefix problem? Following threads on virtualenv I gather I should be using a "non- system python installation". How do I do that? Thanks 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
[Zope3-Users] Remaking an 'instance' site with zopeproject
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; 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"; 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: (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
[Zope3-Users] Re: [Zope] z3c.form 1.3.0, z3c.formui
Thanks Fernando & Stephan On 26/06/2007, at 11:19 AM, Stephan Richter wrote: On Monday 25 June 2007 19:34, Fernando Correa Neto wrote: On 6/25/07, Stephan Richter <[EMAIL PROTECTED]> wrote: On Monday 25 June 2007 17:15, George Wright wrote: An internal error occured due to a bug in either zc.buildout or in a recipe being used: ImportError: No module named schemaless That happened to me too. I don't know the reason but by unsetting my PYTHONPATH environment variable solved the problem. Usually my $PYTHONPATH points to my zope3.3.0 installation. Unfortunately, I didn't have time to debug. That is probably it! The Python path is inserted at the front of everything. That means that all your Zope 3.3.0 packages are preferred over the installed eggs. OK. Just for the record here's what I did: I reset the PYTHONPATH like this (on Mac OSX & bash) PYTHONPATH= > Then ./bin/buildout went to completion Then ./bin/demo fg worked beautifully I stopped the server then quit 'Terminal' & restarted it - now PYTHONPATH was back to normal ie pointing to zope 3.3.0. The demo ran correctly again. Question: Is it generally recommended that when installing eggs the PYTHONPATH temporarily be set to empty? George Wright http://users.bigpond.net.au/George.Wright/ ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Re: [Zope] z3c.form 1.3.0, z3c.formui
Gidday The first version of formdemo went without problems. This is the second attempt to get the new formdemo to go. Now it reports errors and is demanding 'schemaless' ? Any help appreciated. $ ./bin/buildout Develop: '/Users/georgewright/formdemo/.' Getting distribution for 'zc.zope3recipes'. Got zc.zope3recipes 0.5.2. Getting distribution for 'ZConfig>=2.4a5'. Got ZConfig 2.4a6. While: Installing. Getting section demo. Initializing section demo. Loading zc.buildout recipe entry zc.zope3recipes:instance. An internal error occured due to a bug in either zc.buildout or in a recipe being used: ImportError: No module named schemaless svn co svn://svn.zope.org/repos/main/z3c.formdemo/trunk formdemo George Wright http://users.bigpond.net.au/George.Wright/ ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Re: formdemo & z3c questions
Sorry I didn't alter the subject heading in my last missive! It might have gone un-noticed. So here it is again: Gidday These are all questions originating from my limited experience with zope3 and zero experience with development: ... I did run the formdemo and was most impressed. During the download phase all of the z3c and zc packages listed as includes in site.zcml had to be downloaded as well as plenty of updates of my zope 3.3.0 installation. For example there were many many cycles like this: zc.buildout.easy_install: Getting new distribution for zope.i18n zc.buildout.easy_install: Got zope.i18n 3.4.0a1 Previously I had no zc, z3c packages installed. How do I make these new or updated packages available via my regular Zope 3 instances? Is that a legit thing to do? Is it just a matter of including the demo in PYTHONPATH? How do you folks at the sharp end of zope development tie in the old with the new? I realise that I don't understand the relationship between zc, z3c and zope3? Am I correct to assume that zc & z3c are packages under development that will eventually migrate to zope 3 ? That zope 3.3.1 (which I don't have) might have included most of the new zope distributions I downloaded as well as some others of the z3c kind renamed to zope?? Is that the way it works? Would appreciate enlightenment. --- Since writing the above I have worked out how to pick up the new packages in Python interactive > $ cd ~/formdemo $ ~/formdemo/parts/form-demo-app/debugzope -C ~/formdemo/parts/demo/ zope.conf (NOTE the -C flag above allows the named zope.conf file to be used) Welcome to the Zope 3 "debugger". The application root object is available as the root variable. A Zope debugger instance is available as the debugger (aka app) variable. >>> from z3c.form import button >>> dir(button) ['Button', 'ButtonAction', 'ButtonActionHandler', 'ButtonActions', 'Buttons', 'FieldProperty', 'Handler', 'Handlers', '__builtins__', '__doc__', '__docformat__', '__file__', '__name__', 'action', 'adapter', 'buttonAndHandler', 'handler', 'interfaces', 'submit', 'sys', 'util', 'zope'] >>> Ok. But I have yet to find out how to create a new zope3 Instance that has access to all the formdemo packages. Or indeed how to use these packages in an existing zope3 instance? Can someone tell me how to do that lot? George Wright ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Re: Zope3-users Digest, Vol 31, Issue 23
On 26/05/2007, at 2:00 AM, [EMAIL PROTECTED] wrote: To run the demos do the following:: $ svn co svn://svn.zope.org/repos/main/z3c.formdemo/trunk formdemo $ cd formdemo $ python bootstrap.py $ ./bin/buildout $ ./bin/demo fg Now you can access the demo under: http://localhost:8080/ Since this takes a while to build, you can read on while waiting for the demo to come up. :-) Gidday These are all questions originating from my limited experience with zope3 and zero experience with development: ... I did run the demos and was most impressed. During the download phase all of the z3c and zc packages listed as includes in site.zcml had to be downloaded as well as plenty of updates of my zope 3.3.0 installation. For example there were many many cycles like this: zc.buildout.easy_install: Getting new distribution for zope.i18n zc.buildout.easy_install: Got zope.i18n 3.4.0a1 Previously I had no zc, z3c packages installed. How do I make these new or updated packages available via my regular Zope 3 instances? Is that a legit thing to do?Is it just a matter of including the demo in PYTHONPATH? How do you folks at the sharp end of zope development tie in the old with the new? I realise that I don't understand the relationship between zc, z3c and zope3? Am I correct to assume that zc & z3c are packages under development that will eventually migrate to zope 3 ? That zope 3.3.1 (which I don't have) might have included most of the new zope distributions I downloaded as well as some others of the z3c kind renamed to zope?? Is that the way it works? Would appreciate enlightenment. George Wright http://users.bigpond.net.au/George.Wright/ ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] maybe an egg
A novice working thru World Cookery in Philipp von Weithershausen's book. I would appreciate any comments. I think my question is about eggs! 1. I have PYTHONPATH set as follows PYTHONPATH=/usr/local/Zope-3.3.0/lib/python 2. I have the worldcookery site running under a Zope3 instance named Zope3Instance. I can succesfully run the workdcookery site from sample code say for example chapter 6. 3. When I run debugzope from within the Zope3Instance it is not surprising that I can't import a module which appears first in the book until a later chapter. For example the 'size.py' adapter that is introduced in ch11. macosxG5:~/Zope3Instance thisuser$ ./bin/debugzope >>> from worldcookery.size import RecipeSize ... ImportError: No module named size >>> 4. If I start python from home I can import any worldcookery module from the entire workdcookery code even though I have not loaded that module into the Zope3Instance worldcookery folder! macosxG5:~ thisuser$ python Python 2.4.4 (#1, Oct 18 2006, 10:34:39) [GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin >>> from worldcookery.size import RecipeSize >>> 5. If Il make an error the traceback refers to a 'worldcookery-2.0.1-py2.4egg' file which I downloaded but didn't think I was using! This example from ch22: >>> info = MemberInfo('sloppy_joe') Traceback (most recent call last): ... File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ python2.4/site-packages/worldcookery-2.0.1-py2.4.egg/worldcookery/ memberinfo.py", line 26, in __init__ ... 6. What's happening here? Is this the way eggs work? George Wright ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Re: Can't find MessageIDFactory
OnFri, 9 Feb 2007 20:59:07 -0500 Vinny wrote: Hi George, You'll need to use the newer boilerplate (I am running zope 3.3.0 FYI): from zope.i18n import MessageFactory _ = MessageFactory("translationdomain") This can be found here: http://kpug.zwiki.org/WhatIsNewInZope33 See section 7 Porting to Zope 3.3.0 There is other useful information on how to deal with the other areas of the book which are slightly out of date as well. Thanks Vinny I used from zope.i18n import MessageFactory _ = MessageFactory("worldcookery") as suggested and made a bit of progress. Yet to work out necessary changes to the time_report.mapping['time_to_cook'] = 45 line - but working on it. Have printed off a copy of What's New In Zope 3.3 as reference. Fortunately my Melbourne bookshop who supplied First Edition just a few weeks ago has agreed to replace it with 2nd ed when it arrives. George Wright http://users.bigpond.net.au/George.Wright/ ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Can't find MessageIDFactory
Gidday zope3 users I have been working through the Weitershausen Zope3 book (first edition) and came to stuff on "Message IDs and translation domains. I can't import MessageIDFactory (page 125)! >> from zope.i18nmessageid import MessageIDFactory Nor can I find any documentation on MessageIDFactory except of course what's in the book. Any ideas? George Wright George Wright http://users.bigpond.net.au/George.Wright/ ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] readline() takes exactly 1 argument
Trying to get started on Zope3 but frustrated by a couple of barriers: Barrier 1. Added a folder. Added a ZPT Page (As in Zope3 Developer's Book page 12). Then get system error message: Traceback (most recent call last): Module zope.publisher.publish, line 126, in publish request.processInputs() Module zope.publisher.browser, line 263, in processInputs fs = FieldStorage(fp=fp, environ=self._environ, keep_blank_values=1) Module cgi, line 530, in __init__ self.read_multi(environ, keep_blank_values, strict_parsing) Module cgi, line 650, in read_multi environ, keep_blank_values, strict_parsing) Module cgi, line 532, in __init__ self.read_single() Module cgi, line 665, in read_single self.read_lines() Module cgi, line 687, in read_lines self.read_lines_to_outerboundary() Module cgi, line 715, in read_lines_to_outerboundary line = self.fp.readline(1<<16) TypeError: readline() takes exactly 1 argument (2 given) I did a search of archives and found references to a patch of http.py and tales of success in solving the same problem: Yes. Apply this patch to the zope3-sources: /http.py --- src/zope/publisher/http.py.old 2006-10-04 15:11:04.0 +0200 +++ src/zope/publisher/http.py 2006-10-04 15:11:04.0 +0200 @@ -205,7 +205,7 @@ return data def readline(self,size=None): -data = self.stream.readline(size) +data = self.stream.readline() self.cacheStream.write(data) return data BUT I'm not sure what to do with it! What do the little - and + in front of the "data = " lines mean? And the "@@ -205,7 +205,7 @@" ? Just which http.py is to be patched? ~/Zope-3.3.0/build/lib.macosx-10.3-fat-2.4/zope/publisher/http.py OR ~/Zope-3.3.0/build/lib.darwin-8.8.0-Power_Macintosh-2.4/zope/ publisher/http.py OR ? Maybe this problem has been fixed in a later version? Barrier 2: Should I be able to call zope from within terminal? I can get interface ( probably because it is part of my twisted installation which is OK) But I can't get other zope stuff. george-g5:~ georgewright$ python Python 2.4.4 (#1, Oct 18 2006, 10:34:39) [GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> from zope import interface >>> from zope import schema Traceback (most recent call last): File "", line 1, in ? ImportError: cannot import name schema >>> from zope import component Traceback (most recent call last): File "", line 1, in ? ImportError: cannot import name component >>> Seems like there is a $PATH problem or $PYTHONPATH? Lots of other questions of course but maybe I will answer them for myself if I can get over these barriers! Thanks 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
[Zope3-Users] All the pretty Icons have gone
As a new learner of Zope & Plone (Plone 2.5). I am slowly working through ZopeBook-2.6.Most going well but suddenly all screen icons have disappeared!.All I see is the alternative text. • I have done some undos • I have restarted zope• I have restarted computerEverything else seems to work OKAny help appreciated.George Wright ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users