+item.var/
/span
span tal:content=sum/
thanks,
Deepak
prabuddha ray wrote:
sorry for delay,
but the options you gave are ruled out.
actually not all the rows in the column have the values.
further the total i'm looking for will result in a very complex query
? and also can u tell us y u r
checking not:penaltylen?
regards,
Deepak
prabuddha ray wrote:
ok this is again freaky on my part.
my problem still remains intact .as i've told earlier,
in my ZPT I needed to find a way to sum up column values
if they are present and print the total
tal:define=global sum
python:sum+item.var/
/span
span tal:content=sum/
thanks,
Deepak
prabuddha ray wrote:
sorry for delay,
but the options you gave are ruled out.
actually not all the rows in the column have the values.
further the total i'm looking for will result
for this newbie.
thanks again
On 5/20/05, prabuddha ray [EMAIL PROTECTED] wrote:
thanks that was creative and justified. BUT it didnt work.
the total is still 0.
here is what i did.
div tal:define=unit_cost python:penalty[0].unit_cost; global sum
python:0
tal:condition
I've this report wherein i've to print the column total iin last row.
column values are from database.
so far I'm a total loss. do i need to have cookies to store this total?
plz gimme ideas.
--
Share the vision of difference with ME
___
Zope maillist
sorry for delay,
but the options you gave are ruled out.
actually not all the rows in the column have the values.
further the total i'm looking for will result in a very complex query
that i dont want to do onsidering the no. of rows are high.
I just need something like a
--
Share the vision of difference with ME
___
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
this again is a simple problem which got tricky for me.
I've full page template taking parameters to generate a printable report.
Another button on this page is for saving the report to a doc file.
How can i do this in a ZPT?
--
Share the vision of difference with ME
I've this 'district' select tag .I'm getting the values usinga ZSQL method.
I want to set the value of the option by the district code and the
display the district name.
I tried this :
div tal:repeat=district container/getDistrict
option tal:attributes=selected
()
plz suggest.
On 4/13/05, Andreas Jung [EMAIL PROTECTED] wrote:
--On Mittwoch, 13. April 2005 2:14 Uhr -0700 prabuddha ray
[EMAIL PROTECTED] wrote:
I've this 'district' select tag .I'm getting the values usinga ZSQL
method. I want to set the value of the option by the district code
sorry sir ,
don bother about this problem solved.
i made a silly mistake in passing the parameter in the ZSQL method.
plz bear with me.
On 4/13/05, prabuddha ray [EMAIL PROTECTED] wrote:
Thanks for the suggestion,
I added the 'value district/district_code' now only
This may be very silly plz help
I gave this cookie expiry statement in a python script:
RESPONSE.expireCookie('login')
return context.REQUEST.RESPONSE.redirect('index_html')
but when i checked the cookie values in request page, it wasn't removed.
the last redirect still worked.
when i put an
This may be very silly plz help
I gave this cookie expiry statement in a python script:
RESPONSE.expireCookie('login')
return context.REQUEST.RESPONSE.redirect('index_html')
but when i checked the cookie values in request page, it wasn't removed.
the last redirect still worked.
when i put an
I've to set the value of a hidden form field by a cookie value.
e.g; invalidval request/cookies/login|nothing;
i tried this :
input name=invalid type=hidden value=string: ${invalidval}
and also this
input name=invalid type=hidden tal:attributes=value invalidval
but it is rendering the text in
Thanks the request var is set but the next line for redirection
ie. return context.index_html renders a new page with text :
ZopePageTemplate at index_html
is there some object in context which refers to the self page.
plz help.
On Thu, 7 Apr 2005 11:22:25 -0300, Jose Henrique dos Reis
ok, i get it.
So what is the way to set a request form var in the python script.
On Wed, 6 Apr 2005 12:55:33 -0300, Jose Henrique dos Reis
[EMAIL PROTECTED] wrote:
Your request.set puts 'invalid' in request/other, not in request/form.
Zenrique
--
Share the vision of difference with ME
Ok i get it,
please tell me the way to set a request form var in a python script
On Wed, 6 Apr 2005 12:55:33 -0300, Jose Henrique dos Reis
[EMAIL PROTECTED] wrote:
Your request.set puts 'invalid' in request/other, not in request/form.
Zenrique
--
Share the vision of difference
From my login page I'm calling a python script for redirecting it to
seperate pages.
there if login fails i the login page is to be redirected along with
setting a hidden form field 'invalid' by '1'.
For this I've to set the request/form.invalid value so that it is
available to thelogin page.
is
hope i get this through !!!
In my plone site I've added a portal_tab through portal_actions.
i've made a subfolder in my plone site root folder for it.
I gave the path in the action value field of the tabs as :
string:$portal_url/consumables
now the problem is that when i click on my tab the
from a newbie,
i've this ZSQLmethod returning me a string only. how do i
store it a var in my python script.
eg., userlevel = container.getUserLevel(uname=user)
when i print it using html_quote as :
print (%s) % html_quote(userlevel)
return printed
output is :
I'm often failing to describe problems correctly,
kindly bear for that.
lets revise,
In my login page I've two tables used district and userdetail.
district table ( district_code, distname, location ...)
userdetail (username ,password, empcode ,district_code ,ulevel ...)
I'm often failing to describe problems correctly,
kindly bear for that.
lets revise,
In my login page I've two tables used district and userdetail.
district table ( district_code, distname, location ...)
userdetail (username ,password, empcode ,district_code ,ulevel ...)
Hi list,
I've got some clarifications given below.
On Mon, 04 Apr 2005 16:08:50 +0100, Cliff Ford [EMAIL PROTECTED] wrote:
I am abstracting bits of your email below in case anyone else wants to
join in.
If you are going to use Plone I can't offer advice - I have looked at
Plone on three
HI Cliff,
I was hoping another reply eagerly. hope you dint give up on me.
I've got some clarifications given below.
On Mon, 04 Apr 2005 16:08:50 +0100, Cliff Ford [EMAIL PROTECTED] wrote:
I am abstracting bits of your email below in case anyone else wants to
join in.
If you are
Hi list,
never before i got such a holistic advice.
thanks so much Cliff.
About the 1st mail,
On Sat, 02 Apr 2005 17:03:56 +0100, Cliff Ford [EMAIL PROTECTED] wrote:
Customisation of the login sequence is quite difficult for Newbies
because there are lots of different ways to approach the
tell me where do i get to know about pythopn scripting done
in zope n ZPT examples.
i'm really sorry for my erronous language. please dont overlook theese
humble requests.
On Fri, 1 Apr 2005 23:07:38 +0200, Dieter Maurer [EMAIL PROTECTED] wrote:
prabuddha ray wrote at 2005-3-30 23:50 -0800
.
is it possible.
i have carry req vars eg. username pwd ,districtname in session for future use.
plz giv soln .
On Tue, 29 Mar 2005 19:07:00 +0200, Andreas Pakulat [EMAIL PROTECTED] wrote:
On 29.Mär 2005 - 05:39:42, prabuddha ray wrote:
Danke Jürgen,
one tip i'm lookin for is how to cal
.
is it possible.
i have carry req vars eg. username pwd ,districtname in session for future use.
plz giv soln .
On Tue, 29 Mar 2005 19:07:00 +0200, Andreas Pakulat [EMAIL PROTECTED] wrote:
On 29.Mär 2005 - 05:39:42, prabuddha ray wrote:
Danke Jürgen,
one tip i'm lookin for is how to cal
:
RESP.redirect(/store_nic/consumables/index_html)
On Tue, 29 Mar 2005 19:07:00 +0200, Andreas Pakulat [EMAIL PROTECTED] wrote:
On 29.Mär 2005 - 05:39:42, prabuddha ray wrote:
Danke Jürgen,
one tip i'm lookin for is how to cal pyhton scripts on any form
event,
ie. like we call
:
RESP.redirect(/store_nic/consumables/index_html)
On Tue, 29 Mar 2005 19:07:00 +0200, Andreas Pakulat [EMAIL PROTECTED] wrote:
On 29.Mär 2005 - 05:39:42, prabuddha ray wrote:
Danke Jürgen,
one tip i'm lookin for is how to cal pyhton scripts on any form
event,
ie
on d onsubmit event?
kindly gimme solns u've in mind.
On Wed, 30 Mar 2005 20:01:24 +0200, Dieter Maurer [EMAIL PROTECTED] wrote:
prabuddha ray wrote at 2005-3-29 01:57 -0800:
I'm creatin a customised login page template using districtname, user
name and password.
i got halt in d logic
31 matches
Mail list logo