Re: [Zope-dev] Wildcards in TextIndex query. Do they work?

2001-05-30 Thread Erik Enge

On Tue, 29 May 2001, Michel Pelletier wrote:

> Must be ZCatalog's.  I'm guessing the paren matching takes a different
> code path that doesn't expand wildcards.

I'm going bug hunting...

If I'm not back in five minutes... just wait longer. (Ace Ventura)


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Wildcards in TextIndex query. Do they work?

2001-05-30 Thread Erik Enge

On Wed, 30 May 2001, Erik Enge wrote:

> I'm going bug hunting...

I'm back :)

I think I found the bug.  In lib/python/SearchIndex/GlobbingLexicon.py in
the query_hook() method.  It seems to say that: "if I can't find a '*' or
a '?' in the word, then go to else-clause", where the else-clause says
sodd off.

Since it iterates over the query, 'word' is actually a list if you use
parens in your query, and you won't find any wildcards there.  I think.

Add a dash of recursiveness, and it seems to be solved (for me):

def erik_hook(self, q):
"doc string"
words = []
for w in q:
if ( (self.multi_wc in w) or
 (self.single_wc in w) ):
wids = self.get(w)
for wid in wids:
if words:
words.append(Or)
words.append(wid)
else:
words.append(self.erik_hook(w))
return words or ['']

def query_hook(self, q):
"""expand wildcards"""
words = []
for w in q:
if ( (self.multi_wc in w) or
 (self.single_wc in w) ):
wids = self.get(w)
for wid in wids:
if words:
words.append(Or)
words.append(wid)
else:
words.append(self.erik_hook(w))

Not really tested, but it seems to work.  This might have been resolved in
CVS, I don't know, should I post it as a bug?


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Wildcards in TextIndex query. Do they work?

2001-05-30 Thread Chris McDonough

Thanks for tracking this down... If you're so inclined, please put this
in the Collector (with a description of the problem, as well as a way to
reproduce it, the patch alone isn't nearly as helpful) so it doesn't get
dropped on the floor.  I doubt very much that it's fixed in CVS.

- C


Erik Enge wrote:
> 
> On Wed, 30 May 2001, Erik Enge wrote:
> 
> > I'm going bug hunting...
> 
> I'm back :)
> 
> I think I found the bug.  In lib/python/SearchIndex/GlobbingLexicon.py in
> the query_hook() method.  It seems to say that: "if I can't find a '*' or
> a '?' in the word, then go to else-clause", where the else-clause says
> sodd off.
> 
> Since it iterates over the query, 'word' is actually a list if you use
> parens in your query, and you won't find any wildcards there.  I think.
> 
> Add a dash of recursiveness, and it seems to be solved (for me):
> 
> def erik_hook(self, q):
> "doc string"
> words = []
> for w in q:
> if ( (self.multi_wc in w) or
>  (self.single_wc in w) ):
> wids = self.get(w)
> for wid in wids:
> if words:
> words.append(Or)
> words.append(wid)
> else:
> words.append(self.erik_hook(w))
> return words or ['']
> 
> def query_hook(self, q):
> """expand wildcards"""
> words = []
> for w in q:
> if ( (self.multi_wc in w) or
>  (self.single_wc in w) ):
> wids = self.get(w)
> for wid in wids:
> if words:
> words.append(Or)
> words.append(wid)
> else:
> words.append(self.erik_hook(w))
> 
> Not really tested, but it seems to work.  This might have been resolved in
> CVS, I don't know, should I post it as a bug?
> 
> ___
> Zope-Dev maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope )

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Wildcards in TextIndex query. Do they work?

2001-05-30 Thread Erik Enge

On Wed, 30 May 2001, Chris McDonough wrote:

> Thanks for tracking this down... 

No worries :)

> If you're so inclined, please put this in the Collector [...] so it
> doesn't get dropped on the floor.

Done: http://classic.zope.org:8080/Collector/2262/view/>


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Browser Timeout

2001-05-30 Thread Andre Schubert

Hi all,

I have a very important problem with Zope.
I want to display a html-site with diagramms, the diagrams are from a
sql-db with over 30Mill. entries.
My problem is that when i call the site, then for each diagram to
display a sql-query is executed which costs time.
When 20 or 30 query are executed, then the browser say that the document
contains no data.
Is it right, the the browser send a request and got the response when
the site is completly rendered( all queries executed ) ?
If yes, how can i directly write to the client. First all headers, and
after every query send the data to the client, if i can do this, then
there will be no timeout.

thanks as


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Zope Developers Needed!

2001-05-30 Thread Gerry Piche

Zope Developers Needed immediately in Ottawa, ON, Canada.

Contact:

Gerry Piché
Senior Account Manager
Qualicum.com Limited
613-233-1366 (office)
613-290-3983 (cell)
[EMAIL PROTECTED]
Hot Jobs @
http://www.qualicum.com/cgi-bin/jt/display


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] List of objects PropertyType

