Re: [Zope] How to set a REQUEST variable inside a PythonMethod?

2001-01-09 Thread Dieter Maurer
=?iso-8859-1?Q?Juan_Carlos_Coru=F1a?= writes: > REQUEST.update({'NoRows': 4}) REQUEST.other.update({'NoRows': 4}) > REQUEST.set('NoRows', 4) This, too, should work, as Evan already said. Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zo

Re: [Zope] slow DocumentTemplate (dtml) import speed

2001-01-10 Thread Dieter Maurer
Federico Grau writes: > ... import of "DocumentTemplate" in CGI script takes too much time ... Check whether your Web Server supports FCGI. If the Web Server is Apache, then there are several Apache modules to integrate Python inside Apache. I think Guido van Rossum uses "mod_snake". Search "com

Re: [Zope] Memory problems

2001-01-10 Thread Dieter Maurer
Tom Deprez writes: > ... potential memory leak ... You can use the program "top" to analyse memory usage. This will show you, which process[es] consume memory. If Zope does it, then you can use "Control Panel->Debugging" to get some hints where the leak may be. > ... many Zope processes shown

Re: [Zope] Holiday Calendar anyone? (cont.)

2001-01-10 Thread Dieter Maurer
peter bengtson writes: > ... Holiday Calendar ... There is the "Calendar" product to display calendars. Of cause, it does not know, when there are holidays all over the world. The data displayed can be anywhere, for example in a database. If you have a small database with your holidays or other

Re: [Zope] Import problem

2001-01-10 Thread Dieter Maurer
Andreas Tille writes: > Hello, > > I tried to create my first class following a tutorial. I exported > the rudimentary class via export function. Now I wanted to import > it on my laptop to continue working on it but importing failed with > the message: > >The object does not supp

Re: [Zope] broken products not indicated after Zope 2.2.5 install

2001-01-10 Thread Dieter Maurer
Fred Yankowski writes: > I just installed a full copy of Zope 2.2.5 onto my NT 4.0 SP 6 machine > and then copied over my data.fs* files from Zope 2.2.3. Zope 2.2.5 > comes up OK after that, but none of the Products in the Control Panel > / Products folder is shown as broken, even though I ha

Re: [Zope] Trouble with dates in an External Method

2001-01-10 Thread Dieter Maurer
Steven Grimes writes: > This is a multi-part message in MIME format. > > --=_NextPart_000_0009_01C07A9E.4B9BD860 > Content-Type: text/plain; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable Please do not post MIME messages to this list! > ... external method d

Re: [Zope] permissions problem upgrading to 2.3.0a1 from 2.1.6

2001-01-10 Thread Dieter Maurer
Jerome Alet writes: > ... permission problem upgrading ZClasses from 2.1.6 to 2.3a1 ... Are your ZClasses pure Zope ZClasses or do they contain Python based products? There was a big shift in security policy during Zope 2.1.x to Zope 2.2.x. Many Python based products need to be changed in order

Re: [Zope] get property of type 'list'

2001-01-10 Thread Dieter Maurer
Andrei Belitski writes: > I add a list property to a DTML document of type 'tokens' (e.g. '[1, 2, > 3]') wenn i try to retrieve it with _.getitem i get '[1,' '2,' '3]' > instead of '1' '2' '3' Are you sure, it was '[1,' '2,' '3]' and not ['1', '2', '3', '4']? If it were, it would be really str

RE: [Zope] SQL Method, dtml-with and namespace weirdness

2001-01-10 Thread Dieter Maurer
Mayers, Philip J writes: > I'm wondering if it's a bug in the postgres DA, since I can't reproduce it > with a quick gadfly test. I'm just going to try it out now. That would be very astonishing, as a database adapter does not have anything to do with namespaces. Dieter __

Re: [Zope] dtml-tree and a filtered objectValues

2001-01-10 Thread Dieter Maurer
Jim Hebert writes: > > DMTL method "y": > OK, this works: > > My DTML Method, "y": > > ... > used as: > > ... > causes: > Error Type: AttributeError > Error Value: __getitem__ I tried to reproduce this in Zope 2.3 CVS. I had to replace "_" by "_vars", as "_" gave me a "

Re: [Zope] inserting half a dtml tag into a zclass

2001-01-10 Thread Dieter Maurer
Tim Hicks writes: > > II. I think (this implies, I am not sure), that ZPublisher > > translates exceptions into HTTP response codes. > > This would mean, you could try: > > > >In your "privacy" method: > > > > > > > > > > > >in your other o

