Re: [Zope3-dev] catalog 'all documents' abstraction

2005-08-31 Thread Martijn Faassen
Jim Fulton wrote: [snip] It would be helpful if someone could explain the motivations behind the extent catalog, by the way -- this information seems to be missing in zc.catalog. Am I at all on the right track with my thinking on it? What information? Sorry for being unclear. I meant the

Re: [Zope3-dev] catalog 'all documents' abstraction

2005-08-31 Thread Martijn Faassen
Gary Poster wrote: On Aug 30, 2005, at 1:57 PM, Martijn Faassen wrote: [snip] It would be helpful if someone could explain the motivations behind the extent catalog, by the way -- this information seems to be missing in zc.catalog. Am I at all on the right track with my thinking on it?

Re: [Zope3-dev] catalog 'all documents' abstraction

2005-08-31 Thread Stephan Richter
On Wednesday 31 August 2005 05:41, Martijn Faassen wrote: Okay, this is clear. It's not that clear to me how to efficiently make a subscriber only handle one object type (I've been using the is this a IFoo? If not, return pattern at the start of subscribers), but that's another discussion.

Re: [Zope3-dev] how-to fool XML-RPC publisher

2005-08-31 Thread Stephan Richter
On Tuesday 30 August 2005 11:55, Adam Groszer wrote: Is there any way to fool the Z3 XML-RPC publisher to unmarshall strings *always* as unicode? I think the problem is that xmlrpclib tries to convert all strings to str, but in Z3, all strings should be stored as unicode. Even better that

Re: [Zope3-dev] how-to fool XML-RPC publisher

2005-08-31 Thread Stephan Richter
On Tuesday 30 August 2005 11:55, Adam Groszer wrote: Is there any way to fool the Z3 XML-RPC publisher to unmarshall strings *always* as unicode? I think the problem is that xmlrpclib tries to convert all strings to str, but in Z3, all strings should be stored as unicode. Even better that

[Zope3-dev] XML header and TAL interpretor

2005-08-31 Thread Julien Anguenot
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi there, I got a problem with the standard macros use and the XML header. I've a view defined like the one below : ?xml version=1.0 encoding=UTF-8? html xmlns:tal=http://xml.zope.org/namespaces/tal;

[Zope3-dev] Re: XML header and TAL interpretor

2005-08-31 Thread Julien Anguenot
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Philipp von Weitershausen wrote: Julien Anguenot wrote: I got a problem with the standard macros use and the XML header. I've a view defined like the one below : ?xml version=1.0 encoding=UTF-8? html

[Zope3-dev] Re: XML header and TAL interpretor

2005-08-31 Thread Philipp von Weitershausen
Julien Anguenot wrote: Ok the problem is the doctype declaration on top of the macro files that force the tal interpretor to enter html mode and as far as I understand you can't have mix moded macros. Exactly. I forgot to mention that in my follow-up... Btw, doctype declaration is something

Re: [Zope3-dev] catalog 'all documents' abstraction

2005-08-31 Thread Jim Fulton
Martijn Faassen wrote: Gary Poster wrote: On Aug 30, 2005, at 1:57 PM, Martijn Faassen wrote: [snip] It would be helpful if someone could explain the motivations behind the extent catalog, by the way -- this information seems to be missing in zc.catalog. Am I at all on the right track

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

2005-08-31 Thread Dmitry Vasiliev
Velko Ivanov wrote: Dmitry Vasiliev wrote: Maybe we need always check security map at the root folder? I don't believe this is the solution. Altrough it will solve my example, it wouldn't help in other scenarios. I would eventually make ZopeConnection and ZopeCursor locatable, if they

[Zope3-dev] Re: XML header and TAL interpretor

2005-08-31 Thread Derrick Hudson
On Wed, Aug 31, 2005 at 03:54:45PM +0200, Philipp von Weitershausen wrote: | Julien Anguenot wrote: [...] | If you change the header like this then it can be succesfully included : | | ?xml version=1.0 encoding=UTF-8? | html xmlns=http://www.w3.org/1999/xhtml; |

[Zope3-dev] Re: XML header and TAL interpretor

2005-08-31 Thread Derrick Hudson
On Wed, Aug 31, 2005 at 02:48:11PM +0200, Philipp von Weitershausen wrote: [...] | PageTemplates know two different modes, HTML4 mode and XML mode: [...] | So, instead of proposing to radically get rid of HTML4 mode, I propose this: | | - XML mode of ZPT becomes the standard mode. | | - We

