[tryton-dev] Wiki migration

2009-09-16 Thread Cédric Krier
As suggested by gour today on #tryton, I will try to migrate wiki from subversion to mercurial. So please don't edit wiki for now. Thanks -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email: cedric.kr...@b2ck.com Jabber: cedric.kr...@b2ck.com We

[tryton-dev] Re: [tryton] Wiki migration

2009-09-16 Thread Cédric Krier
On 16/09/09 21:56 +0200, Cédric Krier wrote: > As suggested by gour today on #tryton, I will try to migrate wiki from > subversion to mercurial. > > So please don't edit wiki for now. > It is done. You can browse the repo on http://code.google.com/p/tryton/source/browse?r

[tryton-dev] Re: Use safe eval from Genshi

2009-09-21 Thread Cédric Krier
more people reviewing it. I have uploaded a new version that doesn't use Genshi because it is not safe. I have added some security test for safe_eval but if someone know other workaround for eval please ping me. -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46

[tryton-dev] Re: Pro Forma Invoice

2009-09-27 Thread Cédric Krier
out this on tryton groups. -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email: cedric.kr...@b2ck.com Jabber: cedric.kr...@b2ck.com Website: http://www.b2ck.com/ pgpE7ublE1Nxh.pgp Description: PGP signature

[tryton-dev] Change in CompanyReport

2009-10-02 Thread Cédric Krier
[1] http://hg.tryton.org/hgwebdir.cgi/modules/company/rev/875fb0d2cb40 -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email: cedric.kr...@b2ck.com Jabber: cedric.kr...@b2ck.com Website: http://www.b2ck.com/ pgp86dizBnVXt.pgp Description: PGP signature

[tryton-dev] Re: Tryton download script in python

2009-10-12 Thread Cédric Krier
On 12/10/09 12:16 +0200, Hartmut Goebel wrote: > Mathias Behrle schrieb: > > @ced: This is no cross-posting. I moved the discussion to the > mailings-list since it is not longer about cede review. > Same email on both side = cross-posting. -- Cédric Krier B2CK SPRL Rue de Ro

[tryton-dev] Re: providing translated docs

2009-10-23 Thread Cédric Krier
there > other translations as well. > We don't have yet find a good tool to translate rst file. -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email: cedric.kr...@b2ck.com Jabber: cedric.kr...@b2ck.com Website: http://www.b2ck.com/ pgp6OQ2tOfCCJ.pgp Description: PGP signature

[tryton-dev] Re: providing translated docs

2009-10-23 Thread Cédric Krier
On 23/10/09 03:31 -0700, Tobias Paepke wrote: > > On 23 Okt., 10:01, Cédric Krier wrote: > > On 22/10/09 12:50 -0700, Tobias Paepke wrote: > > > hi, > > > > > just wanna hear what you all think about translated documentation like > > > the rst-files

[tryton-dev] Re: providing translated docs

2009-10-23 Thread Cédric Krier
On 23/10/09 13:18 +0200, Hartmut Goebel wrote: > Cédric Krier schrieb: > > > I will fail in long term because we need a tool to track change in > > the english documentation and report it in translation. > > Waht about this: A cronjob checks for changes in the English

[tryton-dev] New wiki page with goals for 1.6.0

2009-10-23 Thread Cédric Krier
http://code.google.com/p/tryton/wiki/Release_1_6_0 For now, there is only previous gloals that were not acchevied. -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email: cedric.kr...@b2ck.com Jabber: cedric.kr...@b2ck.com Website: http://www.b2ck.com

[tryton-dev] Re: requirements for SSL implementation

2009-10-23 Thread Cédric Krier
nd the user is not allowed to change this option. I don't understand. Who is administrator? - Minimum SSL version to be used: SSLv3 Why? It can be just an option on the server side. -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email: cedri

[tryton-dev] Re: requirements for SSL implementation

2009-10-23 Thread Cédric Krier
On 23/10/09 17:48 +0200, Cédric Krier wrote: > On 23/10/09 17:06 +0200, Hartmut Goebel wrote: > > Hi, > > > > as promised some week ago ;-\ I wrote some requirements specification > > for the SSL implementation. > > <http://code.google.com/p/tryton/wiki/Requ

[tryton-dev] Re: requirements for SSL implementation

