Re: [Zope-dev] Stop words/vocabulary

2001-02-08 Thread Arno Gross
Hello Dieter, I have now a german stop word list and would like to apply it for my current ZCatalog 'NewsCatalog'. But how? Or should I copy my list to the source (no good idea)? Thanks. On Thu, 08 Feb 2001, Dieter Maurer wrote: > Arno Gross writes: > > Can I apply stop words in a ZCatalog? > Y

Re: [Zope-dev] Greedy except clauses

2001-02-08 Thread Anthony Baxter
Ok, my last for tonight - I put the output of my horrible script at http://www.zope.org/Members/anthony/BarewordExcepts I'll work over it a bit probably early next week - an obviousish next step is to make it note when the body of the except: contains a 'raise' statement. Anthony

Re: [Zope-dev] Storing part of an object on the file system

2001-02-08 Thread Arno Gross
I had a similar problem. I'm using ExtImage, but I need some extensions for it. Because I using a RDMBS (currently MySQL) I wanted to have all the meta data in my RDMBS. For all my objects there is normally a 'InsertMethod'. This can be a ZSQL method (if just MySQL is involved) or it can be a DT

Re: [Zope-dev] Greedy except clauses

2001-02-08 Thread Anthony Baxter
ooo. Richard didn't do it right - there's actually over _600_ bareword except: clauses in the current zope-2_3-branch A quick breakdown of some of the biggies: 71 in OFS/ 61 in ZODB/ 56 in ZServer/ 53 in ZGadflyDA 50 or so in what seems to be test scripts or modules (probably ok) 42 in ZPublishe

Re: [Zope-dev] Greedy except clauses

2001-02-08 Thread Anthony Baxter
> > Is it the sort of thing where it's just work putting a list of all of > > them (line numbers, &c) up on a web page, maybe crosslinked into cvsweb? > > Then people can go and pick them off, one at a time. ok dokey - so, is DC still running a source view web system? If so, you could easily eno

Re: [Zope-dev] Greedy except clauses

2001-02-08 Thread Chris McDonough
Yes! > Is it the sort of thing where it's just work putting a list of all of > them (line numbers, &c) up on a web page, maybe crosslinked into cvsweb? > Then people can go and pick them off, one at a time. ___ Zope-Dev maillist - [EMAIL PROTECTED

Re: [Zope-dev] Storing part of an object on the file system

2001-02-08 Thread Jimmie Houchin
I would like to throw in something I've been thinking about for the last week or so. I would like to use Tux as the front-end of my website. For info on Tux. ftp://ftp.redhat.com/pub/redhat/tux/tux-2.0/ http://www.redhat.com/products/software/ecommerce/tux/ >From the website: """TUX is a kernel

Re: [Zope-dev] Greedy except clauses

2001-02-08 Thread Anthony Baxter
>>> [EMAIL PROTECTED] wrote > I've run into several greedy except: clauses now, and have submitted > patches to make them a little less greedy. Out of curiosity, I searched the > Zope source for "unfiltered" except: clauses... > % grep -rl "except:$" . |wc -l > 102 > ... erk Erk and a lot. This

[Zope-dev] Greedy except clauses

2001-02-08 Thread richard
I've run into several greedy except: clauses now, and have submitted patches to make them a little less greedy. Out of curiosity, I searched the Zope source for "unfiltered" except: clauses... % grep -rl "except:$" . |wc -l 102 ... erk Just picking some of the results of that search at random,

Re: [Zope-dev] manage_options in 2.3

