[Zope] wsgi environment variable for WebOb

2013-08-18 Thread Tamer Higazi
Hi people! I am running a small zope3 (bluebream) application, I want to get the the WSGI.environ variable as dict for the WebOb package in runtime. Can somebody tell me how to get it or in which package which method or function I need to call to get the WSGI environment variable as dict ?! I

[Zope-dev] Passing variable across pages

2011-09-21 Thread Babylakshmi Muthusamy
Hi All, I have a query page which gives multiple category results. I would like to list the categories in a intermediate page and link them to multiple pages. I have a single script which generates multiple category outputs. I would like to pass the variables for each of the categories pages

Re: [Zope-dev] Passing variable across pages

2011-09-21 Thread Andreas Jung
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Babylakshmi Muthusamy wrote: I tried by storing them in session variables. but the sessions get expired quickly. What means quickly? The timeout and the size of the session pool can be configured. So what's the point? - -aj -BEGIN PGP

Re: [Zope-dev] Passing variable across pages

2011-09-21 Thread Hanno Schlichting
On Wed, Sep 21, 2011 at 12:45 PM, Babylakshmi Muthusamy babylakshmim...@gmail.com wrote: Please suggest me a solution for this. Please post your question to the users mailing list at https://mail.zope.org/mailman/listinfo/zope This mailing list is for the development of Zope, not development

Re: [Zope-dev] Passing variable across pages

2011-09-21 Thread Joshua Immanuel
Hello Hanno, Please excuse my off-topic post. On Wed, 2011-09-21 at 13:41 +0200, Hanno Schlichting wrote: Please post your question to the users mailing list at https://mail.zope.org/mailman/listinfo/zope This mailing list is for the development of Zope, not development with Zope. As I

Re: [Zope-dev] Passing variable across pages

2011-09-21 Thread Charlie Clark
Am 21.09.2011, 16:24 Uhr, schrieb Joshua Immanuel j...@hipro.co.in: After seeing this mail, I've started to think whether I should stop cross posting in my future mails and which mailing list should I single out. Please advice. Dear Joshua, cross-posting is generally unwelcome on any mailing

Re: [Zope] delete a variable from REQUEST

2008-09-30 Thread indrajit926 indra
Hi, thanks for ur reply. My problem is, my code is like if REQUEST['usr_msg']: On Mon, Sep 29, 2008 at 1:36 PM, Tino Wildenhain [EMAIL PROTECTED] wrote: Hi, indrajit926 indra wrote: Hi All, Iam relatively new to zope. I want to delete a variable and it value from REQUEST.I used

Re: [Zope] delete a variable from REQUEST

2008-09-30 Thread indrajit926 indra
Hi, thanks for ur reply. My problem is, my code is like #code code code if REQUEST['usr_msg']: do some operations. #some code related to project my program control loops with above if condition. REQUEST is in same context. so once REQUEST stores 'usr_msg ' every time when it goes to

Re: [Zope] delete a variable from REQUEST

2008-09-30 Thread Peter Bengtsson
Just set it to None. if REQUEST['usr_msg']: do_something() REQUEST.set('usr_msg', None) Then, the next time the condition will be false. 2008/9/30 indrajit926 indra [EMAIL PROTECTED]: Hi, thanks for ur reply. My problem is, my code is like #code code code if

Re: [Zope] delete a variable from REQUEST

2008-09-30 Thread Tino Wildenhain
Hi, indrajit926 indra wrote: Hi, thanks for ur reply. My problem is, my code is like #code code code if REQUEST['usr_msg']: do some operations. #some code related to project my program control loops with above if condition. REQUEST is in same context. so once REQUEST stores

[Zope] delete a variable from REQUEST

2008-09-29 Thread indrajit926 indra
Hi All, Iam relatively new to zope. I want to delete a variable and it value from REQUEST.I used python pop() and __delattr__() ,but getting attribute error. Hoping someboby helps me. thanks , Indrajit. ___ Zope maillist - Zope@zope.org

Re: [Zope] delete a variable from REQUEST

2008-09-29 Thread Tino Wildenhain
Hi, indrajit926 indra wrote: Hi All, Iam relatively new to zope. I want to delete a variable and it value from REQUEST.I used python pop() and __delattr__() ,but getting attribute error. Actually you can't. (Not without writing a product in filesystem and getting deep into zope). Why would

Re: [Zope] Defining a Variable