2009-10-23 Thread Cédric Krier
On 23/10/09 18:13 +0200, Hartmut Goebel wrote: > Cédric Krier schrieb: > > > Maybe you mean having a configuration option that will warn (like > > firefox when leaving an encrypted website) if you connect to a no-SSL > > server. > > No! If the company requires S

[tryton-dev] Re: requirements for SSL implementation

2009-10-23 Thread Cédric Krier
nt authentication and > communications confidentiality over the Internet using cryptography. We don't need authentication as we already have it for the user. -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email: cedric.kr...@b2ck.

[tryton-dev] Re: requirements for SSL implementation

2009-10-23 Thread Cédric Krier
On 23/10/09 18:12 +0200, Hartmut Goebel wrote: > Cédric Krier schrieb: > > > I don't agree with: > > > > - The Tryton client must not fall back to non-SSL communication, but > > deny connection. - The user must be able to request SSL when setting > > up

[tryton-dev] Re: requirements for SSL implementation

2009-10-23 Thread Cédric Krier
ction. These user should not have the option to decide to run > tryton unencrypted. Sorry but the problem is not about encrypted or not connection but about man-in-the-middle attack. So the user must be able to authenticate the server and one possiblity is to check a certificate. -- Cédric Krier

[tryton-dev] Re: requirements for SSL implementation

2009-10-23 Thread Cédric Krier
On 23/10/09 19:59 +0200, Hartmut Goebel wrote: > Cédric Krier schrieb: > > On 23/10/09 18:13 +0200, Hartmut Goebel wrote: > >> Cédric Krier schrieb: > >> > >>> Maybe you mean having a configuration option that will warn (like > >>> firefox whe

[tryton-dev] Re: requirements for SSL implementation

2009-10-24 Thread Cédric Krier
, that restrict the manual entry of the > connection parameters (server, port). With this only the parameters from > the client.conf are allowed (server, port, certificate, authority), > which is hopefully readonly for the client system user. Tryton is a GPL software so this give the ri

[tryton-dev] Re: requirements for SSL implementation

2009-10-24 Thread Cédric Krier
On 24/10/09 20:05 +0200, Hartmut Goebel wrote: > Cédric Krier schrieb: > > > Tryton is a GPL software so this give the right to the user to change > > it. So any kind of try to restrict user is impossible. > > As I already stated some month ago: You seam to lack ex

[tryton-dev] Re: requirements for SSL implementation

2009-10-25 Thread Cédric Krier
On 24/10/09 21:14 +0200, Hartmut Goebel wrote: > Cédric Krier schrieb: > > > I start to be tired that you repeat this. This is non-constructive > > behavior and unfaire. > > No offence meant, just to say that your point of view is quite different > from what the real-

[tryton-dev] Re: providing translated docs

2009-10-26 Thread Cédric Krier
On 23/10/09 10:01 +0200, Cédric Krier wrote: > On 22/10/09 12:50 -0700, Tobias Paepke wrote: > > > > hi, > > > > just wanna hear what you all think about translated documentation like > > the rst-files in the tryton/doc directory. > > how can we archieve th

[tryton-dev] Re: providing translated docs

2009-10-27 Thread Cédric Krier
On 26/10/09 23:37 +0100, Cédric Krier wrote: > On 23/10/09 10:01 +0200, Cédric Krier wrote: > > On 22/10/09 12:50 -0700, Tobias Paepke wrote: > > > > > > hi, > > > > > > just wanna hear what you all think about translated documentation like &g

[tryton-dev] Re: providing translated docs

2009-10-27 Thread Cédric Krier
On 27/10/09 14:24 +0100, Cédric Krier wrote: > On 26/10/09 23:37 +0100, Cédric Krier wrote: > > On 23/10/09 10:01 +0200, Cédric Krier wrote: > > > On 22/10/09 12:50 -0700, Tobias Paepke wrote: > > > > > > > > hi, > > > > > > > >

[tryton-dev] Testing tools

2009-11-01 Thread Cédric Krier
least), we need to test the GTK client. I think this tool could be a good way: LDTP [2] but it needs some check to see if it can work with Tryton client. I think our priority must be the unittest. [1] http://pypi.python.org/pypi/pycukes/0.1.1 [2] http://ldtp.freedesktop.org/wiki/ -- Cédric

[tryton-dev] Re: Howto fix xml typo

2009-11-06 Thread Cédric Krier
Hi propose this patch for released series: http://codereview.appspot.com/150042 -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email: cedric.kr...@b2ck.com Jabber: cedric.kr...@b2ck.com Website: http://www.b2ck.com/ pgpOqK8IAAIsM.pgp Description: PGP

