Re: PossitionIndex (was: Re: [Zope-dev] ZCatalog phrase indexingrevisited)

2001-06-19 Thread Rik Hoekstra
Rik Hoekstra writes: This raises the question how dependent the splitter on the paticularities of the document source - I do not really see how different splitters could be useful for one single document. This is perhaps less obvious than it appears, as you may want to use

Re: PossitionIndex (was: Re: [Zope-dev] ZCatalog phrase indexingrevisited)

2001-06-18 Thread Rik Hoekstra
Chris McDonough wrote: It just occurred to me that depending on the splitter to do positions makes it impossible to alter the splitter without reindexing the whole text index... but I think this is a reasonable tradeoff. Other opinions welcome. This raises the question how dependent

Re: PossitionIndex (was: Re: [Zope-dev] ZCatalog phrase indexingrevisited)

2001-06-18 Thread Rik Hoekstra
Once you're satisfied with the implementation, would you be willing submit the module to the collector? Do you think you (or someone else for that matter) could have a look at [1] the method that returns the position in the document - positionInDoc() - to how that could be made to run

Re: [Zope-dev] Deleting objects by the users

2001-03-22 Thread Rik Hoekstra
one small correction: the line: dtml-call expr="manage_delObjects(getId())" should read: dtml-call expr="manage_delObjects([getId(),])" as the manage_delObjects takes a list as argument hth Rik ___ Zope-Dev maillist - [EMAIL

Re: [Zope] Object DB versus Relational DB

2001-01-22 Thread Rik Hoekstra
Tom Deprez wrote: Hi, Can somebody provide me informational links of documents which present the benefits and non-benefits of both DB? eg. When to use one and when not to use one? Thanks, Tom. A starting point is http://www.zope.org/Members/anthony/sql_vs_ZODB Rik

Re: [Zope] zope2.3.0b1 and userfolders

2001-01-17 Thread Rik Hoekstra
Chris McDonough wrote: sorry for the false alarm. at least i know what inituser and emergency users are now :) It's ok, I don't know exactly how it all works either. :-) Hm, coming from a DC guy this is a reply that is at once disconcerting ("if _you_ don't understand it, how would

Re: [Zope] DTML-dtml-in dtml-call

2001-01-16 Thread Rik Hoekstra
Angietel wrote: Is dtml-call REQUEST['sqlSearchcust3'] equal to dtml-in sqlSearchcust3 No, if only of a syntax error in the dtml-call: dtml-call REQUEST['sqlSearchcust3'] should be dtml-call expr="REQUEST['sqlSearchcust3']" Now in this case they _may_ be equal, but only if

Re: [Zope] Acquisition: DTML Methods vs Documents

2001-01-05 Thread Rik Hoekstra
On Fri, 5 Jan 2001, Stephane Bortzmeyer wrote: http://www.zope.org/Members/michel/HowTos/DTMLMethodsandDocsHowTo saved my life. Thanks. I'be read it yesterday. It does not help much because it does not answer my question: If I call http://machine:port/top/middle/AFolder/ADocument

Re: [Zope] Zope Projects in NL/Europe?

2001-01-03 Thread Rik Hoekstra
(Writing from the Netherlands) Just wondering: are there any Zope projects are available in the Netherlands/Benelux/Europe? We did one last year but they seem hard to find. Are there commercial projects available or is Zope mostly used on internal projects? Is there any demand for Zope

Re: [Zope] objectValues Question

2001-01-03 Thread Rik Hoekstra
I'm new to Zope and while 'playing' around I wondered about the following: I've created a DTML method (called MyListFiles) that lists the 'File' objects contained in a folder: snip Now when I create a DTML document and call this method like this: dtml-var MyListFiles it produces no output.

Re: [Zope] More on DB Transactions

2000-12-13 Thread Rik Hoekstra
Paolo Quaglia wrote: Reading the [EMAIL PROTECTED] archive I found one message with an interesting sentence: [Message] I am currently considering and evaluating Zope as one of the options we have to build a really large, completely databasedriven "enterprise scale" web-platform.

Re: [Zope] HTML formatting from a text field

2000-12-13 Thread Rik Hoekstra
Lee Hunter wrote: Hi Ausum, Do you mean a text field that shows a row of formatting buttons at the top for 'bold', 'italic' 'add link' etc. There is an ActiveX control that is built in to IE Explorer 5.x - you just have to call it from your page. Here's the information from

Re: [Zope] turning off inheritance

2000-12-13 Thread Rik Hoekstra
"Kyler B. Laird" wrote: I am working on generating a directory from Zope objects. There is a folder full of units (other folders). These units contain people (more folders). Units and people both have contact information stored in their properties. How do I detect if a person has,

Re: [Zope] ZPatterns

2000-12-08 Thread Rik Hoekstra
Cees de Groot wrote: Chris Withers [EMAIL PROTECTED] said: ...I disagree, ZPatterns only major flaw is that its totally immersed in its own jargon which very few people understand :-( That said, my impression is that if you can wade through the b/s, it's more than worth the effort...

Re: [Zope-dev] case insensitive sorts

2000-12-06 Thread Rik Hoekstra
Andy McKay wrote: Minor nit and patch: I've found that really for me what users want to see is a case insensitive sort of objects, not the current python case sensitive sort. So that the order of objects from dtml-in and tree is a, A, b, B as apposed to A, B, a, b. Anyway Ive

Re: [Zope] dtml syntax problem

2000-12-06 Thread Rik Hoekstra
Francois-regis Chalaoux wrote: How to render this code ?? change 4 dtml-with "_.namespace(foo=_.whrandom.choice(objectValues(['toto'])).id)" to 4 dtml-with "_.namespace(foo=_.whrandom.choice(objectValues(['toto'])).id)" ? hth Rik ___ Zope

Re: [Zope] [ot] python book

2000-12-05 Thread Rik Hoekstra
What I'm still missing is something like the perl cookbook but for Python :( I don't know the perl cookbook, but the eff-bot guide to the Python library has some 300 scripts in it. You can get it from fatbrain.com. It is in pdf version only (or at least a

Re: [Zope] Zope with Microsoft Access

2000-11-24 Thread Rik Hoekstra
Hi, this is my first posting to the list, and about my 4th day working with Zope. I have a bit of a problem. All my code so far is working well. Just the following section is defying my attempts to make it run. What it does is to update a field in the database (to allow employees to

Re: [Zope] New ZPatterns example... was Re: [Zope] New releases of Zwiff and ZCVSMixin...

2000-11-23 Thread Rik Hoekstra
OK.. The new ZPatterns Example is up there now off to fix some EMarket problems for which the secret url is: http://www.zope.org/Members/sspickle/DumbZPatternsExample I hope you don't mind me reveiling it ;-) Rik ___ Zope maillist -

Re: [Zope] zope basics

2000-11-23 Thread Rik Hoekstra
Using Zope, I have managed to put together a nice site for friends to create folders, pages and upload images, etc. But there are some fundamentals that are eluding me. I am able to 'register' a new user through a form to create a new acl_user. But I cannot figure out how to let them login again

Re: [Zope-dev] How do I create folders/methods etc. within the code?

2000-11-16 Thread Rik Hoekstra
Some additions: 2. To create folders, mthods etc in the code. I have found some functions manage_addDTMLMethod, manage_addFolder, but how do I use them? well look at their signature in the code eg: self.manage_addFolder(id='Testing') The Zope Help system that comes with your Zope

Re: [Zope] Zope and Windows DB's = NOT! ?

2000-11-14 Thread Rik Hoekstra
hi, is anybody successfully using a Windows DB such as MS SQL server 7 with Zope? it seems that the ODBC adaptor is ancient and very error prone so can i conclude that Zope and DB integration under windows is not an option? In general, the ODBC adapter may be old, but it works

Re: [Zope] Problems with Zope 2.2.2 and MS SQL Server

2000-11-14 Thread Rik Hoekstra
I'm having some troubles connecting Zope 2.2.2 to Microsoft SQL Server. I downloaded and installed the product ZODBCDA, and I was able to connect to the SQL Server. I was able to define the SQL methods, and when I test them, everything is successful. The problem is that when I use for example

Re: [Zope] Zope and Windows DB's = NOT! ?

2000-11-14 Thread Rik Hoekstra
hello andy, hello all others who answered my post, first of all thank you for letting me know the positive experiences you have had with the ODBC adaptor and your various installations. i'm relieved that Zope and window's DB's do work together -- and this prompted some new tests on my

Re: [Zope] Newbie question(s)

2000-11-13 Thread Rik Hoekstra
"Bowyer, Alex" wrote: Hi, I have what I'm sure is a very simple question about Zope programming style: I want to count how many objects are contained in the current container object and then do something with that value, but I can't do the bit I need to do at the point of reading the

Re: [Zope] HiperDom

2000-11-13 Thread Rik Hoekstra
Chris Withers wrote: Lalo Martins wrote: On Fri, Nov 10, 2000 at 10:28:44AM +, Chris Withers wrote: Oh yeah, while I'm here, how's the HiperDOM project getting on? That stuff would be raally useful for a project here... HiperDom is usable right now; we've been quite

Re: [Zope] HiperDom

2000-11-13 Thread Rik Hoekstra
I believe you should be able to import it and use the example document in the distribution (after you applied the patch also in the distribution and imported it into Zope). Hurgh? Where di you find all this out? Hwo do you use it when it is installed? The patching is from the readme

Re: [Zope] why DTML confusing

2000-11-11 Thread Rik Hoekstra
- Original Message - From: Simon Michael [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, November 11, 2000 12:59 AM Subject: Re: [Zope] why DTML confusing Charlie Wilkinson [EMAIL PROTECTED] writes: ...or "the python world with some Zope limitations placed on it." ...

Re: [Zope] querying status in zsql

2000-11-10 Thread Rik Hoekstra
I have a processing script that takes emails and puts them into a table. I bring up a table for confirmation and then submit the whole thing by a iterative item:records zsql method. My problem is that the table requires a unique primary key and quite regularly there duplicates. So ofcourse

Re: [Zope] querying status in zsql

2000-11-10 Thread Rik Hoekstra
Thanks for that... Although Im not terribly sure what the magic behind the sequence-start is, but it works very well. A short explanation: sql queries return a result object (so does ZCatalog btw), which you can't address directly in DTML (or at least I wouldn't know how ;-) If it the

Re: [Zope-dev] ZPatterns: Non-ZODB storage and Racks

2000-11-09 Thread Rik Hoekstra
[rh]I've been following this thread. This may be a bit of a newbie question, but it's been bugging me for a while. I see how I can store propertysheets in Racks using ZClasses and Skinscripts, but the propertysheet term suggests that there should always be an object that the properties are

Re: [Zope-dev] ZPatterns: Non-ZODB storage and Racks

2000-11-09 Thread Rik Hoekstra
snip great explanation Thanks, Phillip, that was enlightening Rik ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists -

Re: [Zope-dev] Re: New Name for Python Methods

2000-11-09 Thread Rik Hoekstra
Thus the poll did not ask the right question. To be honest, I was surprised that Python Method was still in the poll list. A new poll is not a good alternative, though. Any plans about what to do - take the second best. Re-polling. Apparently it was a bad day for elections in the US in

Re: [Zope] objectValues type?

2000-11-06 Thread Rik Hoekstra
I have this simple tree: dtml-tree branches="objectValues" skip_unauthorized="1" input type="checkbox" name="delItems:list" VALUE="dtml-var id" a target=main href="dtml-absolute_url;"dtml-var title_or_id/a /dtml-tree The anchor's target is main. But it if it is a Folder I want the

Re: [Zope] university portal

2000-11-05 Thread Rik Hoekstra
I'm another Zope newbie with a few questions. My appologies if this message is being sent to the wrong mailing list. this is the list I'm a final year student doing a project to create a course/personal management system for my university. I understand there's quite a lot of similar work

Re: [Zope] Where is the code?

2000-11-05 Thread Rik Hoekstra
I have played with Zope and got everything working. It is however not clear to me how the code (DTML and so on) is merged into Zope and where it is kept. Would gurus out there point this to me? thanks. DTML and Zope (code) objects are kept in the object database. It is in

Re: [Zope] Reverse SendMail Question

2000-10-26 Thread Rik Hoekstra
Has anyone thought of using SendMail (or any other e-mail program) to send e-mail to Zope and have that e-mail be loaded directly into a specific folder (say, based on the e-mail address or subject line)? This would be handy to keep track of e-mail. All the person would have to do is cc

Re: [Zope] Trying to follow tutorial

2000-10-25 Thread Rik Hoekstra
Olivier Ricou wrote: On Tue, Oct 24, 2000 at 01:40:58PM +0200, Rik Hoekstra wrote: Go to the management interface and add a zope user in the acl_users folder. Give it Management rights. Shut you browser, reopen it and authenticate as the user you just entered. Get on with the tutorial

Re: [Zope] problem(100) ZServer Computing local hostname on windows install

2000-10-25 Thread Rik Hoekstra
when I try to start zope on windows machine i get: problem(100) ZServer Computing local hostname this is 'normal' and not a problem (though I always wonder what it really means) snip The dos window seems to hang after this. nope, this is just the console window for the server. This is

Re: [Zope] OT:NT and rebooting (was:How many houres do I need to manage a Zope) site?

2000-10-25 Thread Rik Hoekstra
My 2 ZoNT (Zope on NT workstation) boxen haven't needed rebooting yet. They sit mostly idle with occasional light loads. They are P100/32MB/1.2GB old(er than dirt) Industrial Computer Supply boxes. You know, 19" rack mount 4U units. Good, solid, slow hardware. They survive NT rather well.

Re: [Zope] OT:NT and rebooting

2000-10-25 Thread Rik Hoekstra
"Months without rebooting"? That is certainly not something to brag about. With three of my installations of Zope on Linux I have the machines at 194, 204 and 55 days of uptime (and the 55 was because of a bad powerstrip, the other others have been up since I brought them up). While NT

Re: [Zope-dev] Task, Job or Operation?

2000-10-24 Thread Rik Hoekstra
Some name suggestions - block has been suggested before What about - ZopeCodeBlock from there: Internal Python ZopeCodeBlock External Python ZopeCodeBlock Internal Perl ZopeCodeBlock Safe Python ZopeCodeBlock Alternatively something like ZopeBrainBlock might be considered, though I

Re: [Zope] Trying to follow tutorial

2000-10-24 Thread Rik Hoekstra
Hi all, I am trying to follow the quick tutorial and immediately run into things I do not understand. I am trying to create a folder as explained in the docs. I get the error: Error Type: SuperCannotOwn Error Value: Objects cannot be owned by the superuser This is the example in

Re: [Zope] redirect

2000-10-24 Thread Rik Hoekstra
how to for that function REDIRECT understand a variable. ex. dtml-call "RESPONSE.redirect('http://zope.org/index.htm?cod=dtml-var test')" You can't nest dmtl tags try : dtml-call "RESPONSE.redirect('http://zope.org/index.htm?cod=' + test)" Rik

Re: [Zope] non oreilly zope book

2000-10-17 Thread Rik Hoekstra
Is the same one that got cancelled? the very same Rik ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -

Re: [Zope] Content Management System

2000-10-12 Thread Rik Hoekstra
This query started out in a separate thread about permissions, but it's sufficiently important to me to pose again here. I've been struggling to make the CMS abilities of zope user-friendly enough for 'joe average' end-users. Really it's designed for a 'power' content manager who

Re: [Zope] Need preferred 'import' format for ReportLab Image module

2000-10-12 Thread Rik Hoekstra
to reply to Andy? In my own reportlab distribution I changed; import Image to from PIL import Image Well, it sounds right and if it works then it probably is ;-) It probably depends exactly where you install PIL, though, which I haven't done yet :-S The Photo product and the

Re: [Zope] Stupid questions

2000-10-11 Thread Rik Hoekstra
Am i supposed to get "XML methods" and "Python methods" in the add product drop down? I'm baffled. Not unless you add them ;-) The XML Document (presume you meant that) and Python Methods are both Products, that is the Zope name for components XML Document can be downloaded from

Re: [Zope] expr=id 'index_html issue

2000-10-09 Thread Rik Hoekstra
Okay, this is my second question for the day. Hopefully it won't be as easy as the first -- otherwise, I'll have to stick to practicing law. I'm looking for a way to list the DTML Methods in a folder -- except the index_html method. So far, I've had to do it by using this: dtml-in

Re: [Zope] IIS port problem

2000-10-03 Thread Rik Hoekstra
snip description http://srnt/ChatClub/index_html note that most probably the reference will look something like http://srnt/cgi-bin/Zope.pcgi/ChatClub/index_html That is, you'll loose the port, but you rape your url. If you want a shorter url, you most probably have to do other (isapi like)

Re: [Zope-dev] mailing list 'noise'

2000-10-01 Thread Rik Hoekstra
I dont see this as a problem: You only create a new list when the traffic for that proposal gets too great for zope-dev. Threading is good enough before that point. Yes, but zope-dev has a relatively high traffic load... Why should you have to put up with all that

Re: [Zope-dev] mailing list 'noise'

2000-09-29 Thread Rik Hoekstra
Karl Anderson wrote: Ken Manheimer [EMAIL PROTECTED] writes: I dont see this as a problem: You only create a new list when the traffic for that proposal gets too great for zope-dev. Threading is good enough before that point. Yes, but zope-dev has a relatively high

Re: [Zope] Use of the :records variable type and ZSQL methods

2000-09-26 Thread Rik Hoekstra
Calvin Parker wrote: Error Type: Bad Request Error Value: ['Field1', 'Field2'] Here is the code I used and sqlTest is the ZSQL Method that just inserts the two fields into a test DB: dtml-in testlist dtml-call sqlTest /dtml-in What am I doing wrong?

Re: [Zope-dev] I feel your Wiki Pain ;-)

2000-09-25 Thread Rik Hoekstra
Do you feel that weblogs are bad models for debates? I think they're pretty good least-common-denominators. I would probably prefer the kind of annotation-based thing i described in my last message (and began to sketch in the WikiNG proposal) for collaborative generation of documents, but

Re: [Zope] Use of the :records variable type and ZSQL methods

2000-09-25 Thread Rik Hoekstra
Error Type: Bad Request Error Value: ['Field1', 'Field2'] Here is the code I used and sqlTest is the ZSQL Method that just inserts the two fields into a test DB: dtml-in testlist dtml-call sqlTest /dtml-in What am I doing wrong? you'll have to feed a named argument to your Zsql

Re: [Zope-dev] ODBC Error

2000-09-15 Thread Rik Hoekstra
There _was_ a patch available (can't find it now, search the maillist archives) Rik ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists -

Re: [Zope-dev] is INSTANCE_HOME broken on Win32?

2000-09-14 Thread Rik Hoekstra
Any ideas? the python way of getting the right path separators is to use os.path.join(item1, item2, ...) Works even for macs ;-) Rik ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts

Re: [Zope] id_quote

2000-09-14 Thread Rik Hoekstra
Given the new strictness characters allowed in id's, it'd be great if there was something called id_quote which behaved in the same way as html_quote or url-quote except it made a string suitable for use as an id. It's be great if ti was available as a methdo in python as well :-) What do

Re: [Zope] My Z Class

2000-09-12 Thread Rik Hoekstra
Karl Munroe wrote: I have constructed a z class which contians other products. Is it possible for me to have access and edit the properties of the objects contained in the z class. For example. MYZClass contains an image object...how do I change the and edit the photo contained in the

Re: [Zope] TEXT FILE Operation

2000-09-12 Thread Rik Hoekstra
anyone know how to let Zope interact with text files on the system on it is running. I take it you mean files external to the ZODB database Like making changes to files, search and replare some text or insert or delete text and save the file again? I'm pretty new and i don't know if it is

Re: [Zope] TEXT FILE Operation

2000-09-12 Thread Rik Hoekstra
infact this is the problem, right now i'm not able to program in python but only on using zope. Hm, you'd be surprised how easy the Python bit is. THere is excellent documentation at the Python site (http://www.python.org) I used the FSSession product before and i think that should be a

Re: [Zope] dtml-in theentiresite

2000-09-12 Thread Rik Hoekstra
Any other good solutions are welcomed! There are several 'Sitemap' solutions that do this more or less, but... Any reason you can't use a catalog for this and catalog on the property? This is much faster and much more flexible Rik ___ Zope

Re: [Zope] How to Pass values to a DTML method ??

2000-09-11 Thread Rik Hoekstra
I have a DTML method that is called from a document. I need to pass a value to it like a parameter would be passed to a function. dtml-var some_method(param=value) try something like: dtml-var "method_name(_.None, _, param=value)" or: dtml-var "method_name(_.None, _, arg1=value1,

Re: [Zope-dev] Render DTML without having it in a Zope object

2000-09-08 Thread Rik Hoekstra
I have some HTML/DTML saved in the database and I want to now display it. What database - something different then data.fs probably? But before I display, I need to render the DTML that is contained in the text. Can anyone lead my in the right direction; maybe by telling me which file

Re: [Zope] Need help with ZJetDA, Winnt4 and Zope 2.2.1

2000-09-08 Thread Rik Hoekstra
"Farrell, Troy" wrote: As you have no doubt heard my cries for help, I figure that very few are running NT4. More than would admit it, probably. Perhaps no one knows the answer to what seems to be a rather specific situation. For one, I have the impression most people use zodbc

Re: [Zope] Lock and Transaction in Zope.

2000-09-08 Thread Rik Hoekstra
Zope has no built in locking like that, but IIRC there was some hack in the wiki code to prevent simultaneous editing (which wasn't bullet proof). Perhaps you can look there. I doubt whether it will solve the problem you pose, but I don't see why you'd want to do what you pointed out in your mail

Re: [Zope] This must be a namespace problem

2000-09-08 Thread Rik Hoekstra
But it uses the "root" folder "content". How can I make it us the "content" in the current directory, but the index_html from the root folder. Can this not be done?? This is an acquisition problem we will all be bitten by at one time or another. There is some documentation about this,

Re: [Zope] DTML Question on lines

2000-09-07 Thread Rik Hoekstra
I am trying to itterate through a lines property in the folder so that the options will drop down. I did not think that the following code would work but I could not think of anything else. dtml-in valid_codes option value="dtml-var valid_codes"dtml-var

Re: [Zope-dev] Call for a creation_datetime property!

2000-09-06 Thread Rik Hoekstra
"Jay, Dylan" wrote: It is really a painful thing to do without. I realize I can add this capability to factories of my own objects but I don't want to have to create my own versions of dtml-document and everything else just to ensure that a creation date is kept. I've tried using

Re: [Zope] DTML horror

2000-09-05 Thread Rik Hoekstra
Nick Trout wrote: DTML is pretty horrible. Does anyone have any solutions to allow DTML methods to be generated using a more Pythonesque interface? It seems to me that DTML is a bit of a shoddy half way house between HTML and Python. Use Python Methods

Re: [Zope] is dtml-unless someIndirectVariable possible ?

2000-08-27 Thread Rik Hoekstra
I have a lot of REQUEST like this one to check, depending on what documents are in the folder. dtml-unless SOMEREQ dtml-call "REQUEST.set('SOMEREQ','defaultvalue')" /dtml-unless RH: this should work. It works with me so i gave all documents concerned 2 properties myPropName,myPropValue (in

Re: [Zope] Run a java applet in Zope

2000-08-25 Thread Rik Hoekstra
Michel Houben wrote: Dear, I have a dtml-document with a Java-applet and I can't get it runnning in the Zope envirronement. I hope someone knows it and can solve my problem. AFAIK, this is perfectly possible. We need more details to be able to help you. Any specific point where it

Re: [Zope] ZClass Property : DTML Document ?

2000-08-25 Thread Rik Hoekstra
Vincent wrote: Dow do I create a ZClass Property of the type : DTML Document ? If you want a DTML Document accessible in all ZClasses - just include it in the ZClass. If you want you may make it available as a View by mapping it under the 'Views' tab (in the ZClass definition area) hth

Re: [Zope-dev] Zope as CGI with IIS Windows 2000 Server

2000-08-24 Thread Rik Hoekstra
URGENT! Need assistance with Zope as a PCGI with IIS 5 on Windows 2000 server. After configuring Zope for use as a PCGI, and configuring IIS to use the pcgi-wrapper.exe, etc... The test link:http://localhost/Scripts/Zope.pcgi ...is returning the following message within the

Re: [Zope-dev] Zope Content Management System

2000-08-24 Thread Rik Hoekstra
Hi there, I am working on a project and have been looking at the Zope Content Management System as part of the solution. However, I have a couple of questions. From what I have seen so far, the page generation is all done through the Zope Management Interface, and the content of the page is

Re: [Zope] The tree tag, SQL and what should be simple

2000-08-24 Thread Rik Hoekstra
I thought this was going to be simple but having read numerous postings on the mailing list and all related HOW-TOs I can find, I think I can confirm I am stuck. This is sad because I've just spent a very productive couple of days with Zope and MySQL making the world a better place. I have a

Re: [Zope-dev] why is manage_addZSQLMethod unavailable ?

2000-08-18 Thread Rik Hoekstra
Why does this work dtml-call "_['testadd'].manage_addDTMLMethod('MethodId', 'Method Title','method text')" While this does not: dtml-call "_['testadd'].manage_addZSQLMethod('ZSQLID', 'ZSQL Title', 'DB','','select * from data')" Error Type: AttributeError Error Value:

Re: [Zope] Bug zClass subobjects?

2000-08-16 Thread Rik Hoekstra
(Second post) (I speak french, sorry for my english!) I created a ZClass, zRow. This class can contain other ZClass: zField_Text, zField_Date, etc. This let me define the columns contained in a zRow. I then defined a Class zTable, wich contains zRows. Question: - In

Re: [Zope] I think, it is a bug in acquisition

2000-08-16 Thread Rik Hoekstra
Maybe I have found a situation, where images are not working or rather acquisition. For example, you create 2 documents and one image doc1 (DTML Document) contents: "document 1 dtml-var doc2 doc2 (DTML Document) contents: "document 2 dtml-var image image (Image)

Re: [Zope] modifying/changing DTML properties

2000-08-16 Thread Rik Hoekstra
first: consider changing to the 'new' dtml syntax - I have a folder in my zope tree called spam. - spam has one document called "foo" - spam has a property called "eggs" which is set to "green" foo looks like this: hello p!--#var eggs -- ( dtml-eggs; ) I want to be able to change the

Re: [Zope] TypeError trying to use Dtml-in on Zclass

2000-08-09 Thread Rik Hoekstra
I have a Zclass object called States built with folder and renderable When I try dtml-in States dtml-var sequence-item /dtml-in I get Error Type: TypeError Error Value: hasattr, argument 2: expected string, int found Does anyone know why this is happening? because you feed it (some

Re: [Zope] dtml-with confusion

2000-08-09 Thread Rik Hoekstra
Can someone explain the difference between: dtml-with "PARENTS[-1]" dtml-with squishdot ...do stuff here... /dtml-with /dtml-with and dtml-with "PARENTS[-1].squishdot" ...do stuff here... /dtml-with Do they behave differently? In what way? Rik

[Zope] Re: [ZDP] Re: [Zope-Annce] ANN: Forthcoming Zope Book

2000-07-07 Thread Rik Hoekstra
We're excited about the book and think that it will fill an important hole the current official Zope docs. Most importantly, have you chosen an animal for the front cover yet? Aren't there any pictures of Zopes? Rik ___ Zope maillist -

Re: [Zope] Problems and ponderings

2000-07-05 Thread Rik Hoekstra
In my site I have folder with subfolders and I would like to generate a menu to go to those subfolders. What I have now is: dtml-in "objectValues()" dtml-var sequence-key /dtml-in which gives emptynes.. I've tried all kinds of combinations, tricks from the tips and howto's, but nothing.

Re: [Zope] Problems and ponderings

2000-07-05 Thread Rik Hoekstra
Woops, pressed send too soon In my site I have folder with subfolders and I would like to generate a menu to go to those subfolders. What I have now is: dtml-in "objectValues()" dtml-var sequence-key /dtml-in which gives emptynes.. I've tried all kinds of combinations, tricks from the

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

2000-07-04 Thread Rik Hoekstra
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 /FORM dtml-var standard_html_footer

Re: [Zope] cookies

2000-07-04 Thread Rik Hoekstra
can you tell me how can I use the "cookies" try: dtml-call "RESPONSE.setCookie('blurk', 'nonsens')"/p dtml-if "REQUEST.cookies['blurk']" dtml-var "REQUEST.cookies['blurk']" dtml-else no blurk today /dtml-if Also see the relevant portion of the DTML reference guide

Re: [Zope] Fun with Trees

2000-07-03 Thread Rik Hoekstra
Charlie Wilkinson writes: After RTFMing and flailing at DTML all night, I'm about stumped. No pun intended. 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

Re: [Zope] Fun with Trees

2000-07-03 Thread Rik Hoekstra
snip Not sure. Supposedly objectValues() returns "actual objects", and I assumed that using sequence-item would be something closer to that. shrug The finer points of python are still lost on me, but I'm working on it. Hm, you're right of course. The bigger problem seems to be the

Re: [Zope] How to upload 900 files, in one shot ?

2000-06-30 Thread Rik Hoekstra
Jonathan Desp wrote: Hi, anyone here can help me with that problem below ? -v How I can upload 900 files inside Zope, if I want to be able to manage them by the Zope Interface, I cannot browse inside data.fs, and I cannot upload my 900 files by FTP ing them. Because the server

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

2000-06-30 Thread Rik Hoekstra
Timothy Wilson wrote: Hi everyone, (Please excuse the vague Wizard of Oz reference in the sub., but my brain may be imploding. :-) I'm trying to merge several type of Zope objects, and I'm getting lots of little errors. I wonder if someone could suggest where my problem lies. 1.

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

2000-06-30 Thread Rik Hoekstra
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. The closest I've gotten so far is: dtml-with

Re: [Zope] Newbie: String work

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

Re: [Zope] ZCatalog counting?

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

Re: [Zope] ZWiki/Structured Text formatting surprise

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

Re: [Zope] ZCatalog counting?

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

Re: [Zope] parsing strings in DTML

2000-06-26 Thread Rik Hoekstra
I'm working on what should be a simple problem. I pulling an address out of an ldap query and the data is in the form of a $-separated string. Example: 101 Main St.$Anytown$MN$12345 Please correct me if I'm wrong, but I could probably do dtml-call "REQUEST.set('parsed_address',

Re: [Zope] Python install included with zopeBeta.exe?

2000-06-23 Thread Rik Hoekstra
Starting over...beta2 not working on IIS. Uninstalling Python Uninstalling Zope (why does running unwise.exe not remove EVERYTHING?) It almost never does remove everything Deleting everything in Zope web site virual directory. Looks like I installed Python and then Zope installed Python

Re: [Zope] Writing to LocalFS

2000-06-22 Thread Rik Hoekstra
(thanks to Jonathon and Dieter... for the permissions problem. That did the trick) Again, after some searching, I am looking for the syntax to write a file / append to a file in a Local File System. This is certainly where my Python days seem to slow my down b/c I would have just: contents

Re: [Zope] Problem with adding items to ZClass instance

2000-06-20 Thread Rik Hoekstra
I don't think there's anything "special" about my ZClass. It's derived from Catalog Aware and ObjectManager. I believe I reproduced it without the Catalog Aware and got the same results. I'm using Andy Dustman's version of the MySQLDA and TinyTable v0.8.2. They both work just fine

  1   2   >