2008-01-05 Thread Dieter Maurer
Victor Subervi wrote at 2008-1-4 10:59 -0400: Thank you both. However, it still doesn't work :( I have replaced getQuote with getQuote(), but to no avail. Other ideas? *Error Type: RuntimeError Error Value: external method could not be called because it is None* You see here how important it is

Re: [Zope] Defining a Variable

2008-01-05 Thread Victor Subervi
That was too wierd. I deleted the External Varible, then re-added it, and all worked well! Now, I just built this new server and transfered over the Data.fs files. Maybe that was the problem?? Thanks, Victor On Jan 5, 2008 3:11 PM, Dieter Maurer [EMAIL PROTECTED] wrote: Victor Subervi wrote at

Re: [Zope] Defining a Variable

2008-01-04 Thread Victor Subervi
Thank you both. However, it still doesn't work :( I have replaced getQuote with getQuote(), but to no avail. Other ideas? *Error Type: RuntimeError Error Value: external method could not be called because it is None* *TIA,* *Victor* On Jan 3, 2008 2:26 PM, Dieter Maurer [EMAIL PROTECTED] wrote:

Re: [Zope] Defining a Variable

2008-01-04 Thread David Bear
On Wed, Jan 02, 2008 at 02:44:24PM -0400, Victor Subervi wrote: Hi; I have this in a page template: html body table tr td tal:define=num python:here.scripts.getQuote span metal:use-macro=here/en-us/quotes/?num/macros/quote /br / div align=center span class=text a

Re: [Zope] Defining a Variable

2008-01-03 Thread Dieter Maurer
Victor Subervi wrote at 2008-1-2 14:44 -0400: ... html body table tr td tal:define=num python:here.scripts.getQuote As Andreas already has pointed out, you probably need getQuote() rather than getQuote (as the name suggests, it is a method not a value). span

[Zope] Defining a Variable

2008-01-02 Thread Victor Subervi
Hi; I have this in a page template: html body table tr td tal:define=num python:here.scripts.getQuote span metal:use-macro=here/en-us/quotes/?num/macros/quote /br / div align=center span class=text a href=quotes.pt target=_topbThe quotes/b/a /span /div /td /tr /table

Re: [Zope] Defining a Variable

2008-01-02 Thread Andreas Jung
--On 2. Januar 2008 14:44:24 -0400 Victor Subervi [EMAIL PROTECTED] wrote: td tal:define=num python:here.scripts.getQuote As in nearly all other programming languages methods are called with parentheses - or? span metal:use-macro=here/en-us/quotes/?num/macros/quote /br / Now,

Re: [Zope] Calling a Variable

2007-03-09 Thread Tino Wildenhain
Martijn Pieters schrieb: On 3/8/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I thought I could call a variable in a page template by defining it and then putting a ? in front of it in a URL, like this: Incorrect, you can only use ? to interpolate variables into a path expression: span

Re: [Zope] Calling a Variable

2007-03-09 Thread Martijn Pieters
On 3/9/07, Tino Wildenhain [EMAIL PROTECTED] wrote: I notice ZPT gets weirder and weirder... How many syntactic specialities will we add to path expressions? ;) ?var interpolation have been supported since the first checkin Evan Simpson made nearly 6 years ago, the feature has been a bit

Re: [Zope] Calling a Variable

2007-03-09 Thread Chris Withers
[EMAIL PROTECTED] wrote: Hi; I thought I could call a variable in a page template by defining it and then putting a ? in front of it in a URL, like this: html tal:define=global base_url here/baseURL; template_id string:index; here python:here.restrictedTraverse('s/c/x/root/en-us/Help')

Re: [Zope] Calling a Variable

2007-03-09 Thread Chris Withers
Tino Wildenhain wrote: I notice ZPT gets weirder and weirder... It's always been that weird ;-) If you want sanity, try Twiddler instead :-) Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk

[Zope] Calling a Variable

2007-03-08 Thread tonylabarbara
Hi; I thought I could call a variable in a page template by defining it and then putting a ? in front of it in a URL, like this: html tal:define=global base_url here/baseURL; template_id string:index; here python:here.restrictedTraverse('s/c/x/root/en-us/Help') a href=?base_url/contactus.pt

Re: [Zope] Calling a Variable

2007-03-08 Thread Andreas Jung
--On 8. März 2007 12:48:26 -0500 [EMAIL PROTECTED] wrote: Hi; I thought I could call a variable in a page template by defining it and then putting a ? in front of it in a URL, like this: How told you that? Please refer to the ZPT documentation in the Zope Book. -aj pgp85HTzxZq8q.pgp

Re: [Zope] Calling a Variable

