Re: [Zope3-dev] Re: Catalog improvements

2005-08-29 Thread Martijn Faassen
Dieter Maurer wrote: Martijn Faassen wrote at 2005-8-25 13:49 +0200: ... AdvancedQuery ... I need to figure out the lazy sorting concept too and how to port it to the Zope 3 catalog... I see elsewhere in the thread you also mention it supports a simple form of joins, which is also very

Re: [Zope3-dev] security problems with database adapters (second edition)

2005-08-29 Thread Dmitry Vasiliev
Velko Ivanov wrote: Hello, My problems on this subject didn't get resolved since my last post, but I have some new info and questions - The sympthoms (Zope 3.1.0c1): Database adapters are not usable by principals other than the zope.Manager, in the principals.zcml file. Any other principal

Re: [Zope3-dev] security problems with database adapters (second edition)

2005-08-29 Thread Velko Ivanov
I forgot to add cc: for the list, sorry Dmitry Vasiliev wrote: Looking at the code, the ZopeConnection object is created by the ZopeDatabaseAdapter class in zope.app.rdb (inherited by the actual DatabaseAdapter) with a simple call - self._v_connection =

Re: [Zope3-dev] Proxy and __slots__

2005-08-29 Thread Jim Fulton
Garrett Smith wrote: I'd like to create a proxy where __slots__ is determined (or appended to) when the proxy is constructed. E.g. foo = Foo() bar = SomeProxy(foo, 'baz') bar.baz = 123 hasattr(foo, 'baz') False hasattr(bar, 'baz') True Is it possible to do this? No, at least not

Re: [Zope3-dev] Florent's O-R blog entry

2005-08-29 Thread Gary Poster
On Aug 27, 2005, at 6:08 AM, Wichert Akkerman wrote: Previously Gary Poster wrote: We have at least three maintained and capable ZODB backends, with different strengths and weaknesses, appropriate for different use cases. Lets not jump to discard any of them. With current filesystem

Re: [Zope3-dev] [DRAFT] local portlets and perspectives

2005-08-29 Thread Jim Fulton
Jean-Marc Orliaguet wrote: ... What problem perspectives solves? -- I think I'm ready to respond to this now. I hope, with your current thinking that this is still relevent. local portlets are currently stored in local folders in a

Re: [Zope3-dev] [DRAFT] local portlets and perspectives

2005-08-29 Thread Jim Fulton
Jean-Marc Orliaguet wrote: ... Concerning unification: During the sprint in Göteborg in June according to what Tres mentionned it appeared to me said that the issue was to make portlets independent of any macro mechanism, and that the they should be treated as page fragments without any

Re: [Zope3-dev] [DRAFT] local portlets and perspectives

2005-08-29 Thread Jean-Marc Orliaguet
Jim Fulton wrote: Jean-Marc Orliaguet wrote: ... What problem perspectives solves? -- I think I'm ready to respond to this now. I hope, with your current thinking that this is still relevent. good :-) local portlets are currently

RE: [Zope3-dev] Proxy and __slots__

2005-08-29 Thread Garrett Smith
I ended up using 'type' to create a new proxy with a dynamically created __slots__. I haven't run into any weirdness with that approach, so far :) -- Garrett -Original Message- From: Jim Fulton [mailto:[EMAIL PROTECTED] Sent: Monday, August 29, 2005 9:03 AM To: Garrett Smith Cc:

[Zope3-dev] Makefile and python version number

2005-08-29 Thread Julien Anguenot
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi there, http://svn.zope.org/Zope3/trunk/Makefile?rev=37919r1=37889r2=37919 The reason is not explained within the logs ?? The problem is when you have the following installed : python-2.3.5 python-2.4.1 as the default Python version on the

Re: [Zope3-dev] [DRAFT] local portlets and perspectives

2005-08-29 Thread Jean-Marc Orliaguet
Jim Fulton wrote: Jean-Marc Orliaguet wrote: ... By using perspectives end-users can also use the portlet editor to move portlets on the canvas (as in the google news portal), By end-users, do you mean content managers? Or end-users of the content? Why do they need perspectives to do

[Zope3-dev] Re: Florent's O-R blog entry

2005-08-29 Thread Florent Guillaume
Hi folks, I've just returned from vacation, I'll read your numerous emails and try to provided detailed answers ASAP :) Florent -- Florent Guillaume, Nuxeo (Paris, France) CTO, Director of RD +33 1 40 33 71 59 http://nuxeo.com [EMAIL PROTECTED]

Re: [Zope3-dev] [DRAFT] local portlets and perspectives

2005-08-29 Thread Jean-Marc Orliaguet
Jim Fulton wrote: Jean-Marc Orliaguet wrote: ... This is what I meant with having a unifying concept. And that sounds very unifying to me already. Perspectives, if I understand how you are describing them, and how Eclipse describes them,

Re: [Zope3-dev] Makefile and python version number

2005-08-29 Thread Julien Anguenot
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ok I just changed the version number to correct the problem. I'll try to read the previous discussions you mentionned below. Cheers, J. Fred Drake wrote: On 8/29/05, Julien Anguenot [EMAIL PROTECTED] wrote:

