[Zope-dev] ANN: XMLToObjects proposal

2000-09-01 Thread Chris McDonough
I've created a proposal to gather feedback for implementing a facility to transform arbitrary XML directly into arbitrary Python objects. It's at http://dev.zope.org/Wikis/DevSite/Proposals/XMLToObjects. Please comment on the Wiki discussion page associated with it.

[Zope-dev] Converters.field2date, allow empty string to return None?

2000-09-01 Thread Brad Clements
One thing that has been bothering me is that I can't easily test my ZSQL Methods if they accept a date type unless I completely fill all the date arg types. For example, if the sqlmethod has argument type startdate:date='' and in the body I have ... When i use the test form, I can't lea

Re: [Zope-dev] But I used __ac_permissions__! :S

2000-09-01 Thread Phillip J. Eby
This is just a SWAG (Strategic Wild-Ass Guess), but Ty and I have been having a problem with the search feature in Squishdot 0.7.0 that seems possibly to be related. Our trace of the problem shows that catalog searches from the SquishSite return objects which are wrapped with a *different* acquis

[Zope-dev] RE: [Zope] ZCatalog and OR searching

2000-09-01 Thread Casey Duncan
It would be wonderful if ZCatalog could support something like a SQL where clause for doing complex searching. Is this anything anybody has in the works or would be interested in working on? I forsee something like Catalog(query_expr="title contains 'foo' and not title contains 'bar' or title con

[Zope-dev] ZCatalog: text searches fail with sort_on + patch

2000-09-01 Thread Steve Alexander
I'm getting an error in Catalog when I specify sort_on on a field-index, and also search on a text index. Zope 2.2.1, Python 1.5.2 Error Type: TypeError Error Value: loop over non-sequence Traceback (innermost last): File lib/python/ZPublisher/Publish.py, line 222, in publish_module File l

[Zope-dev] StructuredText.py - bug or feature

2000-09-01 Thread nw_moriarty
I took an example of strucuture text from the document string of StructuredText.py - Text encloded by double quotes followed by a colon, a URL, and concluded by punctuation plus white space, *or* just white space, is treated as a hyper link. For example: "Zope":http://www.zope.org/ is ..

Re: [Zope-dev] _setObject error - urgent!

2000-09-01 Thread Andy McKay
Sorry for the cross post and so on, panicked with a deadline approaching. The error was caused my a cataloguing error after intialisation. Thanks. - Original Message - From: "Andy McKay" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, August 31, 2000 10:0

[Zope-dev] But I used __ac_permissions__! :S

2000-09-01 Thread Chris Withers
Brian Lloyd wrote: > > Here's a quick thing to try- if 'subject' is an attribute > of your Article class, try adding: > > class Article(...): > subject__roles__=None > > then restart and see if you still get unauthorized... yup, I do :-( And besides, 'subject' is already in __ac_permissions

[Zope-dev] Maybe not Aquisition :-( Help!

2000-09-01 Thread Chris Withers
Brian, Shane and anyone else who's interested... Help! I'm dying here ;-) (and yes, I know it's a Friday) Chris Withers wrote: > > Are you certain that you are not losing the acquistion context > > on your Articles somehow? Well, okay, I don't think so... here's the source causing the problem:

Re: [Zope-dev] Compatibility issues: ZPatterns 0.4.2

2000-09-01 Thread Steve Alexander
"Phillip J. Eby" wrote: > > >I see that Folders w/ customizer support now have their own > >Data-plug-ins tab (they didn't before), and that it does direct > >delegation, rather than filtered forwarding. > > Direct delegation? I've lost you here. If it's doing that, then > something's broken.

RE: [Zope-dev] Acquisiton, wrapping and persistence...

2000-09-01 Thread Brian Lloyd
> > Are you certain that you are not losing the acquistion context > > on your Articles somehow? > > There's a good chance that's right :S > Is there anything bad about storing wrapped attributes in a persistent > object? > Butch seemed pretty religious about unwrapping objects before > he stor

[Zope-dev] Acquisiton, wrapping and persistence...

2000-09-01 Thread Chris Withers
Brian Lloyd wrote: > (I'm coming to this late, so ignore me if this is covered > ground...) It isn't :S > Are you certain that you are not losing the acquistion context > on your Articles somehow? There's a good chance that's right :S Is there anything bad about storing wrapped attributes in a

Re: [Zope-dev] Compatibility issues: ZPatterns 0.4.2

2000-09-01 Thread Phillip J. Eby
At 10:37 AM 9/1/00 +0100, Steve Alexander wrote: >Steve Alexander wrote: > >> Phillip J. Eby wrote: >> >> > Now, I can provide *unfiltered* linkage by direct delegation, but this >> > would mean dropping the ability to selectively take only certain >> > attributes >> > or sheets from the parent.

[Zope-dev] Not Globals.default__class_init__(Article) :-(

2000-09-01 Thread Chris Withers
Chris McDonough wrote: > Did you run the Article class through Globals.default__class_init__()? > E.g. (at the module level), e.g.: > > Globals.default__class_init__(Article) Yup, all the possible related classes have been run through this... cheers, Chris

Re: [Zope-dev] MailHost, 2.2.1, and tracebacks

2000-09-01 Thread Shane Hathaway
Bill Anderson wrote: > > OK, I've bee trailing this bug for quite some time, and haven't found a solution >other than not use 2.2.1 :( > (snip) > File /local/ZopeSites/TestBed/lib/python/OFS/DTMLMethod.py, line 172, in __call__ > (Object: mailPasswordTemplate) > File /local/ZopeSites/Tes

Re: [Zope-dev] Compatibility issues: ZPatterns 0.4.2

2000-09-01 Thread Steve Alexander
Steve Alexander wrote: > Phillip J. Eby wrote: > > > Now, I can provide *unfiltered* linkage by direct delegation, but this > > would mean dropping the ability to selectively take only certain > > attributes > > or sheets from the parent. But I suppose that, compared to dropping the > > capabili

[Zope-dev] strange ZopeTime-behavior

2000-09-01 Thread Joachim Schmitz
The following dtml-snipplet: bis: produces the following output: 2000 8 1 2000 8 2 2000/08/01 2000/08/02 <--- correct 31.07.2000 bis: 01.08.2000 <--- one day less if used with fmt Bug or feature ? there is no TZ enviromentvariable set. Server is Zope-2.2.0 on RH 6.2 behind

[Zope-dev] Why use apply(foo.__call__, ..)?

2000-09-01 Thread Ross Boylan
In looking over the code for ZWiki/ZC, I see a lot of places with the following construct: apply(foo.__call__, some, arguments) Why not just say foo(some, arguments)? Examples of the construct from ZWikiPage.py: apply(self.aq_parent.standard_wiki_page.__call__,