Re: Great exercise for python expert !

2008-11-28 Thread manatlan
On 28 nov, 16:53, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > > I just want to make a jquery wrapper, and let people use it to write > > jquery call on the server side in a python way ... > > > o is a object, imagine a widget : like a textarea or input box > > "js" is a special attribut of "o",

Re: Great exercise for python expert !

2008-11-28 Thread manatlan
On 28 nov, 17:12, Peter Otten <[EMAIL PROTECTED]> wrote: > manatlan wrote: > > To explain better, here is another code > > class JQueryCaller(object): > >     def __init__(self,callback): > >         self.__callback=callback > >         self._s=[] > > >     def __getattr__(self,name): > >         d

Re: Great exercise for python expert !

2008-11-28 Thread Peter Otten
manatlan wrote: > To explain better, here is another code > class JQueryCaller(object): >     def __init__(self,callback): >         self.__callback=callback >         self._s=[] > >     def __getattr__(self,name): >         def _caller(*args): >             sargs=["'%s'"%i for i in args] >    

Re: Great exercise for python expert !

2008-11-28 Thread Diez B. Roggisch
Steven D'Aprano wrote: > On Fri, 28 Nov 2008 02:36:28 -0800, manatlan wrote: > >> I'd like to make a "jquery python wrapper" > [...] >> here is my code : > [...] > > What is the purpose of this code? As near as I can see, it would make an > excellent entry to the Obfuscated Python Competition, e

Re: Great exercise for python expert !

2008-11-28 Thread Diez B. Roggisch
> > I just want to make a jquery wrapper, and let people use it to write > jquery call on the server side in a python way ... > > o is a object, imagine a widget : like a textarea or input box > "js" is a special attribut of "o", which will let you write javascript > for this object. > > o=MyObj

Re: Great exercise for python expert !

2008-11-28 Thread manatlan
On 28 nov, 15:49, George Sakkis <[EMAIL PROTECTED]> wrote: > On Nov 28, 9:19 am, manatlan <[EMAIL PROTECTED]> wrote: > > > > > On 28 nov, 14:58, George Sakkis <[EMAIL PROTECTED]> wrote: > > > > On Nov 28, 5:36 am, manatlan <[EMAIL PROTECTED]> wrote: > > > > > I'd like to make a "jquery python wrapp

Re: Great exercise for python expert !

2008-11-28 Thread Steven D'Aprano
On Fri, 28 Nov 2008 02:36:28 -0800, manatlan wrote: > I'd like to make a "jquery python wrapper" [...] > here is my code : [...] What is the purpose of this code? As near as I can see, it would make an excellent entry to the Obfuscated Python Competition, except it isn't clear that it does any

Re: Great exercise for python expert !

2008-11-28 Thread George Sakkis
On Nov 28, 9:19 am, manatlan <[EMAIL PROTECTED]> wrote: > On 28 nov, 14:58, George Sakkis <[EMAIL PROTECTED]> wrote: > > > > > On Nov 28, 5:36 am, manatlan <[EMAIL PROTECTED]> wrote: > > > > I'd like to make a "jquery python wrapper" ... > > > > here is my code : > > >

Re: Great exercise for python expert !

2008-11-28 Thread manatlan
On 28 nov, 15:19, manatlan <[EMAIL PROTECTED]> wrote: > On 28 nov, 14:58, George Sakkis <[EMAIL PROTECTED]> wrote: > > > > > On Nov 28, 5:36 am, manatlan <[EMAIL PROTECTED]> wrote: > > > > I'd like to make a "jquery python wrapper" ... > > > > here is my code : > > > ===

Re: Great exercise for python expert !

2008-11-28 Thread manatlan
On 28 nov, 14:58, George Sakkis <[EMAIL PROTECTED]> wrote: > On Nov 28, 5:36 am, manatlan <[EMAIL PROTECTED]> wrote: > > > > > I'd like to make a "jquery python wrapper" ... > > > here is my code : > > === > > #!/usr/bin/env python > >

Re: Great exercise for python expert !

2008-11-28 Thread George Sakkis
On Nov 28, 5:36 am, manatlan <[EMAIL PROTECTED]> wrote: > I'd like to make a "jquery python wrapper" ... > > here is my code : > === > #!/usr/bin/env python > # -*- coding: utf-8 -*- > > class JQueryCaller(object): >     def __init__(s

Great exercise for python expert !

2008-11-28 Thread manatlan
I'd like to make a "jquery python wrapper" ... here is my code : === #!/usr/bin/env python # -*- coding: utf-8 -*- class JQueryCaller(object): def __init__(self,callback): self.__callback=callback self._s=[]