Re: [Zope3-dev] Re: XML header and TAL interpretor

2005-08-31 Thread Stephan Richter
On Wednesday 31 August 2005 10:05, Julien Anguenot wrote: Don't forget that IE will then have an insane tendency to render the pages wrong.  I don't recall all of the details, but it was something like if the document began with ?xml ? IE would switch to quirks mode and do funny things

Re: [Zope3-dev] catalog 'all documents' abstraction

2005-08-31 Thread Gary Poster
On Aug 31, 2005, at 5:41 AM, Martijn Faassen wrote: Gary Poster wrote: On Aug 30, 2005, at 1:57 PM, Martijn Faassen wrote: [snip] It would be helpful if someone could explain the motivations behind the extent catalog, by the way -- this information seems to be missing in zc.catalog.

Re: [Zope3-dev] Re: XML header and TAL interpretor

2005-08-31 Thread Gary Poster
On Aug 31, 2005, at 10:46 AM, Stephan Richter wrote: On Wednesday 31 August 2005 10:05, Julien Anguenot wrote: Don't forget that IE will then have an insane tendency to render the pages wrong. I don't recall all of the details, but it was something like if the document began with ?xml ?

Re[2]: [Zope3-dev] how-to fool XML-RPC publisher

2005-08-31 Thread Adam Groszer
Hello Stephan, Sorry, I'm a newbie regarding that. As I checked there is a zope.publisher.xmlrpc.premarshal_dispatch_table dict, but this is for the response. The request is handled 'directly' by xmlrpclib self._args, function = xmlrpclib.loads(self._body_instream.read()) Can you please give a

[Zope3-dev] Atomic reads w ZEO and ZODB

2005-08-31 Thread David Huttleston Jr
I'm exploring moving our job queue system into z3. But, I'm running into a conceptual problem. As I envision it, I'd have three zope zeo clients working to get the job done. One is the queue manager taking submissions and reporting on the status of current jobs. Another is a queue worker which

[Zope3-dev] Re: XML header and TAL interpretor

2005-08-31 Thread Derrick Hudson
On Wed, Aug 31, 2005 at 10:46:34AM -0400, Stephan Richter wrote: | On Wednesday 31 August 2005 10:05, Julien Anguenot wrote: | Don't forget that IE will then have an insane tendency to render the | pages wrong.  I don't recall all of the details, but it was something | like if the document

[Zope3-dev] Resource Library Proposal

2005-08-31 Thread Benji York
I've added a proposal for Zope 3.2. Read at http://www.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/ResourceLibrary. WARNING: zope.org exhibiting some serious caching strangeness, so please comment on the list instead of the wiki. -- Benji York Senior Software Engineer Zope

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

2005-08-31 Thread Jim Fulton
Jean-Marc Orliaguet wrote: ... - this portlet uses this style not for a *class* of portlets, but for *instances* of classes. Adapters connect interfaces, not instances. Then why not just store the style in the portlet? Again you are making the assumption that a portlet *has* a style. If

Re: [Zope3-dev] Re: [Z3lab] Why use relations?

2005-08-31 Thread Jim Fulton
Jean-Marc Orliaguet wrote: Janko Hauser wrote: Am 31.08.2005 um 10:25 schrieb Jean-Marc Orliaguet: Hi ! I have been thinking about Jim's question: why do you need relations?. Some obvious answers came first others emerged later on, now I think that most of them are emerged, so I'll try

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

2005-08-31 Thread Jean-Marc Orliaguet
Jim Fulton wrote: Jean-Marc Orliaguet wrote: ... Also this is as bad as storing browser view related attributes in a content class - otherwise we are back to the Zope2 old days, where every possible attribute was stored on the objects themselves. There are advantages in storing data on

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

2005-08-31 Thread Michel Pelletier
On Wed, 2005-08-31 at 10:07 -0400, Gary Poster wrote: I'm interested in contemplating RDF as a full catalog solution for Zope, at least as a thought experiment. Great! Note that the use of bound variables also removes the need for brains. We actually don't have catalog brains in Zope

Re: [Zope3-dev] Atomic reads w ZEO and ZODB

2005-08-31 Thread Gary Poster
On Aug 31, 2005, at 12:07 PM, David Huttleston Jr wrote: ... But, I'm fuzzy on how the zodb prevents inconsistent reads. ... Hi David. A quick answer is that the ZODB implements optimistic multi-version concurrency control, similar to the default PostgreSQL behavior. This link describes