RE: [Zope] 2.3 and Products

2001-01-26 Thread Max Møller Rasmussen
From: Chris McDonough [mailto:[EMAIL PROTECTED]] This is not true. The behavior is the same as before... the plans to make restart optional were waylaid by complications. ;-( Another thing with products. Whenever I do a referesh with the refresh tab, another instance of the product shows up

RE: [Zope] Editors [OT]

2001-01-25 Thread Max Møller Rasmussen
From: Chris Withers [mailto:[EMAIL PROTECTED]] Hmmm... interesting, maybe it's time to find a new editor... Try www.ultraedit.com . It's not free, but it ain't expensive, and I use it 12 hours/day with joy. Has only crashed on me twice in 4 years. regards Max M

RE: [Zope] Getting an object from it's id

2001-01-23 Thread Max Møller Rasmussen
From: Geoff Armstrong [mailto:[EMAIL PROTECTED]] In DTML there doesn't seem to be a way of saying, "I have this string with the name of an object, now fetch me the object." Shure there is: dtml-var "some_container_object[remote_id].title" As far as I remember. regards Max M A snippet I use

RE: [Zope] Zope Versus Enhydra Comparison article

2001-01-17 Thread Max Møller Rasmussen
From: Ron Bickers [mailto:[EMAIL PROTECTED]] Using Zope we knew that we would reach situations which may be unresolvable in the short term, and could not make significant business decisions with so many unknown factors and lack of any way to circumvent problems. What in the world does that

RE: [Zope] Zope Versus Enhydra Comparison article

2001-01-17 Thread Max Møller Rasmussen
From: Chris Withers [mailto:[EMAIL PROTECTED]] problem. Zope is more closed in that regard. Well anyways when you know enough about Zope to make a hack, you probably also know how to do it the right way. Sadly, that's true, but changing I think... Oh don't misunderstand me. I am just about

RE: [Zope] Form data type coercion syntax and javascript

2001-01-17 Thread Max Møller Rasmussen
From: Mayers, Philip J [mailto:[EMAIL PROTECTED]] Not a problem per-se, just a query - how are people dealing with things like this: snipped lots of stuff... Anything more elegant? I don't know if it is something like this you mean: self.document.form['test:list'].value = 'stuff to fill in';

RE: [Zope] ZClasses meet PythonScripts, sample request

2001-01-16 Thread Max Møller Rasmussen
From: Timothy Wilson [mailto:[EMAIL PROTECTED]] You have id as a form variable. You will be disappointed by its behavior. Care to elaborate on the problems with using id as a form variable. You can be easily bitten by acquisition on this. If you call a dtml-method that wants to use your

RE: [Zope] My Add list is so full...

2001-01-16 Thread Max Møller Rasmussen
From: Francois-regis Chalaoux Since long time ago I have this reflexion. Now I have installed so many thing in Zope the add list combobox is huge : There are too many meta-type item in add list. Is is possible to organize sublist of meta-type into products sublist ? aha ... Max M's law $1:

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

2001-01-15 Thread Max Møller Rasmussen
I have installed zope on port 8080 on a win 2K machine. It runs nicely, but due to firewalls and other reasons it has to run on port 80. So I have added zope.pcgi etc. to the IIS. And it runs nicely. But when I try to use a manage page I cannot log in without being a member of the win2K domain,

RE: [Zope] Design Q: Product vs. External Methods

2001-01-15 Thread Max Møller Rasmussen
From: Oleg Broytmann [mailto:[EMAIL PROTECTED]] I can assure it is. I run zope.net.ru in debug mode, and did debugging of an External Method that draw the left column. After I modified the source file Zope reread it, sure. I have never had problems with that either. It autorefreshes nicely.

RE: [Zope] MySQLDA and images beeing corrupted

2001-01-12 Thread Max Møller Rasmussen
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Any ideas? I feel like I am *so* close to making this work! It sounds like you have some sort of escape problem, with special characters being handled as text. Don't you have to treat the image as text when inserting them into mySQL and then

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

2001-01-10 Thread Max Møller Rasmussen
From: Andrei Belitski [mailto:[EMAIL PROTECTED]] I add a list property to a DTML document of type 'tokens' (e.g. '[1, 2, 3]') wenn i try to retrieve it with _.getitem i get '[1,' '2,' '3]' instead of '1' '2' '3' How can I get Zope to interpret my property like a list not a string or whatever

RE: [Zope] Design/DTML question

2001-01-10 Thread Max Møller Rasmussen
From: Timothy Wilson [mailto:[EMAIL PROTECTED]] Right now, I've got the dates stored in a TinyTable. I can iterate through that list and generate the links, but I can't figure out how to display the table in two columns. table width=100% border=0 cellpadding=4 tr align=left valign=top dtml-in

RE: [Zope] [Newbie] Can Zope ...

2001-01-09 Thread Max Møller Rasmussen
From: Smith Ray [mailto:[EMAIL PROTECTED]] The cost thrown up in the air was in the order of $AUS20,000 for a 3 year rental, per site (At the moment that is about $US35,000) When you start talking dozens of sites you quickly start looking for alternatives! Zope can easily do most all of

[Zope] Multiple select boxes saves selected id's even though the Objectsare deleted. are deleted.

2001-01-09 Thread Max Møller Rasmussen
I have a zClass with a multiple selection. The selected items are selected from a list of id's from a folder. They are then saved in the zClass as a list of strings. But when one of the selected items on the folder is deleted the id is still in the zClass. Naturally it should be deleted from

RE: [Zope] Job listings?

2000-12-22 Thread Max Møller Rasmussen
From: Jiva DeVoe [mailto:[EMAIL PROTECTED]] Is it inappropriate to post a job listing looking for Zope knowledgable coders on this list? I don't see anything in the list charter about it, but I don't want to be rude. Let me know! Thanks! It happens from time to time, and I have seen no

[Zope] Dreamweaver, webdav and Zope

2000-12-15 Thread Max Møller Rasmussen
I have just upgraded to DreamWeaver 4.0. Lo and behold, it has webDav support. I can open the site in DreamWeaver and it looks just great. It would be a really, I mean REALLY, nice management interface for Zope. Two problems though: 1) I cannot open my dtml methods in Dreamweaver as they