2001-02-08 Thread Tres Seaver
"Chris Withers" <[EMAIL PROTECTED]> wrote: > > ActivePython 2.0, build 202 (ActiveState Tool Corp.) > > based on Python 2.0 (#8, Oct 19 2000, 11:30:05) [MSC > > Type "copyright", "credits" or "license" for more in > > >>> a = ('a','b','c','d') > > >>> print type(a) > > > > >>> b = a[1:] > > >>>

[Zope-dev] Storing part of an object on the file system

2001-02-08 Thread Andy McKay
Ok whack idea #34... Well sort of, the idea was sparked by ExtFile (yes its all his fault honest). We want to have files on the file system for many reasons which I won't go into now, just take it for granted. But we also want some of the objects information to be in the standard data.fs, so we ca

[Zope-dev] Object decision from WebDav/FTP

2001-02-08 Thread Andy McKay
Where does Zope do the decision to turn an file sent via FTP or WebDAV into an object of a certain type? I want to fiddle with this so an image put via WebDAV is a myImage object (for example) rather than an Image Cheers. -- Andy McKay. ___ Zo

Re: [Zope-dev] Stop words/vocabulary

2001-02-08 Thread Dieter Maurer
Arno Gross writes: > Can I apply stop words in a ZCatalog? You can: ZCatalog's "Lexicon"'s (--> SearchSupport.Lexicon.Lexicon) have a method "set_stop_syn" to provide a mapping for synonyms and stop word. I think, the source documentation is wrong: It says, the mapping would map wo

Re: [Zope-dev] Zope dumping core

2001-02-08 Thread Dieter Maurer
Dario Lopez-Kästen writes: > I am runing zope 2.2.5 on a Solaris box, and it is dumping core (suspect: > SQL MEthods with oracle, FTP server). > > I am using it in conjunction with oracle. Could this be the culprit? We have had that behaviour when we used an old DCOracle to connect to an Orac

Re: [Zope-dev] Zope newbie question

2001-02-08 Thread Dieter Maurer
Bryan Baszczewski writes: > Within my dtml, I am retrieving a text field from a database and passing > this field to a javascript function. However, the text field can be any > length of characters and dtml keeps cutting the text off at no pre-set limit > making it impossible to pass this fie

Re: [Zope-dev] ZSQL using LIKE operator

2001-02-08 Thread Dieter Maurer
Schmidt, Allen J. writes: > how to resolve a query which I need to read: > > SELECT * FROM table WHERE keywords LIKE '%keywords_variable%' > > has 'op=like' and when set to 'type=string' produces the LIKE > operation in the query, with single quotes, but I cannot get it to 'wrap' >

Re: [Zope-dev] Possible 'bad' with Client.py and urllib

2001-02-08 Thread Dieter Maurer
Chris Withers writes: > urllib & Client block Zope That would suggest a bug in Python's socket implementation: its "makefile().read" method would not release the global interpreter lock. Dieter ___ Zope-Dev maillist - [EMAIL PROTECTED

Bad: Re: [Zope-dev] ZSQL using LIKE operator

2001-02-08 Thread Jon Franz
No, this is bad!! Do NOT do this - it will allow Bad characters in your SQL query that could allow mischievous people to tamper with your Db and possibly hack your box (depending upon what DB you are using, how it is configured, what user it runs as, etc) This is the whole reason the dtml-sqlvar t

Re: [Zope-dev] manage_options in 2.3

2001-02-08 Thread Andy McKay
If ActivePython is "un-normal" python, then yes "normal" python behaves like that too. :) -- Andy McKay. - Original Message - From: "Chris Withers" <[EMAIL PROTECTED]> To: "Andy McKay" <[EMAIL PROTECTED]>; "Brian Lloyd" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, Februa

Re: [Zope-dev] Subproducts in a Zope Python Product

2001-02-08 Thread Phillip J. Eby
At 07:32 PM 2/8/01 +0100, Johan Carlsson wrote: >Hi, > >I want to create a sub modul in one of my Python Products, >because it gets more manageble. >Accualy I have a bunch of Plugins I which files I want to manage >in sub directories of the original Python Product. > >e.g. ./Products/MyProduct/Plu

Re: [Zope-dev] manage_options in 2.3