Re: [Zope] REPOST: dtml-with doesn't work

2001-01-10 Thread Dieter Maurer
Usually, I complain that problem reports are too terse. But, your's was very big, such that I did not read it carefully. It is very difficult to get it right for everyone. Just a remark: SQL methods do *NOT* look at the DTML namespace *AT ALL*, just at REQUEST (or the expliciitly passed keyw

Re: [Zope] Proximity searches w/ ZCatalog

2001-01-10 Thread Dieter Maurer
[EMAIL PROTECTED] writes: > Supposedly proximity searches are possible... like "FIDELITY within 8 words > of MUTUAL FUNDS." Can't find anything in docs. Anybody have a suggestion > here... Zope supports some proximity searches, but it provides far less control than you ask for. The proximity

Re: [Zope] Proximity searches w/ ZCatalog

2001-01-10 Thread Dieter Maurer
ink you'd put "FIDELITY ... MUTUAL FUNDS" in the search box. > > I think Dieter Maurer <[EMAIL PROTECTED]> wrote the code, so he's > probably a good person to speak to :-) No, I just looked for bugs in it and found several. It is almost as you described:

[Zope] Re: [Zope-dev] ZCatalog and 'fuzzy logic'

2001-01-10 Thread Dieter Maurer
Morten W. Petersen writes: > It seems I misunderstood the term fuzzy logic myself. Fuzzy logic means > if I search for a word, for example 'programmer', it will return matches > to the words 'program', 'programming','programmable' etc. This, usually, is called "stemming". Though, your examples

Re: [Zope] href on a local file

2001-01-11 Thread Dieter Maurer
[EMAIL PROTECTED] writes: > "LocalFS" is a very nice product. I would go for it. Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists

[Zope] Zope BUG (was: [Zope] Limited File object size?)

2001-01-11 Thread Dieter Maurer
Stuart Foster writes: > When uploading a file to Zope I am getting an error about commit_sub. > I uploaded some other files to the same folder but am having problems > with two in particular. > He only difference I can see is that the others where 10k to 60k and the > two problem files are

Re: [Zope] broken products not indicated after Zope 2.2.5 install

2001-01-11 Thread Dieter Maurer
Fred Yankowski writes: > I activated Zope logging as you suggested and restarted Zope, but the > logfile does not report any exceptions. It only contains routine > startup messages such as "ZServer HTTP server started ...". > > And the Products list still makes it look like they're all OK,

Re: [Zope] How do I get the size of an item ?

2001-01-11 Thread Dieter Maurer
Dimitris Andrakakis writes: > > What I need is, from a dtml method in /news, to get > the size of an object (a file, say /news/files/file01.pdf) > in /news/files. You know Zope's integrated online help? There you would find that files have a method "getSize" that returns their size. I

Re: [Zope] ZServer

2001-01-11 Thread Dieter Maurer
Tom Deprez writes: > Can anybody tell me what the following warning means, or where I can find > documentation on this warning? > > ZServer warning : server accept() threw EWOULDBLOCK You can tell a socket that you do not want to wait. If you did, then the socket will return EWOULDBLOCK when

Re: [Zope] Memory problems

2001-01-11 Thread Dieter Maurer
Dimitris Andrakakis writes: > Dieter wrote: > > "ps" is still a bit stupid and does not visualize that > > they are threads rather than normal (full blown) processes. > > ps -axf ? Thank you! But it displays the children hierarchy without an indication what children are full blown processes

[Zope] RE: SQL Method, dtml-with and namespace weirdness

2001-01-11 Thread Dieter Maurer
Mayers, Philip J writes: > > To recap: two SQL method returning [different] (name,domain) are used like > this: > > > &dtml-name; - POINT A > &dtml-domain; > > &dtml-name;- POINT B > &dtml-domain; > > &dtml-name; - POINT C > &dtml-doma

[Zope] Potential BUG "manage_addProperty"(was: [Zope] get property of type 'list') (was: [Zope] get property of type 'list')

2001-01-12 Thread Dieter Maurer
Hi Andrei Andrei Belitski writes: > ... manage_addProperties(id='tok', type='tokens', value=[1,2,3,4]) ... > ... > &dtml-tok; > yields > ['[1,', '2,', '3,', '4]'] > ... I now understand what happens: You interpret "type='tokens'" in a way, that the property value is a list.

