[Zope] Please help with DTML-in (newbie)

2005-12-28 Thread Alric Aneron
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 =

Re: [Zope] Please help with DTML-in (newbie)

2005-12-29 Thread Alric Aneron
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

[Zope] Help with Zope Python result object please!

2005-12-30 Thread Alric Aneron
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

Re: [Zope] Help with Zope Python result object please!

2005-12-30 Thread Alric Aneron
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

[Zope] newbie dtml-in question objectValues

2006-01-10 Thread Alric Aneron
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

Re: [Zope] newbie dtml-in question objectValues

2006-01-11 Thread Alric Aneron
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

[Zope] Zope background variables

2006-01-12 Thread Alric Aneron
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

[Zope] External Methods newbie question

2006-02-28 Thread Alric Aneron
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

Re: [Zope] External Methods newbie question

2006-02-28 Thread Alric Aneron
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 Yahoo! Mail Bring photos to life! New

[Zope] LAST INSERT ID driving me crazy

2006-04-30 Thread Alric Aneron
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

[Zope] dtml forwarding request

2006-06-08 Thread Alric Aneron
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

Re: [Zope] dtml forwarding request

2006-06-08 Thread Alric Aneron
:AlricAneronTo: zope@zope.orgSent: 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

Re: [Zope] dtml forwarding request

2006-06-08 Thread Alric Aneron
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

[Zope] Zope Recordset Object

2006-06-16 Thread Alric Aneron
Hello, I have a ZSQL Method, which is called by my python script. 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

[Zope] converting Dictionary to Result

2006-06-19 Thread Alric Aneron
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!

Re: [Zope] converting Dictionary to Result

2006-06-19 Thread Alric Aneron
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

[Zope] dictionary from sequence-item

2006-06-19 Thread Alric Aneron
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

Re: [Zope] dictionary from sequence-item

2006-06-19 Thread Alric Aneron
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: zope@zope.orgSent: Monday, June 19, 2006 2:46 PM Subject: [Zope] di

[Zope] Quesiton about retrieving the base object

2007-07-21 Thread Alric Aneron
Hello, 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