[Zope] page templates and python:

2006-07-03 Thread Claudio Battaglino
Hi, what does exactly happen when I use python: into a zpt? Is it a problem if I have many python: in my page templates? What are the differences in performances of these two definitions? metal:block tal:define=my_value my_object/getValue.../metal:block metal:block tal:define=my_value

Re: [Zope] page templates and python:

2006-07-03 Thread Andreas Jung
--On 3. Juli 2006 15:05:36 +0200 Claudio Battaglino [EMAIL PROTECTED] wrote: Hi, what does exactly happen when I use python: into a zpt? Is it a problem if I have many python: in my page templates? What are the differences in performances of these two definitions? Talking of

Re: [Zope] page templates and python:

2006-07-03 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 3 Jul 2006, at 15:09, Andreas Jung wrote: metal:block tal:define=my_value my_object/getValue.../ metal:block metal:block tal:define=my_value python:my_object.getValue().../metal:block The main difference between both variants is that in

Re: [Zope] page templates and python:

2006-07-03 Thread Claudio Battaglino
Jens Vagelpohl ha scritto: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 3 Jul 2006, at 15:09, Andreas Jung wrote: metal:block tal:define=my_value my_object/getValue.../ metal:block metal:block tal:define=my_value python:my_object.getValue().../metal:block The main difference

Re: [Zope] page templates and python:

2006-07-03 Thread Andreas Jung
--On 3. Juli 2006 15:38:58 +0200 Claudio Battaglino [EMAIL PROTECTED] wrote: Jens Vagelpohl ha scritto: Could it be that, using a Python expression, I have an overhead because Zope loads a Python interpreter each time it finds a python:? If this is true then it is better to use path

[Zope] Re: page templates and python:

2006-07-03 Thread Tonico Strasser
Claudio Battaglino schrieb: Hi, what does exactly happen when I use python: into a zpt? Is it a problem if I have many python: in my page templates? Path expressions are by far better human readable IMHO. I try very hard to avoid Python expressions if possible. To give you an example: I

Re: [Zope] Re: page templates and python:

2006-07-03 Thread Andreas Jung
--On 3. Juli 2006 15:50:41 +0200 Tonico Strasser [EMAIL PROTECTED] wrote: Claudio Battaglino schrieb: Hi, what does exactly happen when I use python: into a zpt? Is it a problem if I have many python: in my page templates? Path expressions are by far better human readable IMHO. I try

[Zope] Re: page templates and python:

2006-07-03 Thread Tonico Strasser
Small correction ... option tal:attributes=python: test(foo == bar, 'selected', None) ... Should be: option tal:attributes=selected python: test(foo == bar, 'selected', None) ... ___ Zope maillist - Zope@zope.org

Re: [Zope] page templates and python:

2006-07-03 Thread Chris McDonough
Actually, I think python: expressions perform slightly better than their path: counterparts because their evaluation step needs to do less work (no guessing about getitem vs. getattr). Geoff Davis taught me that. But in the end it's all dwarfed by the penalty imposed by security, so it

Re: [Zope] wher i can find network device content types to develop network manage system?

2006-07-03 Thread Jean Jordaan
Hi LYNN develope a network manage sytem based on zope/plone on web. Maybe you can find something useful here: http://zenoss.org/ Zenoss is a powerful, integrated, easy-to-use IT infrastructure monitoring software product. [...] Zenoss is a written in Python using Zope, MySQL, RRDtool,

Re: [Zope] page templates and python:

2006-07-03 Thread Lennart Regebro
On 7/3/06, Chris McDonough [EMAIL PROTECTED] wrote: Actually, I think python: expressions perform slightly better than their path: counterparts because their evaluation step needs to do less work (no guessing about getitem vs. getattr). Geoff Davis taught me that. But in the end it's all

Re: [Zope] page templates and python:

2006-07-03 Thread Claudio Battaglino
Andreas Jung ha scritto: --On 3. Juli 2006 15:38:58 +0200 Claudio Battaglino [EMAIL PROTECTED] wrote: Jens Vagelpohl ha scritto: Could it be that, using a Python expression, I have an overhead because Zope loads a Python interpreter each time it finds a python:? If this is true then

[Zope] Re: page templates and python:

2006-07-03 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lennart Regebro wrote: On 7/3/06, Chris McDonough [EMAIL PROTECTED] wrote: Actually, I think python: expressions perform slightly better than their path: counterparts because their evaluation step needs to do less work (no guessing about getitem

Re: [Zope] page templates and python:

2006-07-03 Thread Lennart Regebro
On 7/3/06, Claudio Battaglino [EMAIL PROTECTED] wrote: Is it a significant test? Yes, for the use case of in-memory objects and methods. You might want to do the same with a traversal path nocall:context/folder1/folder2/folder3, or something, and then python:context.folder1.folder2.folder3

Re: [Zope] [ANN] TextIndexNG 3.1.10 released

2006-07-03 Thread MIlos Prudek
On Saturday 03 of June 2006 15:28, Andreas Jung wrote: I am pleased to announce the release of TextIndexNG V 3.1.10 Hi, I have just tried TextIndexNG V 3.1.9 in Zope 2.9.3 and it shows in Control_Panels/Products as installed... I did compile the modules as required by README... but an

Re: [Zope] [ANN] TextIndexNG 3.1.10 released

2006-07-03 Thread Andreas Jung
--On 3. Juli 2006 21:16:53 +0200 MIlos Prudek [EMAIL PROTECTED] wrote: On Saturday 03 of June 2006 15:28, Andreas Jung wrote: I am pleased to announce the release of TextIndexNG V 3.1.10 Hi, I have just tried TextIndexNG V 3.1.9 in Zope 2.9.3 and it shows in Control_Panels/Products as

Re: [Zope] Rollback and delete weird behavior

2006-07-03 Thread dieter
Luiz Fernando B. Ribeiro wrote at 2006-7-1 14:24 -0300: ... The problem is that the raise is not rolling back the delete, looking in mysql log the following sequence was found: Be warned that mysql needs special precaution to be transaction aware. Your mysql connection may have been made