Re: [Zope3-Users] Calling ZSQL from ZPT

2007-10-10 Thread alebald

I tried it such . but got failure

zope.tal.taldefs.TALError: Invalid variable name item.DisplayController_ID,
item.IPAddress, item.MACAddress

but  
 
is working perfect.

Thanx very much :) for your help :)

Alebald




Andrew Ermakov wrote:
> 
> You need use it such:
> 
> 
> ___
> Zope3-users mailing list
> Zope3-users@zope.org
> http://mail.zope.org/mailman/listinfo/zope3-users
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Calling-ZSQL-from-ZPT-tf4601646.html#a13139649
Sent from the Zope3 - users mailing list archive at Nabble.com.

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Calling ZSQL from ZPT

2007-10-10 Thread Andrew Ermakov
And more...
It will be 
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Calling ZSQL from ZPT

2007-10-10 Thread Andrew Ermakov
You need use it such:


___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Calling ZSQL from ZPT

2007-10-10 Thread alebald

one thing i forgot to mention in last email that both ZPT and sqldisplay
methods are also registered in zope3

alebald wrote:
> 
> Hi All, 
> I am a newbie in zope and also to zope3. I am trying to fetch some data
> from mysql and want to display it in ZPT. my code is below
> #
> 
> 
>   Page Title
> 
> 
> 
>  The URL is URL.
>  
>
> ID
> IPAddress
> MAC Address 
>
>  
> 
> 
> 
> 
>
> 
> 
> #
> but it gives me an exception
> KeyError: 'sqldisplay'  
> Although I have defined "sqldisplay" method  ( From ZMI i create a SQL
> script and passed it dsn[:mysq] and this script / method it self is
> working fine. but on calling this method/sql script from zpt i get an
> exception. 
> is sql script option in ZMI (zope3) is new name of ZSQL method.?? bcoz i
> have read in books that i need to defined a ZSQL method, but in my
> zope3-zmi i donot see any ZSQL option but SQL Script. 
> 
> Aleblad
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Calling-ZSQL-from-ZPT-tf4601646.html#a13138913
Sent from the Zope3 - users mailing list archive at Nabble.com.

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] Calling ZSQL from ZPT

2007-10-10 Thread alebald

Hi All, 
I am a newbie in zope and also to zope3. I am trying to fetch some data from
mysql and want to display it in ZPT. my code is below
#


  Page Title



 The URL is URL.
 
   
ID
IPAddress
MAC Address 
   
 




   


#
but it gives me an exception
KeyError: 'sqldisplay'  
Although I have defined "sqldisplay" method  ( From ZMI i create a SQL
script and passed it dsn[:mysq] and this script / method it self is working
fine. but on calling this method/sql script from zpt i get an exception. 
is sql script option in ZMI (zope3) is new name of ZSQL method.?? bcoz i
have read in books that i need to defined a ZSQL method, but in my zope3-zmi
i donot see any ZSQL option but SQL Script. 

Aleblad

-- 
View this message in context: 
http://www.nabble.com/Calling-ZSQL-from-ZPT-tf4601646.html#a13138449
Sent from the Zope3 - users mailing list archive at Nabble.com.

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users