2001-05-30 Thread Chris Withers

> > ...and how about a list-of-objects type too?
> 
> Hmm what is that? You can have a list already.

AFAIC, there is only 'lines', which is supposed to be a list of strings.

I could be wrong of course?

cheers,

Chris


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Bulletproof ZCatalog proposal

2001-05-30 Thread Shane Hathaway

I have written a proposal.

http://dev.zope.org/Wikis/DevSite/Proposals/ArmoredCatalog

Could it be that we're involved in yet another Battle of Fredericksburg
and we're trying to save innocent ZCatalogs from a ZODB conflict? 
Nawww... ;-)

Shane

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Browser Timeout

2001-05-30 Thread R. David Murray

On Wed, 30 May 2001, Andre Schubert wrote:
> Is it right, the the browser send a request and got the response when
> the site is completly rendered( all queries executed ) ?
> If yes, how can i directly write to the client. First all headers, and
> after every query send the data to the client, if i can do this, then
> there will be no timeout.

RESPONSE.write

--RDM


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] call for papers: m. fowler/internet software engineering

2001-05-30 Thread Chris McDonough

Hi all,

FYI:  Martin Fowler (author of UML Distilled, Refactoring, et. al.) has
put out a call for papers which discuss the software engineering of
internet software.  If you're interested in contributing, the original
text of the request is below.  It can also be found at
http://computer.org/software/edcal.htm#march02 .  It would be nifty to
see a paper which concentrates on Zope in this context.

Separately, Mr. Fowler has also expressed an interest in understanding
how Zope works in comparison to other internet software platforms, and
may consider extending the (primarily Java-centric) effort at
http://martinfowler.com/isa/index.html to include Zope-related concepts
if they can be contrasted with what exists within this set of documents.

Cheers,

- C



-
Original message:

In a rash fit of enthusiasm I signed up to be a guest
editor of a forthcoming issue of IEEE Software on
engineering Internet Software. Part of my duties for this
is that I have to harass my friends to submit a paper for
this issue. Hence this email. Do you know someone who you
think would be interested in writing such a paper? 

 I've added the official call for papers in the email: you
can also find it online at
http://computer.org/software/edcal.htm#march02 

Martin


-
The Software Engineering of Internet Software

Submission Deadline: 15 August 2001

In less than a decade, the Internet has grown from a
little-known back road of nerds into a central highway for
worldwide commerce, information, and entertainment. This
shift has
introduced a new language. We speak of Internet time,
Internet software, and the rise and fall of e-business.

Essential to all of this is the software that makes the
Internet work. From the infrastructure companies that
create the tools on which e-business runs to the Web design
boutiques
that deploy slick Web sites using the latest technology,
software lies behind the shop windows, newspapers, and bank
notes.

How is this new Internet software different than the
software created before everything became e-connected? Are
the tools different? Are the designs different? Are the
processes
different? And have we forgotten important principles of
software engineering in the rush to stake claims in the new
Webified world?

We seek original articles on what it means to build
Internet software. Specific questions that might be
addressed include (but are not limited to):

 How do we apply engineering techniques to Internet
software? 
 Is it all "code and fix" or can we apply a broader
variety of effective practices? 
 How have Internet time and new technologies affected the
culture of software development organizations? 
 What role does technology play? 
 How does user interface design change for a Web
interface? How does it stay the same? 
 What are the design principles and patterns behind
effective Internet software? 
 What are the real problems and solutions behind data
interchange on the global Internet scale? 
 How are Internet software development and testing
practices different from other kinds of software
development? 

Authors should present their work in terms that are useful
to the software community at large, emphasizing lessons
learned from practical experience.

Guest Editors:

Elisabeth Hendrickson
Quality Tree Software Inc.
7563 Cottonwood Lane, Pleasanton, CA 94588, USA
[EMAIL PROTECTED]

Martin Fowler
Chief Scientist
Thoughtworks
651 W Washington Blvd, Suite 500, Chicago, IL 60661, USA
[EMAIL PROTECTED] 

Please submit two electronic copies, one in RTF or
Microsoft Word and one in PDF or Postscript, by 15 August
2001. Articles should be 4 to 12 double-spaced pages,
including
illustrations, or 2,800 to 5,400 words, with each
illustration, graph, or table counting as 200 words.
Submissions are peer-reviewed and are subject to editing
for style, clarity, and
space. For detailed author guidelines, see
computer.org/software/author.htm or contact the magazine
assistant Dawn Craig at [EMAIL PROTECTED]


http://www.martinfowler.com

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Adding usernames to ZServer HTTP log output

2001-05-30 Thread Hannu Krosing

CATTEAU Olivier wrote:
> 
> How to activate user tracking?
> 
> Just show this URL:
> http://www.zope.org/Members/catteau/UserTracking
> 