[tryton-dev] Re: Howto fix xml typo

2009-11-10 Thread Cédric Krier
On 06/11/09 10:26 +0100, Cédric Krier wrote: > Hi propose this patch for released series: > > http://codereview.appspot.com/150042 > Fixed with changesets: http://hg.tryton.org/1.4/modules/account_invoice/rev/e1ef3a9ecd6f http://hg.tryton.org/1.2/modules/account_invoice/rev/

[tryton-dev] timstamp for create_date and write_date

2009-11-10 Thread Cédric Krier
://hg.tryton.org/hgwebdir.cgi/trytond/rev/70d0a1966169 [2] http://hg.tryton.org/hgwebdir.cgi/trytond/rev/9e51e35baedf [3] http://hg.tryton.org/hgwebdir.cgi/trytond/rev/9e51e35baedf#l3.7 -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email: cedric.kr...@b2ck.com

[tryton-dev] Re: providing translated docs

2009-11-15 Thread Cédric Krier
intless (at least for me) to translate docs with > errors. I don't like the creation of teams. Because it hides the responsability behind a group and things are not done. And any way, docs must be also reviewed like any other changes. -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Be

Re: [tryton-dev] MRP Migration

2009-12-01 Thread Cédric Krier
ou call migration but there is [1] that surely needs some updates. [1] http://code.google.com/p/tryton/wiki/TrytonMRPIntegration -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email: cedric.kr...@b2ck.com Jabber: cedric.kr...@b2ck.com Website: http://

Re: [tryton-dev] MRP Migration

2009-12-04 Thread Cédric Krier
l read your references, I have a couple of ask: What is MRP I > and MRP II? MRP: http://en.wikipedia.org/wiki/Material_Requirements_Planning MRP2: http://en.wikipedia.org/wiki/Manufacturing_resource_planning > and the other there are some part of the MRP developed? Most part of MRP is developped with stock

[tryton-dev] Remove dependency to egenix-mx-base

2009-12-14 Thread Cédric Krier
Here some patches to remove dependency on egenix-mx-base on server side: http://codereview.appspot.com/174089 http://codereview.appspot.com/174090 http://codereview.appspot.com/176074 http://codereview.appspot.com/174091 http://codereview.appspot.com/176075 -- Cédric Krier B2CK SPRL Rue de

[tryton-dev] Improvement for string evaluation

2009-12-14 Thread Cédric Krier
ed on the client side. Second, we need an easy and simple syntax that can be implemented in other languages. So we will restrict it to the use of: Type: str, int/long, list Operators: and, or Functions: contains, getitem, len Functions could be added later depending of the

Re: [tryton-dev] Re: Improvement for string evaluation

2009-12-14 Thread Cédric Krier
to interact easily with the Tryton server in any language > > (currently any external program need to understand strings like: > > "company' in context and '=' or '!=' ", "context.get('company')", > > etc). > > >

[tryton-dev] Remove egenix-mx-base (issue177042)

2009-12-14 Thread Cédric Krier
Please review this at http://codereview.appspot.com/177042 -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email: cedric.kr...@b2ck.com Jabber: cedric.kr...@b2ck.com Website: http://www.b2ck.com/ twitter: http://twitter.com/cedrickrier identi.ca: http

Re: [tryton-dev] Re: Improvement for string evaluation

2009-12-14 Thread Cédric Krier
On 14/12/09 21:32 +0100, Hartmut Goebel wrote: > Cédric Krier schrieb: > > On 14/12/09 19:32 +0100, Hartmut Goebel wrote: > > >>>> [{'__class__': 'eval', 'v': "['parent', '=', False]"}] > >>>&

Re: [tryton-dev] Re: Improvement for string evaluation

2009-12-14 Thread Cédric Krier
functionnalities as I said in previous emails. And with simple python statement, they can be transform easily into many other language statements with simple string replace. -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email: cedric.kr...@b2ck.com Jabb

[tryton-dev] Add cache to safe_eval (issue179056)

2009-12-15 Thread Cédric Krier
i += 3 +else: +i += 1 +for code in codes: +if code not in _ALLOWED_CODES: +raise ValueError('opcode %s not allowed' % dis.opname[code]) +if len(_SAFE_EVAL_CACHE) > 1024: +_SAFE_EVAL_CACHE.clear() +

