[Zope-Coders] Zope tests: 8 OK

2005-10-10 Thread Zope tests summarizer
Summary of messages to the zope-tests list. Period Sun Oct 9 11:01:01 2005 UTC to Mon Oct 10 11:01:01 2005 UTC. There were 8 messages: 8 from Zope Unit Tests. Tests passed OK --- Subject: OK : Zope-2_6-branch Python-2.1.3 : Linux From: Zope Unit Tests Date: Sun Oct 9 22:28:54 EDT

[Zope-dev] Allowing python logging from restricted code

2005-10-10 Thread Chris Withers
Hi All, Would anyone have a problem if I added the necessary security declarations to allow the python logging module to be used from restricted code? I'd like do this both for the trunk and the 2.8 branch, unless anyone has huge objections... Furthermore, I'd like to change zope.conf to

Re: [Zope-dev] Re: [Zope-Checkins] SVN: Zope/trunk/lib/python/Shared/DC/ZRDB/ Collector #556: sqlvar now returns 'null' rather than 'None'.

2005-10-10 Thread Chris Withers
Andreas Jung wrote: Argh...there is also a gadfly package coming from Zope 3. So when we remove it from the Zope 2 core we get it back with Zope 3 :-) Well, having a lightweight semi-functional rdb engine in the distro has always seemed handy for me, mainly for testing rdb-related components

[Zope-dev] Re: Gadfly (was: Collector #556: sqlvar now returns 'null' rather than 'None'.)

2005-10-10 Thread Jens Vagelpohl
On 10 Oct 2005, at 08:58, Chris Withers wrote: Andreas Jung wrote: Argh...there is also a gadfly package coming from Zope 3. So when we remove it from the Zope 2 core we get it back with Zope 3 :-) Well, having a lightweight semi-functional rdb engine in the distro has always seemed

Re: [Zope-dev] Allowing python logging from restricted code

2005-10-10 Thread Jim Fulton
Chris Withers wrote: Hi All, Would anyone have a problem if I added the necessary security declarations to allow the python logging module to be used from restricted code? I'd like do this both for the trunk and the 2.8 branch, unless anyone has huge objections... I think you need to be

Re: [Zope-dev] Re: [Zope-Checkins] SVN: Zope/trunk/lib/python/Shared/DC/ZRDB/ Collector #556: sqlvar now returns 'null' rather than 'None'.

2005-10-10 Thread Sidnei da Silva
On Mon, Oct 10, 2005 at 08:58:53AM +0100, Chris Withers wrote: | Andreas Jung wrote: | Argh...there is also a gadfly package coming from Zope 3. So when we | remove it from the Zope 2 core we get it back with Zope 3 :-) | | Well, having a lightweight semi-functional rdb engine in the distro has

Re: [Zope-dev] Re: [Zope-Checkins] SVN: Zope/trunk/lib/python/Shared/DC/ZRDB/ Collector #556: sqlvar now returns 'null' rather than 'None'.

2005-10-10 Thread Andrew Veitch
SQLite implements enough of a subset of SQL to be genuinely useful and it's performance isn't too bad either. There is a Zope DA for it somewhere too. We've never been able to use Gadfly for testing as it's so far from standard SQL that it just causes more problems than it solves - as we

Re: [Zope-dev] Re: [Zope-Checkins] SVN: Zope/trunk/lib/python/Shared/DC/ZRDB/ Collector #556: sqlvar now returns 'null' rather than 'None'.

2005-10-10 Thread Andreas Jung
--On 10. Oktober 2005 11:03:54 -0300 Sidnei da Silva [EMAIL PROTECTED] wrote: If I'm allowed to say anything, I would like to see gadfly being replaced by sqlite. It's available mostly everywhere except in Windows by default, as many products already use it. sqlite itself is 'public

[Zope-dev] RestrictedPython, TALES Expressions and CMF

2005-10-10 Thread Sidnei da Silva
(sorry for the cross-post) I'm currently facing an issue that seems to be a result of a bad interaction between CMF, TALES and Restricted Python. The issue currently happens when: 1. A TALES 'Path Expression' in 'Caching Policy Manager' is evaluated 2. The result of evaluating a

