Hello All,

I think that this is a great improvement to code.

cursor, user and context are redundant all through out the code and their
removal cleans up the code to a great extend. This might mean we rewrite all
modules with this change and I should say I am happy to put in our resources
(at openlabs) also to assist in the process.

I suggest that we have something like this (inspired by werkzeug):

local = Local()
local_manager = LocalManager([local])

and then access the cursor, user and context from the local object.

Thanks,

On Mon, Jul 5, 2010 at 11:22 AM, Brice V. (Sednacom) <[email protected]>wrote:

>
> On 5 juil. 2010, at 11:04, Cédric Krier wrote:
>
> > On 05/07/10 10:29 +0200, Brice V. (Sednacom) wrote:
> >> You are not very clear on how it will change the API, and what will be
> the impacts on the modules ? Can you give an example of an updated module
> (even partially) ?
> >
> > Simply all method will no more have cursor, user nor context arguments.
>
> OK, got it.
>
> >
> >> What is the key (killer ?) feature brought by this improvement ?
> >
> > Better code.
>
> Nice. But hard to explain to the clients. I think you will experience the
> same problems with B2CK ones.
> How to charge days of work for just migrating code ?
> Some clients of us are stuck to 1.4 because 1.6 did not bring enough new
> features to justify the cost of migration.
>
> >
> >> I second Korbinian, the context is an important feature, widely used in
> many modules. If you have a nice replacement, we will adopt it, but give us
> more details.
> >
> > I don't think we use it so widely because we (B2CK) know that it mus be
> > avoided as much as possible because it has not a strong behavior.
> >
> > --
> > Cédric Krier
> >
> > B2CK SPRL
> > Rue de Rotterdam, 4
> > 4000 Liège
> > Belgium
> > Tel: +32 472 54 46 59
> > Email/Jabber: [email protected]
> > Website: http://www.b2ck.com/
>
>
> --
> Brice Vissière
> Chef de projet
> [: Sednacom :]-=-[: http://www.sednacom.fr :]
> tél.: +(33) 1 76 60 02 08
>
> --
> [email protected] mailing list
>



-- 
Sharoon Thomas
Business Analyst & Open Source ERP Consultant
CEO @ http://openlabs.co.in

-- 
[email protected] mailing list

Reply via email to