Re: [Zope3-dev] [DRAFT] local portlets and perspectives

2005-08-29 Thread Jim Fulton
Jean-Marc Orliaguet wrote: Jim Fulton wrote: Jean-Marc Orliaguet wrote: ... By using perspectives end-users can also use the portlet editor to move portlets on the canvas (as in the google news portal), By end-users, do you mean content managers? Or end-users of the content? Why do

Re: [Zope3-dev] [DRAFT] local portlets and perspectives

2005-08-29 Thread Jim Fulton
Jean-Marc Orliaguet wrote: Jim Fulton wrote: Jean-Marc Orliaguet wrote: ... This is what I meant with having a unifying concept. And that sounds very unifying to me already. Perspectives, if I understand how you are describing them, and how Eclipse describes them,

Re: [Zope3-dev] [DRAFT] local portlets and perspectives

2005-08-29 Thread Jean-Marc Orliaguet
Jim Fulton wrote: Jean-Marc Orliaguet wrote: Yes, I think that Rob mentionned that there was such a use case where you had customers who wanted to control the way portlets were disposed on the screen on an individual basis. This gets to a terminology problem. JSR 168 defines portlets

[Zope3-dev] Proposed widget/schema work for the Rivah sprint (Thursday and Friday this week)

2005-08-29 Thread Gary Poster
We'll be doing some work on the widget/schema code at the Rivah sprint, Thursday and Friday this week. This email identifies the possible tasks, and proposes the actual choice of work (short answer: potentially all but the biggest, and last, 2). Interested parties are invited to comment

Re: [Zope3-dev] [DRAFT] local portlets and perspectives

2005-08-29 Thread Jim Fulton
Jean-Marc Orliaguet wrote: Jim Fulton wrote: Jean-Marc Orliaguet wrote: Yes, I think that Rob mentionned that there was such a use case where you had customers who wanted to control the way portlets were disposed on the screen on an individual basis. This gets to a terminology problem.

Re: [Zope3-dev] Proposed widget/schema work for the Rivah sprint (Thursday and Friday this week)

2005-08-29 Thread Stephan Richter
On Monday 29 August 2005 15:30, Gary Poster wrote: We'll be doing some work on the widget/schema code at the Rivah   sprint, Thursday and Friday this week.  This email identifies the   possible tasks, and proposes the actual choice of work (short answer:   potentially all but the biggest, and

Re: [Zope3-dev] [DRAFT] local portlets and perspectives

2005-08-29 Thread Jim Fulton
Jean-Marc Orliaguet wrote: Jim Fulton wrote: ... - They introduce a need for some complex infrastructure. what do you mean by complex? have you seen the prototype? for a user it does not seem too complex: - choose a perspective - add portlets to it - assign the perspective to some

Re: [Zope3-dev] [DRAFT] local portlets and perspectives

2005-08-29 Thread Jim Fulton
Jean-Marc Orliaguet wrote: Hi! Somehow related to the discussion on optimizing catalog queries, I have been thinking about how to best implement local portlets in cpsskins in terms of scalability, performance and functionality. The implementation is heavily dependent on being able to

Re: [Zope3-dev] Proposed widget/schema work for the Rivah sprint (Thursday and Friday this week)

2005-08-29 Thread Gary Poster
On Aug 29, 2005, at 3:44 PM, Stephan Richter wrote: On Monday 29 August 2005 15:30, Gary Poster wrote: We'll be doing some work on the widget/schema code at the Rivah sprint, Thursday and Friday this week. This email identifies the possible tasks, and proposes the actual choice of work

Re: [Zope3-dev] [DRAFT] local portlets and perspectives

2005-08-29 Thread Jean-Marc Orliaguet
Jim Fulton wrote: Jean-Marc Orliaguet wrote: Hi! Somehow related to the discussion on optimizing catalog queries, I have been thinking about how to best implement local portlets in cpsskins in terms of scalability, performance and functionality. The implementation is heavily dependent on

Re: [Zope3-dev] [DRAFT] local portlets and perspectives

2005-08-29 Thread Jean-Marc Orliaguet
Jim Fulton wrote: Jean-Marc Orliaguet wrote: Jim Fulton wrote: ... - They introduce a need for some complex infrastructure. what do you mean by complex? have you seen the prototype? for a user it does not seem too complex: - choose a perspective - add portlets to it - assign the

Re: [Zope3-dev] Proposed widget/schema work for the Rivah sprint (Thursday and Friday this week)

2005-08-29 Thread Jim Fulton
Stephan Richter wrote: On Monday 29 August 2005 15:30, Gary Poster wrote: We'll be doing some work on the widget/schema code at the Rivah sprint, Thursday and Friday this week. This email identifies the possible tasks, and proposes the actual choice of work (short answer: potentially all

[Zope3-dev] thread.local da-connection

2005-08-29 Thread Garanin Michael
Hello! I have situation: 1) I have PostgreSQL database: max-connection == 5 2) I have one IZopeDatabaseAdapter 2) I create 10 threads and join's (!!!) to main thread 2.1) In each thread i get IZopeConnection from IZopeDatabaseAdapter 2.2) execute simple select-statement call transaction.commit