Re: [Zope-PAS] Re: Moving PAS and PluginRegistry to SVN?

2005-10-10 Thread Lennart Regebro
On 10/9/05, Jens Vagelpohl [EMAIL PROTECTED] wrote: On 9 Oct 2005, at 19:46, Rocky Burt wrote: What is the timeframe on this being done? Just so I know when to update my development versions of PAS. - Rocky Jens Vagelpohl wrote: I would volunteer to move both the

Re: [Zope] [Ann] Zope Hotfix 2005-10-09

2005-10-10 Thread Tino Wildenhain
Andreas Jung schrieb: Hello, a security issue with the Docutils package coming with Zope 2.6 or higher has been discovered. Sites that expose reStructuredText functionality to untrusted users (typically portal sites allowing registered users to edit content) are possibly affected. Download

Re: [Zope] LocalFS problems with @import-ing stylesheets

2005-10-10 Thread Peter Bengtsson
2005/10/10, Samuel Souk-aloun [EMAIL PROTECTED]: I can confirm the problem, the stylesheet is not rendered from localfs with firefox the problem is caused by an incorect http header text/plain instead of text/css I've tried to add a type_map to the LocalFS but the content-type does not

[Zope] Re: Presentations Available

2005-10-10 Thread Nick Davis
Rob, Tres, Thanks a lot for your helpful responses. I take Tres's point of the difficulty of making templates that work for the different interests of designers and programmers, and that migration headaches are often a consequence of this. Hadn't thought of it like that before. Also its

Re: [Zope] Write log file from script

2005-10-10 Thread Chris Withers
Dave Kuhlman wrote: Why not zLOG? Look at: Zope-2.8.1-home/lib/python/zLOG/__init__.py Well, zLOG is hopefully going away some time soon ;-) You should really be using the python logging module, for which zLOG is now just a facade: import logging logger =

[Zope] ODBC database adapter for zope2.8.1 on windows

2005-10-10 Thread Sreekanth S Rameshaiah
Dear Friends, Is there any good ODBC database adapter for zope2.8.1 on windows? Thanks and Regards, - sree -- Sreekanth S Rameshaiah Executive Director Mahiti Infotech Pvt. Ltd. Ph: +91 98455 12611 www.mahiti.org www.mahiti.org/Team/Sreekanth First they ignore you,

Re: [Zope] ODBC database adapter for zope2.8.1 on windows

2005-10-10 Thread Andreas Jung
google for mxodbc --On 10. Oktober 2005 16:37:45 +0530 Sreekanth S Rameshaiah [EMAIL PROTECTED] wrote: Dear Friends, Is there any good ODBC database adapter for zope2.8.1 on windows? Thanks and Regards, - sree -- Sreekanth S Rameshaiah Executive Director Mahiti

[Zope] MailTemplates 1.0.0 Released!

2005-10-10 Thread Chris Withers
These allow you to use the full power of the the python email package along with Zope's Page Template technology to easily build and send fully standards compliant emails. The key feaures are: - Use familiar ZPT syntax to generate both plain text and html email - Easily create multi-part

Re: [Zope] reading zope.config file for ClientStorage

2005-10-10 Thread Chris Withers
Mika, David P (Research) wrote: To initialize ZEO clients with ClientStorage I need info such as host, port, etc. All the needed stuff is tucked away nicely in the zope.config file and I would like to be using the zope machinery access it. I know that what I need is in there somewhere, but when

Re: [Zope] Re: ZAjax anyone?

2005-10-10 Thread Bakhtiar A Hamid
On 10/10/05, Greg Fischer [EMAIL PROTECTED] wrote: Ok, after further investigation, Tim Morgan's React is not exactly what I am looking for. That said, his work is outstanding, and I think it's awesome! It's like Ruby On Rails implemented (better IMHO) in Zope! Very cool! However, I think what I

Re: [Zope] NameError in Zope Tutorial Lesson 8