RE: [Zope] Indirect addressing

2000-12-07 Thread Max Møller Rasmussen
From: Ragnar Beer [mailto:[EMAIL PROTECTED]] + myfolder index_html my_external_method dtml_method_1 dtml_method_2 ... In index_html I want to include either dtml_method_1 or dtml_method_2, ... (one method for every week of year). my_external_method tells me

RE: [Zope] Zope Beginner

2000-12-06 Thread Max Møller Rasmussen
From: Mark A. Pappas [mailto:[EMAIL PROTECTED]] after the -D. In the start.bat. I tried all kinds of things and never was able to get zope up on port 80 as a web server (www.whatever.com_ or XXX.XXX.XXX.XXX). What am I missing? Your approach sound about right. Perhaps you are running another

RE: [Zope] Simple site - hard to make ?

2000-12-05 Thread Max Møller Rasmussen
From: Michael Jenner [mailto:[EMAIL PROTECTED]] Is this easy to do in Zope or ?? VERY easy if you know how. But it also depends on you abilities Regards Max M ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope **

RE: [Zope] How to use newline_to_br?

2000-12-04 Thread Max Møller Rasmussen
From: Roland C. Reumerman [mailto:[EMAIL PROTECTED]] - in the response method there is a dtml-var data fmt="newline_to_br" You are allmost there: dtml-var data newline_to_br Should do it for you Regards Max M ___ Zope maillist - [EMAIL

RE: [Zope] The not-very-Super user

2000-12-04 Thread Max Møller Rasmussen
From: Brian Lloyd [mailto:[EMAIL PROTECTED]] Yes - the whole lame login-as-superuser-create-a-manager-and-relogin process will be gone in 2.3. At install time you'll create a first manager and just use that. A "superuser" will not even exist, unless and until you need it and explicitly create

RE: [Zope] Search and replace

2000-11-20 Thread Max Møller Rasmussen
From: Martin Winkler [mailto:[EMAIL PROTECTED]] Another thought: If Zope would offer s/r, then a bunch of programmers would stick in their bad behaviour _not_ implementing dtml-var's, because "it's easy and effortless to replace everything from 'Copyright 2000' to 'Copyright 2001'". But think of

RE: [Zope] ZClasses on top of my Python classes?

2000-11-15 Thread Max Møller Rasmussen
From: Randall Kern [mailto:[EMAIL PROTECTED]] I've seen several doc tidbits suggesting one create ZClasses derived from their Python classes, sticking all the biz logic in the python classes, and the presentation in the ZClasses... Could someone provide some insight into why this is better

[Zope] Test - Is both the maillist and www.zope.org down?

2000-11-13 Thread Max Møller Rasmussen
??? ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )

