RE: [Zope] Netscape Image Problems (LoginManager?)

2000-05-23 Thread Dieter Maurer
Jon Delheimer writes: charset="iso-8859-1" Shane, I made the changes you suggested to Image.py. Here are the results: ... Thursday, 11-May-00 15:53:50 GMT 1900/05/11 15:53:50 GMT -2197699570.0 That explains the exception: 1900 is a bit too far in the past.

Re: [Zope] Re: [Zope-Annce] ANN: Perl For Zope

2000-05-25 Thread Dieter Maurer
Heiko Stoermer writes: Zopistas, Paul Everitt wrote: Digital Creations, creators of the Open Source Zope application server, announced today that it is teaming with ActiveState, a leading provider of Internet programming software, to make Perl a scripting language for

Re: [Zope] Use of lambda expression in DTML

2000-05-26 Thread Dieter Maurer
Nick Drew writes: I'm a newbie zopista, and python for that matter... In brief: I get a NameError when invoking "filter(...)" from DTML. I thought this was a built-in python method, so I'm a bit puzzled. For security reasons, Zope are removed all builtin-functions from DTML

Re: [Zope] Re: [Zope-Annce] ANN: Perl For Zope

2000-05-26 Thread Dieter Maurer
Evan Gibson writes: What happens when we have 4 or 5 different types of methods (perl, php, python, c, pascal, whatever...) and through multiple people working on a site or a product you suddenly have them all used and have to suddenly upkeep something you have no idea about because

Re: [Zope] Zope Instability

2000-05-29 Thread Dieter Maurer
Rob Sporleder writes: We recently setup a Zope server and it has been running great until this morning when it stopped responding, twice. There are no errors, core files or indication of a problem except that the server stopped responding to http requests. All processes were still running

[Zope] Really buggy digest software

2000-05-29 Thread Dieter Maurer
Dear administrators, the mailing list digests are really buggy. I have reported some problems some days ago. Today, I ran against a new problem: I got "Zope-Dev digest, Vol 1 #543 - 20 msgs" 6 times and "Zope digest, Vol 1 #801 - 57 msgs" twice. Maybe, you should consider replacing this

Re: [Zope] Working with ZopeTime

