Re: PossitionIndex (was: Re: [Zope-dev] ZCatalog phrase indexingrevisited)

2001-06-17 Thread Erik Enge
On Sat, 16 Jun 2001 [EMAIL PROTECTED] wrote: Lexis-Nexis: Sean w/2 Upton (where w/2 is within 2 words) This wouldn't be hard to make happen. I don't know if it is better to do it before of after the parsers, though. Maybe a more userfriendly alias would be best as a default?

[Zope-dev] How to aquire from Context?

2001-06-17 Thread Matt Hamilton
Dear All, I have been trying to work out how to acquire a DTML method first by context rather than by containment. According to the ZDG (Great read, thanks guys!): -- snip -- Containment Before Context If in the example above suppose both a and b have an color attribute: a=C(a)

[Zope-dev] html_quote in CVS

2001-06-17 Thread kent sin
Formulator is broken by the Zope cvs version. It can not import html_quote from DocumentTemplate.DT_Util I found html_quote being moved to DT_Var.py, but after change the Widget.py from DocumentTemplate.DT_Var import html_quote it still report can not import. What should I make this? Does

Re: PossitionIndex (was: Re: [Zope-dev] ZCatalog phrase indexingrevisited)

2001-06-17 Thread Erik Enge
On Fri, 15 Jun 2001, Chris McDonough wrote: Once you're satisfied with the implementation, would you be willing submit the module to the collector? Do you think you (or someone else for that matter) could have a look at [1] the method that returns the position in the document -

Re: PossitionIndex (was: Re: [Zope-dev] ZCatalog phrase indexingrevisited)

2001-06-17 Thread Chris McDonough
It just occurred to me that depending on the splitter to do positions makes it impossible to alter the splitter without reindexing the whole text index... but I think this is a reasonable tradeoff. Other opinions welcome. On Sun, 17 Jun 2001 15:57:20 -0400 Chris McDonough [EMAIL PROTECTED]

Re: [Zope-dev] html_quote in CVS

2001-06-17 Thread Chris McDonough
Kent, could you report this to the Collector? We can alias the function... On Sun, 17 Jun 2001 08:45:50 -0700 (PDT) kent sin [EMAIL PROTECTED] wrote: Formulator is broken by the Zope cvs version. It can not import html_quote from DocumentTemplate.DT_Util I found html_quote being moved

Re: PossitionIndex (was: Re: [Zope-dev] ZCatalog phrase indexingrevisited)

2001-06-17 Thread Chris McDonough
On Sun, 17 Jun 2001 21:05:47 +0200 (CEST) Erik Enge [EMAIL PROTECTED] wrote: On Fri, 15 Jun 2001, Chris McDonough wrote: Once you're satisfied with the implementation, would you be willing submit the module to the collector? Do you think you (or someone else for that matter) could

Re: [Zope-dev] How to aquire from Context?

2001-06-17 Thread Dieter Maurer
Matt Hamilton writes: According to the ZDG (Great read, thanks guys!): -- snip -- (Acquisition works by: ) Containment Before Context Now that makes perfect sense to me and I can see why it happens as such. However what if I want (Context Before Containment). I

RE: PossitionIndex (was: Re: [Zope-dev] ZCatalog phrase indexingrevisited)

2001-06-17 Thread Dieter Maurer
[EMAIL PROTECTED] writes: A lot of folks who do power searches, say, librarians or other trained researchers, familiar with the bells and whistles of more powerful search engines, will want a simple operator for proximity, with the ability to specify proximity depth: For example:

Re: [Zope-dev] How to aquire from Context?

2001-06-17 Thread Chris Withers
Matt, Evan Simpson came up with some external methdos that do exactly what you want about 6 months to a year ago. If you search the zope.nipltd.com archives for [EMAIL PROTECTED] and [EMAIL PROTECTED] you may well be able to find what you're after :-) cheers, Chris Matt Hamilton wrote:

Re: [Zope-dev] html_quote in CVS

2001-06-17 Thread Bill Anderson
On 17 Jun 2001 08:45:50 -0700, kent sin wrote: Formulator is broken by the Zope cvs version. It can not import html_quote from DocumentTemplate.DT_Util I found html_quote being moved to DT_Var.py, but after change the Widget.py from DocumentTemplate.DT_Var import html_quote it

[Zope-dev] what transaction does get_transaction().commit() really commit?

2001-06-17 Thread Jephte Clain
hello, I have a method that reads: 8 def do_something(self): from Zope import DB conn = db.open() conn.root()['name'] = 'value' get_transaction().commit() conn.close() 8 the method can be called from everywhere, and that's the reason