RE: [Zope] Dump .zexp export to readable source?

2000-11-08 Thread Max Møller Rasmussen
From: Robin Becker [mailto:[EMAIL PROTECTED]] zClasses are not written in Python so there is no code to see. Except fot the dtml code and you can see that when you have imported a zClass product. ... I disagree strongly. Many of the useful coding tools need line oriented Ascii text; where is

RE: [Zope] asked a million times again...

2000-11-08 Thread Max Møller Rasmussen
Okay, I got the dtml-var filename to work right assuming that that files are arranged properly according to aquistion, but then when I try to get the file from another folder like dtml-var "folder.filename" It displays the code of that page rather thatn recognizing that it is

RE: [Zope] Can't delete products

2000-11-08 Thread Max Møller Rasmussen
From: Stephan Goeldi [mailto:[EMAIL PROTECTED]] I deleted some products in Control_Panel several times. Some are gone (ok), some stay and seem to be undeletable. I'm sure someone shows me the way to delete it from the command line (it's Zope 2.2.2 on RedHat Linux). You should also delete the

RE: [Zope] Asked a million times already... Im sure

2000-11-06 Thread Max Møller Rasmussen
From: Chris Trowbridge [mailto:[EMAIL PROTECTED]] I know that many people have probobly already asked this, but how would I do the equivilant of a server side include? It seems obvious enough from examples that it is merely... dtml-var filename but I always end up with either blank

RE: [Zope] Combining products

2000-11-05 Thread Max Møller Rasmussen
From: Anders Eriksson [mailto:[EMAIL PROTECTED]] I would like to have the membership and the other parts from PTK added to the Squishdot (or the other way around - which ever is easiest). I am afraid that there is no easy way of doing that. It would be like combining any other 2 applications.

RE: [Zope] PHP and Zope

2000-11-03 Thread Max Møller Rasmussen
If you want to you could just use Apache as a front end server serving php pages, and as a proxy to Zope. That way you can have the best of both worlds. But I would recommend using Zope, as you will have far greater possibilities for re-use of your code. Regards Max M -Original

RE: [Zope] My Items will not show themself in manage_main (objectItems)

2000-11-01 Thread Max Møller Rasmussen
From: Ender [mailto:[EMAIL PROTECTED]] First os all. Thank you for the patience. I know it is boring to "Solve other peoples problems for them", but I am really trying hard myself, reading the source of Zope and other products. It's just such a steap learning curve because it is

[Zope] How do I change dtml template on the fly in Python product?

2000-10-27 Thread Max Møller Rasmussen
I have asked this question somewhat differently in another thread but here I go again from another angle, as it might have been my approach that was wrong to begin with. I have a Python product that allready does what I want it to, but I want to be able to create different views of the products

[Zope] How to render a HTMLFile in a method in a product

2000-10-26 Thread Max Møller Rasmussen
I would have thought that the two examples below where equivalent but only the top one works like expected. (It renders the page.) The second one just shows the source of the vanilla dtml page. -- test = HTMLFile('vanilla', globals()) -- def test(self): "A simpe test method"

RE: [Zope] How to render a HTMLFile in a method in a product

2000-10-26 Thread Max Møller Rasmussen
From: Chris Withers [mailto:[EMAIL PROTECTED]] Thanks for the reply testisDocTemp = 1 def test(self,ignored,md): " A simple test method " return HTMLFile('skins/' + self.skin, globals())(None,md) Is this documented anywhere? I have a little trouble using code I don't understand.

[Zope] How should a collection be in a Python product if i want to traverse it with dtml-inrse it with dtml-in

