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

2000-08-17 Thread Martijn Pieters
On Thu, Aug 17, 2000 at 02:23:59AM -0400, R. David Murray wrote: > I can do 'from SearchIndex.Splitter > import Splitter', and call Splitter, and see that stopwords are > not removed, but I can't do 'from SearchIndex.UnTextIndex import > Splitter' because it complains about not being able to impor

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 a

[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 p

[Zope-dev] Data.fs

2000-08-17 Thread Andre Schubert
Hi, I'am using Zope 2.1.6 and my Data.fs is going corrupted and i don't have found a way for backup this file. My Questions are: is there a way to delete the last transaction from Data.fs, and can i backup the Data.fs when Zope is running. Is the backup of Data.fs inconsitent when i make the back

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

2000-08-17 Thread Shane Hathaway
Chris Withers wrote: > How should I got about petitioning > for > 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 Hacker and I have set up membe

[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: Here is now the resulting HTML 0 0 Why isn't the first comparison returning true? What I want to use i

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

2000-08-17 Thread Chris Withers
Carl Robitaille wrote: > > > > > Congratulations, you've just been bitten by the thing that confused me for half a day... You see, while they say , they're actually lying ;-) The objects you're comparing are actually acquisition wrappers. IMHO, == should work with acquisition to make p

[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: > > > > > > > > > > > > > Congratulations, you've just been bitten

[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 _u

[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 PR

[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: EQUAL NOT EQUAL The error I get from Zope is: File /home/zope/Zope2/lib/python/DocumentTemplate/DT_

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 > Shan

[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 r

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 - htt

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

2000-08-17 Thread Phil Harris
How about > as in &dtml-path>to>file>object>wotsit; 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:

[Zope-dev] Still no safe seperators :P

2000-08-17 Thread Chris Withers
Phil Harris wrote: > > How about > > > as in > > &dtml-path>to>file>object>wotsit; > > 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 mailli

[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

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 ex

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 allo