2000-05-30 Thread Dieter Maurer
Hi Tom, But not with: dtml-if "date1 == 'dtml-var ZopeTime fmt=Day'" (and yes, the day I'm doing it on is Tuesday). Usually, DTML-tags cannot be nested. Exceptions: tags in compound tags such as "if, in, let, with, ...". In your case, the "dtml-var" is simply not recognized and treated as a

Re: [Zope] ZCatalog previous and next items in list

2000-05-30 Thread Dieter Maurer
Hi Chris, I am using a dtml-in to walk through a catalog and display the results ... If the user click on Item 2, I want to pass the id of Item 1 and Item 3 to the next page. "dtml-in" iterates over a sequence. You can directly access elements of the sequence. This looks like: dtml-let

Re: [Zope] Re: how do I get field names from a query

2000-05-31 Thread Dieter Maurer
Adam Molyneaux writes: still trying to get field names from a query of the form SELECT * FROM MYTABLE dtml-in "sqlListTable(table_name='personnel')" dtml-in sequence-item Pdtml-var sequence_key /dtml-in If "sqlListTable" is a SQLMethod, you get the sequence of

Re: [Zope] I18N

2000-06-06 Thread Dieter Maurer
Do you mean to talk about products or techniques (or both) ?... I set a multilingual site that works quite perfectly, with almost no product at all (just a few external methods to make things easier). I can explain my schema if some of you want to. I am interested. Dieter

Re: [Zope] GadFly DB and Zope

2000-06-06 Thread Dieter Maurer
Hi Jilani I am recently using the database GadFly and yesterday, I discovered with pleasure that it is part of Zope (ZGadflyDA); so, I will be happy if somebody tells me with a little example, or point me where to find some information to get GadFly interact with it Zope (just how to

Re: [Zope] escaping with dtml?

2000-06-07 Thread Dieter Maurer
Riku Voipio writes: I'm trying to get some doubleqoutes to the final document, but I've been unsuccesful so far: In a Python expression, you can use "chr(34)" to add a quote, e.g. dtml-let quote="chr(34)" /dtml-let Dieter ___

Re: [Zope] WorldPilot - Regular messages are attachments?

2000-06-07 Thread Dieter Maurer
Bryan Stillwell writes: Here's the traceback I received: Sorry, a Zope error occurred.p !-- Traceback (innermost last): File /usr/share/zope/lib/python/Products/WorldPilot/WorldPilot.py, line 1878, in getpart (Object: RoleManager) File

Re: [Zope] Unless not quite the opposite of if?

2000-06-08 Thread Dieter Maurer
Curtis Maloney writes: On Thu, 08 Jun 2000, Curtis Maloney wrote: ... The problem is, when i test the page, it seems to pass over that that, and go right on with the page. So, I tried to be a little more explicit: dtml-unless "REQUEST.has_key('parmName')" ...

Re: [Zope] Several users having problem accessing field names of a ZSQL Method

2000-06-08 Thread Dieter Maurer
Jones, David H writes: For example, when I use the code: dtml-in SQL.names dtml-let vname=sequence-item vvalue="SQL()[0][_['sequence-index']]" dtml-var vname, dtml-var vvaluebr /dtml-let /dtml-in I get the error: Error Type: KeyError Error

Re: [Zope] FW: troubles with installing zope

2000-06-08 Thread Dieter Maurer
Andy Gayton writes: I'm trying to install zope on an alpha box running CompaqTrue64 4.0F. I've created a seperate account to run zope under. I've installed zope under this user's home directory. This seemed to bring up the server ok, however there was a PROBLEM statement:

Re: [Zope] Unless not quite the opposite of if?

2000-06-09 Thread Dieter Maurer
Curtis Maloney writes: On Fri, 09 Jun 2000, Dieter Maurer wrote: Curtis Maloney writes: ... dtml-unless does not work ... ... Seems that you make something wrong ... It doesn't. Really. I'm certain of this. The key was not there, and yet the unless was not rendered

[Zope] [Ann] Zope 2.1.6: dtml-in patchIt provides complete batching info at sequence start *and* end It provides complete batching info at sequence start *and* end

2000-06-10 Thread Dieter Maurer
The Zope 2.1.6 dtml-in provides batching information for the previous batch at the start and end of the sequence. Batching information for the following batch, however, is only available at sequence end. This makes it difficult to provide uniform navigation (to previous/next batch) both before

Re: [Zope] ZSQL method broken on 2.1.6

2000-06-11 Thread Dieter Maurer
Andreas writes: ZSQLMethod's "advanced" property 'Maximum number of rows retrieved' makes no sense to me. It prevents stupid queries to kill Zope. Assume, such a query returns 100.000.000 records. This probably will let Zope require several GB memory. As I know so far there is no way to

Re: [Zope] Referencing sql field in a direct traversal

2000-06-11 Thread Dieter Maurer
Jones, David H writes: I have set up a direct traversal sqlMethod which has as a DTML method The zsql method, sqlModel, is: select * from AP_MDL where dtml-sqltest ap_mdl_no type=string The direct traversal url is:

Re: [Zope] Traversable DTML methods

2000-06-11 Thread Dieter Maurer
Ian Sparks writes: It seems strange to me that SQLMethods are traversable out of the box and "normal" DTML methods are not. It seems to me that traversable DTML methods would be useful (to me this means DTML Methods with parameters). Your DTML Methods have (keyword) parameters. From

Re: [Zope] del dict[kw] in DTML

2000-06-13 Thread Dieter Maurer
Marco Mariani writes: I can't find a way to emulate the pythonesque "del dict[kw]" within DTML without rebuilding the dictionary from scratch. May I? I fear, you will need an external method. Dieter ___ Zope maillist - [EMAIL PROTECTED]

Re: [Zope] Newbie: Listing filesystem objects?

2000-06-13 Thread Dieter Maurer
Andy Gates writes: NewbieQ of the moment: So there's a folder on my server, call it \\server\files\logos. I want to list its contents in a drop-down listbox in a form; something like select name="logo_filename" option selected value="default.jpg"default.jpg option

Re: [Zope] Images not showing

2000-06-13 Thread Dieter Maurer
[EMAIL PROTECTED] writes: I've noticed that when i install images into the Zope database and call them sometimes they display as broken link images instead of the picture. after revisiting the image in the management screen but not making any changes just resaving it they work again.

Re: [Zope] Parse Text File (newbie q.)

2000-06-14 Thread Dieter Maurer
joel grimes writes: I'm trying to display the contents of a text file in a DTML document. It's easy enough to display but all the line breaks are removed. Is there an easy way to bring in formatted text? You may wrap your text inside a "pre.../pre" HTML tag. Dieter

Re: [Zope] neted dtml-in and ZSQL methods

2000-06-16 Thread Dieter Maurer
[EMAIL PROTECTED] writes: Suppose, you have a database, items, that has fields product and scheme. You are processing a form that has field old_product and new_product. You have a ZSQL method, get_scheme, with parameter old_product and body select * from items where product =

Re: [Zope] How can I upload files to mySQL

2000-06-20 Thread Dieter Maurer
I am using Zope and mySQL and want to load up text and Images to text or = blob fields. How can I upload file content to TEXT (plain text)=20 and BLOB (images: jpg, gif) using DTML? I can answer only part of your question. Uploaded files are "ZPublisher.FileUpload" objects which you

Re: [Zope] Internationalization

2000-06-20 Thread Dieter Maurer
Dan Rusch writes: We have a site that is composed of several hunderd pages. We don't use classes but we have made heavy use of aquistion though. For example we have one back button that is aquired thoughout the site etc etc. Basically if the functionality (or code) is used in more than

Re: [Zope] TAG for file date

2000-06-20 Thread Dieter Maurer
CURTIS David writes: I have a database file that gets copied via a cron job at night. I would to display the new the new file date in an htlm document using Zope. What I would like is a tag that displays the date of a specific file. Is there such a dynamic tag? I am thinking something

Re: [Zope] brain hurts regarding dynamic fcn args in Python

2000-06-20 Thread Dieter Maurer
Jeff Sasmor writes: Is there a (straightforward?) way to dynamically compose function argument lists? For example, in C, you can write" f(arg1, arg2, (conditional expression)?(val for TRUE state):(val for FALSE state)). Others have pointed out, that you can use "and" and "or" to emulate

Re: [Zope] sifting through python sub-objects

2000-06-20 Thread Dieter Maurer
ed colmar writes: I've succesfully gotten the catalog to work (thanks everyone!), but in doing so, I've created a problem. Squishdot uses this code like this in order to add an item: id=self.createId()# make a datestamp id msg=PromoterPost(id,title)

Re: [Zope] Basic site management using zope and other queries

2000-06-20 Thread Dieter Maurer
Rajil Saraswat writes: On Tue, 20 Jun 2000, Rajil Saraswat wrote: i had sent this message. may be some of you had overlooked it,so here it is again. please answer to this, as it is very important for me to switch to zope. You seem not to be patient ;-) 1. Can zope do basic site

Re: [Zope] Need to use a 'date' data type in sqltest

2000-06-20 Thread Dieter Maurer
Jones, David H writes: I need to include a test of a date in a DTML variable referenced in a sqltest tag in ZSQL. From reading documentation and testing, it does not appear that the 'date' data type is supported. As fas as I know, SQL databases vary greatly in the representation of times

Re: [Zope] TAG for file date

2000-06-20 Thread Dieter Maurer
CURTIS David writes: I tried to add dtml-var "GuideFile.bobobase_modification_time" But I do not get an output displayed!!! "bobobase_modification_time" is a method not an attribute. You must call it: dtml-var "GuideFile.bobobase_modification_time()" You can resolve problems

Re: [Zope] Dynamic sorting key?

2000-06-21 Thread Dieter Maurer
Zoper writes: ..., however I would like to sort on different key by different paramenter... something like "... sort=REQUEST['sort_by'] ..." (doesn't work) where sort_by from URL parameter maybe "id", "title", "getSize" or "bobobase_modification_time", etc... This is a known weakness.

Re: [Zope] Probably a simple name space question

2000-06-21 Thread Dieter Maurer
Bert Jan Bakker writes: I want to call a Z SQL Method (say InsertFoo) from a DTML Method (say CallingInsertFoo) and it just won't work. The Z SQL Method takes three arguments, let's call them a_id, b_id and c_id. All three arguments are available to me in the calling DTML

Re: [Zope] External Method Difficulties

2000-06-22 Thread Dieter Maurer
Jason Lee writes: ... external method access ... dtml-call genhash This says, "call the method (for its side effects) but discard any return value". This produces nothing. I think I read somewhere that dtml-call returns no data, so that might explain it. I could be wrong. You are

Re: [Zope] Newbie CGI question

2000-06-22 Thread Dieter Maurer
[EMAIL PROTECTED] writes: How can I access the variables passed into a DTML called as a Form by another DTML? it has the usual ?x=1y=2 ... stuff - I'd really like to loo through these. Usually, between DTML1 (creating the form) and DTML2 (accessing the form content) is the WWW browser. I

Re: [Zope] Local File System (LocalFS) install problems

2000-06-22 Thread Dieter Maurer
J. Atwood writes: (I have searched the newsgroups and zope.org) I downloaded and installed LocalFS (untar in zope dir) restarted Zope (2.1.6 on Linux running as Nobody). The Local File System is an available object but when I try to add it to any folder I get.. Error Type: IOError

Re: [Zope] Stupid question of the day

2000-06-23 Thread Dieter Maurer
Andy McKay writes: How do I find the size of the results returned by the catalog? dtml-let results=Catalog() dtml-var "_.len(results)" -- the results' length -- /dtml-let Dieter ___ Zope maillist - [EMAIL PROTECTED]

Re: [Zope] R: [Zope] Invalid Header (0) error

2000-06-23 Thread Dieter Maurer
Richard Moon writes: I think you are near to the answer. ... sevaral blank lines at start of rendered page ... Zope wants to add a BASENAME URL in the HTML HEAD. Therefore, it looks for an HTML header. Obviously, it gives up with "Invalid Header", when is can not find it near the very

Re: [Zope] ZODBC DA Fails to show in installed products.

2000-06-23 Thread Dieter Maurer
[EMAIL PROTECTED] writes: I just installed Zope 2.1.6 and the ZODBCDA (ZODBCDA-3.1.0b2-win32-x86.tgz). After unpacking into the lib tree, ZODBC doen't show as an installed product. I've stopped and started the service, rebooted, etc. There is no entry for the ZODBCDA in product

Re: [Zope] System variables

2000-06-23 Thread Dieter Maurer
Matthias =?ISO-8859-1?Q?F=FCsting?= writes: ... As I create a folder with the name "icon", a error message came from Zope. -- Error Type: Bad Request Error Value: The id icon is invalid - it is already in use. I think "icon" is a system-variable. "icon" is (in some way) part of

Re: [Zope] (no subject)

2000-06-23 Thread Dieter Maurer
Jay, Dylan writes: Here's a feature I just submitted to the collector. It seems to me that a few tweaks to the dtml-if syntax would be beneficial something like the following would certainly clean up some of the logic I end up writing. dtml-if X a href="a_url" dtml-always

Re: [Zope] Problem with date

2000-06-23 Thread Dieter Maurer
"Vikas Mahajan" writes: Now my problem is to insert a date type in the properties of folder. The formats like Jan. 07, 2000January 07 2000 jan 07 2000 2000/07/01 all work well in the version 1.2.2 which is a binary release. But, none of the format works with the version 1.2.6 which i

Re: [Zope] Selection

2000-06-23 Thread Dieter Maurer
Dear Rogerio Rogerio Atem de Carvalho writes: I have a form with a drop down box and texts fields. I use a button to call a sql method that gets the drop down box selection and the texts inputs as parameters and insert a record in a table. The problem is how to pass the DDB

RE: [Zope] (no subject)

2000-06-26 Thread Dieter Maurer
Jay, Dylan writes: ... Perhaps another example will prove its uglyness. dtml-if "REQUEST.has_key('some_value') and this().has_key(some_value) and _[some_value] == 'a property value' and AUTHENTICATED_USER.has_role('Manager')" a href="a_url" /dtml-if link text dtml-if

Re: [Zope] how to get email delivery errors

2000-06-28 Thread Dieter Maurer
Ben Leslie writes: 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

Re: [Zope] Re: Slow File Access With LocalFS

2000-06-28 Thread Dieter Maurer
Jonothan Farr writes: 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? We use it

Re: [Zope] DTML question

2000-06-28 Thread Dieter Maurer
Rik Hoekstra writes: Luke Tymowski wrote: 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

Re: [Zope] Access object inside a folder

2000-06-28 Thread Dieter Maurer
Sin Hang Kin writes: dtml-in "_.getitem('tabledef').objectItems(['DTML Document'])" sort=id mapping dtml-var "_['sequence-item']" html_quote /dtml-in Error Type: AttributeError Error Value: __getitem__ This is as it should be: "objectItems" does not return a list of mapping

Re: [Zope] ZODB or not ZODB?

2000-06-28 Thread Dieter Maurer
Jim Fulton writes: In theory, you could use ZCatalog to catalog objects in the file system or in a RDBMS, providing that you can provide paths for them. I don't think anyone's done this yet. There are bound to be bumps from wjoever does it first. :) I use ZCatalog to catalog objects in

Re: [Zope] Problem with 1 ZCatalog search on same page

2000-06-28 Thread Dieter Maurer
Jeff Sasmor writes: I have two ZCatalog searches on the same page (in the same DTML method). Each has different fields so they have different numbers of results displayed in two tables. This works just fine. What's wierd is that the 'batch_size' code interacts between the two

Re: [Zope] MySQL Select Statements

2000-06-30 Thread Dieter Maurer
Michael Blewett writes: Select Column1, Column2 etc from TableA. Instead I must use the AS statement ie Select Column1 AS Column1, Column2 AS Column2 from TableA. Zope should not be responsible for this strange behaviour. It simply executes the SQL statement and asks the result

Re: [Zope] Namespace question

2000-06-30 Thread Dieter Maurer
Rogerio Atem de Carvalho writes: folder1 | folder11 | folder111 I have some objects in folder111 which I want to pass as parameters to a dtml method in folder1 (two levels above). I tried something like: dtml-with "PARENTS[2]"

[Zope] ZCatalog Proximity Search (was: RE: [Zope] ZODB or not ZODB?)

2000-06-30 Thread Dieter Maurer
Eric L. Walstad writes: // I use ZCatalog to catalog objects in the file system included into // the Zope world via LocalFS. // Minor patch to LocalFS needed. Everything works with the exception // of proximity searches. Q1 - What is a "proximity search" and when would one be used?

Re: [Zope] Re: ZODB or not ZODB?

2000-06-30 Thread Dieter Maurer
Rogerio Atem de Carvalho writes: Dieter Maurer writes the Zope world via LocalFS. I use ZCatalog to catalog objects in the file system included into the Zope world via LocalFS. How do you do to cache those objects, since LocalFS referenced objects are not cached by Zope

Re: [Zope] Search Interface

2000-06-30 Thread Dieter Maurer
David Trudgett writes: I'm having some trouble setting up a search interface into a ZCatalog. I want to create a text index on the contents of my DTML documents, but I can't seem to get it to work. It search on title just fine. I think my problem is that I don't know how to create the

Re: [Zope] calling standard_html_header from external methods

2000-07-02 Thread Dieter Maurer
Marco Mariani writes: How may I access standard_html_header through acquisition form foo.py? I've tried HEADER=self.standard_html_header() It acquires, but gives me an error on title_or_id, on PARENTS, on whatever. What arguments should I pass to it? The __call__ function of

Re: [Zope] Accesing a new context from a manipulated string

2000-07-02 Thread Dieter Maurer
Michael Bernstein writes: Here's my problem: given a method itemURL(), that typically returns a site relative URL such as '/about/', I need to change to the appropriate directories context using dtml-with. In short I need to do the equivalent of dtml-with about. You may try

Re: [Zope] Arrg! dtml-in can't handle lists of pairs!

2000-07-02 Thread Dieter Maurer
"Cary O'Brien" [EMAIL PROTECTED] writes: It seems as if dtml-in handles lists of pairs specially. It does, and it is documented. For pairs, the first component becomes "sequence-key" and the second "sequence-item". Not a good thing. Can I supress this behavior? Not that I know. Dieter

Re: [Zope] Question

2000-07-02 Thread Dieter Maurer
Oleg Broytmann writes: On Sat, 1 Jul 2000, Jonathan Desp wrote: Do you know any software, for creating mailing list, under Zope ? Zope is web-sever (mostly), how do you think it could handle mailing lists? Use mailman (www.list.org) for good python mailing list manager. I do

Re: [Zope] sort=id, _.map, _.lambda woes

2000-07-02 Thread Dieter Maurer
Marco Mariani writes: dtml-in "store.fileValues()" sort=id where "id" is a filename representing a number. Of course, sort uses it like a string and sorts it wrong. Maybe, since sortexpr= is not implemented (yet?) I could get away with: dtml-in

[Zope] Re: Every user should have the Anonymous role everywhere (was :Re: [Zope] Authentication, Anonymous and Public)

2000-07-02 Thread Dieter Maurer
Chris Withers writes: Dieter Maurer wrote: In Zope, each user has a set of roles. Any user has the "Anonymous" role. Log-in users may have additional roles. I'm not convinced this is true... The Content Manager Guide (Security, Authorization) states it this way: The

Re: [Zope] Fun with Trees

2000-07-03 Thread Dieter Maurer
Charlie Wilkinson writes: On Mon, Jul 03, 2000 at 09:35:06AM +0200, Rik Hoekstra waxed eloquent: Charlie Wilkinson writes: [...] I'm trying to use dtml-tree to create a selective menu of objects based on whether or not the object has an "add_to_menu" property. [...] [rh]

Re: [Zope] ZCatalog pointing to wrong object.

2000-07-03 Thread Dieter Maurer
Bart Holthuijsen writes: I have been having some problems with ZClasses and the Catalog. I made a new Catalogaware External Product, based mostly on the Boring and Photo products. When I add an instance to a folder the Catalog is updated, but doesn't point to the right object. ZCatalog

Re: [Zope] calling standard_html_header from external methods

2000-07-03 Thread Dieter Maurer
Daryl Tester writes: Dieter Maurer wrote: The __call__ function of DTML methods gets the following arguments: client=None, mapping=None, **kw. You therefore may call it: "self.standard_html_header(self,REQUEST)" or "self.standard_html_header(None,REQUEST)&qu

Re: [Zope] [newbie] cgi-tasks howto? stupid question

2000-07-05 Thread Dieter Maurer
Rajil Saraswat writes: i tried out this but this isnt working out for me. can you point out the error. my index_html file is dtml-var standard_html_header FORM method=post action=http://localhost:8080/3inet/print Enter name: INPUT type=text name=valnameBR INPUT type=submit

Re: [Zope] Arrg! dtml-in can't handle lists of pairs!

2000-07-05 Thread Dieter Maurer
Cary O'Brien writes: "Cary O'Brien" [EMAIL PROTECTED] writes: It seems as if dtml-in handles lists of pairs specially. It does, and it is documented. Where? I even looked through the code in DT_In.py and couldn't figure out where it handled this special case. This seems to

Re: [Zope] oracle8 and cursors

2000-07-05 Thread Dieter Maurer
Andy Pahne writes: i've been using oracle8 with zope succesfully for a while. now my database programmer came up with a solution for a certain problem, which "we cannot solve with an easy select statement". he told me, that we are gonna have to use db-cursors instead. my question is

Re: [Zope] [newbie] cgi-tasks howto? stupid question

2000-07-05 Thread Dieter Maurer
Rajil Saraswat writes: if i donot run the httpd but run only the Zserver then http://localhost will work? "http://localhost" would contact port "80". At least under Unix all ports up to 1024 are priviledged. Only servers running as root can bind to them. For security reasons, you probably

Re: [Zope] problem with ZopeFind and objectValues

2000-07-05 Thread Dieter Maurer
Jerome Alet writes: dtml-in "ZopeFind(this(), obj_metatypes=['Folder'])" dtml-var id - dtml-var title /dtml-in gives me the following error: """Unauthorized You are not authorized to access id.""" If I set a proxy role of manager to this dtml-method that

Re: [Zope] Reportlab and Zope

2000-07-06 Thread Dieter Maurer
Jorge Magalhaes writes: How i can insert the contents of the Local File System in to HTML environment? The easiest way, probably, is Jonothan Farr's LocalFS product. Dieter ___ Zope maillist - [EMAIL PROTECTED]

Re: [Zope] Calling Stored Procedures using DCOracle

2000-07-06 Thread Dieter Maurer
When I execute this : conn.callproc('addarticle',['dfdsf']) I get the following Error : __getattr__ raise error, 'no usable procedure named '+name oci.error: no usable procedure named addarticle How ever if I do this : conn.getSource('ADDARTICLE') It returns

Re: [Zope] Zope-help

2000-07-06 Thread Dieter Maurer
Bruno Nana writes: select * from iekunde !--#if "alphabet!='alle'" -- where (substring(firma,1,1)=substring(!--#var alphabet --,1,1) or substring(firma,1,1) substring(!--#var alphabet --,1,1)) and (substring(firma,1,1)=substring(!--#var alphabet --,3,1) or substring(firma,1,1)

Re: [Zope] How do I specify a list element?

2000-07-06 Thread Dieter Maurer
[EMAIL PROTECTED] writes: I have a list (I think) created this way: (date = '31-DEC-1999') dtml-call "REQUEST.set('MyList', _.string.split(date, '-'))" so now REQUEST['MyList'] should contain 3 elements: 31 DEC 1999 How, in dtml, do I say "give me the value of the 1st

Re: [Zope] Sql result searchs with Z Catalog

2000-07-06 Thread Dieter Maurer
[EMAIL PROTECTED] writes: I need to somehow populate an ZCatalog index with the results of a Z SQL Method. If you are familiar with ColdFusion, it needs to have the same functionality as a Verity search on a collection (custom indexed from a query). I am having trouble seeing how this

[Zope] Nested dtml-in loops (was: [Zope-dev] SQL-Output)

2000-07-06 Thread Dieter Maurer
Andre Schubert writes: ... problem with names clashes from nested dtml-in loop ... Your problem may be generalized: -- l1 and l2 are sequences -- dtml-in l1 dtml-in l2 -- here you need to access both components from both the inner and the outer dtml-in There may be a

RE: [Zope] NOTICE: issue with database packing in current Zope releases

2000-07-06 Thread Dieter Maurer
Brian Lloyd writes: Jim found a problem with the algorithm for packing the Zope database that we wanted to announce so that folks can avoid being bitten by it until the fix is out (in b4). I think this is a candidate for a Hotfix. 2.2 upgrades could be problematic and I

Re: [Zope] Error tracing...

2000-07-06 Thread Dieter Maurer
Peter Arvidsson writes: How do I trace errors in Zope? I get the following error message: "Empty entry when integer expected " It gives a hint of the problem but I cant see what value is empty.. how do I control the values? Is there some way to write out variables or do I just have to

Re: [Zope] Newbie: Build Object Names

2000-07-07 Thread Dieter Maurer
Terry Babbey writes: I am trying to build my object names and it is not working. Here is my code done in three ways and only one way works. #1 dtml-var "ProgCode+'AR'" Use: dtml-var "_[ProgCode + 'AR']" Dieter ___ Zope maillist - [EMAIL

Re: [Zope] C:\Program Files\WebSiteC:\Program Files\WebSite\bin\python.exe

2000-07-10 Thread Dieter Maurer
Jonathan DESP writes: I'm getting a problem, I don't understand what it is, my friend and me didnot find the problem too. raise CorruptedTransactionError, message ZODB.FileStorage.CorruptedTransactionError: C:\Program Files\WebSite/var/Data.fs data record exceeds

Re: [Zope] Sorting a list

2000-07-10 Thread Dieter Maurer
RC Compaan writes: I have a list: mylist=[('R',31),('I',80),('A',80),('S',23),('E',35),('C',21)] I want to rebuild the list sorted from high to low on the sequence-item. When i call dtml-in mylist sort=sequence-item reverse the list gets sorted on the sequence-key not the

[Zope] Heap Corruption Problem

2000-07-11 Thread Dieter Maurer
Apparently, we have a serious heap corruption problem. The problem manifests itself in different ways: The Python process * receives signal 9 (SIGKILL) by Solaris 2.7 * receives signal 11 (SIGSEGV) * enters an infinite loop (and blocks the complete process) In all cases, the

Re: [Zope] External Method not accepting CGI module

2000-07-11 Thread Dieter Maurer
Kelvin Cheong writes: import cgi form = cgi.FieldStorage() This gives you an empty "FieldStorage" fileitem = form["userTABPIX1"] In it, "userTABPIX1" is unknown. fname = tempfile.mktemp() fp=open(fname,'w') fp.write(fileitem.file.read()) fp.close() Give

Re: [Zope] DTMLDocument content - html quoted or not

2000-07-11 Thread Dieter Maurer
Michael Gutmann writes: Aleksander Salwa schrieb am Fre, 07 Jul 2000: ... In mentioned method, to render document, I wrote: dtml-var this But this outputs html quoted text (so I see HTML and DTML tags in browser, instead of formatting and variables). Hmm, looks like a problem

Re: [Zope] Zope Knowledge Base on www.faqts.com?

2000-07-16 Thread Dieter Maurer
Fiona Czuczman writes: Hi, I've been working on a Python knowledge base for the last couple of months. http://python.faqts.com Very good! Recently I've been thinking about incorporating content from this mailing list in a folder dedicated to Zope. And sending out my daily

Re: [Zope] Long Data Type

2000-07-17 Thread Dieter Maurer
Ronnie Sengupta writes: Can anybody who has succesfully managed to insert text data (greater than 2k or 4k) into Oracle 8i 8.1.6 with DCOracle version 1.3.1 please explain how it is to be done. I have seen several other posts in this mailing list. But nothing fruitful. The same

[Zope] Re: [Zope-dev] SQL-Methods

2000-07-17 Thread Dieter Maurer
Andre Schubert writes: i ave a problem, i do some sql-queries in my python product and would return the results like the ZSQLMethods. How do i have to return the data and field names from my python product to an dtml document so that i can work with it like ZMYSQL. "dtml-in" expects its

Re: [Zope] DTML Problem (from the newbie hair ripper category)

2000-07-17 Thread Dieter Maurer
Darin Lee writes: Here is the proverbial rub. If I want to *test* for the presence of "navigation_name" so I can print "title_or_id" if it's not defined, Zope simply skips the "navigation_name" property. It's like it always evaluates to false! dtml-in "objectValues(['Category'])"

Re: [Zope] mySQL - Z SQL - dtml-var

2000-07-17 Thread Dieter Maurer
Gijs Reulen writes: INSERT INTO test1 ( id, content, phone ) VALUES ( dtml-var 12.12, dtml-sqlvar content type=nb, dtml-sqlvar phone type=nb optional ) According to the doc I should be able to use dtml-var statements in Z SQL Methods. However, this returns an error: Error,

Re: [Zope] How to require an @ symbol in email form field??

2000-07-17 Thread Dieter Maurer
Stacy Formby writes: Is there a way to require at least an "@" sign in the email field? The powers that be think this would be useful. You can do it on the client with javascript or on the server with dtml-if "'@' in mailfield" !-- okay code -- dtml-else

Re: [Zope] DTML?

2000-07-17 Thread Dieter Maurer
R. David Murray writes: On Tue, 11 Jul 2000, Chris Withers wrote: Tino Wildenhain wrote: I want that too. When we are over it, how about replacing (or at least aliasing) these - variables to _ ? sequence-item, sequence-index etc. comes to mind. IF you've got a patch

Re: [Zope] Newbie: How to create a Oracle connection (DCOracle)

2000-07-19 Thread Dieter Maurer
gustavo writes: Finally, I installed DCOracle and works fine. But, how to create a Oracle connection inside Zope? I tried to add a SQL Method and received this warning: Warning: There are no SQL database connections. You need to add a Zope SQL database connection before you can use a

Re: [Zope] Creating Factory Objects (Products)

2000-07-19 Thread Dieter Maurer
Firestar writes: Haha, thanks for the 'wisdom' cookies:) Here are the last two lines of the traceback: File /usr/local/Zope-2.1.6/lib/python/OFS/Application.py, line 249, in __bobo_traverse__ (Object: ApplicationDefaultPermissions) File

