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

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

[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

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

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

Re: [Zope-dev] ZSQL using LIKE operator

2001-02-08 Thread Jens Vagelpohl
just write it out like: SELECT * FROM table WHERE keywords LIKE '%dtml-var name="my_var"%' 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

[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

[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

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

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

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

[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

[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-Ksten" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc:

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 some

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

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,

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) type 'tuple' b = a[1:] print b ('b', 'c', 'd') print type(b) type 'tuple' --

[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

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, February 08,

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

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]

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%' dtml-sqltest 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

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 field

[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. ___

Re: [Zope-dev] Zope dumping core

2001-02-08 Thread Dieter Maurer
Dario Lopez-Ksten 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 Oracle

[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

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) type 'tuple' b = a[1:] print b ('b',

[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] 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 is a

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

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 enough

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

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

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] 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? You