[Zope] Re: login page problem

2005-03-30 Thread prabuddha ray
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

[Zope] Re: next part of tal:atrributes problem

2005-03-31 Thread prabuddha ray
. 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

[Zope] Re: next part of tal:atrributes problem

2005-03-31 Thread prabuddha ray
. 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

[Zope] Re: thanks for tal:atrributes problem

2005-03-31 Thread prabuddha ray
: 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

[Zope] script python error

2005-03-31 Thread prabuddha ray
: 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

[Zope] Re: login page problem

2005-04-02 Thread prabuddha ray
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

[Zope] Re: login page problem

2005-04-04 Thread prabuddha ray
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

[Zope] Re: login page problem

2005-04-05 Thread prabuddha ray
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

[Zope] Re: login page problem

2005-04-05 Thread prabuddha ray
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

[Zope] login system discussion

2005-04-06 Thread prabuddha ray
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 ...)

[Zope] login system discussion

2005-04-06 Thread prabuddha ray
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 ...)

Re: [Zope] login system discussion

2005-04-07 Thread prabuddha ray
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

Re: RES: [Zope] login system discussion

2005-04-07 Thread prabuddha ray
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

[Zope] request forward technique

2005-04-07 Thread prabuddha ray
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

[Zope] how to add pages to a new tab in plone

2005-04-07 Thread prabuddha ray
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

[Zope] how to store ZSQL query results in a python var

2005-04-07 Thread prabuddha ray
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 :

[Zope] how to set value of hidden form field by a cookie

2005-04-08 Thread prabuddha ray
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

Re: RES: [Zope] login system discussion

2005-04-08 Thread prabuddha ray
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

Re: RES: [Zope] login system discussion

2005-04-08 Thread prabuddha ray
Thanks it was silly of me . I assure I'll take care of the advise On Sat, 9 Apr 2005 11:28:58 +1200, Phillip Hutchings [EMAIL PROTECTED] wrote: On Apr 9, 2005 12:34 AM, prabuddha ray [EMAIL PROTECTED] wrote: Thanks the request var is set but the next line for redirection ie. return

[Zope] newbie:cookie expiry problem

2005-04-12 Thread prabuddha ray
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

[Zope] newbie:cookie expiry problem

2005-04-12 Thread prabuddha ray
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

[Zope] newbie : select tag value setting problem

2005-04-13 Thread prabuddha ray
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

[Zope] Re: newbie : select tag value setting problem

2005-04-13 Thread prabuddha ray
() 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

[Zope] Re: newbie : select tag value setting problem

2005-04-13 Thread prabuddha ray
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

[Zope] how to save page content to a word file.

2005-04-21 Thread prabuddha ray
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

[Zope] small tal tip needed.

2005-05-18 Thread prabuddha ray
-- 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

[Zope] how to accumulate data using ZPT

2005-05-20 Thread prabuddha ray
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

[Zope] Re: how to accumulate data using ZPT

2005-05-20 Thread prabuddha ray
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

[Zope] Re: how to accumulate data using ZPT

2005-05-21 Thread prabuddha ray
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

[Zope] Re: how to accumulate data using ZPT

2005-05-21 Thread prabuddha ray
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

[Zope] Re: how to accumulate data using ZPT

2005-05-24 Thread prabuddha ray
+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

[Zope] Re: how to accumulate data using ZPT

2005-05-24 Thread prabuddha ray
? 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