[Zope] dtml-in sql => dtml-in anything?

2001-01-23 Thread Joh Johannsen
Is it possible to replace an existing ZSQL method with an identical Python External Method that behaves exactly the same way? So if I have a ZSQL method "GetThingFromDB" got a Can I replace "GetThingFromDB" with a Python External Method? I've discovered that if I return a list, then that l

Re: [Zope] stupid file upload question

2000-12-14 Thread Joh Johannsen
Dieter Maurer wrote: > Joh Johannsen writes: > > What sort of object is this "REQUEST.form['attached_file']"? Is there some > > way to find out this sort of thing when you have a Python object? (I'm new > > to Python) > It is a "

Re: [Zope] stupid file upload question

2000-12-14 Thread Joh Johannsen
y of): "In you python external method you can now reference REQUEST.form['attached_file'] as a normal file. You can perform things such as read() on the object. " This makes it seem like whatever is necessary, it is very easy, but there's some detail that I am missing. Mayb

[Zope] stupid file upload question

2000-12-13 Thread Joh Johannsen
OK, there is a How-To on that, which is helpful, by benno But it says: "In you python external method you can now reference REQUEST.form['attached_file'] as a normal file. You can perform things such as read() on the object. " Now in my Python external method, I can referen

Re: [Zope] Help! publishing Images from a Database

2000-12-07 Thread Joh Johannsen
This works with mysql: 1. make mysql table with a LONGBLOB field for holding the image, suppose you make it a field called "imageData" 2. in your DTML, do this (assume getImage gets the image you want) The retrieve, etc. things you mentioned are just sql, displaying it is the tricky part