Re: [Zope3-dev] Proposed widget/schema work for the Rivah sprint (Thursday and Friday this week)

2005-08-29 Thread Jim Fulton
Gary Poster wrote: ... 4 Recognize and document that the 'default' field argument is actually 'initial value'. That is, if you set a field with a default to the missing_value, the default does not become the field's value: the 'default' value is only used if the value has never been set

Re: [Zope3-dev] Proposed widget/schema work for the Rivah sprint (Thursday and Friday this week)

2005-08-29 Thread Jim Fulton
Garrett Smith wrote: ... Jim has been complaining vociferously about SimpleInputWidget. It's probably time to nuke it (fine, deprecrete) and replace it with helper functions ala utility.py. There's quite a bit on the plate here. I'd be inclined to flesh out in more detail the

Re: [Zope3-dev] Proposed widget/schema work for the Rivah sprint (Thursday and Friday this week)

2005-08-29 Thread Gary Poster
On Aug 29, 2005, at 4:50 PM, Jim Fulton wrote: Gary Poster wrote: ... 4 Recognize and document that the 'default' field argument is actually 'initial value'. That is, if you set a field with a default to the missing_value, the default does not become the field's value: the 'default'

Re: [Zope3-dev] Proposed widget/schema work for the Rivah sprint (Thursday and Friday this week)

2005-08-29 Thread Gary Poster
On Aug 29, 2005, at 4:24 PM, Garrett Smith wrote: To ease our own development, I forked the schema and widgets code a while back. I don't think we've deviated too severely, but I've added whatever 2 cents based on my experience below. 1 Flesh out the 'source' design and implementation

Re: [Zope3-dev] [DRAFT] local portlets and perspectives

2005-08-29 Thread Jim Fulton
Jean-Marc Orliaguet wrote: Jim Fulton wrote: Jean-Marc Orliaguet wrote: Hi! Somehow related to the discussion on optimizing catalog queries, I have been thinking about how to best implement local portlets in cpsskins in terms of scalability, performance and functionality. The

RE: [Zope3-dev] Proposed widget/schema work for the Rivah sprint (Thursday and Friday this week)

2005-08-29 Thread Garrett Smith
I'm uncomfortable with this. Right now, I think fields do too much. They have too much application logic. This would add more. The whole concept of initial value seems to be very application dependent. Maybe it would be best to just drop the default field altogether and introduce adapters

RE: [Zope3-dev] Proposed widget/schema work for the Rivah sprint (Thursday and Friday this week)

2005-08-29 Thread Garrett Smith
On Monday, August 29, 2005 4:33 PM, Gary Poster wrote: Couldn't 'initial_getter' just be implemented using a property version of 'initial'? Yes, it could. The only downside is that it wouldn't be usable as an initialization argument. I don't feel very strongly about it one way or the

Re: [Zope3-dev] Proposed widget/schema work for the Rivah sprint (Thursday and Friday this week)

2005-08-29 Thread Stephan Richter
On Monday 29 August 2005 16:43, Jim Fulton wrote: I am open for any of them. However, I would be most interested in writing proposals on things that we want to get implemented in the near future, i.e. for Zope 3.2. I thought you and I would work on publisher-related topics. Great! This is

Re: [Zope3-dev] Proposed widget/schema work for the Rivah sprint (Thursday and Friday this week)

2005-08-29 Thread Gary Poster
On Aug 29, 2005, at 6:37 PM, Garrett Smith wrote: On Monday, August 29, 2005 4:33 PM, Gary Poster wrote: Couldn't 'initial_getter' just be implemented using a property version of 'initial'? Yes, it could. The only downside is that it wouldn't be usable as an initialization argument. I

[Zope3-dev] Bug in i18n timezones (was Re: [Zope3-Users] obtaining time zone from http request)

2005-08-29 Thread Gary Poster
On Aug 29, 2005, at 7:18 PM, Alen Stanisic wrote: On Mon, 2005-08-29 at 09:50 -0400, Gary Poster wrote: And FWIW, once you get your browser settings correct, for the timezone part of the locale database, en-* is all the same--that is, if my locale is en-US, I get all en* locations (including

[Zope3-dev] Re: Bug in i18n timezones (was Re: [Zope3-Users] obtaining time zone from http request)

2005-08-29 Thread Stuart Bishop
Gary Poster wrote: And FWIW, once you get your browser settings correct, for the timezone part of the locale database, en-* is all the same--that is, if my locale is en-US, I get all en* locations (including Casablanca, Tokyo, and other interesting locations). :-) I think you will too. You

Re: [Zope3-dev] Re: RDFLib and Zope 3

2005-08-29 Thread Gary Poster
On Aug 26, 2005, at 3:03 AM, Daniel Krech wrote: On Aug 25, 2005, at 3:10 PM, Michel Pelletier wrote: On Thu, 2005-08-25 at 14:32 -0400, Gary Poster wrote: see what he thinks. I wonder how lite the component kernel can go. The only thing I have in mind is the interface package, which is