2001-02-08 Thread Chris Withers
> ActivePython 2.0, build 202 (ActiveState Tool Corp.) > based on Python 2.0 (#8, Oct 19 2000, 11:30:05) [MSC > Type "copyright", "credits" or "license" for more in > >>> a = ('a','b','c','d') > >>> print type(a) > > >>> b = a[1:] > >>> print b > ('b', 'c', 'd') Hmmm... does 'normal' python work

[Zope-dev] Subproducts in a Zope Python Product

2001-02-08 Thread Johan Carlsson
Hi, I want to create a sub modul in one of my Python Products, because it gets more manageble. Accualy I have a bunch of Plugins I which files I want to manage in sub directories of the original Python Product. e.g. ./Products/MyProduct/PluginKind1 etc... How do I setup the Zope registration pr

Re: [Zope-dev] manage_options in 2.3

2001-02-08 Thread Andy McKay
Yes you can: ActivePython 2.0, build 202 (ActiveState Tool Corp.) based on Python 2.0 (#8, Oct 19 2000, 11:30:05) [MSC Type "copyright", "credits" or "license" for more in >>> a = ('a','b','c','d') >>> print type(a) >>> b = a[1:] >>> print b ('b', 'c', 'd') >>> print type(b) >>> -- Andy McKa

Re: [Zope-dev] manage_options in 2.3

2001-02-08 Thread Chris Withers
> 2.3. The problem is the [2:] which for some reason doesnt want to work, when > I thought I was accesing a simple tuple. You can't slice tuples, IIRC, which would explain why that bit fails. cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED

Re: [Zope-dev] manage_options in 2.3

2001-02-08 Thread Andy McKay
Doh, I that was an email typo I would have received a syntax error (I always run a syntax check prior to trying code, just not putting it in emails). Anyway I checked it again and it occurs on Zope 2.2.5, so the its a not a 2.3. The problem is the [2:] which for some reason doesnt want to work, wh

RE: [Zope-dev] ZSQL using LIKE operator

2001-02-08 Thread Schmidt, Allen J.
Yup...You're right. I found an item that had a single quote in it. I tried it and the query blew up. then I added parts you suggest, and bingo...works fine. Thanks! To get around another problem I noticed... I have a keywords text field to search through everything in every category. On the same

[Zope-dev] Alpha release of ZODB programming guide

2001-02-08 Thread Andrew Kuchling
For what seems like half an eternity, I've been working on a ZODB programming guide, written for Python programmers who want to use the ZODB to store data. The document is placed under the GNU Free Documentation License. It's still far from being finished, but while on vacation I filled it out e

Re: [Zope-dev] ZSQL using LIKE operator

2001-02-08 Thread Casey Duncan
Jens Vagelpohl wrote: > > just write it out like: > > SELECT * FROM table WHERE keywords LIKE '%%' > > jens > > on 2/8/01 7:17, Schmidt, Allen J. at [EMAIL PROTECTED] wrote: > > > I have been through the docs, searched a variety of locations, and cannot > > find anything on how to resolve a q

Re: [Zope-dev] ZCatalog/TextIndex/OR - keyword search

2001-02-08 Thread Steve Alexander
Arno Gross wrote: > Steve, thanks for your hints. > At moment I'm working with version 2.2.3 and could't bring it to work. Should > it work? PythonScripts won't work. You should be able to do it with an External Method. I don't know about PythonMethods. > So I switched now tho 2.3 and after s

Re: [Zope-dev] ZCatalog/TextIndex/OR - keyword search

2001-02-08 Thread Arno Gross
Steve, thanks for your hints. At moment I'm working with version 2.2.3 and could't bring it to work. Should it work? So I switched now tho 2.3 and after some struggles it works. Actually I have ZClass objects. Best regards Arno Gross, [EMAIL PROTECTED] On Thu, 08 Feb 2001, Steve Alexander wrot

[Zope-dev] Re: [Zope] Zope dumping core

2001-02-08 Thread Chris McDonough
You might want to take a look into the -M switch of z2.py in combination with the "How To Track Down Hangs Using the Debug Log" HOWTO on Zope.org to figure out where you're getting the coredump... - Original Message - From: "Dario Lopez-Kästen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>

[Zope-dev] Zope dumping core

2001-02-08 Thread Dario Lopez-Kästen
Hello! I am runing zope 2.2.5 on a Solaris box, and it is dumping core (suspect: SQL MEthods with oracle, FTP server). I am using it in conjunction with oracle. Could this be the culprit? Any help is appreciated. If we cannot get Zope to be stable we'll have to abandon it; this is not on my lis

RE: [Zope-dev] manage_options in 2.3

2001-02-08 Thread Brian Lloyd
> Thanks for the new management interface guys I happily wrote a > product last > night and did a quick interface using the standard Folder interface and > fiddled with filtered_meta_types list and dontAllowCutandPaste > and so on. A > quick How-To will be on its way. I got a wierd error trying to

[Zope-dev] strange problem with LoginManager

2001-02-08 Thread Tim McLaughlin
I am using LoginManager as specified by by dlpierson's HOWTO and everything works fine unless somebody connects via AT&T Worldnet (using a dialup). In this case, the browser displays a 404 error when the login page should be shown. Same machine connected through a LAN works fine, but again conne

[Zope-dev] DAV locking in management interface

2001-02-08 Thread Steve Alexander
Now that DAV locking has landed, how about integrating it with the TTW management interface. For example, when editing a DTML Method, have a button that says "Lock to make changes". Pressing this locks the method you want to edit. It gets unlocked when you press the "change" button. -- Steve

Re: [Zope-dev] ZCatalog/TextIndex/OR - keyword search

2001-02-08 Thread Steve Alexander
Arno Gross wrote: > Hi Steve, > maybe I'm missing one step. If I create a TextIndex for search_text (or > PrincipiaSearchSource) > I have to tell somewhere how this index is composite? Becaus I try to > list PrincipiaSearchSource in my result list it's empty. You need to provide a method or prop

[Zope-dev] Possible 'bad' with Client.py and urllib

2001-02-08 Thread Chris Withers
Hi, Both urllib and Client.py can be used to get stuff from other sites via HTTP and do useful stuff with it, right? Well, I was doing this and I think I've found what could be a 'real bad problem'. It appears that both of the above block while getting stuff from the remote site. Worse than tha

Re: [Zope-dev] ZSQL using LIKE operator

2001-02-08 Thread Jens Vagelpohl
just write it out like: SELECT * FROM table WHERE keywords LIKE '%%' jens on 2/8/01 7:17, Schmidt, Allen J. at [EMAIL PROTECTED] wrote: > I have been through the docs, searched a variety of locations, and cannot > find anything on how to resolve a query which I need to read: > > SELECT * FRO

[Zope-dev] ZSQL using LIKE operator

2001-02-08 Thread Schmidt, Allen J.
I have been through the docs, searched a variety of locations, and cannot find anything on how to resolve a query which I need to read: SELECT * FROM table WHERE keywords LIKE '%keywords_variable%' has 'op=like' and when set to 'type=string' produces the LIKE operation in the query, with single

Re: [Zope-dev] ZCatalog/TextIndex/OR - keyword search

2001-02-08 Thread Arno Gross
Hi Steve, maybe I'm missing one step. If I create a TextIndex for search_text (or PrincipiaSearchSource) I have to tell somewhere how this index is composite? Becaus I try to list PrincipiaSearchSource in my result list it's empty. Thanks Arno Gross, email: [EMAIL PROTECTED] On Thu, 08 Feb 2001

[Zope-dev] More Python Script Wishlist

2001-02-08 Thread Chris Withers
I wish I could do: from ZPublisher import Client return Client.call(url,username,password)[1] ...in a python script. Why would that be insecure? cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-d

Re: [Zope-dev] ZCatalog/TextIndex/OR - keyword search

2001-02-08 Thread Steve Alexander
Arno Gross wrote: > I understand that the search terms for a field with TextIndex are ORed > and the fields in a search form are ANDed. > But assume the following: > * I have three fields (eg. abstract, content, title) with TextIndex > * I have one field (eg. category) with FieldIndex > > When

[Zope-dev] ZCatalog/TextIndex/OR - keyword search

2001-02-08 Thread Arno Gross
I understand that the search terms for a field with TextIndex are ORed and the fields in a search form are ANDed. But assume the following: * I have three fields (eg. abstract, content, title) with TextIndex * I have one field (eg. category) with FieldIndex When searching I want just give a key

[Zope-dev] Stop words/vocabulary

2001-02-08 Thread Arno Gross
Can I apply stop words in a ZCatalog? Are there stop words for german available? If not I would try to compose a stop word list for german and publish it. Thanks Arno Gross, [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists

Re: [Zope-dev] Profiling Products

2001-02-08 Thread Andy Dawkins
Martijn Pieters wrote: > Have a look at: Control Panel -> Debug Information. There is a 'Profiling' > tab that explains what you have to do to switch it on. > > -- > Martijn Pieters Oh my god, That is so sexy :-) Cheers Martijn, I owe you a pint. -Andy ___