2005-10-10 Thread Bakhtiar A Hamid
On 10/9/05, Norbert Kaufmann [EMAIL PROTECTED] wrote: Hello listmembers,I am fairly new to Zope and turning debugging on and googling a lot doesnot lead me to the solution of the problem.Learning Zope I got this error trying out lesson 8(cont.):--snip-- Error Type: NameErrorError Value: global

RE: [Zope] reading zope.config file for ClientStorage

2005-10-10 Thread Mika, David P (Research)
I've taken a look at stepper and dug into the zope source again. It looks like both are relying on a startup script akin to zopectl to marshal everything correctly. I would rather not be using a startup script (besides I couldn't sort it out); this is what I have so far: from

[Zope] proxy role for an external method

2005-10-10 Thread Reinoud van Leeuwen
Hi, I have a working pyhton script in the ZODB that searches for members and is called by a xmlrpc client. Security is only needed based on source IP address, so Anonymous can execute it, but the script has an Authenticated proxy role. I would like to convert this script to an Exteral Method

Re: [Zope] How to make a table with sortable colmns?

2005-10-10 Thread Thomas Apostolou
Thank you all. You have helped ance again. after reading the article above i understood that apart from writing table id="sortable" class="listing" summary="Content listing" cellpadding="0" cellspacing="0" i sould also import this 2 js files wich makes my page understand what class="listing"

Re: [Zope] proxy role for an external method

2005-10-10 Thread Jens Vagelpohl
On 10 Oct 2005, at 16:49, Reinoud van Leeuwen wrote: I would like to convert this script to an Exteral Method in $INSTANCE_HOME/Extensions. This basically works, but I cannot see any way to specify the proxy role. And when it is not specified the script obviously does not work. Have you

Re: [Zope] proxy role for an external method

2005-10-10 Thread Andreas Jung
--On 10. Oktober 2005 17:49:20 +0200 Reinoud van Leeuwen [EMAIL PROTECTED] wrote: I would like to convert this script to an Exteral Method in $INSTANCE_HOME/Extensions. This basically works, but I cannot see any way to specify the proxy role. And when it is not specified the script

Re: [Zope] NameError in Zope Tutorial Lesson 8

2005-10-10 Thread Norbert Kaufmann
Bakhtiar A Hamid wrote: [...] there's some more traceback that may help us determine where it b0rked. Sorry to bother you. Those who can read have a big advantage ;) I did not set the 'title' parameter in the scripts parameter list. But I have learned a lot about Zope debugging. So this time

Re: [Zope] proxy role for an external method

2005-10-10 Thread Reinoud van Leeuwen
On Mon, Oct 10, 2005 at 05:06:22PM +0100, Jens Vagelpohl wrote: On 10 Oct 2005, at 16:49, Reinoud van Leeuwen wrote: I would like to convert this script to an Exteral Method in $INSTANCE_HOME/Extensions. This basically works, but I cannot see any way to specify the proxy role. And when it

Re: [Zope] proxy role for an external method

2005-10-10 Thread Andreas Jung
Are you using CMF/Plone? -aj --On 10. Oktober 2005 19:18:00 +0200 Reinoud van Leeuwen [EMAIL PROTECTED] wrote: On Mon, Oct 10, 2005 at 05:06:22PM +0100, Jens Vagelpohl wrote: On 10 Oct 2005, at 16:49, Reinoud van Leeuwen wrote: I would like to convert this script to an Exteral Method in

Re: [Zope] proxy role for an external method

2005-10-10 Thread Reinoud van Leeuwen
On Mon, Oct 10, 2005 at 07:27:11PM +0200, Andreas Jung wrote: Are you using CMF/Plone? yes. the main part of the function is: for brain in self.portal_catalog(portal_type='User', SearchableText=SearchableText): user = brain.getObject()

Re: [Zope] proxy role for an external method

2005-10-10 Thread Reinoud van Leeuwen
On Tue, Oct 11, 2005 at 03:42:44AM +1000, Alan Milligan wrote: yes. I I run the script from the ZMI logged in as admin it finds members, but if I try it from an XMLRPC client it does not You're sure you haven't got an access control problem and that your xml-rpc client is not running up

