Re: [Zope] Some examples of DTML scripts ?

2000-05-19 Thread Rik Hoekstra
Hi, I'm a french new Zope developper and I'm a little bite lost with the english documentation... I think that some examples will help me a lot. So, if someone have some and can spend two minutes to send them tome, I will be very happy. You should try the zdp site (http://zdp.zope.org),

Re: [Zope] Nesting ZClasses=='bad juju'

2000-05-19 Thread Rik Hoekstra
David Holden writes: Hi, I'm working throw the ZDevelopers guide, and want to try using nested ZClasses, There was a thread about this a while back that talked about design choices and nested ZClasses. Due to some of the current conventions in the ZClasses implementation, nesting them

Re: [Zope] uploading a batch of files

2000-05-22 Thread Rik Hoekstra
I need to upload a batch of files into the zope database, what would be the best way thanks :) What about ftp? Zope comes with a built-in ftp server. Point your favorite ftp client to your server. Don't forget to set the right port - see zopehome/z2.py for this. Enter your

Re: [Zope] FTP

2000-05-23 Thread Rik Hoekstra
David Shen wrote: Hello, Can Zope system be accessed by FTP? If yes, how to do so? Yes. Assuming you have a standard Zope installation and you've not tampered with the ftp settings of ZServer (you'd know about ftp then wouldn't you). THe ZServer ftp is running under the (non default)

Re: [Zope] Feeling like a newbie.. document id if statement?

2000-05-24 Thread Rik Hoekstra
dtml-if "_['id']=='index_html'" I wonder if someone would be kind enough to translate Rik's code into Enlish for me. I know that expressions inside "" are Python, but what is the function of the [] and _? Hm, I'm afraid this is a DTML trick (nothing more). I hope I can explain this

[Zope] Re: [ZDP] Re: [Zope] Re: [ZDP] Re: [Zope] The agony of the ZOPE Documentation