This seems to work only with BasicAuthentication.

Does anybody know a solution that integrates with 
UserFolders using other authentication methods ?

---
Hannu

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] SOAP again (or, xml-rpc client for MSIE)

2001-05-30 Thread Brad Clements

Hate to bring this up again.

1999 Press release from DC

http://www.prnewswire.com/cgi-bin/stories.pl?ACCT=104&STORY=/www/story/12-02-1999/0001087563


> An early 2000 Zope
> release will include support for two protocols heavily supported by Microsoft,
> the Simple Object Access Protocol (SOAP) and Web Distributed Authoring and
> Versioning (WebDAV) protocol

We have WebDav.. How's SOAP look?

I'm looking for a decent RPC mechanism for MSIE 5.5 to talk to Zope. MS has their 
webService behavior that supports SOAP. But without SDL or WSDL in Zope it's gonna 
take a lot of code to get working.

Otherwise, I could use an XML-RPC client for IE5.5, but I can't find one!



Brad Clements,[EMAIL PROTECTED]   (315)268-1000
http://www.murkworks.com  (315)268-9812 Fax
netmeeting: ils://ils.murkworks.com   AOL-IM: BKClements


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] SOAP again (or, xml-rpc client for MSIE)

2001-05-30 Thread Phil Harris

Brad,

There are a few COM/COM+ components around that do xml-rpc.

I use them with MS Word to write Word files directly to Zope for instance.

Some are better than others, but ymmv so I'll hesitate to recommend one.

At least one of them is listed on xmlrpc.com.

Having them you could script them via jscript, and basically open up the
connection easily.

hth

Phil
[EMAIL PROTECTED]
- Original Message -
From: "Brad Clements" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 30, 2001 9:16 PM
Subject: [Zope-dev] SOAP again (or, xml-rpc client for MSIE)


> Hate to bring this up again.
>
> 1999 Press release from DC
>
>
http://www.prnewswire.com/cgi-bin/stories.pl?ACCT=104&STORY=/www/story/12-02
-1999/0001087563
>
>
> > An early 2000 Zope
> > release will include support for two protocols heavily supported by
Microsoft,
> > the Simple Object Access Protocol (SOAP) and Web Distributed Authoring
and
> > Versioning (WebDAV) protocol
>
> We have WebDav.. How's SOAP look?
>
> I'm looking for a decent RPC mechanism for MSIE 5.5 to talk to Zope. MS
has their
> webService behavior that supports SOAP. But without SDL or WSDL in Zope
it's gonna
> take a lot of code to get working.
>
> Otherwise, I could use an XML-RPC client for IE5.5, but I can't find one!
>
>
>
> Brad Clements,[EMAIL PROTECTED]   (315)268-1000
> http://www.murkworks.com  (315)268-9812 Fax
> netmeeting: ils://ils.murkworks.com   AOL-IM: BKClements
>
>
> ___
> Zope-Dev maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope )


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] DogFishbowl?

2001-05-30 Thread Andy McKay

How about combining a fishbowl and a dogbowl by using Shanes Workflow tool
on the fishbowl? It seems a little wierd that is all a bunch of Wiki's,
great for making comments and development but rather hard to track changes,
manage (I assume) and enforce guidelines.

Wouldn't it make more sense to have a product that did this? Doesnt have to
be anything fancy. It would be nice if for example I could an xml-rpc call
to Proposals to get a list of new proposals, rather than now which is read
through it by hand.

Time for the fishbowl to mature now its used a lot? Perhaps start a proposal
on the fishbowl?

Cheers.
--
  Andy McKay.




___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Browser Timeout

2001-05-30 Thread Andre Schubert

Hi,

If have tested RESPONSE.write with the following function

def test(self,REQUEST=None,RESPONSE=None):
""" Test RESPONSE.write"""
RESPONSE.setStatus('200')
RESPONSE.setHeader('Content-Type','text/html')
RESPONSE.write('')
 Here is the body-processing wich takes several time *
RESPONSE.write('')

I tested with lynx. If i type http://somewhere.com/foo/test i got no
response because timeout, this means, that RESPONSE.setStatus and the first
RESPONSE.write are sent back to the client if the body processing is done,
but i would send every command as it is processed back to the client.
Or is it my Zope( 2.2.4 ) on Immunix 6.2 RedHat.

as


"R. David Murray" schrieb:

> On Wed, 30 May 2001, Andre Schubert wrote:
> > Is it right, the the browser send a request and got the response when
> > the site is completly rendered( all queries executed ) ?
> > If yes, how can i directly write to the client. First all headers, and
> > after every query send the data to the client, if i can do this, then
> > there will be no timeout.
>
> RESPONSE.write
>
> --RDM
>
> ___
> Zope-Dev maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope )


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )