[Zope-dev] stemmed and stopped: problems with stopwords and the 'and' operator

2000-08-17 Thread R. David Murray
OK, so the TextIndex of a ZCatalog says that it "stems and stops" the words before indexing them and, one would hope, before searching for them. I always thought that "stem" meant "derive the stem of the word" (so as to make the index smaller). I just peeked at the Splitter.c source code for

Re: [Zope-dev] Caching problems

2000-08-17 Thread Bob Pepin
On Wed, Aug 16, 2000 at 05:31:29PM +0100, Carlos Neves wrote: You directly change a nonpersistence participant object. As stated in http://www.python.org/workshops/2000-01/proceedings/papers/fulton/zodb3.html : [...] but mainly... RTFM ;-) Well, thanks, but too bad the only FM I've been able

[Zope-dev] Acquisition ( slightly less Confusion ;-)

2000-08-17 Thread Chris Withers
Evan Simpson wrote: - never expose a "bare" object, or even one with an incomplete context Why? You can get at it through aq_base anyway, surely? Only from unrestricted code. DTML and (CVS) Python Methods only let you access aq_parent. This only applies to objects that are part of

Re: [Zope-dev] Acquisition ( slightly less Confusion ;-)

2000-08-17 Thread Shane Hathaway
Chris Withers wrote: How should I got about petitioning for dtml-var anobject aq_context to become valid syntax? There's one little (okay, big) problem with this idea: aq_context strips the security context. In fact, it could be used to confuse the security machinery. Let's say I'm Joe

[Zope-dev] Comparing folder instances

2000-08-17 Thread Carl Robitaille
Hi, A quick question. How do I compare folder instances ?(or any instances as a matter of fact). Here is a simple code showing what I tried: dtml-in "objectValues(['Folder'])" dtml-var "_.getitem('sequence-item')" dtml-var "images" dtml-var

[Zope-dev] Acquisition Wrappers Bit Again ;-)

2000-08-17 Thread Chris Withers
Carl Robitaille wrote: dtml-var "_.getitem('sequence-item')" dtml-var "images" dtml-var "_.getitem('sequence-item')==images" Folder instance at 85cf958 Folder instance at 85cf958 Congratulations, you've just been bitten by the thing that confused me for half a day... You see, while they

[Zope-dev] Re: Acquisition Wrappers Bit Again ;-)

2000-08-17 Thread Carl Robitaille
Hi Criss, Thanks a lot for your quick response!! Since I'm a new Zope user, I guess I'll just cut-paste the line you suggest without trying to understand for the moment ;-) Carl Carl Robitaille wrote: dtml-var "_.getitem('sequence-item')" dtml-var "images" dtml-var

[Zope-dev] Re: Acquisition Wrappers Bit Again ;-)

2000-08-17 Thread Chris Withers
Carl Robitaille wrote: Hi Criss, Thanks a lot for your quick response!! Since I'm a new Zope user, I guess I'll just cut-paste the line you suggest without trying to understand for the moment ;-) Nih! Welcome to the deep end ;-) cheers, Chris

Re: [Zope-dev] ZPatterns, Transactions, _register/_unregister

2000-08-17 Thread Phillip J. Eby
At 11:13 AM 8/14/00 +0200, Bob Pepin wrote: Hi, I've encountered some weird behaviour in the ZPatterns Transactional class when I was trying to write a User Source for the Login Manager Product. I'm using Zope 2.2.0 with LoginManager 0.8.7a1 and ZPatterns 0.4.1snap1 The problem is that

[Zope-dev] Cool, we like the . :-)

