[Zope] Defining a dictionary in ZPT?

2007-11-01 Thread michael nt milne
Hi I've got this piece of code which is returning a keyerror on 'results' as I haven't set up a dictionary for the variables. I'm not sure what the syntax is for this within the ZPT. I've read about the 'options' dictionary. Can I use that? Thanks ul span tal:define=query here/testquery li tal

Re: [Zope] Defining a dictionary in ZPT?

2007-11-01 Thread Paul Winkler
On Thu, Nov 01, 2007 at 12:48:04PM +, michael nt milne wrote: Hi I've got this piece of code which is returning a keyerror on 'results' as I haven't set up a dictionary for the variables. (snip) span tal:define=query here/testquery li tal content=results python: query(id='IT') span

Re: [Zope] Defining a dictionary in ZPT?

2007-11-01 Thread michael nt milne
yeah I have modified to this li tal:define = query here/testquery tal:repeat=result python:query(id='IT') span tal:replace=python:repeat['result'].firstnameFirst Name/spannbsp; /li but get this as a result. Thanks for the reply. Module Products.PTProfiler.ProfilerPatch, line 32, in

[Zope] Re: Defining a dictionary in ZPT?

2007-11-01 Thread Radim Novotny
michael nt milne napsal(a): yeah I have modified to this li tal:define = query here/testquery tal:repeat=result python:query(id='IT') span tal:replace=python:repeat['result'].firstnameFirst Name/spannbsp; /li 1) don't make spaces around = in HTML attributes: tal:define=query

Re: [Zope] Calendar Tag Product question

2007-11-01 Thread Jaroslav Lukesh
- Original Message - From: Thomas Bennett [EMAIL PROTECTED] fine. Today, November 1, on both calendars not all events are appearing in the calendar from the default view. If you click back to October and then back to November all of the events appear, this also sets the date-calendar

Re: [Zope] Re: Defining a dictionary in ZPT?

2007-11-01 Thread michael nt milne
1) don't make spaces around = in HTML attributes: tal:define=query here/testquery a mistake 2) Why do you use repeat['result'] ? Can you point us to documentation where did you read it ? tal:replace=result/firstname should work as expected or tal:replace=python:result[

[Zope-Checkins] SVN: Zope/trunk/lib/python/zope/ Use a newer version of zope.interface and zope.component

2007-11-01 Thread Hanno Schlichting
Log message for revision 81360: Use a newer version of zope.interface and zope.component Changed: _U Zope/trunk/lib/python/zope/ -=- Property changes on: Zope/trunk/lib/python/zope ___ Name: svn:externals - annotation

[Zope-Checkins] SVN: Zope/trunk/lib/python/zope/ Use an even newer zope.interface

2007-11-01 Thread Hanno Schlichting
Log message for revision 81364: Use an even newer zope.interface Changed: _U Zope/trunk/lib/python/zope/ -=- Property changes on: Zope/trunk/lib/python/zope ___ Name: svn:externals - annotation -r 77445

[Zope-dev] Re: Zope on Python 2.5?

2007-11-01 Thread Martin Aspeli
Alexander Limi wrote: On Wed, 31 Oct 2007 21:29:36 -0700, Andreas Jung [EMAIL PROTECTED] wrote: The recommendation is still System python is evil, evil, evil (quoting Jim). Sure, but if you ever want to be able to tell users to do: easy_install plone to get their Plone site, it's a

[Zope-dev] Re: Zope on Python 2.5?

2007-11-01 Thread Philipp von Weitershausen
Baiju M wrote: Hi Limi, Alexander Limi wrote: Sorry if this has been asked hundreds of times before — I couldn't find any info on this apart from the Summer of Code project related to Zope 3. Now only the packages under `zope` `zope.app` packages works using Python 2.5 . I don't know

[Zope-dev] Re: Zope on Python 2.5?

2007-11-01 Thread Philipp von Weitershausen
Alexander Limi wrote: Will Zope 2 ever run on Python 2.5, or is that postponed indefinitely? It will run on Python 2.5 when somebody makes it run. We see an increasing amount of users trying to use Zope 2 with their systems that have Python 2.5 as default. Then I suggest you do something

Re: [Zope-dev] Re: Zope on Python 2.5?

2007-11-01 Thread Peter Sabaini
On Thursday 01 November 2007 06:18:18 Andreas Jung wrote: --On 31. Oktober 2007 22:00:46 -0700 Alexander Limi [EMAIL PROTECTED] wrote: On Wed, 31 Oct 2007 21:29:36 -0700, Andreas Jung [EMAIL PROTECTED] wrote: The recommendation is still System python is evil, evil, evil (quoting Jim).

[Zope-dev] z3c.rml svn checkout

2007-11-01 Thread Catalin Constantin
Hello I am trying to checkout latest version of z3c.rml and i get the following error: svn co http://svn.zope.org/z3c.rml/ z3c.rml svn: PROPFIND request failed on '/z3c.rml' svn: PROPFIND of '/z3c.rml': 301 Moved (http://svn.zope.org) Thanks, -- Catalin Constantin

