-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
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
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
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
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
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
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
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
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
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
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
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:
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
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
--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,
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
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
[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')
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
--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
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
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
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
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
--- 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,
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.
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...'
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
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 partial
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 variable in a redirect call
Gosh darn it, it didn't work 8(
~~~
Yvonne Totty
Database Engineer, x2198
-
Maximus: What we do in life, echoes in eternity.
-- Gladiator
Exactly as per your first example:
dtml-call "RESPONSE.redirect(baserefW + '/COMTemp')"
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
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
// 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
//
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
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)"
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
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'))"
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
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
40 matches
Mail list logo