Re: A question on decorators

2008-03-27 Thread Bruno Desthuilliers
Tim Henderson a écrit : Hello I am writing an application that has a mysql back end and I have this idea to simplify my life when accessing the database. The idea is to wrap the all the functions dealing with a particular row in a particular in a particular table inside a class. So if you

A question on decorators

2008-03-26 Thread Tim Henderson
Hello I am writing an application that has a mysql back end and I have this idea to simplify my life when accessing the database. The idea is to wrap the all the functions dealing with a particular row in a particular in a particular table inside a class. So if you have a table that looks like

Re: A question on decorators

2008-03-26 Thread Mike Driscoll
On Mar 26, 2:10 pm, Tim Henderson [EMAIL PROTECTED] wrote: Hello I am writing an application that has a mysql back end and I have this idea to simplify my life when accessing the database. The idea is to wrap the all the functions dealing with a particular row in a particular in a particular

Re: A question on decorators

2008-03-26 Thread Tim Henderson
Mike Driscoll said: Besides, you should use sqlite rather than pickle databases. It's especially easy since sqlite is included with Python 2.5. I am using mysql, and sqlite is not appropriate for my situation since some of the databases and tables I access are being accessed by other

Re: A question on decorators

2008-03-26 Thread Diez B. Roggisch
Tim Henderson schrieb: Hello I am writing an application that has a mysql back end and I have this idea to simplify my life when accessing the database. The idea is to wrap the all the functions dealing with a particular row in a particular in a particular table inside a class. So if you

Re: A question on decorators

2008-03-26 Thread George Sakkis
On Mar 26, 3:41 pm, Tim Henderson [EMAIL PROTECTED] wrote: I am using mysql, and sqlite is not appropriate for my situation since some of the databases and tables I access are being accessed by other applications which are already written and live. I am not using the SQLAlchemy or SQLObject,

Re: A question on decorators

2008-03-26 Thread castironpi
On Mar 26, 3:23 pm, Diez B. Roggisch [EMAIL PROTECTED] wrote: Tim Henderson schrieb: Hello I am writing an application that has a mysql back end and I have this idea to simplify my life when accessing the database. The idea is to wrap the all the functions dealing with a particular

Re: A question on decorators

2008-03-26 Thread Gabriel Genellina
En Wed, 26 Mar 2008 18:01:31 -0300, George Sakkis [EMAIL PROTECTED] escribió: On Mar 26, 3:41 pm, Tim Henderson [EMAIL PROTECTED] wrote: I am using mysql, and sqlite is not appropriate for my situation since some of the databases and tables I access are being accessed by other applications

Re: A question on decorators

2008-03-26 Thread castironpi
On Mar 26, 6:02 pm, Gabriel Genellina [EMAIL PROTECTED] wrote: En Wed, 26 Mar 2008 18:01:31 -0300, George Sakkis   [EMAIL PROTECTED] escribió: On Mar 26, 3:41 pm, Tim Henderson [EMAIL PROTECTED] wrote: I am using mysql, and sqlite is not appropriate for my situation since some of the

Re: A question on decorators

2008-03-26 Thread alex23
On Mar 27, 8:30 am, [EMAIL PROTECTED] wrote: I want the * to precede the dot too. Let's yack. I want to compile Python. Did you see my new post? I like it. Do you have any time you don't want? Time sale. Diez is still mad at me. I want primitives to structure themselves so I can pick

Re: A question on decorators

2008-03-26 Thread castironpi
On Mar 26, 10:02 pm, alex23 [EMAIL PROTECTED] wrote: On Mar 27, 8:30 am, [EMAIL PROTECTED] wrote: I want the * to precede the dot too.  Let's yack.  I want to compile Python.  Did you see my new post?  I like it.  Do you have any time you don't want?  Time sale.  Diez is still mad at me.  

Re: Question about decorators (with context?)

2006-09-24 Thread Duncan Booth
Oliver Andrich [EMAIL PROTECTED] wrote: I will have to wrap a lot of methods to get all the functionality I need. And the checking for an exception looks always the same. So I want to write short methods, which are decorated by my_funky_decorator which handles the error checking and exception