On 28/05/10 08:20 +0200, Udo Spallek wrote:
> Hi Cédric,
> 
> after studying the code of Proteus a bit more and I think I understand
> its aim better now.
> Proteus seems to be a higher level API to pysocket (for now) for

Not pysocket but directly trytond.

> creating own client scripts in an object oriented way. 
> So yes, sharoon was right, it is a great idea.
> 
> Am Montag, den 24.05.2010, 20:19 +0200 schrieb Cédric Krier:
> > On 24/05/10 19:46 +0200, Udo Spallek wrote:
> > > On 2010/05/24 11:56:17, ced wrote:
> [...]
> > > Will proteus be able
> > > to evaluate field contents delivered from trytond like the tryton client?
> > I don't understand.
> Sorry I was misguided by not understanding. Question is meaningless.
> [...]
> > > For the moment it is hard to review proteus for me, I even can not say 
> > > 'looks good' 
> > > because I don't know the exactly targets of proteus.
> > For now, we need only codereview and ideas to add features.
> 
> Ideas:
> * An easy API for calling wizards.

Yes, it should but I don't know yet how.

> * Logging

I don't understand.

> 
> Ideas are depending of the question if you're planing proteus to be an
> own client framework or an application or just a module. Do you have
> ideas for the direction it should go?

All of that :-)

> 
> Some framework/application features could be:
> * Calling proteus from shell and control it with command line 
>   attributes

Why a shell ? It will be use directly from Python command line.


    >>> import proteus
    >>> proteus.config.set_trytond('test')
    >>> Invoice = proteus.Model.get('account.invoice')
    >>> Invoice
    <class 'proteus.account.invoice'>
    >>> invoices = Invoice.find([('state', '=', 'draft')])
    >>> for invoice in invoices:
    ...     invoice.description = 'Test proteus'
    ...
    >>> for invoice in invoices:
    ...     invoice.save()
    ...
    >>> invoices[0]
    <account.invoice (35)>
    >>>

Rem: I still need to fix Model repr to be produce
"<proteus.account.invoice(35)>" like that it can be evaluated.

> * A small plug-in or module system for walking through the 
>   remote calling scripts in order

I don't understand.


-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: cedric.kr...@b2ck.com
Website: http://www.b2ck.com/

Attachment: pgpSSWSpBKJ1G.pgp
Description: PGP signature

Reply via email to