[tryton-dev] Add cache to safe_eval (issue178050)

2009-12-15 Thread Cédric Krier
_SAFE_EVAL_CACHE[key] = c +_SAFE_EVAL_CACHE_LOCK.release() return eval(c, {'__builtins__': { 'True': True, 'False': False, -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email: cedric.kr...@b2ck.com Jabb

Re: [tryton-dev] Re: Improvement for string evaluation

2009-12-15 Thread Cédric Krier
On 15/12/09 18:10 +0100, Hartmut Goebel wrote: > Cédric Krier schrieb: > > > I don't agree on the fact that the server must parse the code. It will > > overload it for no benefit for the current implementation. > > Indeed I've not been clear enough. My idea was

Re: [tryton-dev] Re: Improvement for string evaluation

2009-12-16 Thread Cédric Krier
easier to parse for non-python software. This would > >> allow to interact easily with the Tryton server in any language > >> (currently any external program need to understand strings like: > >> "company' in context and '=' or '!=' ", "co

Re: [tryton-dev] Re: Improvement for string evaluation

2009-12-16 Thread Cédric Krier
On 16/12/09 21:49 +0100, Hartmut Goebel wrote: > Cédric Krier schrieb: > > > > I propose to replace it by a syntax composed of python object like this: > > +0.5 > > > Disavantages are: > > - we need to check all the strings in XML (domain and context of &g

[tryton-dev] Use root user for create/write ir.translation to bypass the model access (issue179102)

2009-12-18 Thread Cédric Krier
Please review this at http://codereview.appspot.com/179102 -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email: cedric.kr...@b2ck.com Jabber: cedric.kr...@b2ck.com Website: http://www.b2ck.com/ twitter: http://twitter.com/cedrickrier identi.ca: http

[tryton-dev] Use root user for create/delete default properties in account chart creation (issue179103)

2009-12-18 Thread Cédric Krier
Please review this at http://codereview.appspot.com/179103 -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email: cedric.kr...@b2ck.com Jabber: cedric.kr...@b2ck.com Website: http://www.b2ck.com/ twitter: http://twitter.com/cedrickrier identi.ca: http

Re: [tryton-dev] Re: Improvement for string evaluation

2009-12-18 Thread Cédric Krier
On 18/12/09 18:14 +0100, Hartmut Goebel wrote: > Cédric Krier schrieb: > > > There is no need to update the database as it is data that is in the code or > > in XML. > > But the data from the XML is stored in the database, isn't it? So > updating the XML files m

Re: [tryton-dev] Re: Improvement for string evaluation

2009-12-18 Thread Cédric Krier
On 18/12/09 18:31 +0100, Hartmut Goebel wrote: > Cédric Krier schrieb: > > > The database will be updated with the data from XML and the user can not > > change data that comes from XML (except for some specific cases). > > Couldn't the the user have added his own w

Re: [tryton-dev] Re: Improvement for string evaluation

2009-12-19 Thread Cédric Krier
On 19/12/09 21:10 +0100, Hartmut Goebel wrote: > Cédric Krier schrieb: > > On 18/12/09 18:31 +0100, Hartmut Goebel wrote: > >> Cédric Krier schrieb: > >> > >>> The database will be updated with the data from XML and the user can not > >>> change

[tryton-dev] New module dashboard (issue179112)

2009-12-21 Thread Cédric Krier
Please review this at http://codereview.appspot.com/179112 -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email: cedric.kr...@b2ck.com Jabber: cedric.kr...@b2ck.com Website: http://www.b2ck.com/ twitter: http://twitter.com/cedrickrier identi.ca: http

[tryton-dev] Use button on action in board (issue179117)

2009-12-21 Thread Cédric Krier
Please review this at http://codereview.appspot.com/179117 -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email: cedric.kr...@b2ck.com Jabber: cedric.kr...@b2ck.com Website: http://www.b2ck.com/ twitter: http://twitter.com/cedrickrier identi.ca: http

[tryton-dev] ProjectOrganization

2009-12-23 Thread Cédric Krier
Hi, Could you update the wiki page [1] with your codereview nicknames? Thanks [1] http://code.google.com/p/tryton/wiki/ProjectOrganization -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email: cedric.kr...@b2ck.com Jabber: cedric.kr...@b2ck.com Website

Re: [tryton-dev] Re: Improvement for string evaluation

2009-12-27 Thread Cédric Krier
On 16/12/09 11:37 +0100, Cédric Krier wrote: > I propose to replace it by a syntax composed of python object like this: > > Tuple(If(In(Eval('company'), Eval('context')), '=', '!='), Eval('id'), > Get(Eval('context'), &#

[tryton-dev] Remove classification_public (issue181081)

2009-12-28 Thread Cédric Krier
Please review this at http://codereview.appspot.com/181081 It is removed because it was a misunderstand of the IETF. Classification public doesn't mean that any body can read it. -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email: cedr

[tryton-dev] Remove classification_public (issue181082)

2009-12-28 Thread Cédric Krier
Please review this at http://codereview.appspot.com/181082 -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email: cedric.kr...@b2ck.com Jabber: cedric.kr...@b2ck.com Website: http://www.b2ck.com/ twitter: http://twitter.com/cedrickrier identi.ca: http

[tryton-dev] Adding random unique sequence

2009-12-29 Thread Cédric Krier
. An other way will be to store in a table every possible value (if the length of the number is fixed) and pick/remove one randomly. But here the generation of all values can be slow. Is there anybody that knows a better way? [1] http://en.wikipedia.org/wiki/Birthday_paradox -- Cédric Krier

Re: [tryton-dev] Adding random unique sequence

2009-12-29 Thread Cédric Krier
xt, number_increment and padding if random is selected - add and show random_size So user could choose between ordered or random sequence for document. But for now, the main issue is the generation. -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email:

Re: [tryton-dev] Adding random unique sequence

2009-12-29 Thread Cédric Krier
t; > of all values can be slow. > > Seems to me like a huge table which is a lot of overhead. And it won't be > random, if you know numbers taken already from this table. The randomness is for external people as I explain on previous email. -- Cédric Krier B2CK SPRL Rue de R

Re: [tryton-dev] Adding random unique sequence

2009-12-29 Thread Cédric Krier
On 29/12/09 20:35 +0100, Hartmut Goebel wrote: > Cédric Krier schrieb: > > > The randomness is for external people as I explain on previous email. > > For this case a pre- or postfixing the date should not be a problem. So > if using real random values, one could store them

Re: [tryton-dev] Adding random unique sequence

2009-12-30 Thread Cédric Krier
On 30/12/09 09:25 +0100, Hartmut Goebel wrote: > Cédric Krier schrieb: > > But a timestamp is perhaps the solution with a wait if there is a > > collision. The sequence will have a timestamp precision field and a > > last timestamp used. > > Please rethink whether it

Re: [tryton-dev] Button State depending of an empty Many2Many field

2009-12-30 Thread Cédric Krier
ints? Have you any log on the client side? -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email: cedric.kr...@b2ck.com Jabber: cedric.kr...@b2ck.com Website: http://www.b2ck.com/ twitter: http://twitter.com/cedrickrier identi.ca: http://identi.ca/cedr

Re: [tryton-dev] Re: Button State depending of an empty Many2Many field

2009-12-30 Thread Cédric Krier
he button evaluated? in tryton/gui/window/view_form/view/form_gtk/parser.py line 122 -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email: cedric.kr...@b2ck.com Jabber: cedric.kr...@b2ck.com Website: http://www.b2ck.com/ twitter: http://twitter.com/ced

Re: [tryton-dev] Wiki: Where is the "Welcome" ßage gone any why?

2010-01-02 Thread Cédric Krier
ki > (http://wiki.videolan.org/). > Already discussed on http://groups.google.com/group/tryton/browse_frm/thread/716fefe1447caa87/ -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email: cedric.kr...@b2ck.com Jabber: cedric.kr...@b2ck.com Website: http://www.b

Re: [tryton-dev] 'New' Button in Many2Many

2010-01-03 Thread Cédric Krier
t; > This is the same effect like disable the new Button on the search dialog > of the many2many add function. > > Is there a way to disable the new button in a many2many search dialog? > No and it makes no sense to add this functionality. It must be solved with access rights.

Re: [tryton-dev] 'New' Button in Many2Many (solved)

2010-01-03 Thread Cédric Krier
On 03/01/10 17:23 +0100, Udo Spallek wrote: > Am Sonntag, den 03.01.2010, 15:38 +0100 schrieb Cédric Krier: > > On 03/01/10 14:22 +0100, Udo Spallek wrote: > > > Is there a way to disable the new button in a many2many search dialog? > > No and it makes no sense to add th

[tryton-dev] Use the same internal model for m2m and o2m (issue181118)

2010-01-03 Thread Cédric Krier
Please review this at http://codereview.appspot.com/181118 Fixing: http://bugs.tryton.org/roundup/issue1103 http://bugs.tryton.org/roundup/issue1353 -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email: cedric.kr...@b2ck.com Jabber: cedric.kr

Re: [tryton-dev] Properties

2010-01-03 Thread Cédric Krier
records per > party in this non-indexed table. > > Just wondering, if this design could be the reason of some slow actions on > the client and if there shouldn't be at least some indexes on this table? You are right, it could be good to add an index on res and field -- Cédric Krier

[tryton-dev] Add JSON-RPC (issue181142)

2010-01-06 Thread Cédric Krier
Please review this at http://codereview.appspot.com/181142 Affected files: M CHANGELOG M etc/trytond.conf M trytond/config.py A trytond/protocols/jsonrpc.py M trytond/server.py -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email: cedric.kr

[tryton-dev] Don't modify F3 on one2many if add_remove activated (issue181145)

2010-01-06 Thread Cédric Krier
return False if (event.keyval == gtk.keysyms.F3) \ and self.but_new.get_property('sensitive'): self._sig_new(widget) -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email: cedric.kr...@b2ck.com Jabber:

Re: [tryton-dev] "while True" vs. "while 1"

2010-01-06 Thread Cédric Krier
tion. 2) It is an optimisation for some specific version of python. Per exmplave on Python 3, both have the same behavior. 3) It is easier to read. -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email: cedric.kr...@b2ck.com Jabber: cedric.kr...@b2ck.com We

[tryton-dev] Add comment on DB object

2010-01-07 Thread Cédric Krier
you have field names that don't have meaning :-)) What do you think about? [1] http://bazaar.launchpad.net/~openerp/openobject-server/trunk/revision/1942 [2] http://www.postgresql.org/docs/8.4/interactive/sql-comment.html [3] http://en.wikipedia.org/wiki/Business_intelligence -- Cédric

Re: [tryton-dev] Add comment on DB object

2010-01-07 Thread Cédric Krier
On 07/01/10 10:41 +0100, Cédric Krier wrote: > Hi, > > Here is a commit on OpenERP [1] that adds comment [2] on some object of the > database based on the Model values (It could be only done for PostgreSQL > backend). > For now, the only use I see is to help developpers that

Re: [tryton-dev] Add comment on DB object

2010-01-07 Thread Cédric Krier
On 07/01/10 10:06 -0500, Juan Fernando Jaramillo Botero wrote: > > On 07/01/10 10:41 +0100, Cédric Krier wrote: > > > Hi, > > > > > > Here is a commit on OpenERP [1] that adds comment [2] on some object of > > > the > > > database based on the

Re: [tryton-dev] Refactoring ir.sequence

2010-01-07 Thread Cédric Krier
On 07/01/10 18:50 +0100, Chenal Bertrand wrote: > > Has this modification will needs to be carefully migrated, we would like > you to share your thought, remarks and questions. And it will break the API of ir.sequence -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium

[tryton-dev] Improve speed of textbox with gtkspell (issue183144)

2010-01-07 Thread Cédric Krier
del spell +self.lang = language except: pass +elif spell: +spell.detach() +del spell def display_value(self): lines = (self._view.modelfield.get_client(self._view.model) or ''

Re: [tryton-dev] Improve speed of textbox with gtkspell (issue183144)

2010-01-07 Thread Cédric Krier
On 07/01/10 20:11 +0100, Cédric Krier wrote: > Please review this at http://codereview.appspot.com/183144 > > Affected files: > M tryton/gui/window/view_form/view/form_gtk/textbox.py > And must we backport it? Without it, working with spellchecker is very slow. -- Cédric K

[tryton-dev] Add threads to profile mode (issue181188)

2010-01-08 Thread Cédric Krier
except: +pass logging.getLogger('server').info('stopped') logging.shutdown() sys.exit(0) -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email: cedric.kr...@b2ck.com Jabber: cedric.kr...@b2ck.com

Re: [tryton-dev] Use the same internal model for m2m and o2m (issue181118)

2010-01-08 Thread Cédric Krier
On 03/01/10 18:31 +0100, Cédric Krier wrote: > > Please review this at http://codereview.appspot.com/181118 > > > Fixing: > > http://bugs.tryton.org/roundup/issue1103 > http://bugs.tryton.org/roundup/issue1353 > We can now have this kind of view: http://nopaste.a

Re: [tryton-dev] Use the same internal model for m2m and o2m (issue181118)

2010-01-08 Thread Cédric Krier
On 08/01/10 17:39 +0100, Udo Spallek wrote: > Am Freitag, den 08.01.2010, 17:26 +0100 schrieb Cédric Krier: > > On 03/01/10 18:31 +0100, Cédric Krier wrote: > > > Please review this at http://codereview.appspot.com/181118 > > We can now have this kind of view: http://nop

[tryton-dev] Add comment on table and field for postgresql backend (issue181189)

2010-01-08 Thread Cédric Krier
Please review this at http://codereview.appspot.com/181189 Affected files: M trytond/backend/postgresql/table.py M trytond/backend/sqlite/table.py M trytond/backend/table.py M trytond/model/modelsql.py -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54

[tryton-dev] Handle always states on group and allow to override states on label linked to field (issue183162)

2010-01-08 Thread Cédric Krier
button_list.append(frame) -else: -frame = widget +frame = Frame(text, attrs) +frame.add(widget) +button_list.append(frame) container.wid_add(frame, colspan=int(attrs.get('colspan', 1)),

Re: [tryton-dev] Adding random unique sequence

2010-01-08 Thread Cédric Krier
On 29/12/09 21:03 +0100, Cédric Krier wrote: > But a timestamp is perhaps the solution with a wait if there is a collision. > The sequence will have a timestamp precision field and a last timestamp used. > I propose to add a selection on ir.sequence that defines a type: - incremental

Re: [tryton-dev] Problem defining a many2many view

2010-01-08 Thread Cédric Krier
orksfor-party". So the field org is not define on "party.party". I think what you want is to have only the "rec_name" of the party.party: PS: I think rec_name is better than name because it can be c

Re: [tryton-dev] Add comment on DB object

2010-01-09 Thread Cédric Krier
On 07/01/10 10:52 +0100, Cédric Krier wrote: > > We could use it also to store the server version on the database. > I think we should use a Singleton to be sure that it will work on any database backend. But I have no idea about the name of the table. Perhaps tryton? -- Cédric Kr

Re: [tryton-dev] Re: Improvement for string evaluation

2010-01-09 Thread Cédric Krier
On 27/12/09 19:19 +0100, Cédric Krier wrote: > Here is a first draft of the implementation: > > http://codereview.appspot.com/183067 > As there is any comments. We will continue this way. -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Emai

Re: [tryton-dev] Questions about correctness of RelaxNG schema

2010-01-09 Thread Cédric Krier
tag at root. > > * According tho the current relaxng schema, in this construct:: > ... > the could be a field as defined in form.rnc. I wonder whether > this is correct or this sould only allow fileds as defined in > graph.rnc? It is correct. All attributes from f

Re: [tryton-dev] Re: Improvement for string evaluation

2010-01-09 Thread Cédric Krier
On 09/01/10 23:16 +0100, Hartmut Goebel wrote: > Cédric Krier schrieb: > > > As there is any comments. We will continue this way. > > Any reason why you are not using positional arguments? This would ease > implementation. I've put an implementation at http://dpaste.org

Re: [tryton-dev] Questions about correctness of RelaxNG schema

2010-01-09 Thread Cédric Krier
ther attributes are allowed, > but not all? Only attributes defined in graph.rnc are allowed for graph views. -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email: cedric.kr...@b2ck.com Jabber: cedric.kr...@b2ck.com Website: http://www.b2ck.com/ twit

Re: [tryton-dev] Re: Improvement for string evaluation

2010-01-09 Thread Cédric Krier
On 10/01/10 00:26 +0100, Cédric Krier wrote: > On 09/01/10 23:16 +0100, Hartmut Goebel wrote: > > Cédric Krier schrieb: > > > > > As there is any comments. We will continue this way. > > > > Any reason why you are not using positional arguments? This would

Re: [tryton-dev] Re: Add comment on DB object

2010-01-10 Thread Cédric Krier
store a module version in the database? > it could be nice for upgrade purposes, not even on the trytond, to > have for every module version a line in this tryton-version-table. There is the model ir.module.module -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel:

Re: [tryton-dev] Re: Improvement for string evaluation

2010-01-10 Thread Cédric Krier
[...] > def object_hook(self, args): > klass = globals().get(args[0], None) > if klass: > return klass.eval(self.__context, *args[1:]) > return dct > > ["id", ["If", ["Not", ["In", [&

Re: [tryton-dev] Re: Improvement for string evaluation

2010-01-10 Thread Cédric Krier
On 10/01/10 15:17 +0100, Hartmut Goebel wrote: > > Am So, 10.01.2010, 00:26, schrieb Cédric Krier: > > > Of course. It is not more unmaintainable than the current strings. And I > > think > > it is more customizable and extendable. > > Sorry, I'm still

Re: [tryton-dev] Re: Improvement for string evaluation

2010-01-10 Thread Cédric Krier
On 10/01/10 15:31 +0100, Hartmut Goebel wrote: > Am So, 10.01.2010, 15:22, schrieb Cédric Krier: > > > > > [('fiscalyear.company.id', '=', Get(Eval('context', {}), 'company', 0))] > > > > Buh, am I glad! I was afraid, user

Re: [tryton-dev] Re: Improvement for string evaluation

2010-01-10 Thread Cédric Krier
On 10/01/10 15:44 +0100, Hartmut Goebel wrote: > > Am So, 10.01.2010, 15:18, schrieb Cédric Krier: > > > The issue is that in json, it is a common practice to use __class__ to > > extend > > json to handle new class. So it is expected to have a string as value, >

Re: [tryton-dev] Re: Improvement for string evaluation

2010-01-10 Thread Cédric Krier
On 10/01/10 15:45 +0100, Hartmut Goebel wrote: > > Am So, 10.01.2010, 15:38, schrieb Cédric Krier: > > >> So I'm only missing one link: Where is the code interpreting / > >> evaluating > >> this expressions? > > > > It will b

[tryton-dev] Don't strip 0 in year completion for issue1370 (issue186056)

2010-01-10 Thread Cédric Krier
+163,8 @@ n = len(val) val = val.strip() val = val.strip('_') -val = val.lstrip('0') +if n != 4: +val = val.lstrip('0') if not val: continue fchar =

[tryton-dev] Don't show "Spell Checking" option if gtkspell is not present (issue186066)

2010-01-11 Thread Cédric Krier
iter() buf.insert(iter_start, value) -if HAS_GTKSPELL: +if gtkspell: spell = None try: spell = gtkspell.get_from_text_view(self.textview) -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email: c

[tryton-dev] Update init.sql according to models and fix guidlines (issue186091)

2010-01-12 Thread Cédric Krier
Please review this at http://codereview.appspot.com/186091 Affected files: M trytond/backend/postgresql/init.sql M trytond/backend/sqlite/init.sql -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email: cedric.kr...@b2ck.com Jabber: cedric.kr

[tryton-dev] Use column starting with "_" in alter_size to prevent naming collision (issue186092)

2010-01-12 Thread Cédric Krier
self.cursor.execute("ALTER TABLE \"%s\" " \ - "DROP COLUMN temp_change_size" % \ + "DROP COLUMN _temp_change_size" % \ (self.table_name,)) self._update_definitions() -- Cédric Krier B2CK SPRL

[tryton-dev] Add required=True to module on ir.module.module.dependency (issue186093)

2010-01-12 Thread Cédric Krier
n('get_state', type='selection', selection=[ ('uninstalled','Not Installed'), -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email: cedric.kr...@b2ck.com Jabber: cedric.kr...@b2ck.com Website: http://www

[tryton-dev] Improve search_rec_name to take care of ' / ' for issue1369 (issue186096)

2010-01-12 Thread Cédric Krier
field = prefix + '.' + field +domain.append((field, args[i][1], name)) +j += 1 +args2.append(('id', 'inselect', self.search(cursor, user, + domain, order=[], context=context, query_stri

Re: [tryton-dev] one2many and on_change, on_change_with

2010-01-12 Thread Cédric Krier
many field > for function fields in the same form? I don't understand. Could you give an example ? (code) -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email: cedric.kr...@b2ck.com Jabber: cedric.kr...@b2ck.com Website: http://www.b2ck.com/ tw

Re: [tryton-dev] Why there are child1 and child2

2010-01-12 Thread Cédric Krier
ds because only one is useless. If you fix it, do it in an other patch. And it will need a fix for the client also. -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email: cedric.kr...@b2ck.com Jabber: cedric.kr...@b2ck.com Website: http://www.b2ck.com/ twit

  1   2   3   4   5   6   7   8   9   10   >