2007-03-08 Thread Martijn Pieters
On 3/8/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I thought I could call a variable in a page template by defining it and then putting a ? in front of it in a URL, like this: Incorrect, you can only use ? to interpolate variables into a path expression: span tal:define=foo string:bar

Re: [Zope] Calling a Variable

2007-03-08 Thread eXt
Dnia czwartek, 8 marca 2007 18:48, [EMAIL PROTECTED] napisał: Hi; I thought I could call a variable in a page template by defining it and then putting a ? in front of it in a URL, like this: You messed some things. First go to google.com and look into address bar in your browser. Then enter

Re: [Zope] Calling a Variable

2007-03-08 Thread tonylabarbara
Thanks for clarifying that! Tony -Original Message- From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: zope@zope.org Sent: Thu, 8 Mar 2007 2:14 PM Subject: Re: [Zope] Calling a Variable On 3/8/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I thought I could call a variable in a page

[Zope] dtml-var variable from REQUEST not shown in input tag if it has spaces??

2005-08-04 Thread Thomas Apostolou
Hello everybody, Im using Zope 2.7.0 on Windows XP Pro. I pass some parameters from a form to a DTML method. Inside that method i try to get the parameters with dtml-var sSQL ( sSQL is the name of the submiting form's field). When i just use it as dtml-var sSQL everything is ok. When i use it

Re: [Zope] dtml-var variable from REQUEST not shown in input tag if it has spaces??

2005-08-04 Thread Tino Wildenhain
Am Donnerstag, den 04.08.2005, 11:33 +0100 schrieb Thomas Apostolou: Hello everybody, Im using Zope 2.7.0 on Windows XP Pro. I pass some parameters from a form to a DTML method. Inside that method i try to get the parameters with dtml-var sSQL ( sSQL is the name of the submiting form's

Θέμα: Re: [Zope] dtml-var variable fro m REQUEST not shown in input tag if it has spaces??

2005-08-04 Thread Thomas Apostolou
--- Tino Wildenhain [EMAIL PROTECTED] έγραψε: Yes, you should write HTML when you want HTML ;) This means, attribute values in HTML are supposed to be in (See the HTML source in your Browser when you display the page and you will know what I mean :) So, if you really want DTML here,

Re: [Zope] Passing a variable to RESPONSE.redirect

2005-07-15 Thread J Cameron Cooper
Asad Habib wrote: Is it possible to pass a variable to RESPONSE.redirect or does the page name have to be a literal string? I was unable to pass in a variable via the REQUEST object (i.e. REQUEST.get('pageName')) or the SESSION attribute of the REQUEST object (i.e.

[Zope-dev] _ (underscore) variable available in ZPublisher-only apps?

2002-01-06 Thread Michael Olivier
Is the _ variable available to ZPublisher-only apps (not full-up zope) in DTML? I've tried dtml-var _ (inserts nothing) and dtml-var _.REQUEST (AttributeError exception on REQUEST) and various other things, but haven't found anything to work. Would be nice to have access in DTML to the

[Zope-dev] Global Variable

2001-11-26 Thread Pascal Samuzeau
Hi, I've that code :

Re: [Zope] [python] creating variable names by adding 2 strings?

2001-01-22 Thread Dieter Maurer
Lee writes: I'm creating variables in python but I am having trouble creating them when they're *named* using other variables. Here's an example; while (p!=0): p+`p`= string.replace(component[control], ",", "") # e.g. I want 'p1 = string.replace.blah...'

[Zope] [python] creating variable names by adding 2 strings?

2001-01-21 Thread Lee
Hi there, I'm creating variables in python but I am having trouble creating them when they're *named* using other variables. Here's an example; while (p!=0): p+`p`= string.replace(component[control], ",", "") # e.g. I want 'p1 = string.replace.blah...' p=p-1

Re: [Zope] [python] creating variable names by adding 2 strings?

2001-01-21 Thread Steve Spicklemire
Hi Lee, You could use a dictionary for this: vars = {} while (p!=0): vars['p'+`p`] = string.replace(component[control], ",", "") p=p-1 control=control+1 then 'vars' will contain keys (e.g., 'p1', 'p2' etc.. ) and corresponding values. If that's totally not what

[Zope] Putting a variable in a redirect call

2001-01-17 Thread Yvonne Totty
All, I need to replace the URL below to a partial dtml-var and and an address, like so: dtml-call "RESPONSE.redirect('https://www.mysite.com/scripts/zope.pcgi/Anywhere/COMTemp/'+LUserOut+'.doc')" to: dtml-call "RESPONSE.redirect('dtml-var baserefW/COMTemp...blah, blah)" where baserefW

Re: [Zope] Putting a variable in a redirect call

2001-01-17 Thread Andy McKay
Please dont post in html BTW. -- Andy McKay. - Original Message - From: "Yvonne Totty" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 3:11 PM Subject: [Zope] Putting a variable in a redirect call All, I need to replace the URL below to a pa

Re: [Zope] Putting a variable in a redirect call

2001-01-17 Thread Andy McKay
Exactly as per your first example: dtml-call "RESPONSE.redirect(baserefW + '/COMTemp')" -- Andy McKay. - Original Message - From: "Yvonne Totty" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 3:11 PM Subject: [Zope] Putting a variabl

RE: [Zope] Putting a variable in a redirect call

2001-01-17 Thread Yvonne Totty
MTemp')" -- Andy McKay. - Original Message - From: "Yvonne Totty" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 3:11 PM Subject: [Zope] Putting a variable in a redirect call All, I need to replace the URL below t

RE: [Zope] Putting a variable in a redirect call

2001-01-17 Thread Max M
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Yvonne Totty I need to replace the URL below to a partial dtml-var and and an address, like so: dtml-call "RESPONSE.redirect ('https://www.mysite.com/scripts/zope.pcgi/Anywhere/COMTemp/'+LUserOut+'.do c')" to: dtml-call

Re: [Zope] Putting a variable in a redirect call

2001-01-17 Thread Andy McKay
Whats the error? -- Andy McKay. - Original Message - From: "Yvonne Totty" [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 3:57 PM Subject: RE: [Zope] Putting a variable in a redirect call Gosh darn

RE: [Zope] with a variable

2001-01-13 Thread Eric Walstad
// I want to get some properties for a zclass instance after being // passed its // id in a variable. In these tests I have been defining the varible in the // code, in the final case it will be passed through the url. // // Using the id directly as above works fine, it writes the //

Re: [Zope] with a variable

2001-01-12 Thread josh on
I want to read an zclass instances' properties. I want to make some dtml that can be passed the instances' id then give me the properties that I request. I was trying dtml-with and it worked when I plugged the id striaght into it, but when I tried substituting that with a dynamic varible I

Re: [Zope] with a variable

2001-01-12 Thread josh on
thanks Steve and Rick, Unfortunately both your solutions brought up this error: Error Type: SystemError Error Value: bad argument to internal function dtml-call "REQUEST.set('userid', 979226100)" dtml-with "_[userid]" dtml-var attribute /dtml-with or dtml-with "_.getitem(userid)"

Re: [Zope] with a variable

2001-01-12 Thread josh on
I got it to work thanks for the help! dtml-call "REQUEST.set('userid', '979226100')" dtml-with "_[userid]" dtml-var attribute /dtml-with it was the cobination of no quotes around the the userid AND setting the variable as a string not an integer! arrrggghh... thank godness, now I can have

Re: [Zope] with a variable

2001-01-12 Thread Dieter Maurer
josh on writes: dtml-with 979226100 This interprets "979226100" as a name! dtml-var attribute /dtml-with This doesn't: dtml-call "REQUEST.set('userid', 979226100)" This interprets "979226100" as an integer. You could use dtml-call "REQUEST.set('userid', _.getitem('979226100'))"

[Zope] with a variable

2001-01-11 Thread josh on
Hi, a small problem!, This works: dtml-with 979226100 dtml-var attribute /dtml-with This doesn't: dtml-call "REQUEST.set('userid', 979226100)" dtml-with "_.getitem('userid')" dtml-var attribute /dtml-with Nor this: dtml-call "REQUEST.set('userid', 979226100)" dtml-with "userid" dtml-var

Re: [Zope] with a variable

2001-01-11 Thread Steve Spicklemire
How about this: dtml-call "REQUEST.set('userid', 979226100)" dtml-with "_[userid]" dtml-var attribute /dtml-with or dtml-call "REQUEST.set('userid', 979226100)" dtml-with "_.getitem(userid)" dtml-var attribute /dtml-with -steve Hi, a small problem!, This works: dtml-with 979226100

Re: [Zope] space in variable returned by queries

2000-07-13 Thread Tino Wildenhain
Vanfleteren Francois wrote: Hello, I'm working with Zope and PostgreSQL When i do a query, Zope returns me a variable with a space at the end Do you know how i can do not to have this space at the end? dtml-var "_.strip(var_with_space_at_the_end)" should do. Or dtml-call &q