[Zope-dev] bug in zpatterns-0.4 ?

2000-06-27 Thread Jephte CLAIN
hello, Rack.createItem (low level method) first calls Rack.getItem (higher level method) to check the existence of the item. This causes infinite loop in certain cases. It should (IMHO) call Rack.retrieveItem instead regards, jephte clain [EMAIL PROTECTED]

Re: [Zope-dev] bug in zpatterns-0.4 ?

2000-06-27 Thread mike
Jephte CLAIN wrote: hello, Rack.createItem (low level method) first calls Rack.getItem (higher level method) to check the existence of the item. This causes infinite loop in certain cases. It should (IMHO) call Rack.retrieveItem instead Could you provide an example please? Mike

[Zope-dev] Full-text Indexing FOLLOW-UP

2000-06-27 Thread Thomas Weholt
Hi ( again ) Wouldn`t Zope as a web-database integrator benefit from a feature like full-text searching? ( Everybody answers yes and nods. ) It seems as if Zope is aimed at information-publishing, using a RDBMS as source for that information. An initiative from the Zope community to either

Re: [Zope-dev] Product author's guide to Zope 2.2+ is ready...

2000-06-27 Thread Toby Dickenson
On Mon, 26 Jun 2000 11:25:51 -0400, Brian Lloyd [EMAIL PROTECTED] wrote: As promised, I've written up a guide for product authors that talks about the security changes in Zope 2.2+, what they mean to product authors and how to ensure that your products work with 2.2: Thanks, that is a useful

Re: [Zope-dev] Full-text Indexing FOLLOW-UP

2000-06-27 Thread Oleg Broytmann
Hi! http://mysearch.udm.net/ It is not Zope-related, but pretty good. Integrate its engine with Zope - and voila! On Tue, 27 Jun 2000, Thomas Weholt wrote: Wouldn`t Zope as a web-database integrator benefit from a feature like full-text searching? ( Everybody answers yes and nods. )

[Zope-dev] Re: [Zope] :xxx syntax (was: HTML Editors that recognize DTML)

2000-06-27 Thread Lalo Martins
On Fri, Jun 23, 2000 at 07:49:21PM -0400, Jon Franz wrote: Also, its not XML compliant either, but I have a shorter dtml syntax patch available for download at: http://www.zope.org/Members/Coventry/dtml_shortcut it is a really small patch, and just allows : to replace dtml- or !--#

RE: [Zope-dev] Confera fix

2000-06-27 Thread Jon Franz
Hrm, I'm using hot-fixed and updated 2.1.6, and cant seem to find this anywhere on my box - and Zope throws up the error 'Invalid attribute' with an id of 'reg' When I try to use (unfixed) Confera with newlines in the body of a message... I'm not advocating removing or ignoring ts_regex, I

[Zope-dev] Zope2.2.0b3 Image/File object create/upload bug (w/patch)

