[Zope] Mailing List management: corrupted message headers in digests

2000-05-17 Thread Dieter Maurer
Dear mailing list administrators at least the digests have some deficiencies: 1. some message headers are corrupted (do not use RFC822 continuation style). Example is: Zope-Dev digest, Vol 1 #517 - 17 msgs" Message: 10 From: "Kevin Dangoor" [EMAIL

Re: [Zope] Zcatalog : putting the search result in frame

2000-05-19 Thread Dieter Maurer
Sin Hang Kin writes: How can I put the search result into a frame? I create the search interface with the zsearchinterface, it have the searchform and reportpage generated. I intended to put the reportpage into a frame, I have modified the searchform page's action to point to the frameset

Re: [Zope] looking for ID after manage_addFile

2000-05-19 Thread Dieter Maurer
Didier Georgieff writes: dtml-call expr="manage_addFile (' ',REQUEST['myFileBin'],REQUEST['myTitle'])" Uploaded files are "ZPublisher.HTTPRequest.FileUpload" objects. They have attributes "headers" (- Content Type) and "filename". Dieter

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] Images and tag tag

2000-05-25 Thread Dieter Maurer
peter writes: I use the nifty Image object and an extra tag to it. like this dtml-var "myimage_gif.tag(border=0)" But what I want to do is this: IMG ONMOUSEOVER="this.style.cursor = 'HAND'" ONMOUSEUP="document.bgColor='#FFCCFF'" SRC="myimage_gif" width=118 height=77 border=0

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] newbie question: variables

2000-05-30 Thread Dieter Maurer
Brad Moulton writes: I'd like to be able to store and use the "username" captured in a simple login/password DTML method If you use "basic authentication", then the browser will manage the username and send it on any request. You can access it via "AUTHENTICATED_USER". If your user allows

Re: [Zope] absolute_url and growing URLS????

2000-05-31 Thread Dieter Maurer
Hello Andrew I've got a strange problem I call "growing URLS" When I click on links that take me around a section on folders on zope, the urls just keep piling on each other. This seems to be an effect of aquisition. In Zope, you can see at a place everything that is above it in the

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] Help on synchronous methods?

2000-06-08 Thread Dieter Maurer
Craig Allen writes: How can I synchronize external method completion with DTML method invocation? [and do I need to?] A single request is executed by a single thread. Inside this thread, all invocations are serial (and therefore synchronized). Different requests may be executed by different

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] Q: Accessing ZSQL methods from Python

2000-06-08 Thread Dieter Maurer
[EMAIL PROTECTED] writes: my question is what type or value is returned by a ZSQL method that is invoked from Python? ZSQL methods return "Shared.DC.ZRDB.Results.Results" instances. Such an instance essentially behaves like a sequence of objects each describing one result row. These objects

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

Re: [Zope] Extended characterset

2000-06-09 Thread Dieter Maurer
Ivan Mackintosh writes: What I want to do is to allow users to be able to enter greek/mathematical symbols into a textbox. I have managed to do this but get the following problem - In the first dtml method the user clicks on a symbol button and that symbol is entered into the

[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] error (200)

2000-06-11 Thread Dieter Maurer
Mike Mikkelsen writes: Hello all, My Zope (2.1.6) installation has just become *very* unstable. My most recent addition has been ZPatterns and LoginManager. My passwords for my virtual sites (using SiteRoot) are no longer accessable by my account and superuser can't access them.

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] problems using sendmail-tag

2000-06-21 Thread Dieter Maurer
Philipp Dunkel writes: I have a form that calls a sendmail tag to send user-feedback to a specific email-adress. When I try to send mail I always get the error: Recieved error code 553 from SMTP: 553 ... Domain name required I know that this error occurs if the user is not

Re: [Zope] ZDiscussions Problem

2000-06-21 Thread Dieter Maurer
dtml-with TMLDiscussion /dtml-with ..., i get this error: Error Type: NameError Error Value: r Whats going on? And how do i display the discussion on my index page? Probably a small bug in ZDiscussion. I have had something similar in ZTopic. You should have gotten a

Re: [Zope] ZSQL newbie question

