Re: [Zope-dev] FW: Catalogs, Imports, and Path Awareness (was Re:[Zope-dev] ZClass Constructor Cleanup for 2.6)

2002-04-02 Thread R. David Murray
On Mon, 1 Apr 2002, Jeffrey P Shell wrote: subobjects and calls that. That's probably the right thing, but it is what's causing the double cataloging, regardless of how the item is cataloged. Catalog*Aware objects call into the catalog during manage_afterAdd, and I'm sure that the same

[Zope-dev] Re: Catalogs, Imports, and Path Awareness (was Re: [Zope-dev]ZClassConstructor Cleanup for 2.6)

2002-04-02 Thread Chris Withers
R. David Murray wrote: I thought that with ZPatterns one was recommended to avoid the Catalog mixins and instead use something like SteveA's catalog trigger from ZPAddOns (I think that's the right product name). I think it's called TransactionAgents now... or something... Chris

[Zope-dev] __bobo_traverse__, restrictedTraverse and PageTemplates

2002-04-02 Thread Florent Guillaume
I'm using Zope 2.5.1b1, CMF from CVS. I'm having a strange problem when trying to define a custom __bobo_traverse__, where an Unauthorized exception is raised from PageTemplates/Expressions.py/restrictedTraverse. The object's __bobo_traverse__ is simply doing def __bobo_traverse__(self,

Re: [Zope-dev] __bobo_traverse__, restrictedTraverse and PageTemplates

2002-04-02 Thread Shane Hathaway
Florent Guillaume wrote: So I don't understand the different treatments, with bobo_traverse I get a None container, which makes the validate fail, whereas standard traversal calls ac_acquire with as a filter validate2, the filters receives a container, and this validation suceeds. If

[Zope-dev] ZCatalog: hiding search results from unauthorized users - hack

2002-04-02 Thread Igor Stroh
Hi all, in case someone have same problem as me (see ZCatalog - hiding query results thread for more info) - I got a solution: - create a product that subclasses ZCatalog - in this product overwrite ZCatalog.getobject with def getobject(self, rid): foo obj =

[Zope-dev] ZCatalog - hiding query results

2002-04-02 Thread Igor Stroh
Hi all, I don't know if it's the right list to post to, but I have the following problem: I have several objects (documents, folders etc) that are accessible only by a certain user role, this objects are cataloged. Now if I query the catalog the brains of these objects are returned correctly,

Re: [Zope-dev] __bobo_traverse__, restrictedTraverse and PageTemplates

2002-04-02 Thread Florent Guillaume
Shane Hathaway [EMAIL PROTECTED] wrote: If anybody has any lights on how I can write the __bobo_traverse__ I need... I'm assuming you're using TALES traversal as opposed to ZPublisher traversal, right? It lets you view the objects directly through the web, doesn't it? Yes, TALES

Re: [Zope-dev] ZCatalog: hiding search results from unauthorized users - hack

2002-04-02 Thread Casey Duncan
The problem with this solution is that you must wake up every object found, thus negating the performance/memory advantaged of ZCatalog's lazy result sets. Since you said (in your other message) that the restriction is by role, couldn't you just index the roles allowed to view a given object

Re: [Zope-dev] SQLite as a Light DB component for Zope and Python

2002-04-02 Thread Eron Lloyd
Very interesting. I think I've read about this somewhere before. The claim of 4x faster than PostgreSQL raised my brow. It is true that Gadfly is becoming quite stale, and only supports a *very* limited subset of SQL. It also would be nice to see something a bit more robust than just shelve in

Re: [Zope-dev] SQLite as a Light DB component for Zope and Python

2002-04-02 Thread Ross J. Reedstrom
On Tue, Apr 02, 2002 at 10:02:22AM -0500, Eron Lloyd wrote: Very interesting. I think I've read about this somewhere before. The claim of 4x faster than PostgreSQL raised my brow. It is true that Gadfly is becoming quite stale, and only supports a *very* limited subset of SQL. It also would

[Zope-dev] ding, dong, the segfault is dead. Patch attached

2002-04-02 Thread Leonardo Rochael Almeida
On Mon, 2002-04-01 at 19:57, Leonardo Rochael Almeida wrote: On Thu, 2002-03-28 at 15:33, Matthew T. Kromer wrote: [...] The relevant report at sourceforge is: http://sourceforge.net/tracker/?func=detailatid=105470aid=535905group_id=5470 [...] Which is (or where can I find) the

[Zope-dev] DC development guide

2002-04-02 Thread Charlie Reiman
Is there a general Database Connection developer's guide? I'm currently attempting to hack together a user keyed DC system so each authenticated user gets her own sign-on specific connection to the database. While my work is proceeding pretty well, I'd like to, well, know what I'm doing. Does

