Re: [Zope] dynamically call zsqlmethod

2009-11-25 Thread Garry Saddington
Jeff Peterson wrote: > IF it's a variable passed to the script wouldn't you simply access it as > 'column'? > > Also, is it a variable or a function? Or is the variable the name of a > function somewhere? > > If it's the former just call it: column(). > > If it's the latter, Andreas should be

Re: [Zope] dynamically call zsqlmethod

2009-11-25 Thread Jeff Peterson
IF it's a variable passed to the script wouldn't you simply access it as 'column'? Also, is it a variable or a function? Or is the variable the name of a function somewhere? If it's the former just call it: column(). If it's the latter, Andreas should be correct, getattr(context, column)() or

Re: [Zope] dynamically call zsqlmethod

2009-11-25 Thread Andreas Jung
getattr(context, column)()? -aj On Wed, Nov 25, 2009 at 19:53, Garry Saddington wrote: > I am passing a variable named 'column' to the following script and > trying to fill a select box with the result of a zsqlmethod chosen > dynamically using this variable. > > print "" > command=context.c

[Zope] dynamically call zsqlmethod

2009-11-25 Thread Garry Saddington
I am passing a variable named 'column' to the following script and trying to fill a select box with the result of a zsqlmethod chosen dynamically using this variable. print "" command=context.column() for row in command: code=row.code meaning=row.meaning print """%s""" &(code

Re: [Zope] Get raw data (byte array) from flash in Zope

2009-11-25 Thread Dragos Chirila
The data is actually received by Zope, but its broken into "pieces". Please find a sample of the REQUEST.form here http://media.fourhooks.ro/request_form.jpg Any hints on how to put the image back together? On Wed, Nov 25, 2009 at 4:58 PM, Dragos Chirila wrote: > Doesn't work: AttributeError:

Re: [Zope] Frequent ZOPE crashes

2009-11-25 Thread Jaroslav Lukesh
At first, try to eliminate error outside of the Zope itself. Try to install it all into plain whole new (and reliable!) machine. Do not use restore of any backups! - Original Message - From: "Andreas Krasa" > A week ago we switched to a new layout (for corporate reasons) and now > we'

[Zope] Frequent ZOPE crashes

2009-11-25 Thread Andreas Krasa
Hello Mailinglist, we've been using ZOPE in combination with the Silva CMS for around four years now to serve our University's homepage. And everything worked fine so far. A week ago we switched to a new layout (for corporate reasons) and now we're experiencing frequent crashes of the Zope server

Re: [Zope] Get raw data (byte array) from flash in Zope

2009-11-25 Thread Dragos Chirila
Doesn't work: AttributeError: BODYFILE On Wed, Nov 25, 2009 at 1:59 PM, Stefan H. Holek wrote: > Try REQUEST.BODYFILE > > > On 25.11.2009, at 12:30, Dragos Chirila wrote: > >> The question is: how can I get this data on the server side in Zope? >> Becasue: >> >> - REQUEST.form is empty >> - HTTP

Re: [Zope] Get raw data (byte array) from flash in Zope

2009-11-25 Thread Stefan H. Holek
Try REQUEST.BODYFILE On 25.11.2009, at 12:30, Dragos Chirila wrote: > The question is: how can I get this data on the server side in Zope? > Becasue: > > - REQUEST.form is empty > - HTTP_RAW_POST_DATA is missing > - there is no other key or value in the REQUEST to indicate the value > I am loo

[Zope] Get raw data (byte array) from flash in Zope

2009-11-25 Thread Dragos Chirila
Hello everyone, I have a question about how to get raw data sent by a flash application in Zope (a zope method/function). The flash application uses the method in the link below to send to the server an image (jpg): http://www.zedia.net/2008/sending-bytearray-and-variables-to-server-side-script-