[Zope-dev] Zope Tests: 5 OK

2007-11-01 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list. Period Wed Oct 31 13:00:00 2007 UTC to Thu Nov 1 13:00:00 2007 UTC. There were 5 messages: 5 from Zope Unit Tests. Tests passed OK --- Subject: OK : Zope-2.7 Python-2.3.6 : Linux From: Zope Unit Tests Date: Wed Oct 31 21:46:50 EDT 2007

Re: [Zope-dev] Zope on Python 2.5?

2007-11-01 Thread Jim Fulton
On Nov 1, 2007, at 12:29 AM, Andreas Jung wrote: We see an increasing amount of users trying to use Zope 2 with their systems that have Python 2.5 as default. The recommendation is still System python is evil, evil, evil (quoting Jim). N, that's evil evil evil evil. Geez. ;)

Re: [Zope-dev] Re: Zope on Python 2.5?

2007-11-01 Thread Jim Fulton
On Nov 1, 2007, at 1:00 AM, Alexander Limi wrote: On Wed, 31 Oct 2007 21:29:36 -0700, Andreas Jung [EMAIL PROTECTED] wrote: The recommendation is still System python is evil, evil, evil (quoting Jim). Sure, but if you ever want to be able to tell users to do: easy_install plone to

[Zope-dev] Re: SVN: zope.component/trunk/ Optimized un/registerUtility via storing an optimized data structure for

2007-11-01 Thread Martijn Faassen
Hanno Schlichting wrote: Log message for revision 81348: Optimized un/registerUtility via storing an optimized data structure for efficient retrieval of already registered utilities. This avoids looping over all utilities when registering a new one. You are changing what looks like

[Zope-dev] Re: Zope on Python 2.5?

2007-11-01 Thread Martijn Faassen
Alexander Limi wrote: On Wed, 31 Oct 2007 21:29:36 -0700, Andreas Jung [EMAIL PROTECTED] wrote: The recommendation is still System python is evil, evil, evil (quoting Jim). Sure, but if you ever want to be able to tell users to do: easy_install plone to get their Plone site, it's a

Re: [Zope-dev] Re: Zope on Python 2.5?

2007-11-01 Thread Sidnei da Silva
I would like to point out that on this thread people are getting too tied up with restrictions about *installing* stuff on the system Python and forgetting that for example, buildout will not install stuff on the system Python, but people might want to run a Zope (2) buildout on Python 2.5 just

Re: [Zope-dev] z3c.rml svn checkout

2007-11-01 Thread TIm Terlegård
This tells you how to use the svn repository: http://www.zope.org/DevHome/Subversion/ZopeSVNFAQ /Tim On Nov 1, 2007, at 1:44 PM, Catalin Constantin wrote: Hello I am trying to checkout latest version of z3c.rml and i get the following error: svn co http://svn.zope.org/z3c.rml/ z3c.rml

Re: [Zope-dev] Re: Zope on Python 2.5?

2007-11-01 Thread Jim Fulton
On Nov 1, 2007, at 9:50 AM, Sidnei da Silva wrote: I would like to point out that on this thread people are getting too tied up with restrictions about *installing* stuff on the system Python and forgetting that for example, buildout will not install stuff on the system Python, but people

Re: [Zope-dev] z3c.rml svn checkout

2007-11-01 Thread Stephan Richter
On Thursday 01 November 2007, Catalin Constantin wrote: I am trying to checkout latest version of z3c.rml and i get the following error: svn co http://svn.zope.org/z3c.rml/ z3c.rml svn: PROPFIND request failed on '/z3c.rml' svn: PROPFIND of '/z3c.rml': 301 Moved (http://svn.zope.org) The

[Zope-dev] Re: Zope on Python 2.5?

2007-11-01 Thread Martijn Faassen
Hey, [making Zope 2 work on Python 2.5] Sidnei da Silva wrote: [snip] I believe this is a critical issue and the interested parts need to work together on it. Maybe the Plone Foundation and the Zope Foundation can work together and setup a bounty to fund some developer to do this work?

Re: [Zope-dev] Re: Zope on Python 2.5?

2007-11-01 Thread Stephan Richter
On Thursday 01 November 2007, Jim Fulton wrote: I think buildout should work harder to get along with system Python.   I intent to spend some effort on this.  Martijn has suggested an   option to ignore site-packages which may go a long way. Yeah, one of my clients uses workingenv to use

[Zope-dev] Re: SVN: zope.component/trunk/ Optimized un/registerUtility via storing an optimized data structure for

2007-11-01 Thread Hanno Schlichting
Martijn Faassen wrote: Hanno Schlichting wrote: Log message for revision 81348: Optimized un/registerUtility via storing an optimized data structure for efficient retrieval of already registered utilities. This avoids looping over all utilities when registering a new one. You are

[Zope-dev] Re: SVN: zope.component/trunk/ Optimized un/registerUtility via storing an optimized data structure for