2000-10-25 Thread Max Møller Rasmussen
This is a question I guess has something to do with popping an object onto the namespace, or about me not understanding how stuff works. When I make a list of objects: class simple: def __init__(self, value): self.value = value theList = [simple(1), simple(2), simple(3), simple(4)]

RE: [Zope] Updating auto incrementing counter in a propertysheet

2000-10-24 Thread Max Møller Rasmussen
From: Bill Anderson [mailto:[EMAIL PROTECTED]] Is it more important that they be in an order, or that they be in a specific sequential list? Actually what is important is that they are integers and in a specific order. So the datestamp method isn't that feasible for me. (I'm trying to make a

[Zope] How do you guys/gals test Zope products from Python?

2000-10-24 Thread Max Møller Rasmussen
I am using Zope and Python 1.5.2 on Win2000. I guess that it is a fairly simple setup. My Zope site is in a folder called c:\mxmZope, and my vanilla Python is in C:\Program Files\Python. usually when I write Python I just use PythonWin to edit and run my scripts. I then write test in the buttom

RE: [Zope] NEWBIE: assign next free ID automatically

2000-10-23 Thread Max Møller Rasmussen
This is untested, but an idea: dtml-in "objectValues()[:-1]" sort=id reverse dtml-call "REQUEST.set('new_id', id+1)" dtml-var new_id It is still subject to failure if 2 or more processes are writing an article in the same time. Furthermore it has to find and sort all the items in the folder.

[Zope] Updating auto incrementing counter in a propertysheet

2000-10-23 Thread Max Møller Rasmussen
What am I doing wrong here ... please !! I am trying to make an autoincrementing counter for use in a diskussion forum. It's purpose is to autogenereate id's for new messages. It is important that the id's are in order, so I need to make them this way. I have a zClass (objectmanger) with a

RE: [Zope] Animated GIFs

2000-10-10 Thread Max Møller Rasmussen
From: Lars Heber [mailto:[EMAIL PROTECTED]] Sorry, I think you misunderstood me! I _don't_ want to stop the gif, but it does after the last frame! -- Now I tried the same Zope page in NS and IE, this phenomenon appears only with NS... I did understand you, but I could not replicate your problem

[Zope] Namespace problem with the dtml-sendmail and the smtphost

2000-10-04 Thread Max Møller Rasmussen
I have a dtml method in a zClass that looks like this: dtml-sendmail smtphost=theSMTPHost To: [EMAIL PROTECTED] From: [EMAIL PROTECTED] Subject: This is a test A test!!! /dtml-sendmail "theSMTPHost" is defined as a property in the zClass. But when i use the method I get a: Error Type: error

[Zope] Sorting and accessing elements in the

2000-10-03 Thread Max Møller Rasmussen
I am making a mailer zClass where it will only be nessecary to make the form fields with the values you want to send, then the zClass will give you a reply on the webpage and send a nicely formatted e-mail. The problem is that the form elements are unknown but they need to be set up in

[Zope] Permission problem with my own zClass.

2000-09-14 Thread Max Møller Rasmussen
I have made a zClass called "newsProduct" that is articles with predefined properties. It works nicely when I am logged on as an Administrator. I can add articles. No problem. I also have a site with the following structure root news I want some users to be able to add "news" articles

[Zope] This must be a namespace problem

2000-09-08 Thread Max Møller Rasmussen
I have a site structure like this: root subfolder Then i have made a dtml document "index_html" in the "root" folder like this: html headtitletest/title/head body dtml-var content /body /html Also I have a dtml method "content" in the root folder

Re: [Zope] [Ann] Another Zope Book

2000-08-18 Thread Max Møller Rasmussen
Fra: Kapil Thangavelu [mailto:[EMAIL PROTECTED]] I think most developers are forced to learn through trial and error because the docs don't do the components justice since they tend to focus on working understanding of zope's framework from dtml. and in the end they are forced to turn to the

[Zope] Problems publishing simple object directly thru ZServer

2000-08-09 Thread Max Møller Rasmussen
-- I have made a very simple class that I am trying to publish thru ZServer: -- class hello: """A very simple publishable objet in zope""" def