Re: [Zope-dev] Re: [Zope-Coders] Re: Question about procedures

2005-03-30 Thread Chris Withers
martin f krafft wrote: Do not use hasattr for persistent objects. Use if getattr(ob, 'absolute_url', None) is None: Can I read up on the rationale somewhere? hasattr catches all exceptions and returns false. Now google for COnflictError ;-) + raise

Re: [Zope-dev] Re: [Zope-Coders] Re: Question about procedures

2005-03-30 Thread martin f krafft
also sprach Chris Withers [EMAIL PROTECTED] [2005.03.30.1513 +0200]: You should probably run the unit tests before you commit anything. That also means you should write tests to excercise the changes you're making, and make sure the tests fail BEFORE you try and fix anything. Okay. Man, this

[Zope-dev] brain.getObject and traversal

2005-03-30 Thread Florent Guillaume
To try to clarify things even more: The implementation of getObject I checked in a few days ago has the following properties: 1. it checks permissions only on the last step of the traversal, 2. it returns None if for some reason the object cannot be retrieved. Now for the rationale: 1. is

Re: [Zope-dev] brain.getObject and traversal

2005-03-30 Thread Chris Withers
Florent Guillaume wrote: 2. is necessary for backward compatibility. *all* the previous implementations of getObject returned None in case of problems. This is the only bit I'm asking about, I accept that I'm in the insane minority on the other point ;-) Just because that's what it did before

Re: [Zope-dev] brain.getObject and traversal

2005-03-30 Thread Florent Guillaume
Chris Withers wrote: Just because that's what it did before doesn't mean we should leave it like that. I can see absolutely no benefit in returning None over raising a specific error. Also, the original behaviour of getObject, prior to Casey's drastic and unexpected switch to

[Zope-dev] More robust cookie handling