Re: [Zope] ZCatalog Reindex_object Problems

2000-07-19 Thread Dieter Maurer
Manuel Schulte writes: The problem seems to be that the catalog will not update after I Input a value that the catalog has not yet seen for a particular field. Maybe, you are hit by one of the catalog/lexicon bugs. Look in the archives or the collector

Re: [Zope] Broken products in 2.2 - bug?

2000-07-19 Thread Dieter Maurer
Peter Arvidsson writes: Is products treated in a different way in 2.2 final than in 2.1.6? When I restart Zope all instances of my (and some imported) products become broken because it cant find the product it is an instance of. Did you read the Zope 2.2 upgrade information? To narrow

Re: [Zope] http://www.atomasoft.com/yahoo-yes!.something

2000-07-19 Thread Dieter Maurer
Jonathan Desp writes: I did it, and you still can see the sentences -- The debug mode adds the traceback. The other "sentences" (?) are (usually) generated by "standard_error_message". Unfortunately, there are a few exception (like "Resource not Found") that are build into Python code (sigh).

Re: [Zope] HTMLgen

2000-07-19 Thread Dieter Maurer
michael montagne writes: I'm trying to use the HTMLcalendar.py as an external function. The supported files are these: import string, time from HTMLcolors import * from HTMLgen import SimpleDocument, TableLite, TD, TR, Font, Name, H, Center, Href from types import IntType from

Re: [Zope] Implementing full text search

2000-07-19 Thread Dieter Maurer
Erich Seifert writes: I tried to create a full text search for my existing site. All went fine: I can search my whole site's document contents (via PrincipaSourceSearch) and titles (using 'or' as in advanced zcatalog searching how-to). The problem I have at the moment is that Zope only

  1   2   3   4   5   6   7   8   9   10   >