2000-08-17 Thread Chris Withers
Steve Alexander wrote: I can't think of a nice alternative to mean dtml-/foo/bar/baz; "from the root, traverse as follows". dtml-.foo.bar.baz; not nice, btu I can't think of anything better :( cheers, Chris ___ Zope-Dev maillist - [EMAIL

[Zope-dev] Extending dtml entity syntax

2000-08-17 Thread Steve Alexander
Chris Withers has suggested extending the DTML Entity syntax to include traversal information. For example: dtml-foo/bar/baz; I just checked the XML standard. This isn't allowed in XML entities. http://www.w3.org/TR/1998/REC-xml-19980210#NT-Nmtoken EntityRef ::= '' Name ';' NameChar

[Zope-dev] Re: Acquisition Wrappers Bit Again ;-)

2000-08-17 Thread Carl Robitaille
Hi, Just for the record, Criss' suggestion didn't work for me. I don't quite get why though Here's the code again, where images is a Folder: dtml-in "objectValues(['Folder'])" dtml-if

Re: [Zope-dev] Aaargh, no safe seperators :S

2000-08-17 Thread Phil Harris
-, that;s a hyphen to you - Original Message - From: "Chris Withers" [EMAIL PROTECTED] To: "Shane Hathaway" [EMAIL PROTECTED] Cc: "Jonothan Farr" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, August 17, 2000 9:57 PM Subject: [Zope-dev] Aaargh, no safe seperators :S Shane

[Zope-dev] Aaargh, no safe seperators :S

2000-08-17 Thread Chris Withers
Shane Hathaway wrote: That would probably work, but isn't kind of ugly? Now we'd be forcing people to realize that colons can be path separators. Only Mac users know this. :-) Well, / and \ are bad XML ; is bad XML, and _really_ ugly . confuses when there's .'s in ids Any other

[Zope-dev] patch for dtml-foo:bar:baz;

2000-08-17 Thread Steve Alexander
This patch changes lib/python/DocumentTemplate/DT_HTML.py so that you can use paths for traversal in DTML entity syntax. The delimiter is ':', as it is valid as part of an XML entity, but not valid as part of a Zope object id. You can use dtml-:foo:bar; to ensure that traversal occurs from the

Re: [Zope-dev] Aaargh, no safe seperators :S

2000-08-17 Thread Chris Withers
Phil Harris wrote: -, that;s a hyphen to you and that can appear in ids ;-) cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists -

Re: [Zope-dev] Aaargh, no safe seperators :S

2000-08-17 Thread Phil Harris
How about as in dtml-pathtofileobjectwotsit; nah, looks really ugl - Original Message - From: "Chris Withers" [EMAIL PROTECTED] To: "Phil Harris" [EMAIL PROTECTED] Cc: "Shane Hathaway" [EMAIL PROTECTED]; "Jonothan Farr" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday,

[Zope-dev] Still no safe seperators :P

2000-08-17 Thread Chris Withers
Phil Harris wrote: How about as in dtml-pathtofileobjectwotsit; nah, looks really ugl And I'm damn sure that's bad XML ;-) Looks like the colon it is then, there's even a patch now ;-) cheers, Chris ___ Zope-Dev maillist - [EMAIL

[Zope-dev] Re: Acquisition ( slightly less Confusion ;-)

2000-08-17 Thread Evan Simpson
From: Chris Withers [EMAIL PROTECTED] Ah, okay... so really, prettymuch all Zope objects should be wrapped with only one or two exceptions, most of which aren't actually objects as such but simple data types? Yes. Also, there is a very limited range of "natural" ways to construct the

Re: [Zope-dev] Data.fs

2000-08-17 Thread R. David Murray
On Thu, 17 Aug 2000, Andre Schubert wrote: My Questions are: is there a way to delete the last transaction from One answer: use tranalyzer to find the offset of the start of the last transaction and truncate the file there. Data.fs, and can i backup the Data.fs when Zope is running. Is the

Re: [Zope-dev] stemmed and stopped: problems with stopwords andthe 'and' operator

2000-08-17 Thread R. David Murray
On Thu, 17 Aug 2000, Martijn Pieters wrote: No clues as to where you'll find the stopword code, but the Persistence thingy is caused by the magic that ZODB performs: it initializes the correct Persistence module when it itself is imported. This way Jim managed to have ZODB3 and BoboPOS2 exist

Re: [Zope-dev] Still no safe seperators :P

2000-08-17 Thread Evan Simpson
From: "Chris Withers" [EMAIL PROTECTED] Looks like the colon it is then, there's even a patch now ;-) There a patch sitting around waiting for DTML syntaxgeddon which allows slash-separated paths in object names everywhere, not just in entity syntax. That could easily be extended to also allow