2005-03-30 Thread S.Aeschbacher
Hi during some testing I did I stumbled over this problem. When a client which is accessing a page on a Zope server sends a _ZopeId with other spelling (e.g. _ZOPEID). Zope does not accept the cookie and (obviously) sends a new value in the answer. According to RFC 2965 and RFC 2109 (defines the

Re: [Zope-dev] More robust cookie handling

2005-03-30 Thread Andreas Jung
--On Mittwoch, 30. März 2005 17:06 Uhr +0200 S.Aeschbacher [EMAIL PROTECTED] wrote: Hi during some testing I did I stumbled over this problem. When a client which is accessing a page on a Zope server sends a _ZopeId with other spelling (e.g. _ZOPEID). Zope does not accept the cookie and

[Zope-dev] heads-up: trunk(2.8) and five-integration branch merge

2005-03-30 Thread Brian Lloyd
hiya - Just a head's up that I going to try to merge the five-integration branch to the trunk in a bit so Tim can get unblocked on stitching in the newest ZODB. Brian Lloyd[EMAIL PROTECTED] V.P. Engineering 540.361.1716 Zope Corporation http://www.zope.com

[Zope-dev] Disabling FTP by default

2005-03-30 Thread Florent Guillaume
I'd like to disable FTP by default, by commenting it out in skel/etc/zope.conf. The reason is that it's better to open as few ports as possible by default. Opinions ? Florent -- Florent Guillaume, Nuxeo (Paris, France) CTO, Director of RD +33 1 40 33 71 59 http://nuxeo.com [EMAIL

Re: [Zope-dev] Disabling FTP by default

2005-03-30 Thread Andreas Jung
--On Mittwoch, 30. März 2005 19:54 Uhr +0200 Florent Guillaume [EMAIL PROTECTED] wrote: I'd like to disable FTP by default, by commenting it out in skel/etc/zope.conf. The reason is that it's better to open as few ports as possible by default. Opinions ? Maybe not for Zope 2.7.X..in general..I

Re: [Zope-dev] Disabling FTP by default

2005-03-30 Thread Dennis Allison
That's what I have been doing. -d On Wed, 30 Mar 2005, Florent Guillaume wrote: I'd like to disable FTP by default, by commenting it out in skel/etc/zope.conf. The reason is that it's better to open as few ports as possible by default. Opinions ? Florent -- Dennis Allison *

Re: [Zope-dev] ZPT: defer expression fix

2005-03-30 Thread Dieter Maurer
Christian Heimes wrote at 2005-3-28 21:03 +0200: PageTemplates have an undocumented features called defer:. It's a kind of lazy initialization of variables. I've fixed to issues in my tiran-zpt-pydefer branch (svn): * DeferWrappers weren't working inside a python expression because

Re: [Zope-dev] Problems with zope 2.7.0 and ZODB (suse 9.1)

2005-03-30 Thread Dieter Maurer
Antonio Beamud Montero wrote at 2005-3-29 20:49 +0200: I get the next errors, when I try to add some of my Product Instances... (In zope 2.5.0 works well...) 2005-03-29T18:52:47 INFO(0) ZODB Opening database for mounting: '1110315472_1112115167.490661' -- 2005-03-29T18:52:47 PROBLEM(100) ZODB

Re: [Zope-dev] Disabling FTP by default

2005-03-30 Thread Rodrigo Dias Arruda Senra
On Wed, 30 Mar 2005 19:54:39 +0200 Florent Guillaume [EMAIL PROTECTED] wrote: I'd like to disable FTP by default, by commenting it out in skel/etc/zope.conf. The reason is that it's better to open as few ports as possible by default. +1 cheers, Senra -- Rodrigo Senra MSc

[Zope-dev] Test failures with five-integration branch merged to head...

2005-03-30 Thread Brian Lloyd
I did a merge from the five-integration branch to the head in a local sandbox, and got the following test failures - anyone know anything about them? Brian Lloyd[EMAIL PROTECTED] V.P. Engineering 540.361.1716 Zope Corporation http://www.zope.com Running unit tests

[Zope-dev] Re: Re: Clarification re: Zope X3.1, 2.8

2005-03-30 Thread Florian Schulze
On Tue, 29 Mar 2005 18:12:51 -0500, Tim Peters [EMAIL PROTECTED] wrote: [Tres] - ZODBGuru uses 'svn rm' to zap the current ZODB on the trunk, replacing it with an 'svn:external' link to your ZODB 3.4 tag; and then tests it (could be an 'svn cp', but I don't see any benefit to

Re: [Zope-dev] Clarification re: Zope X3.1, 2.8

2005-03-30 Thread Tim Peters
I'm merging ZODB 3.4 into Zope on a branch. As Tres noted earlier in a checkin comment, a test failure results, because at the ZODB sprint we fleshed out IDataManager and an older Zope3 class claiming to implement IDataManager no longer does. Since Zope trunk doesn't own either the IDataManager

[Zope-dev] zope /tmp file usage

2005-03-30 Thread Pavel Zaitsev
Hi, I am wondering what code in Zope 2.7.5-final potentially may use /tmp directory for temprorary files. I am using zope over webdav and sometimes webdav tries to create a tmp file, of some sort and some parts of the system lock up. There are xml parsers,mime decoders all of which do have

[Zope-dev] Re: Clarification re: Zope X3.1, 2.8

2005-03-30 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Florian Schulze wrote: On Tue, 29 Mar 2005 18:12:51 -0500, Tim Peters [EMAIL PROTECTED] wrote: [Tres] - ZODBGuru uses 'svn rm' to zap the current ZODB on the trunk, replacing it with an 'svn:external' link to your ZODB 3.4 tag; and

Re: [Zope-dev] Re: Re: Clarification re: Zope X3.1, 2.8

2005-03-30 Thread Tim Peters
[Florian Schulze] When you use svn:external, it will be copied as is to the tag, so when the external files change, the files in the tag change as well. So a svn cp would be better I guess. When I make an SVN tag, like repos/main/ZODB/tags/3.4.0a1, the iron intent is that no changes will ever

Re: [Zope] avoiding 'AttributeError'

2005-03-30 Thread Dieter Maurer
Malthe Borch wrote at 2005-3-27 01:15 +0100: I can't seem to find an elegant solution to checking if an object has a certain attribute. The following fails (i.e. zope dies), if the attribute does not exist: p tal:condition=exists: obj/someAttribute tal:replace=obj/someAttribute / This should

Re: [Zope] login page problem

2005-03-30 Thread Dieter Maurer
prabuddha ray wrote at 2005-3-29 01:57 -0800: I'm creatin a customised login page template using districtname, user name and password. i got halt in d logic for password checking. after submitting d login form how do i call d same page if the passwd is wrong along with d req params passed? do i

Re: [Zope] Mac OS X and zope (continued)

2005-03-30 Thread Pavel Zaitsev
Oops looks like i have made mistake to use select instead of thread command... post more log stuff later. pavel ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -

RE: [Zope] avoiding 'AttributeError'

2005-03-30 Thread Malthe Borch
' -Original Message- ' From: Dieter Maurer [mailto:[EMAIL PROTECTED] ' p tal:condition=exists: obj/someAttribute 'tal:replace=obj/someAttribute / ' ' This should not fail and, especially, Zope should not die. ' ' If Zope really dies, then there is a *severe* problem elsewhere ' (not

Re: [Zope] role, user defined roles, and inclusion

2005-03-30 Thread Dieter Maurer
Chris Withers wrote at 2005-3-30 08:31 +0100: Dennis Allison wrote: Are the standard roles (anonymous, authorized_user, manager) inclusive? Yes. These special roles are inclusive (as their name might suggest). ... A user will have the Anonymous role iff they have not supplied any

Re: [Zope] User changing their own password via External Method with Cookie Crumbler

2005-03-30 Thread Dave Cinege
On Wednesday 30 March 2005 12:00, [EMAIL PROTECTED] wrote: Dave Cinege wrote: Does anyone have a working example code snippet? Have a look at the CMF source code, find the bit that allows users to change their own passwords... Thanks. I was hoping it wouldn't come to that... From what I

[Zope] Ecommerce solutions

2005-03-30 Thread Ian Nunn
Has anyone used Zopewith a shopping cart such as AgoraCart to create an online store? Best RegardsIan Nunn ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -

Re: [Zope] role, user defined roles, and inclusion

2005-03-30 Thread robert
Dieter, thanks for your clarifications. Is my assumption that granting a permission to Anonymous means granting it to anybody correct? Robert Dieter Maurer wrote: Chris Withers wrote at 2005-3-30 08:31 +0100: Dennis Allison wrote: Are the standard roles (anonymous, authorized_user,

[Zope] WebDAV BUGS and access to /tmp directory

2005-03-30 Thread Pavel Zaitsev
Hi, I am back trying to figure out why my zope crashes on open('/tmp/tmp4fd4foo') kind of opens, which seem to originated from webdav code. Question to someone who is expert in webdav/*.py code... I just would like to know so I can further my investigation into the bug/malfuction of zope on OS

[Zope] Re: login page problem

2005-03-30 Thread prabuddha ray
thnx dieter n chris, i cudnt make my point clear. 1st a recap : i've a zpt login page wherein i have got the district name n coressponding users drop down list built. now after selecting d district n username d passwd is to b filled. then d form is to b submitted. It has

RE: [Zope] Re: login page problem

2005-03-30 Thread Somhorst JJT
You could try to look at the tutorial on devshed.com. They created a login system using text files. Its not exactly as you want but it gives you an idea about how to handle things :) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of prabuddha ray Sent: