Hi everyone, Does anyone know of a product that allows a zope application to programmatically create an HTTP POST to an external system? If not, would it have to be done in an external script? Any ideas? Thanks, Kevin
On Friday 21 June 2002 02:47 am, Kevin Carlson wrote:
Hi everyone,
Does anyone know of a product that allows a zope application to programmatically create an HTTP POST to an external system? If not, would it have to be done in an external script? Any ideas?
Thanks,
Kevin
KebasData is advertised to do that, apart from some other altho, it's minimally tested. if you're game, give it a shot http://www.zope.org/Members/kedai/KebasData
_______________________________________________ Zope maillist - Zope@zope.org 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 )
-- http://www.kedai.com.my/ http://www.kedai.com.my/eZine http://www.zope.org/Members/kedai http://www.my-zope.org Am I Evil?
Hi, I have a table in Gadly that needed to extra fields. I couldn't find any 'ALTER TABLE' statement and since the current data wasn't very important, I dropped the table and recreated it with the extra fields. However, this didn't work as planned, ever since I get an error when I try to insert data with the new fields set: Error, exceptions.NameError: ['FIELD1', 'FIELD2', 'FIELD3', 'FIELD4']: not set in insert on TABLE where TABLE is my table and FIELD1..4 are the new fields. I checked the source code where the exception is thrown and it seems that some part of Gadfly is still working with the old definition it says ### for now all attributes must be in colset. Any ideas? Douwe Osinga
on or about, Friday, June 21, 2002, we have reason to believe that douwe@oberon.nl wrote something along the lines of : don> Hi, don> I have a table in Gadly that needed to extra fields. I couldn't find any don> 'ALTER TABLE' statement and since the current data wasn't very important, I don> dropped the table and recreated it with the extra fields. However, this don> didn't work as planned, ever since I get an error when I try to insert data don> with the new fields set: don> Error, exceptions.NameError: ['FIELD1', 'FIELD2', 'FIELD3', 'FIELD4']: not don> set in insert on TABLE don> where TABLE is my table and FIELD1..4 are the new fields. don> I checked the source code where the exception is thrown and it seems that don> some part of Gadfly is still working with the old definition it says ### for don> now all attributes must be in colset. don> Any ideas? The reason you cannot alter tables in Gadfly is that it does not support NULLs.. (one of it biggest shortcomings, IMHO) Seems to me you are using an old insert method that does not set those new columns to anything, and as Gadlfy cannot (as other RDBMSes would) just insert NULLs there , it chokes and gives you an error instead.. Check the method in from which you try to do the insert, and make sure you give a value for each of the new columns.. :) -- Geir Bækholt web-developer geirh@funcom.com funcom oslo | webdev-team
Hi,
The reason you cannot alter tables in Gadfly is that it does not support NULLs.. (one of it biggest shortcomings, IMHO)
Seems to me you are using an old insert method that does not set those new columns to anything, and as Gadlfy cannot (as other RDBMSes would) just insert NULLs there , it chokes and gives you an error instead..
Check the method in from which you try to do the insert, and make sure you give a value for each of the new columns..
Yes, something like it. I forgot to update the fieldname list of the insert part. Thanks. Douwe
I've used calls to the urllib library in external Python scripts quite successfully. Chris On Fri, 21 Jun 2002, Bakhtiar A Hamid wrote:
On Friday 21 June 2002 02:47 am, Kevin Carlson wrote:
Hi everyone,
Does anyone know of a product that allows a zope application to programmatically create an HTTP POST to an external system? If not, would it have to be done in an external script? Any ideas?
Thanks,
Kevin
KebasData is advertised to do that, apart from some other altho, it's minimally tested. if you're game, give it a shot
http://www.zope.org/Members/kedai/KebasData
_______________________________________________ Zope maillist - Zope@zope.org 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 )
--
http://www.kedai.com.my/ http://www.kedai.com.my/eZine http://www.zope.org/Members/kedai http://www.my-zope.org Am I Evil?
_______________________________________________ Zope maillist - Zope@zope.org 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 )
Kevin Carlson writes:
Does anyone know of a product that allows a zope application to programmatically create an HTTP POST to an external system? If not, would it have to be done in an external script? Any ideas? "ZPublisher.Client" in an External Method...
Dieter
participants (6)
-
Bakhtiar A Hamid -
Chris Gray -
Dieter Maurer -
douwe@oberon.nl -
Geir B�kholt -
Kevin Carlson