2000-06-21 Thread Dieter Maurer
kamon ayeva writes: I have a text file object containing data I want to use to update a MySQL table. I can get the data using the LocalFS object product and the howto from jfarr, but I don't know how to use ZSQL method and DTML method to inject this data in the table. You should know

Re: [Zope] python product - newbie

2000-06-21 Thread Dieter Maurer
Bak @ kedai writes: i'm messing around with Boring product, and now wants to do more. i have problems when i got more than one class in a product. this is what i wanted to do. create a guestbook (what else :)) product. GB.py with two classes - GB and GBitem. i can now load GB

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] Looking into folders

2000-06-23 Thread Dieter Maurer
Dieter Maurer writes: Felipe Alvarez Harnecker writes: I want to manipulate every object returned by the "tree" tag like this dtml-tree bla bla .. dtml-let myObject="tree object" dtml-var myObject.someProperty_or_method_or_something

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] Generating products that perform a smart clone of a master site?

2000-06-26 Thread Dieter Maurer
=?iso-8859-1?q?Hamish=20Lawson?= writes: I'm exploring the use of Zope for creating learning environments in higher education. One of the requirements is for a tutor to be able to create a mini site that includes static files along with more active objects like discussion boards.

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

Re: [Zope] File upload failure. Help needed.

2000-06-30 Thread Dieter Maurer
Urvashi Singh writes: I am a new user of Zope. I have Zope--linux2-x86.tar.gz bundle installed on my Linux machine, up and working. While I was trying to create a simple page using dtml files, I wanted to upload a few files from my hard drive onto Zope database. When I choose the Browse

Re: [Zope] queries and tiny tables and python methods... oh my!

2000-06-30 Thread Dieter Maurer
Timothy Wilson writes: The problem is hooking them all together. Passing the query to a PythonMethod is throwing up the following error: Error Type: TypeError Error Value: argument l: expected read-only character buffer, instance found

[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] Programattically adding rolesZope Folk zope@zope.org, '@reepicheep.avalongroup.net

2000-07-02 Thread Dieter Maurer
Timothy Grant writes: I know how to add users programatically, but I am having a difficult thing finding out how to add roles programatically. I have a list of user defined roles that I would like to add, but am unsure how to do it within DTML or an external method. Please note that

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-02 Thread Dieter Maurer
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. I've pretty much figured out that I need a wrapper around objectValues that will filter out the objects that don't have 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] Is there a better way to code this?

2000-07-03 Thread Dieter Maurer
Luke Tymowski writes: To have Zope ignore the footer code in one place but still display footer code on other pages, I've resorted to this: dtml-with history dtml-with 2000 dtml-in "objectValues(['DTML Document'])" size=3 sort=title reverse dtml-call

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] Authentication, Anonymous and Public

2000-07-04 Thread Dieter Maurer
Stuart Bishop writes: On Fri, 30 Jun 2000, 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. Thus, what you see, should not happen. Users, by default, are not granted the 'Anony

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] File referencing and LocalFS

2000-07-05 Thread Dieter Maurer
Rogerio Atem de Carvalho writes: I am using LocalFS to refer to a directory structure like this: folder1 | folder11 There are image (.jpg) files in both folders. I have two questions about this: 1)Folders names are directly related to string fields in a

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] How do I call a parameter from inside of the same form?

2000-07-05 Thread Dieter Maurer
Sean G Richards writes: Hello, I am trying to build an SQL statement in a form, and then pass the statement onto a Z SQL method, for execution. something like form action="search_results" method="get" input type="text" name="select_statement" value="SELECT name,

Re: [Zope] How to present a download button...

2000-07-05 Thread Dieter Maurer
Andreas Elvers writes: I am having trouble with a non standard download method. I want to provide a download link to a file, but not the standard one, because I would get the id as the filename. The id is a random value and thus not suitable for the customer. The real filename is saved in

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] getting queries of a database into variables?

2000-07-06 Thread Dieter Maurer
Rajil Saraswat writes: How do i put up queried data into variables so i can conditionally check them? The result of an Z SQL method behaves like a list of row objects. Each row object behaves like an object with the columns as attributes. Thus you can use: dtml-let

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

  1   2   3   4   5   6   7   8   9   10   >