[Zope] whitespace normalization (was: [Zope] way to cleanup form input text?)

2001-01-12 Thread Dieter Maurer
Chris Beaumont writes: > ... whitespace normalization ... An idiom for whitespace normalization is: "_.string.join(_.string.split(text_to_be_normalized))" It will replace any sequences of consecutive whitespace characters by a single space. You can not use it in all cases, as sometimes newl

Re: [Zope] with a variable

2001-01-12 Thread Dieter Maurer
josh on writes: > This interprets "979226100" as a name! > > > > This doesn't: > This interprets "979226100" as an integer. You could use Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** N

Re: [Zope] hasRole bug or feature in 2.2.?

2001-01-12 Thread Dieter Maurer
Chris McDonough writes: > You didn't protect the isMember document. It's viewable by Anonymous. The > Zope security machinery short-circuits authentication for resources that > don't require it. This means that when you view a resource that's > unprotected, you view it "as Anonymous". Anon

Re: [Zope] ZCatalog uniqueValuesFor

2001-01-12 Thread Dieter Maurer
aZaZel writes: > ... "uniqueValuesFor" not updated after modification ... Almost surely a small bug in ZCatalog. A field index is implemented as a mapping from values to lists of documents. "uniqueValuesFor" returns this mapping's "keys()". When the field value of a document changes, this docu

Re: [Zope] ZOPE : SQL methods

2001-01-12 Thread Dieter Maurer
K H Subrahmanyan writes: > I am using zope and gadfly for my project. > but while using the SQL methods, I get the error if I use the "like" option. > > E.g.. select * > from table > where > Emp_name like "*rama*" > > I will get the following error

Re: [Zope] How do I get the size of an item ?

2001-01-12 Thread Dieter Maurer
Dimitris Andrakakis writes: >'])"> This is an FAQ (as you can imagine). The list has a searchable archive, where you can find anwsers to FAQ's. I think, you will also find a compiled FAQ list via the Zope documentation portal (zdp.zope.org). This time, still , I will answer your question:

Re: [Zope] Problem on using nested &

2001-01-12 Thread Dieter Maurer
angie tel writes: > ... > > > As you recognized DTML tags must be *properly* nested... You can do: This way, you get a properly nested DTML structure. Dieter ___ Zope maillist - [EMAIL PROTECTED] http://l

RE: [Zope] hasRole bug or feature in 2.2.?

2001-01-14 Thread Dieter Maurer
Ron Bickers writes: > I think I understand, but correct me if I'm wrong. The problem is that my > browser is not even *sending* the authentication information to the other > parts of the site until I first access a protected document at the root > level. That is, the browser only continues t

Re: [Zope] Raw post data

