Hello, I am new to Zope and DTML. I am trying to use a python script to call a Z SQL method. The python script also has a list that dtml-in inside the ZSQL method interates over. so my python script: -python script words = ['one', 'two'] context.REQUEST.set('wordlist', wordlist) rs =
thanks you all!! This helped a lot!Tino Wildenhain [EMAIL PROTECTED] wrote: J Cameron Cooper schrieb: Alric Aneron wrote: Hello, I am new to Zope and DTML. I am trying to use a python script to call a Z SQL method. The python script also has a list that over. so my python script: -python
hello, I have a python code that recieves two result objects from two different ZSQL methods. I need to join them (sort of like UNION). I can't do result1+result2, otherwise it raises an exception that the + operator isn't supported. When I try to do this (read below, I explained what i've done if
Thank you sir! Sorry, I am very new to python. It's quite unlike other languages. Happy new year! AlDavid H [EMAIL PROTECTED] wrote:Alric Aneron wrote: hello, I have a python code that recieves two result objects from two different ZSQL methods. I need to join them (sort of like UNION). I
Hello, I am trying to find how to get the relative path of an object. If i do: dtml-in "objectValues('DTML Document')" dtml-var URLPATH0 /dtml-in URLPATH0 does not give me the relative path of the objects interated, but rather the path of the object doing the iterating (my method). I want the
thats exactly what I need, thank you!David H [EMAIL PROTECTED] wrote:Alric Aneron wrote:Hello, I am trying to find how to get the relative path of an object. If i do: dtml-in "objectValues('DTML Document')" dtml-var URLPATH0 /dtml-inURLPATH0 does not give me the rel
Hello, I was wondering if there is a way to store a global variable on the server, and have such variable be easily retrieved in Zope dtml/python methods. I want to make my own login system with sessions. And store session ID on the server and cookie to identify logged in users. Is there an easy
Hello,I see I can only execute python functions in external methods. Is there any way to execute the whole file, not just a certain function? In linux I created a python script, and it doesn't have functions. I just want to execute the whole file. I tried using "self" or "init" for function names
thanks guys, I'll tryAndreas Jung [EMAIL PROTECTED] wrote: --On 28. Februar 2006 20:26:13 -0500 Jonathan <[EMAIL PROTECTED]> wrote: python has a command called 'commands' which can be used for executing bash commands.talk about modules, not commands.-aj
Bring photos to life! New
Hi guys, HOW HOW HOW HOW!!! Do I get at the last_insert_id() function, this is driving me absolutely crazy!! Zope docs say use "select last_insert_id()" but it doesn't work, gives me an error about bad SQL syntax around "LIMIT 1000". I tried googling it, I tried searching through other docs. And
Hello,Is there a way in Zope to forward a request from one page to another. When I say "forward" a request, I want to retain all the GET and POST request parameters. So similar to dtml-call expr="RESPONSE.redirect('...')" but response.redirect loses all the request parameters.I've been looking
:AlricAneronTo: email@example.comSent: Thursday, June 08, 2006 4:22PM Subject: [Zope] dtml forwardingrequest Hello,Is there a way in Zope to forward a request from onepage to another. When I say "forward" a request, I want to retain allthe GET and PO
just sends a request to methodB, which does some processing and sends the results back to methodA for final processing/display). It's kind of hard to guess what would be best without knowing more about the application(s).Jonathan - Original Message -From:AlricAneron
I have a ZSQL Method, which is called by my python
However, I am curious as to what type of object is
returned when that call is made.
It's some sort of a recordset (or resultset) object
that behaves like a list...it doesn't seem to be a
dictionary object though, but I can't find
Hello,I have a dictionary object and a result set object (that was returned from a ZSQL method). Is there any way I can merge them into one variable and use them in a dtml-in statement?Thanks in advance.
Yahoo! Sports Fantasy Football 06 - Go with the leader.
Start your league today!
in advance guys!Andreas Jung [EMAIL PROTECTED] wrote: --On 19. Juni 2006 09:16:23 -0700 Alric Aneron
<[EMAIL PROTECTED]> wrote: Hello, I have a dictionary object and a result set object (that was returned from a ZSQL method). Is there any way I can merge them into one variable and us
Hello,I am looping through a list of dictionary objects using dtml-in...and within the dtml-in body I have:dtml-var "_.getitem('sequence-item')['titled']" missing="none"Some of the dictionaries in the list don't have 'titled' key so it should replace it with the word "none", but it gives me an
pretty ugly. Another approach would be to clean up the data in your list/dicts within the python script, before you get to the dtml method. Jonathan - Original Message -----From:AlricAneronTo: firstname.lastname@example.orgSent: Monday, June 19, 2006 2:46 PM Subject: [Zope] di
I have a custom product that has a ZFile as its base class. I tried importing
the file on the upgraded platform, but I got the Operation not supported
error. I have a ton of these objects that show up as broken. Question: I
still have my old Zope server running, is it possible to
Mail list logo