Re: [Zope] Not grocking RESQUEST.set syntax
On Thu, 26 Oct 2000, Noah wrote: > I'm still not grocking the syntax for setting REQUEST fields. > I want to set a REQUEST field "filename" to be the value returned > by a ZSQL call. I want something like this (pseudo-code of what I want): > > > > > > > That does not work because FOO gets set to something like: > I think your simplest option is to use: All that _.Non, _ stuff is the namespace etc that Zope normally passes to your methods. (I don't fully understand it, I just know it works :) > I tried sticking this inside to get > at the sequence-item, but I just ended up getting confused. > > Yours, > Noah > Have a better one, Curtis. ___ 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] Not grocking RESQUEST.set syntax
Noah wrote: > > I'm still not grocking the syntax for setting REQUEST fields. > I want to set a REQUEST field "filename" to be the value returned > by a ZSQL call. I want something like this (pseudo-code of what I want): > > > > > > > That does not work because FOO gets set to something like: > > I tried sticking this inside to get > at the sequence-item, but I just ended up getting confused. thats because you're working on the results returned by a zsql method which is a result object, you want access to values within it. try this returns the list of dictionaries that represent rows in the table, with column names as keys and column values as values. you can reference lib/python/Shared/DC/ZRDB/Results.py for more info on the results object kapil ___ 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 )
[Zope] [Fwd: [Zope] Not grocking RESQUEST.set syntax]
Try: This assumes that MyFavoiteZSQLMethod returns the variable filename Dan Noah wrote: > > I'm still not grocking the syntax for setting REQUEST fields. > I want to set a REQUEST field "filename" to be the value returned > by a ZSQL call. I want something like this (pseudo-code of what I want): > > > > > > > That does not work because FOO gets set to something like: > > I tried sticking this inside to get > at the sequence-item, but I just ended up getting confused. > > Yours, > Noah > > ___ > 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] Not grocking RESQUEST.set syntax
try -Original Message- From: Noah <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Thursday, 26 October 2000 09:01 Subject: [Zope] Not grocking RESQUEST.set syntax >I'm still not grocking the syntax for setting REQUEST fields. >I want to set a REQUEST field "filename" to be the value returned >by a ZSQL call. I want something like this (pseudo-code of what I want): > > > > > > >That does not work because FOO gets set to something like: > >I tried sticking this inside to get >at the sequence-item, but I just ended up getting confused. > >Yours, >Noah > > >___ >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 ) ___ 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 )
[Zope] Not grocking RESQUEST.set syntax
I'm still not grocking the syntax for setting REQUEST fields. I want to set a REQUEST field "filename" to be the value returned by a ZSQL call. I want something like this (pseudo-code of what I want): That does not work because FOO gets set to something like: I tried sticking this inside to get at the sequence-item, but I just ended up getting confused. Yours, Noah ___ 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 )