Re: [Zope] proxy role for an external method

2005-10-10 Thread Andreas Jung
--On 10. Oktober 2005 20:00:23 +0200 Reinoud van Leeuwen [EMAIL PROTECTED] wrote: But really searching for something through xmlrpc does not work. If I copy paste the code in an (ZODB) Python script which I give the Authenticated proxy role it works perfect. Nonsense. Your problem has

Re: [Zope] proxy role for an external method

2005-10-10 Thread Peter Bengtsson
2005/10/10, Reinoud van Leeuwen [EMAIL PROTECTED]: On Mon, Oct 10, 2005 at 07:27:11PM +0200, Andreas Jung wrote: Are you using CMF/Plone? yes. the main part of the function is: for brain in self.portal_catalog(portal_type='User',

Re: [Zope] proxy role for an external method

2005-10-10 Thread Reinoud van Leeuwen
On Mon, Oct 10, 2005 at 10:57:25PM +0100, Peter Bengtsson wrote: 2005/10/10, Reinoud van Leeuwen [EMAIL PROTECTED]: On Mon, Oct 10, 2005 at 07:27:11PM +0200, Andreas Jung wrote: Are you using CMF/Plone? yes. the main part of the function is: for brain in

Re: [Zope] proxy role for an external method

2005-10-10 Thread Peter Bengtsson
2005/10/10, Reinoud van Leeuwen [EMAIL PROTECTED]: On Mon, Oct 10, 2005 at 10:57:25PM +0100, Peter Bengtsson wrote: 2005/10/10, Reinoud van Leeuwen [EMAIL PROTECTED]: On Mon, Oct 10, 2005 at 07:27:11PM +0200, Andreas Jung wrote: Are you using CMF/Plone? yes. the main part of the

Re: [Zope] POSKeyError nightmare

2005-10-10 Thread Kevin Carlson
Dieter, I'm not sure I understand what you mean by fixing them all as shown above. You mention loading the object from the ZODB and deleting the broken references, but I'm not sure how to do that. I have looked around for info on loading objects by oid but cannot find anything helpful.

Re: [Zope] proxy role for an external method

2005-10-10 Thread Jens Vagelpohl
On 10 Oct 2005, at 23:14, Peter Bengtsson wrote: I understood that Plone does some extra magic, so I have to setup a securoty context... I'll post it here if I have a working solution Shouldn't really be the problem. Isn't portal_catalog just another ZCatalog that has nothing to do with

[Zope] Re: Zope Hotfix 2005-10-09 broke my zope 2.7.5

2005-10-10 Thread John Schinnerer
Aloha, I just applied the below hotfix as directed to a zope 2.7.5 installation on my development machine. It broke something bad, now the browser just says The connection was refused when attempting to contact localhost:9673 I cannot access the ZMI nor any site pages, not on localhost:9673

Re: [Zope] Re: Zope Hotfix 2005-10-09 broke my zope 2.7.5

2005-10-10 Thread Andreas Jung
r --On 10. Oktober 2005 20:21:10 -0700 John Schinnerer [EMAIL PROTECTED] wrote: Aloha, I just applied the below hotfix as directed to a zope 2.7.5 installation on my development machine. It broke something bad, now the browser just says The connection was refused when attempting to

[Zope] Re: LocalFS problems with @import-ing stylesheets

2005-10-10 Thread Chris Beaven
Samuel Souk-aloun wrote: I can confirm the problem, the stylesheet is not rendered from localfs with firefox the problem is caused by an incorect http header text/plain instead of text/css I've tried to add a type_map to the LocalFS but the content-type does not change so, for me, it is clearly

[Zope] Zope security and packing the database

2005-10-10 Thread Cameron Beattie
I have created a script based on zope_pack from the Zope book which allows a username and password to be specified when it is called. I wish to create a user specifically for this purpose that only has the ability to pack the ZODB. I've created a custom role and a user that has this role.