2000-05-25 Thread Rik Hoekstra
snip The ZDP has "only" got the aim to point to existing stuff. Restructuring the existing docs is not our job. Maybe it should be? How about rebuilding zope.org as a generic 'Zope Portal' with the building and documenting work being done more by the community? (ie: integrating ZDP and

[Zope] Re: [ZDP] Re: [Zope] The agony of the ZOPE Documentation

2000-05-25 Thread Rik Hoekstra
-Original Message- From: Jerry Spicklemire [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: donderdag 25 mei 2000 1:11 Subject: [ZDP] Re: [Zope] The agony of the ZOPE Documentation (forwarded from [EMAIL PROTECTED]) Jason Cunliffe wrote: Perhaps you have a better

Re: [Zope] Count specific objects

2000-05-25 Thread Rik Hoekstra
In subfolder "ref_links" I have a another folder called myLinksandURLs (which actually is a product called URL Directory). In that folder (myLinksandURLs) there are a couple of objects called Simple URL derived from the product called URL Directory. I now want to count the number of 'Simple

Re: [Zope] Add property ?

2000-05-26 Thread Rik Hoekstra
calvin33 wrote: Normally : "folder_F.object_O.manage_addProperty(id,file,content_type)" How to change "object_O" with another variable "var_V" ? Have you tried untested dtml-call "folder_F.getitem('var_V').manager_addProperty(id, file, content_type)" /untested or

Re: [Zope] Help with simple dtml-if compare

2000-05-26 Thread Rik Hoekstra
snip yep.. well... this is quite a common question, all up. It comes from people using shorthand, but not relaising it. sometimes i wonder if this feature should be removed. the line: dtml-if "id == 'index_html'" is actually shorthand for: dtml-if expr="id == 'index_html'"

Re: [Zope] Higher Education

2000-05-26 Thread Rik Hoekstra
Phil Langton wrote: Someone has mentioned that Digital Creations has taken on someone who is to implement a zope-based virtual learning environment tool kit. Is this so? Any mailing lists or contacts or test areas? You're probably referring to me. I haven't taken an active role in

Re: [Zope] Higher Education

2000-05-26 Thread Rik Hoekstra
: Friday, May 26, 2000 12:44 PM |To: Rik Hoekstra |Cc: Shane Hathaway; Phil Langton; [EMAIL PROTECTED] |Subject: Re: [Zope] Higher Education | | |On Fri, 26 May 2000, Rik Hoekstra wrote: | | How many are still interested in this? | | I was among one of the first to be active in the zope-edu list and I am

Re: [Zope] Higher Education

2000-05-26 Thread Rik Hoekstra
snip You know, there's the python edu-sig (http://www.python.org/sigs/edu-sig) - i wonder whether there's some point in crossing over the efforts? On the plus side, there's a number of educators there with real interest in teaching programming in a good way, on the minus side, their charter is

Re: [Zope] Zope Email (syndication)

2000-05-26 Thread Rik Hoekstra
-Original Message- From: Karl Ulbrich [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: vrijdag 26 mei 2000 21:49 Subject: Re: [Zope] Zope Email (syndication) Well... I think that it's probably the shortest route to a functioning zope archive to use mailman- already

Re: [Zope] FW: trying to connect zope to m/s access 2000 d/b

2000-05-29 Thread Rik Hoekstra
am using windows 98 have constructed a ms access 2000 db that i have been trying to connect to via zope. wasn't sure so i downloaded zodbc db adapter. a couple of problems if my connection depends on this. 1st i add it to the top level of the zope installation but it is installed lower down

Re: [Zope] Question about dtml-in sorting

2000-05-30 Thread Rik Hoekstra
"Patrick J.M. Keane" wrote: Does sort only sort in one direction? I am looking to sort news items so that the newest items are on top, and when sorting on a date field, I get the opposite behaviour. Any easy way to reverse the sort order? Yes, by adding reverse to the sort tag ;-)

Re: [Zope] images in access database

2000-06-02 Thread Rik Hoekstra
I would like to be able to have gifs/jpgs stored in an MS access database and then pull the out using zope and display them in rendered documents. I am completely new to access. I have successfully installed the ODBCDA into zope, and are able to connect to an access database and pull

Re: [Zope] Newbie question: graphics in subdirs

2000-06-07 Thread Rik Hoekstra
snip However, I want to keep all of my commonly used image files in a subdirectory called /images. So I create a folder called "images", upload another copy of logo.jpg into it, everything's fine. I change the dtml in the "test" document to be "dtml-var /images/logo.jpg". And it

Re: [Zope] How do you changing web port address of Zserver installed as a service on Win NT4?rvice on Win NT4?

2000-06-07 Thread Rik Hoekstra
I am looking for some guidance on how to change the web port address of my Zserver. I can use the -P option START.BAT file and start it manually but I haven't been able to figure out how to change it when I am starting the Zserver up as a service on a WinNT 4 box. It works fine on port 8080 but

Re: [Zope] Python, Zope, and PowerPoint slides

2000-06-08 Thread Rik Hoekstra
[...] * Amos released updated "Zope training material", http://www.zope.org/Members/Amos/TrainingSlidesAnnounce that he and Michel Pelletier have been working on for the past couple weeks. There are twenty slide presentations which cover such topics as DTML, application

Re: [Zope] Python, Zope, and PowerPoint slides

2000-06-08 Thread Rik Hoekstra
snip IIRC Pavlos Christoforou made a Zope product that creates pdf from stx files (goes to look it up) Yes. See http://www.zope.org/Members/gaaros/ZpdfDocument I was quite exited when I saw this pdf possibility but I can't seem to get it to work. I'm running Zope on my Win NT4.0. But I have

[Zope] Re: [ZDP] Links between DTML language and Python language...

2000-06-08 Thread Rik Hoekstra
In the last mail I sent, I explaint my problem to know if a specified item is in a list. Oleg helped me and said that : "Learn Python". Now, I wonder if there are strong links between DTML language and Python language. Because, in the DTML language reference, you can find nothing meaning that.

Re: [Zope] Zope URLS (was re: WebObjects)

2000-06-08 Thread Rik Hoekstra
Gregor Hoffleit wrote: Regarding wget: AFAICS, the problem is that traditionally in a static web server, if you try to access a URL like 'http://host/xyz' (without trailing slash), the server will return you an error '301 Moved permanently' and will point you to the new location

Re: [Zope] Re: ZSQL Bug in 2.1.6 [patch]

2000-06-08 Thread Rik Hoekstra
The zope list ([EMAIL PROTECTED]) is great for this sort of question ;-) Phill Hugo wrote: Sorry to bother you. I've a quick question regarding acqusition in ZSQL methods. When I pass args the method ignores the REQUEST stuff unless I specify it in the args list. Is there a way to pass one

Re: [Zope] dtml-tree with data from multiple tables

2000-06-08 Thread Rik Hoekstra
I'd like to generate a tree with data from different SQL tables depending on the tree level. In other words, the first level data comes from one table, second level comes from another. How can the branches_expr expression determine what the current tree level is? Can I pass a parameter to

Re: [Zope] PARENTS

2000-06-08 Thread Rik Hoekstra
-Original Message- From: Tom Scheidt [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: donderdag 8 juni 2000 22:07 Subject: [Zope] PARENTS Hi All, I can't get dtml-with PARENTS[1] to work. I want it reference the folder containing the folder containing the document,

Re: [Zope] PARENTS

2000-06-08 Thread Rik Hoekstra
-Original Message- From: Tom Scheidt [EMAIL PROTECTED] To: Rik Hoekstra [EMAIL PROTECTED] Date: donderdag 8 juni 2000 22:27 Subject: Re: [Zope] PARENTS The wierd thing is: dtml-with PARENTS gives me the parent folder. (notice no quotes) ? strange dtml-with PARENTS[1] gives me "

Re: [Zope] redirecting from inside a frame

2000-06-09 Thread Rik Hoekstra
The onlyway I can think off, (which doesn't mean its the only way), is to launch a new window and send a HTML document whose content is JavaScript. It would either rewrite the original frame or the entire window depending on you original input and then close itself. [rh] Hm, even for

Re: [Zope] Zope-Edu?

2000-06-09 Thread Rik Hoekstra
What ever became of Zope-Edu? Have they disbanded? No, on the contrary: revived. See http://www.zope.org/Wikis/zope-edu/FrontPage There is also a sourceforge site. Contributions more than welcome Rik ___ Zope maillist - [EMAIL PROTECTED]

Re: [Zope] Zope on NT - port problem

2000-06-14 Thread Rik Hoekstra
- - wrote: Hi all How do I customise the port number that Zope installs to? I'm running NT and there is already a service running on the default port 8080. The easiest way is to tweak z2.py in your zopehome directory. It is heavily commented; this shouldn't be a problem. Also, is

Re: [Zope] Accessing Superclass methods?

2000-06-14 Thread Rik Hoekstra
Nils Jeppe wrote: Hello, I have yet another question (sorry to spam y'all).. How do I call a ZClass'es superclasses' methods in dtml? :-) They're automatically available Rik ___ Zope maillist - [EMAIL PROTECTED]

Re: [Zope] Accessing Superclass methods?

2000-06-14 Thread Rik Hoekstra
Nils Jeppe wrote: On Wed, 14 Jun 2000, Rik Hoekstra wrote: How do I call a ZClass'es superclasses' methods in dtml? :-) They're automatically available not if I overwrite them... In Java I think you can do somethink like call super.method(). You can't from dtml as far

Re: [Zope] Could not lock database file

2000-06-14 Thread Rik Hoekstra
kwan wrote: Hi, I am setting up pcgi with IIS. I got the following error: Zope Error zope has encountered an error while publishing this resuource exceptions.ImportError (,'Could not locak the database file. There must be \012another proccess that has opened the file.\012 ')

Re: [Zope] sequence-item as a method argument

2000-06-14 Thread Rik Hoekstra
Hello again I´m still testing the usability and reliability of Zope. To accomplish this goal I am developing a very very simple shopping cart. But I got troubled by something aparently simple. This is the code: dtml-in "SESSION['cartItems']" dtml-in

Re: [Zope] Simple tabular data. Do I need SQL?

2000-06-15 Thread Rik Hoekstra
On my web site, I have made a "News" page. The "News" items themselves are listed as a "lines"-property named "Items" on the News folder: date1;text1 date2;text2 ... They are accessed in a dtml-method: dtml-var standard_html_header h2dtml-var title/h2 DL dtml-in Items

Re: [Zope] Virtual hosts: How to make proper intra-site URL's?

2000-06-15 Thread Rik Hoekstra
Thanks to a nice access rule, both the left and right names can be used to refer to the information. So far so good. I have not been able to produce this effect using either BASE0..N or URL0..N. Help? You probably need the SiteAccess product by Evan Simpson to do this. It is at

Re: [Zope] left(string) equivalent

2000-06-16 Thread Rik Hoekstra
snip sql questions I can't answer If it can't be done in the query, and I have to get the whole string in the sql method and slice it later, I can live with that, but then I have another problem: I let the wizard create a report for me and it gave me results that include: tr

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

2000-06-18 Thread Rik Hoekstra
I discovered something bizarre that happens in my 2.1.4 and 2.2b1 installations. Bizarre, yes, unusual, no. I have a ZClass based on ObjectManager. In an instance of the ZClass, I can "Add" most of the available objects (DTML Documents, DTML Methods, User Folder, MailHost to name a few).

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

2000-06-19 Thread Rik Hoekstra
Ron Bickers wrote: On Sun, 18 Jun 2000, Rik Hoekstra wrote: This is not so easy to answer. ZClasses do strange things to adding items. If your ZCLass definition (in the Product) is nested in another ZClass, then it is your ZClass. If the ZClass definition is defined in the top level

Re: [Zope] PropertyIds

2000-06-19 Thread Rik Hoekstra
I have a very simple documentclass in very simple structure in method that should return the properties of the document: dtml-call "REQUEST.set('tid', REQUEST.cookies['careermanid'])" dtml-with RESULTS // RESULTS is a ZClass Object Manager dtml-call "REQUEST.set('tmp',

Re: [Zope] PropertyIds

2000-06-19 Thread Rik Hoekstra
Thanks Rik it works. I've noticed in some cases that one puts empty brackets at the end of certain zope object methods. Is that there for methods that can take parameters? [rh]Um, not quite, it has to do with the way of calling the object methods in question. DTML has two ways of calling:

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

2000-06-19 Thread Rik Hoekstra
Hm, this is getting hard to answer. Adding normal instances of ZCLasses to other ZClasses should work. Are you adding everything straight from the management interface or programmatically from DTML? If from the management interface, are you sure you always add TinyTable etc from within the

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

Re: [Zope] Internationalization 2nd post

2000-06-20 Thread Rik Hoekstra
How are my fellow Zopers handling Internationalization, especially text. 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

Re: [Zope] scared

2000-06-20 Thread Rik Hoekstra
I have reinstalled zope and zodb, and copied the data.fs across. It was about two days old. All the changes that I had made were gone. Luckily I made a backup of my app yesterday by exporting it. I must have a bad understanding of how this works. I had imagined that everytime I hit

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

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

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] Workaround and a tree and dtml-in problem

2000-08-18 Thread Rik Hoekstra
-Original Message- From: Chris Withers [EMAIL PROTECTED] To: Phil Harris [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: vrijdag 18 augustus 2000 14:44 Subject: [Zope] Workaround and a tree and dtml-in problem Phil Harris wrote: Why isn't _ available in the tree tag?

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

  1   2   >