2007-11-01 Thread Martijn Faassen
Hanno Schlichting wrote: Martijn Faassen wrote: Hanno Schlichting wrote: Log message for revision 81348: Optimized un/registerUtility via storing an optimized data structure for efficient retrieval of already registered utilities. This avoids looping over all utilities when registering a

Re: [Zope-dev] Re: Zope on Python 2.5?

2007-11-01 Thread Fred Drake
On 11/1/07, Sidnei da Silva [EMAIL PROTECTED] wrote: I think we are closely approaching the EOL for Python 2.4. Supposedly when Python 2.6 comes out next year Python 2.4 will be officially discouraged and will not receive any more fixes other than security fixes. This seems to be a common

Re: [Zope-dev] Re: Zope on Python 2.5?

2007-11-01 Thread Sidnei da Silva
On 11/1/07, Fred Drake [EMAIL PROTECTED] wrote: This seems to be a common misconception; I'm not sure why. Python 2.4 has *already* hit EOL. There will only be security fixes released in source form. When a new Python 2.X is released, a final 2.X-1 bugfix release is made and 2.X becomes

[Zope-dev] Re: SVN: zope.component/trunk/ Optimized un/registerUtility via storing an optimized data structure for

2007-11-01 Thread Hanno Schlichting
Martijn Faassen wrote: Hanno Schlichting wrote: Martijn Faassen wrote: Hanno Schlichting wrote: Log message for revision 81348: Optimized un/registerUtility via storing an optimized data structure for efficient retrieval of already registered utilities. This avoids looping over all

[Zope-dev] buildbot failure in Zope trunk 2.4 Windows 2000 zc-bbwin6

2007-11-01 Thread buildbot
The Buildbot has detected a failed build of Zope trunk 2.4 Windows 2000 zc-bbwin6. Buildbot URL: http://buildbot.zope.org/ Build Reason: changes Build Source Stamp: 3029 Blamelist: berndroessl,faassen,fdrake,geroldboehler,hannosch,jim,jukart,philikon,rossp,srichter,timt,witsch BUILD FAILED:

[Zope-dev] Re: Zope on Python 2.5?

2007-11-01 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Stephan Richter wrote: On Thursday 01 November 2007, Jim Fulton wrote: I think buildout should work harder to get along with system Python. I intent to spend some effort on this. Martijn has suggested an option to ignore site-packages which

[Zope-dev] buildbot failure in Zope trunk 2.4 Windows 2000 zc-bbwin6

2007-11-01 Thread buildbot
The Buildbot has detected a failed build of Zope trunk 2.4 Windows 2000 zc-bbwin6. Buildbot URL: http://buildbot.zope.org/ Build Reason: changes Build Source Stamp: 3033 Blamelist: geroldboehler,hannosch,jim,witsch BUILD FAILED: failed svn sincerely, -The Buildbot

[Zope-dev] Interface.__identifier__

2007-11-01 Thread Martijn Pieters
zope.inferface.interface.InterfaceClass.__init__ defines a nice attribute self.__identifier__ that stores self.__module__ + '.' + self.__name__, which is very handy when indexing and searching interfaces in Plone. However, unlike __module__, __identifier__ is not part of the IInterface

[Zope-dev] Bad package dependencies

2007-11-01 Thread Chris McDonough
In summary: - Uploading eggs that have loose install_requires dependencies to the cheeseshop is harmful. - Taking non-Zope-the-appserver deployments into account, I'd be suspicious of any install_requires dependency on zope.configuration except in a Zope-the-appserver meta-egg. -

Re: [Zope-dev] Re: Zope on Python 2.5?

2007-11-01 Thread Chris McDonough
On Nov 1, 2007, at 1:28 AM, Andreas Jung wrote: --On 31. Oktober 2007 22:00:46 -0700 Alexander Limi [EMAIL PROTECTED] wrote: On Wed, 31 Oct 2007 21:29:36 -0700, Andreas Jung [EMAIL PROTECTED] wrote: The recommendation is still System python is evil, evil, evil (quoting Jim).

Re: [Zope-dev] Re: Zope on Python 2.5?

2007-11-01 Thread Andreas Jung
--On 1. November 2007 23:47:28 -0400 Chris McDonough [EMAIL PROTECTED] wrote: On Nov 1, 2007, at 1:28 AM, Andreas Jung wrote: --On 31. Oktober 2007 22:00:46 -0700 Alexander Limi [EMAIL PROTECTED] wrote: On Wed, 31 Oct 2007 21:29:36 -0700, Andreas Jung [EMAIL PROTECTED] wrote: The

[Zope-dev] Re: Zope on Python 2.5?

2007-11-01 Thread Jeff Kowalczyk
Would it be possible to have a non-system python installed (by default into /opt/python24) by the system python easy_install? I think it would be useful to have eggs that provide commands on the path such as easy_install_nonsystem24, virtualenv_nonsystem24, python_nonsystem24. With a better