Re: [Zope-dev] SQLite as a Light DB component for Zope and Python

2002-04-02 Thread William Trenker
At 10:45 AM 4/2/02 -0600, Ross J. Reedstrom [EMAIL PROTECTED] wrote: Scale, as in multiuser? Hardly at all: it's an SQL library that accesses a single, textbased, flatfile for the entire database. As a lightweight replacement for gadfly, it looks like it might be pretty good. Exactly. I'm

Re: [Zope-dev] ZCatalog - hiding query results

2002-04-02 Thread Dieter Maurer
Igor Stroh writes: That means, users that don't have the permission to View or Access Content Information can see the brains as well... You can look how the CMF (Content Management Framework) solves this problem. Look for allowedRolesAndUsers and the implicit query extension

[Zope-dev] DA howto found

2002-04-02 Thread Charlie Reiman
I was searching for database adaptor, not database adapter. Both spellings are correct according to m-w.com. http://www.zope.org/Members/petrilli/WritingADA ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev

[Zope-dev] Re: [Zope] isecure XML-RPC handling.

2002-04-02 Thread Eron Lloyd
The problem here seems to be that you are trying to do XML-RPC communication with a version of Zope that doesn't support XML-RPC out of the box. You should use a version = 2.4.0 to get this to work. From the output you sent below, it looks like you're trying to invoke an RPC method call

[Zope-dev] Final Python 2.1.x and Zope 2.5.x releases?

2002-04-02 Thread Adam Manock
Fellow bleeding edge Zopers, (Zopesters, Zopeheads, Zopers and Zopists too) Firstly, I'd like to thank everyone who has worked on the Segfault Saga, esp. Matthew and Leonardo! Obviously now that it's fixed, all that's left to do is to make stability a reality for everybody ;-) Does anyone

Re: [Zope-dev] Re: [Zope] isecure XML-RPC handling.

2002-04-02 Thread Martijn Pieters
On Tue, Apr 02, 2002 at 04:01:41PM -0500, Eron Lloyd wrote: On that thought, I'd like to see Zope.org become much more modern, and reflect the *latest* and *greatest* functionality of Zope. Deprecation of the hybrid PTK that's used, as well as updating and polishing of the site regularly.

Re: [Zope-dev] Final Python 2.1.x and Zope 2.5.x releases?

2002-04-02 Thread Anthony Baxter
Adam Manock wrote Does anyone know of a release timeline for a new bugfix release of Python, be it 2.1.2a or 2.1.3? I'm looking at it at the moment - I plan to roll out a version of this today on some of my ZEO clients and check it's stable. Sometime next week would be my guess for a

[Zope-dev] isecure XML-RPC handling.

2002-04-02 Thread Rossen Raykov
Zope is not handling correct XML-RPC request. Even the example from http://www.zope.org/Members/Amos/XML-RPC is not working. Even worst if a request like this one in the quoted example is send to the web server it will report information about the local server installation and the internal

[Zope-dev] Re: [Zope] isecure XML-RPC handling.

2002-04-02 Thread Chris McDonough
You are running Zope in debug mode (with the -D switch in the start file). This is the default. Please try running Zope in non-debug mode (remove the -D switch) and try this again. - Original Message - From: Rossen Raykov [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED];

[Zope-dev] Re: [Zope] isecure XML-RPC handling.

2002-04-02 Thread kapil thangavelu
he's testing against zope.org and the traceback is enclosed html comments, which probably does mean it is debug mode. as for the concerns... i leave that to others. -k On Tuesday 02 April 2002 12:18 pm, Chris McDonough wrote: You are running Zope in debug mode (with the -D switch in the

[Zope-dev] [DB-SIG] SQLite as a Light DB component for Zope and Python

2002-04-02 Thread William Trenker
At 01:58 AM 4/3/02 +0200, Magnus Lyckå [EMAIL PROTECTED] wrote: So, we expect to see the announcement of a DB-API 2 complient SQLite driver any day then! :-) I wish ! :-) Actually, I'd love to try it. But maybe there are some DB-API-2 experienced folks out there who could do this in their

[Zope-dev] Re: [DB-SIG] SQLite as a Light DB component for Zope and Python

2002-04-02 Thread jose
I'm working with SQLite right now, I find it a very interesting product, SQLite is tiny, fast, I think it is fast at least as MySQL but SQLite has TRANSACTIONS and it easy to install, for now it needs a python interface based on DB-SIG. IMO SQLite is a good candidate to replace Gadflay Jo