2001-01-14 Thread Dieter Maurer
Shai Berger writes: > For several reasons, I would like to have direct access to raw posted > data in my dtml-code (an analogue of QUERY_STRING). Can anyone please > show me the light? "REQUEST['BODY']" may work. Dieter ___ Zope maillist - [EMAI

Re: [Zope] TREE tag - not showing Folderish objects that contain no sub-objects

2001-01-14 Thread Dieter Maurer
Kevin Howe writes: > ... > > ... > What I would like to do is display these objects, but ONLY IF they currently > contain some objects, so that if an object does not contain any subobjects > at the moment, it is not displayed. Search the searchable list archive. There has recently been a

Re: [Zope] REPOST: dtml-with doesn't work

2001-01-14 Thread Dieter Maurer
I checked the sources Shai Berger writes: > My experience is somewhat different: ZSQL methods in general *DO* > look at the namespace just like normal DTML methods, with two > exceptions: ZSQL methods do *NOT* look at the DTML(!) namespace. They do look at REQUEST or (exclusive) explicitly p

Re: [Zope] convert a String ...

2001-01-14 Thread Dieter Maurer
Marc Fischer writes: > how is it possible to convert a string into my own zclass type? > I get a String from a form and want to do some operation like > string.manage_addFile(... on it. So what to do ??? Perhaps some out there is > able to help ... "_.getitem(string)" converts a string into an

Re: [Zope] How to get python error output? (PIL)

2001-01-15 Thread Dieter Maurer
[EMAIL PROTECTED] writes: > ... print in external method ... "print" does not print to the log file but to standard output. Under Unix (and I think under Windows, too) you can redirect standard output to a file. The alternative is to use Zope's Log module (called zLOG). Its output goes to the l

Re: [Zope] renaming python input params in DTML

2001-01-15 Thread Dieter Maurer
Lee writes: > ... > I have a Python method expecting 'text' as a parameter ... > ... > The Python method, testSQL, returns 'result'. > ... > > > > Inside 'expr="..."' you use "_['x']" instead of . As this is a Python expression that needs to be evaluated, it cannot be in a string. Yo

Re: [Zope] How do I authenticate through pcgi and win2000 ????

2001-01-15 Thread Dieter Maurer
=?iso-8859-1?Q?Max_M=F8ller_Rasmussen?= writes: > I have installed zope on port 8080 on a win 2K machine. > > It runs nicely, but due to firewalls and other reasons it has to run on port > 80. So I have added zope.pcgi etc. to the IIS. And it runs nicely. > > But when I try to use a manage

Re: [Zope] commit_sub error in Product

2001-01-16 Thread Dieter Maurer
seb bacon writes: > I'm writing a minimal product for which I'm getting a > > Error Type: AttributeError > Error Value: commit_sub > > from the transaction machinery. The traceback's no help. The > offending code, however is: > > class Foo(SimpleItem) > > def __init__(self,

Re: [Zope] DTML- &

2001-01-16 Thread Dieter Maurer
Angietel writes: > This is a multi-part message in MIME format. > > --=_NextPart_000_0011_01C07FB8.87F89860 > Content-Type: text/plain; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable That will be the last time, I answer to your MIME messages. > Is equal to

Re: [Zope] How to get python error output? (PIL)

2001-01-16 Thread Dieter Maurer
[EMAIL PROTECTED] writes: > Hhmm - strange, on my SUSE-7.0 standard installation I can find the out > put of > the print statements in /var/log/zope (most of the time, at least ;-). Maybe someone redirects for you. SuSE likes to change things in the hope that this makes unaware people less p

Re: [Zope] ZWiki --> MS Word

2001-01-16 Thread Dieter Maurer
peter bengtson writes: > I'm looking for some tool to convert ZWiki text to MS Word. Modern Word versions can resolve URI's and read HTML. Thus, open "http:zopehost/.../ZWiki/page" in Word and save it, (if you like) in word format. > Since ZWiki's are CaPs neurotic, some sections are called fo

Re: [Zope] sendmail implementation problem

2001-01-16 Thread Dieter Maurer
Lee writes: > ... several recipients from form to sendmail ... I just skipped your question. Not sure, that I got it right. DTML does not have true variables with assignments. However, you can use the REQUEST object as a variable container. If your problem is to collect all recipients from the

Re: [Zope] File upload - get only the path - not content

2001-01-16 Thread Dieter Maurer
Gustav Franzsen writes: > This is a multi-part message in MIME format. > > --=_NextPart_000_003D_01C07FA3.EAFBA110 > Content-Type: text/plain; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable Please do not send MIME messages into this list! > ... file upload o

Re: [Zope] Image Upload

2001-01-17 Thread Dieter Maurer
Fabio da Silva Santos writes: > I'm trying to insert an image in Zope by uploading it in an HTML 'file' > field, using the following validation code: > > _.None"> > > You could try: This tests for a non-empty filename. Dieter

Re: [Zope] case insensitive searches

2001-01-17 Thread Dieter Maurer
Maggie Shapland writes: > How does one do a case-insensitive search using sql > methods when the underlying database is case-sensitive? Oracle, e.g., provides functions "LOWER" and "UPPER" that you can use in SQL expressions. They can be used to implement case-insensitive searches. Look at the

Re: [Zope] change parameter by mouseclickboundary="------------50A0948CB0BC5E6D24A68B18"

2001-01-17 Thread Dieter Maurer
Olaf Zanger writes: > Dies ist eine mehrteilige Nachricht im MIME-Format. > --50A0948CB0BC5E6D24A68B18 > Content-Type: text/plain; charset=us-ascii > Content-Transfer-Encoding: 7bit Please do not send MIME messages into this list! > Right now we use the following statement to cha

Re: [Zope] PythonScript and ZClass generation problem

2001-01-17 Thread Dieter Maurer
Alexander Limi writes: > ... in PythonScript ... > return self.artists.manage_addProduct['Artist'].Artist_add(_.None,_) > > but then the REQUEST object was not available, and the object creation fails > since it can't find the variables it needs. The traceback for this was: It seems that you

RE: [Zope] Newbie: python to create a Zope page?

2001-01-17 Thread Dieter Maurer
David Humphreys writes: > > Let me clarify...! I'm wondering how python can tell Zope to add a dtml > document to an arbitrary location in the Zope heirarchy. It was very good, that you had clarified. Have a look at Zope Online Help --> API Reference --> DTML Document Look for the constructo

Re: [Zope] Stopping a

2001-01-17 Thread Dieter Maurer
Diego Rodrigo Neufert writes: > > code... > > STOP THE LOOP > > A long time ago, someone has implemented a "dtml-break" tag. Search for it on zope.org or in the searchable list archive. Dieter ___ Zope maillist - [EMAIL PROTECTED

Re: [Zope] 2Q: Catalog and REQUEST

2001-01-17 Thread Dieter Maurer
alan runyan writes: > for key in REQUEST['form'].keys(): "form" is an attribute (!) of REQUEST, not a key: for key in REQUEST.form.keys(): > second question: I have some searchResults() > when I say > (when are we going > to get rid of sequence-item?) > I get > instance > None > in

RE: [Zope] How do I authenticate through pcgi and win2000 ????

2001-01-16 Thread Dieter Maurer
Max M writes: > I just wondered if there is an "AUTHENTICATED_USER.authenticate(userName, > password)" that I could call from a form. And then bypass all that IIS mumbo > jumbo completely. > > Guess I will have to dig the sources. I fear, you will not have much success with this. You will h

Re: [Zope] sendmail / python list parameter -> DTML method

2001-01-18 Thread Dieter Maurer
Lee writes: > When a form is submitted the current REQUEST object's form data is cleared > and repopulated using the new form input parameters, yeah? Is it possible > to *not* clear it? No. As the name suggests "REQUEST" describes the current request. A new request creates a new "REQUEST" obje

Re: [Zope] Using images as submit buttons

2001-01-18 Thread Dieter Maurer
[EMAIL PROTECTED] writes: > Has anyone figured a reasonable way of getting multiple image submit > buttons for a single form? I tried You may look at the following ZPublisher.HTTPRequest patch: URL:http://www.dieter.handshake.de/pyprojects/zope/imgbutton.pat It might be necessary to tweak

Re: [Zope] [OT] Is it time for mandatory subject keys?

2001-01-18 Thread Dieter Maurer
Ausum writes: > Maybe it's time for mandatory subject keys. Something like NEW: for > newbies questions; OT: for off-topic (like this); DB: for database > related stuff... you DC people name it. What does "mandatory" mean? Rejected by Ken, if it is missing? Hope not ... Many posts here are fr

Re: [Zope] Can't import anything decent on old machine.

2001-01-18 Thread Dieter Maurer
Darrin writes: > Whenever I try to import a product I usualy get the following errors. Are your sure, you import products only in "Control Panel -> Product Management"? Your hardware should not be a problem. Dieter ___ Zope maillist - [EMAIL PROTE

Re: [Zope] Setting the sort var in

2001-01-18 Thread Dieter Maurer
Max M writes: > Does anybody know if it is possible to programatically set the sort > parameter in something like: There is a product on zope.org that enhances sorting capabilities drastically. Unfortunately, its name is difficult to remember (at least for me), something with ZIE in it, I think

Re: [Zope] sendmail query (confirmation)

2001-01-19 Thread Dieter Maurer
Lee writes: > Is there anyway to confirm that a message has been sent using > other than including your own email address in the cc list? The sendmail tag should raise an exception, if it is unable to deliver the message to the mail server. However, this does not mean that the message will rea

Re: [Zope] Reading ZClass properties from outside the ZClass

2001-01-19 Thread Dieter Maurer
Phill Hugo writes: > > This works when logged in as an Administrator as the Control_Panel is > visible then, however for normal users it fails. You know proxy roles? You could probably use a method or script with a proxy role of "Manager" to return the property sheet. I am not sure, whethe

Re: [Zope] Setting in 2.3.0b1 to have modification times in 24-hour format?

2001-01-19 Thread Dieter Maurer
=?iso-8859-1?q?Hamish=20Lawson?= writes: > Is there a setting in 2.3.0b1 to have modification times in the > management screens presented in 24-hour format? This is also a big wish of mine. Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists

Re: [Zope] [OT] python-to-python in zope?

2001-01-19 Thread Dieter Maurer
tom smith writes: > hi all, > > I've written a bot in python 2.0 and it's running on the same machine as > zope 2.2. > > I'd like somehow to be able to send messages from zope (like...start and > stop or go trawl this site etc) to the OTHER version of python running my > bot You may

RE: [Zope] Zope 2.3.0b2 bug #2

2001-01-22 Thread Dieter Maurer
Oleg Broytmann writes: >Hm, will you fix my browser, too? I am using Netscape for Linux, don't > know how well it plays with Unicode. I suppose it plays bad :( We use Netscape (4.5, 4.7; Linux, Windows) with "charset=utf-8" and it handles it well. Dieter __

Re: [Zope] LocalFS and PathHandler

2001-01-22 Thread Dieter Maurer
Ulrich Wisser writes: > How can a get a directory listining with LocalFS > for path "/sub1/sub2/sub3/"? I know I need something > like "lfs['sub1']['sub2']['sub3'].fileids". But > what if there are more (or less) elements in path_to_handle? The easiest answer to these types of questions are re

Re: [Zope] Zope, database field formats, output format of queries

2001-01-22 Thread Dieter Maurer
Michael Schmidt writes: > Can you create fields in a zope based database where you force > the fields to accept e.g. only letters "M" or "W" or any other > other combination of your choice? What do you mean with a Zope based database? If you mean an external database, look for the datatypes

Re: [Zope] form question

2001-01-22 Thread Dieter Maurer
Oliver Vecernik writes: > I'm designing an application gathering data with forms. Navigation > should be done with Prev and Next buttons. As long as I'm not leaving > the form data should be entered, processed and the *same* or another > form should be displayed, depending on input of the user

Re: [Zope] [python] creating variable names by adding 2 strings?

2001-01-22 Thread Dieter Maurer
Lee writes: > I'm creating variables in python but I am having trouble creating them > when they're *named* using other variables. Here's an example; > > while (p!=0): > p+`p`= string.replace(component[control], ",", "") > # e.g. I want 'p1 = string.replace.blah...' >

Re: [Zope] REMOTE_ADDR

2001-01-22 Thread Dieter Maurer
Marcus Mendes writes: > Where can I find (and use) the variable REMOTE_ADDR? I've a python > function that deal with REMOTE_ADDR, but I've got the IP address's Zope > Server Machine Probably, you must tweak your Web server. Look at zope.org. NIP people have created a HowTo for the necessar

Re: [Zope] (Cc || Bcc) &&

2001-01-22 Thread Dieter Maurer
Jeff Peterson writes: > The Problem: I would like to Cc or Bcc the originator of the request with a > copy of the request for record keeping purposes. I cannot however seem to > get Cc or Bcc, written as headers much like the To and From, to work with > . In addition, all documentation of I

Re: [Zope] Adding users with a PythonMethod

2001-01-23 Thread Dieter Maurer
Curtis Maloney writes: > I'm trying to add a users from within a PythonMethod. I have searched this > list and found examples of how to add via DTML, but they all seem to require > REQUEST. > ... > So, what I'm left to conclude is it's easier to add a new user from DTML > than

Re: [Zope] LocalFS and PathHandler

2001-01-23 Thread Dieter Maurer
Ulrich Wisser writes: > How can I detect if mylfs is a file or a directory? I fear that is a difficult question. For unknown reasons, the builtin Python function "type" is considered unsafe (and would not help anyway). Thus, you cannot test for types. In PythonScript you have the functi

Re: [Zope] Upload file and :int with :required and

2001-01-23 Thread Dieter Maurer
Hi Diego, Diego Rodrigo Neufert writes: > When I use > > I got a NameError This must be "NameError 'attach_file'", right? > Do you know a solution to this? because when I dont specify anything in a > field zope just dont know about it... Apparently, browsers behave differently. My Ne

Re: [Zope] EMail with uploaded attachments

2001-01-23 Thread Dieter Maurer
Klaus Herrmann writes: > ... Email with file attachment ... > > To: ... > From: ... > Subject: ... > > > plain text > > disposition=attachment encode=base64> > > > Almost perfect. Use instead. Dieter ___ Zope maillist -

Re: [Zope] Limited folderish objects

2001-01-23 Thread Dieter Maurer
Nolan Darilek writes: > The Folder class offers quite a bit of the functionality which I need > for a current project. However, what I'm attempting to create isn't a > traditional folder for DTML objects, methods, etc. Instead, I'm > creating a folder which contains subfolders which are intend

Re: [Zope] Zope, database field formats, output format of queries

2001-01-23 Thread Dieter Maurer
Michael Schmidt writes: > On Mon, Jan 22, 2001 at 07:50:45PM +0100, Dieter Maurer wrote: > > What do you mean with a Zope based database? > > > > If you mean an external database, look for the datatypes and > > restrictions, they support for column values. SQL

Re: [Zope] dtml-tree causing authorization errors

2001-01-23 Thread Dieter Maurer
[EMAIL PROTECTED] writes: > I've stumbled upon a strange problem with dtml-tree in version 2.2.5 (the > problems occurs in the same way in any of the 2.2.x version), but didn't exhibit > itself in 2.1.6: You should read Brian's excellent "Upgrade to 2.2.x" document. It will explain you the chan

Re: [Zope] Calling a DTML Document using a string

2001-01-24 Thread Dieter Maurer
Anderson Ami writes: > How can I do a dtml document call using the call dtml tag ? > e.g. > > - I have 3 DTML documents ( bot1, bot2 and bot3) > - I have in my request a int variable called varX > - I would like do it, but this one doesn't work : > > > This is an FAQ: comput

Re: [Zope] Zope gets stuck

2001-01-25 Thread Dieter Maurer
Shai Berger writes: > We've repeatedly encountered a weird situation where Zope gets > stuck. Then, when we kill one of the Zope processes, it is released > and answers requests. We see something similar once in a while (about once in 6 month): * Zope stops serving requests: processes

Re: [Zope] Unable to instantiate ZClass

2001-01-25 Thread Dieter Maurer
=?iso-8859-1?q?=C5smund=20Hjulstad?= writes: > > > Error Type: AttributeError > >Error Value: _setId It appears that you ZClass does not include the "standard Python persistent classes". They are required to instantiate the class in the ZODB. You omit it only, when you

Re: [Zope] Meaning of error?

2001-01-26 Thread Dieter Maurer
Steven Grimes writes: > I'm trying to write a report for a system and When I try to view my document > by clicking on the view tab at the top of the management screen I receive > the following error: > > ! > Temporarily Unavailable > The resource you requested is temporarily unavailable -

Re: [Zope] http protocol

2001-01-26 Thread Dieter Maurer
Oliver Vecernik writes: > I'd like to write an http client for an embedded system to get > information from Zope. For debugging I want to see the traffic between > the client and Zope (http protocol). How can this be achieved? Shane's TCPWatch Dieter _

RE: [Zope] Instatiate object instances :-)

2001-01-26 Thread Dieter Maurer
Tom Jenkins writes: > Right, the getPhysicalPath method definately works... although I've only > used the unrestrictedTraverse in python classes. I haven't delved too > deeply in how to use the tuple returned by getPhysicalPath in DTML. "unrestrictedTraverse" is not available in DTML, only its

Re: [Zope] Can't reproduce :-(

2001-01-26 Thread Dieter Maurer
Ian Sealy writes: > I've finally managed to replicate the bug consistently, so I've just > submitted it to the Collector: > > http://classic.zope.org:8080/Collector/1895/view Very good! In fact, this problem was known but not recognized in the new context! The incompatibility between "

Re: [Zope] subtransactions

2001-01-26 Thread Dieter Maurer
Chris McDonough writes: > Currently, yes. This is arguably wrong. Can you tell us, what the semantics of subtransactions is? It has been my impression that subtransactions are a kludge, essentially implemented for ZCatalog, to reduce the amount of main memory for large transactions. Rather than

Re: [Zope] sending variables/parameters via hyperlink

2001-01-26 Thread Dieter Maurer
Horatio B. Bogbindero writes: > ... > Sent value to newpage.htm > > i get this error: > > error start-o > Error response > > Error code 400. > > Message: Bad Request. This should work *IF* the URL does not contain funny characters. Note that many characters are no

Re: [Zope] EMail with uploaded attachments, Part II

2001-01-26 Thread Dieter Maurer
Klaus Herrmann writes: > ... > How do I determinate the filename and mime-type of the uploaded file? > > i have > > and can get my data with attached_file.read(), but how do i do it when i want > to have filename and mime-type correctly filled in in > Maybe, you should look at the sour

Re: [Zope] DTML namespace puzzle

2001-01-28 Thread Dieter Maurer
Ron Bickers writes: > I have a Python Script (sendOrder) that calls a DTML method (orderMessage) > as follows: > > container.orderMessage(num=num, SESSION=SESSION) > > orderMessage contains the following: > > > Order Number: > Blah blah other session variables that work fine

Re: [Zope] sending variables/parameters via hyperlink

2001-01-28 Thread Dieter Maurer
Chris Withers writes: > Dieter Maurer wrote: > > > > This should work *IF* the URL does not contain funny characters. > > > > Note that many characters are not allowed in URL's and > > especially "value" above must not contain blanks (as

Re: [Zope] where are the pages stored?

2001-01-28 Thread Dieter Maurer
Horatio B. Bogbindero writes: > btw, were does zope store the template pages and objects? i tried do look > into the folders but i could not seem to find it. is there are a way of > moving this document root to a different folder? Before Zope 2.3, they were in "lib/python/*/*.dtml". Since Zop

[Zope] Re: Subtranscations are hacky?

2001-01-28 Thread Dieter Maurer
Chris Withers writes: > > What about just putting a try: ... except > AttributeError around the commit_sub call in Transaction.py? What bad effects > would that have? That would probably not be a good idea as it could hide serious problems. ZCatalog has a similar "try: ... except" and in

Re: [Zope] Creating a namespace

2001-01-29 Thread Dieter Maurer
Stephan Richter writes: > I want to make my own name space with the following situation: > > class X: > > attributes = {'foo': 'bar'} > > x = X() > > > Then I want to use it like that: > > > > > > The result should be : bar > > I found out that I have to some

[Zope] BUG? Strange behaviour of external methods after update

2001-01-29 Thread Dieter Maurer
A colleague of mine has developed an external method and installed it as a SiteAccess access rule. He made a programming error that caused a TypeError exception to be raised. He recognized his fault and corrected the external method. Then, the strange behaviour started: The access rule some

Re: [Zope] We get problems Zope is backed up!

2001-01-29 Thread Dieter Maurer
3dfestival - WebMaster writes: > Does anybody have a solution for our big problem? How do we backup in > another way...? > > When our Zope-site is being backed up we have different probs... > We have (kind of) have figured out that the problem is only (!) occuring > when we change something

Re: [Zope] user creation & authentification

2001-01-29 Thread Dieter Maurer
Ralf Kraemer writes: > is it possible to create users "not using" the zope management interface ??? > > i tried a lot using the editUsers.dtml from zope and it works , but i dont > like the response . > i would like to see my own pages, not the management screens You already know "dtml-cal

Re: [Zope] 2.3 PythonScripts problem...

2001-01-29 Thread Dieter Maurer
Curtis Maloney writes: > I have just made a nice fresh Zope 2.3 install, and am having an odd problem > with PythonScripts. > > I add one from the management screen, enter the name, "add and edit", enter > the code, the hit "save". Which dumps me to my index_html. Looks, as if you do no l

Re: [Zope] How do I get a uniqueValuesFor() a subset of the catalog?

2001-01-29 Thread Dieter Maurer
Philip Aylesworth writes: > I am trying to get a list of unique values for one particular meta_type. > The uniqueValuesFor() works great but is there a way to get unique > values for a subset of data such as meta_type='car' then > uniqueValuesFor('make') would list the makes of cars but not of

Re: [Zope] How can a document know its own URL?

2001-01-29 Thread Dieter Maurer
Chris Withers writes: > Joachim Werner wrote: > > > > > > > > Can anyone tell me how to use DTML to get at the URL for the document > > > being displayed? > > > > > > > > > That's not really correct. That's the url of the current request, which may well > not be the url of the obje

RE: [Zope] DTML namespace puzzle

2001-01-29 Thread Dieter Maurer
Ron Bickers writes: > method(num=num SESSION=session): > > > > raises KeyError "num". > > SESSION['info'] does not have a key "num". The only num is passed as a > parameter. Did you use SQLSession to try to reproduce it, or just another > mapping? Could SQLSession have

Re: [Zope] Is Zserver "lazy" at rendering images?

2001-01-29 Thread Dieter Maurer
Ausum writes: > While rendering a page having several image icons, not all of them renders > when a normal page view, while some of them are really slow at rendering. I've > been trying with a not too heavy page, without any dtml tag, and it always > happen the same. If I reload the page the p

RE: [Zope] DTML namespace puzzle

2001-01-30 Thread Dieter Maurer
Ron Bickers writes: > > I realized the DTML method > call from the Python Script included 'container' as the first parameter (as > shown below) > I don't understand how Python Scripts can/should call DTML methods. That > is, are there magical parameters?... About a week ago, I post

<    3   4   5   6   7   8   9   10   11   12   >