2000-06-27 Thread Adam Karpierz
This bug causes that there is impossible to add/create/upload etc. Image and/or File object if image/file body has a file type (type(file) == FileType) in: def manage_addImage(self, id, file, title='',.. def manage_addFile(self, id, file='', title='',.. The patch has attached. begin 666

[Zope] range with variables

2000-06-27 Thread Armin Wappenschmidt
Hi all, I've a problem using the following dtml construct: dtml-let start=Variable_from_Formular # -- that's the problem!! dtml-let stop="100" dtml-let period="5" dtml-in "_.range(start,stop,period)" dtml-comment do something /dtml-comment /dtml-in /dtml-let /dtml-let /dtml-let

Re: [Zope] ZOracleDA

2000-06-27 Thread Michal Bukovjan
Avoid using Oracle 8.1.5 at all costs. It has mislinked executables and libraries, I can't believe Oracle could have released such a shit. Instead, download and try Oracle 8.1.6 R2 - the current release. It fixes a number of issues (though not all of them) and at least it works. Michal

[Zope] Access object inside a folder

2000-06-27 Thread Sin Hang Kin
Hi, I have put objects inside a folder tabledef and would like to refer them : dtml-in "_.getitem('tabledef').objectItems(['DTML Document'])" sort=id mapping dtml-var "_['sequence-item']" html_quote /dtml-in However, this does not work, But putting the objects in the current folder works

[Zope] Newbie: String work

2000-06-27 Thread Andy Gates
Simple stuff from the simple people today: string manipulation. I have a string variable which has various chunks delimited by double tildes ~~. In order to do what I need to do, I need to extract the section of the string after the last double-tilde, so that "fred~~bloggs" returns "bloggs"

Re: [Zope] Newbie: String work

2000-06-27 Thread Rik Hoekstra
Andy Gates wrote: Simple stuff from the simple people today: string manipulation. I have a string variable which has various chunks delimited by double tildes ~~. In order to do what I need to do, I need to extract the section of the string after the last double-tilde, so that

Re: [Zope] Newbie: String work

2000-06-27 Thread Geir Bækholt
on Tuesday, June 27, 2000 Andy Gates wrote : AG Simple stuff from the simple people today: string manipulation. AG I have a string variable which has various chunks delimited by double AG tildes ~~. In order to do what I need to do, I need to extract the AG section of the string after the last

[Zope] mod_rewrite rule to close managment screens from outsiders

2000-06-27 Thread Riku Voipio
I'm trying to deny external access to zope maintainance from elsewhere (just for sure), with Zope behind apache. However, It just doesn't seem work... Sure It's more apache's problem, but I guess someone around there has a working solution? #/IfModule dule mod_rewrite.c RewriteEngine on

[Zope] ZClass question?

2000-06-27 Thread Webmaster
I am running 2.2.0b2 on a RH linux and have created a simple ZClass. All of my modified constructor objects work perfect however when I created a separate dtml method to add instances I get some weird errors. First when I try and create a new instance remotely I get a zope error "unauthorized"

Re: [Zope] embed an SQL method inside a dtml-in tag

2000-06-27 Thread jpenny
On Tue, Jun 27, 2000 at 12:05:56PM +1000, Andrew Kenneth Milton wrote: +[ Dieter Maurer ]- | Andrew Kenneth Milton writes: | | So... | dtml-in "bcd_statement(a=a, b=b, c=c)" | Alternatively, you could place the values from

Re: [Zope] mod_rewrite rule to close managment screens from outsiders

2000-06-27 Thread Marcel Preda
- Original Message - From: Riku Voipio [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 27, 2000 4:05 PM Subject: [Zope] mod_rewrite rule to close managment screens from outsiders I'm trying to deny external access to zope maintainance from elsewhere (just for sure), with

Re: [Zope] Generating products that perform a smart clone of a master site?

2000-06-27 Thread Chris Withers
Hamish Lawson wrote: I envisaged turning a tutor's site into a product that could be instantiated. Hi Hamish, I'd suggest downloading the ZWikiWeb product from: http://www.zope.org/Members/chrisw/ZWikiWeb It does pretty much exactly what you're talking about. It's doesn't take very long to

[Zope] STUPID_FILE_LOGGER

2000-06-27 Thread Andy McKay
Hi, Im trying to run Zope on Win2k and use the stupid_file_logger. No matter what I seem to do to the command line or z2.py I still get the logs going to stderr (ie ms-dos console). Can anyone help? Here are command lines I have tried: "C:\Zope\bin\python.exe" "C:\Zope\z2.py" -D

Re: [Zope] Can't override standard_error_message on NotFound?

2000-06-27 Thread R. David Murray
On Mon, 26 Jun 2000, matt wrote: I'm having some problems with standard_error_message on 2.2.0b2. According to the mailing list archives I should be able to override NotFound errors (I even cut-n-pasted http://www.zope.org/standard_error_message/view_source into my own standard_error_message

Re: [Zope] Can't override standard_error_message on NotFound?

2000-06-27 Thread Chris Withers
"R. David Murray" wrote: On Mon, 26 Jun 2000, matt wrote: I'm having some problems with standard_error_message on 2.2.0b2. According to the mailing list archives I should be able to override NotFound errors (I even cut-n-pasted http://www.zope.org/standard_error_message/view_source into my

[Zope] PowerMac 7500 with LinuxPPC and Zope?

2000-06-27 Thread Daniel Muller
Hi, I would like to turn an old Mac 7500 into a Zope server. LinuxPPC installs on the Mac PowerPC using the Red Hat 6.1 linux distribution. Does anyone have any experience with Zope with this type of set up? Should I consider a different linux distribution than PPC? Thanks, Daniel

Re: [Zope] STUPID_FILE_LOGGER

2000-06-27 Thread Andy McKay
The document by Amos (http://www.zope.org/Documentation/Misc/LOGGING.txt) says set the "STUPID_FILE_LOGGER" variable. That doesnt work but STUPID_LOG_FILE does. I just set it in the command line: "C:\Zope\bin\python.exe" "C:\Zope\z2.py" -D STUPID_LOG_FILE="C:\zope.log" Thanks. - Original

[Zope] Making ZCatalog catalog the results from a ZSQL query

2000-06-27 Thread Ivan Raikov
Greetings, How can I make a ZCatalog object to catalog the result set produced from a ZSQL method? I'm subclassing ZCatalog and replacing the default manage_catalogFind with a DTML method which in turn invokes a ZSQL method, but I get an error, "You are not authorized to access

[Zope] how to get email delivery errors

2000-06-27 Thread Dan Rusch
Our site allows supervisors to email orders back to sales reps. We have this working very well. The problem is if the supervisor types in an non-existant email address we aren't getting Mail System Error - Returned Mail messages like you would from other email apps such as Netscape Messenger.

[Zope] ZCatalog counting?

2000-06-27 Thread Alexander Limi
Hi, A presumably simple question: Is there an easy way to count the number of occurences of a certain meta type in a Catalog? E.g: I want a dtml snippet that outputs: There are 123 DTML Documents in the Catalog. I've browsed the howto's, but didn't find anything like this. Can anybody offer

[Zope] standard_html_header/footer for Help system in 2.2

2000-06-27 Thread Ron Bickers
The help system in 2.2 is looking great, with a minor annoying "feature". The left-side navigational window uses my standard_html_header and footer, which is not at all appropriate for a navigational window (it includes navigational bars of its own and causes a big horizontal scrolling

[Zope] ZOracleDA and Zope 2.2?

2000-06-27 Thread Christian Scholz
Hi! I am encountering the following problem when using ZOracleDA 2.2.0b1 and Zope 2.2b2/3: When creating a ZOracle Connection and giving the wrong connection string then whole Zopes crashs with OCI_ERROR at oci_8.c:283 ORA-12541: TNS:no listener OCI_ERROR at oci_8.c:283 ORA-12154: TNS:could

Re: [Zope] ZODB/FSSession TransactionError

2000-06-27 Thread Brian McClain
On Tue, Jun 27, 2000 at 02:40:49PM -0400, Brian McClain wrote: [...] I have plenty of disk space and have tried reinstalling FSSession/Zope, rebooting, etc... I am running Zope 2.1.0 and FSSession 0.3.1 What operating system do you use ? Have you checked the partition on which Zope

[Zope] Re: Slow File Access With LocalFS

2000-06-27 Thread Jonothan Farr
It sounds to me like the Apache server is just writing the data directly to the HTTP connection as it is read. I believe that's how HTTP "streaming" works. I also believe this is possible to do using the Zope HTTPResponse object. Does anyone have any ideas? --jfarr "Perl is worse than Python

Re: [Zope] Kinterbasdb

2000-06-27 Thread Chris Beaumont
Hi David, Thank you for the thoughtful response.. I agree that having KInterbasdb would not solve our DA problem, but at least it would let me use the new Interbase Storage option.. A few people have been successful doing this, (compiling KInterbasdb with IB6beta) perhaps one of them could

Re: [Zope] DTML/ZClass question

2000-06-27 Thread Andy McKay
You are correct, you're ZClass is not rendering the dtml and it wont. The easiest way I found is simply not to try and find another solution. I came across the same problem a while ago when I was just starting out with Zope. I have solved the problem now, its written in python and derives from

Re: [Zope] ZCatalog counting?

2000-06-27 Thread Rik Hoekstra
A presumably simple question: Is there an easy way to count the number of occurences of a certain meta type in a Catalog? E.g: I want a dtml snippet that outputs: There are 123 DTML Documents in the Catalog. I've browsed the howto's, but didn't find anything like this. Can anybody offer me

[Zope] SV: [Zope] Newbie: String work

2000-06-27 Thread peter be
Hello Andy the syntax should be let string = "fred~~bloggs~aardvark" _.string.split(string,'~~')[-1] i.e. dtml-var "_.string.split(string,'~~')[-1]" Should work. In python, it's the same thing. - Original Message - From: Andy Gates [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

Re: [Zope] ZCatalog counting?

2000-06-27 Thread Erik Enge
On Tue, 27 Jun 2000, Alexander Limi wrote: Is there an easy way to count the number of occurences of a certain meta type in a Catalog? E.g: I want a dtml snippet that outputs: Couldn't you do: dtml-call "REQUEST.set('counter', 0)" dtml-in "objectValues('DTML Document')" dtml-call

Re: [Zope] ZCatalog counting?

2000-06-27 Thread Andy McKay
But that assumes that they are all in the same folder... a ZCatalog query where meta-type = 'DTML Document' followed by a simple sequence-length would get around that. And I think (but dont quote me on this) that a ZCatalog search is quicker than objectValues. - Original Message - From:

Re: [Zope] ZWiki/Structured Text formatting surprise

2000-06-27 Thread Rik Hoekstra
Hi, Just noticed that (_.None,_, gets rendered as (.None,, in a structrued text wiki. Not useful :/ Hm, in a structuredtextdtml Wiki (such as the Zope edu Wiki) this works. See the SandBox there http://www.zope.org/Wikis/zope-edu/SandBox. So I can't reproduce it now. I've got around this

RE: [Zope] ZClass question?

2000-06-27 Thread Webmaster
I am using DTML methods on all. -Original Message- From: Erik Enge [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, June 27, 2000 4:37 PM To: Webmaster Cc: [EMAIL PROTECTED] Subject: Re: [Zope] ZClass question? On Tue, 27 Jun 2000, Webmaster wrote: First when I try and

Re: [Zope] ZCatalog counting?

2000-06-27 Thread Rik Hoekstra
On Tue, 27 Jun 2000, Alexander Limi wrote: Is there an easy way to count the number of occurences of a certain meta type in a Catalog? E.g: I want a dtml snippet that outputs: Couldn't you do: dtml-call "REQUEST.set('counter', 0)" dtml-in "objectValues('DTML Document')" dtml-call

[Zope] Still Problem with LocalFS

2000-06-27 Thread jensebaer
- Original Message - From: jensebaer [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, June 24, 2000 6:52 PM Subject: Re: [Zope] Re: Problem with LocalFS Ok now I placed the dtml files (savefile.dtml upload.dtml) in the LocalFS Folder but the problem is still the same: When I use

[Zope] DTML question

2000-06-27 Thread Luke Tymowski
Hello, I want to retrieve the last 3 filenames from a subfolder and display them in a document. If I set the size of the retrieval to 1, I get just 1 name returned. If I set the size to 3, I get everything in the folder. (if I use 2 I also get everything in the subfolder ) Here is my code

[Zope] Data.fs.lock?

2000-06-27 Thread addyd
The tech that does backups on my new NT server (IIS) tells me that everything backs up ok except the \var\Data.fs.lock file. Is that normal or a problem? Darren Addy Internet Specialist and Interim Web Presence Coordinator Office of Information Technology Services University of Nebraska at

[Zope] How to retrieve content of a document?

2000-06-27 Thread Luke Tymowski
Hello, Yet another question. I've gone through the DTML Reference Guide but couldn't find the answer. How do I display the content of a DTML Document through a query? For example: dtml-with Document dtml-in "objectValues(['DTML Document'])" size=3 sort=id dtml-var id dtml-var titlebr

Re: [Zope] ZODB performance: reads to writes

2000-06-27 Thread Ty Sarna
In article 000d01bfddfb$4546f070$[EMAIL PROTECTED], Evan Simpson [EMAIL PROTECTED] wrote: - Original Message - From: Jimmie Houchin [EMAIL PROTECTED] Will an app as described above still suffer from problems with high writes? Possibly, but only if there are hidden hotspots. For

Re: [Zope] Adding users via external method

2000-06-27 Thread Timothy Grant
Following up on my own message... OK, so now I have a lovely external method that reads a datafile, returns a list of tuples that I can then use in a DTML Method to add my users. So far so good. I have come upon some situations where I also need to add Roles. I can find nothing archived nor on

Re: [Zope] ZODB/FSSession TransactionError

2000-06-27 Thread Pavlos Christoforou
On Wed, 28 Jun 2000, Dieter Maurer wrote: That's strange, because Python usually indicates EOF by returning an empty string and not by raising EOFError. cPickle returns EOFError which is confusing since the Python docs state that only input and raw_input return this exception. The problem

Re: [Zope] how to get email delivery errors

2000-06-27 Thread Ben Leslie
On Tue, 27 Jun 2000, Dan Rusch wrote: Our site allows supervisors to email orders back to sales reps. We have this working very well. The problem is if the supervisor types in an non-existant email address we aren't getting Mail System Error - Returned Mail messages like you would from other

Re: [Zope] How to retrieve content of a document?

2000-06-27 Thread Ben Leslie
On Tue, 27 Jun 2000, Luke Tymowski wrote: Hello, Yet another question. I've gone through the DTML Reference Guide but couldn't find the answer. How do I display the content of a DTML Document through a query? For example: dtml-with Document dtml-in "objectValues(['DTML

[Zope] ZODB/FSSession TransactionError

2000-06-27 Thread Brian McClain
Well, I got a second installation of Zope running OK in another directory after correcting some group/permission errors on my part. It seems I can now use FSSession with this second installation with no problems (fingers crossed "Oh please please please"). In my original Zope installation, I'm

Re: [Zope] PowerMac 7500 with LinuxPPC and Zope?

2000-06-27 Thread Curtis Maloney
On Wed, 28 Jun 2000, Daniel Muller wrote: Hi, I would like to turn an old Mac 7500 into a Zope server. LinuxPPC installs on the Mac PowerPC using the Red Hat 6.1 linux distribution. Does anyone have any experience with Zope with this type of set up? Hmm.. sounds like fun. If pyton runs

Re: [Zope] Prototyped folders?

2000-06-27 Thread Jeff Hoffman
On Tue, 27 Jun 2000, [iso-8859-1] Hamish Lawson wrote: If a folder doesn't itself contain a required object or method, I'd like to have another folder looked in instead. The fall-back folder won't necessarily (and often can't) be higher in the hierarchy, so acquisition doesn't seem to be a

Re: [Zope] Access object inside a folder

2000-06-27 Thread Sin Hang Kin
dtml-in "_.getitem('tabledef').objectItems(['DTML Document'])" sort=id mapping dtml-var "_['sequence-item']" html_quote /dtml-in Error Type: AttributeError Error Value: __getitem__ Traceback (innermost last): File C:\Program Files\Zope2\lib\python\ZPublisher\Publish.py, line 222, in

Re: [Zope] Adding users via external method

2000-06-27 Thread ethan mindlace fremen
Timothy Grant wrote: I have come upon some situations where I also need to add Roles. I can find nothing archived nor on the Zope site about programmatically adding Roles. Can anyone assist me? hmm. I don't know how you're adding users without indicating their roles. I do this:

RE: [Zope] 2.2.0b2 and ZSQL method and Zcatalog

2000-06-27 Thread Bak @ kedai
On Tue, 27 Jun 2000, Brian Lloyd wrote: hi brian, -ZSQL method. got len() of unsized object. beta 3 should resolve that. all my sql methods now work! thanks I've attached an updated Lexicon.py - can you try dropping this into your lib/python/SearchIndex directory, restarting

[Zope] the tree tag is driving this newbie up the wall

2000-06-27 Thread Walter A. Aprile
Hello, I am trying to write a tree access to a hyerarchy of folders containing custom objects, subclassed from the DTML Docuement. The inheritance path should be DTMLDocument - Article (my custom class) - every single article in the folders. I would like only Articles and