Re: [tryton-dev] Client development
> And viceversa. sao improvements should also be added to GTK client. +1
Re: [tryton-dev] Client development
2013/8/23 Cédric Krier : > Hi, > > I think we reach the point in sao development where we could ask for > each change request in the GTK client to get also the same in sao (if > the feature exists). And viceversa. sao improvements should also be added to GTK client. > Otherwise the patches will be postponed. > > Any comments? Sounds good to me. -- Albert Cervera i Areny Consultor funcional Tel. 93 553 18 03 @albertnan www.NaN-tic.com
Re: [tryton-dev] add --changepassword= to trytond
2013/8/30 Cédric Krier : > On 30/08/13 10:50 -0500, Andres Vargas wrote: >> This problem happen to me for third time. >> >> I have a db_dump and restore it on trytond but i dont remember the admin >> user password. >> >> i have to update the salt manually to reset a user password. >> >> What do you think about if add to trytond >> >> --changepassword=username >> changepassword of user >> >> >> example: >> TRYTONPASSFILE=/tmp/pass.txt bin/trytond -d t28 --changepassword admin > > I don't like it. > But I will not be against a button to reset the password of any user and > send him an email with the new password. I guess the problem is that he cannot login as admin so he couldn't reach the button anyway. That said, a very simple sh script can be used to reset the password of the admin user. -- Albert Cervera i Areny Consultor funcional Tel. 93 553 18 03 @albertnan www.NaN-tic.com
[tryton-dev] add --changepassword= to trytond
This problem happen to me for third time. I have a db_dump and restore it on trytond but i dont remember the admin user password. i have to update the salt manually to reset a user password. What do you think about if add to trytond --changepassword=username changepassword of user example: TRYTONPASSFILE=/tmp/pass.txt bin/trytond -d t28 --changepassword admin -- Andres Vargas www.zodman.com.mx
Re: [tryton-dev] add --changepassword= to trytond
On 30/08/13 10:50 -0500, Andres Vargas wrote: > This problem happen to me for third time. > > I have a db_dump and restore it on trytond but i dont remember the admin > user password. > > i have to update the salt manually to reset a user password. > > What do you think about if add to trytond > > --changepassword=username > changepassword of user > > > example: > TRYTONPASSFILE=/tmp/pass.txt bin/trytond -d t28 --changepassword admin I don't like it. But I will not be against a button to reset the password of any user and send him an email with the new password. -- 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/ pgpkZlOjsLwkD.pgp Description: PGP signature
[tryton-dev] currency: Missing skiptest for default rate
issue3348 URL: http://codereview.tryton.org/1049003/
Re: [tryton-dev] Slow xmlrpc with Proteus
El 30/08/13 02:18, Cédric Krier escribió: On 29/08/13 20:16 -0700, adriana.diaz.otalva...@gmail.com wrote: Hi, Devs I am using proteus with set_xmlrpc connection for access to a database with 3200 products, and I need create a list of tuples as (code, name) inside model data and search widget for displaying in POS Client but the problem is this take a long time (10 minutes), so the client is very slow for start, the code is: from proteus import config, Model, Wizard config.set_xmlrpc(url) _Product = Model.get('product.product') _products = _Product.find([('active', '=', True)]) active_products = [] for p in _products: active_products.append((p.code, p.template.name)) using set_trytond is faster than set_xmlrpc, but obviously on remote connections it doesn't work. How Can I solved this problem ? Don't use proteus, it was not design for speed (even if some improvement will be welcome) but to behaves like the client. So for simple stufss like that why not just export to RPC a specific method and call it via XML-RPC (with or without proteus). Wow, Thank you very much Cedk, it's works fine and speed!
[tryton-dev] trytond: Clear taghandler at closing of the tag
trytond: Clear taghandler at closing of the tag URL: http://codereview.tryton.org/1047003/
Re: [tryton-dev] Fw: [tryton-commit] changeset in trytond: Fix crash in login with incorrect password...
* Cédric Krier: " [tryton-dev] Fw: [tryton-commit] changeset in trytond: Fix crash in login with incorrect password..." (Fri, 30 Aug 2013 11:34:54 +0200): > This fix affect 2.8 but I don't see how to backport it on 2.8 because in > some way, it changes the API (which is against the rules). > But on the other hands, the API is broken in 2.8. As long as an issue doesn't cause serious damage in a stable release, I wouldn't backport API changes. > Any ideas? If you feel, that you want to offer a version with API breakage, you could do so by creating a separate branch like http://hg.tryton.org/proposed-updates/2.8/. But I doubt that it will justify the time and effort. -- Mathias Behrle MBSolutions Gilgenmatten 10 A D-79114 Freiburg Tel: +49(761)471023 Fax: +49(761)4770816 http://m9s.biz UStIdNr: DE 142009020 PGP/GnuPG key availabable from any keyserver, ID: 0x8405BBF6 signature.asc Description: PGP signature
Re: [tryton-dev] trytond: Migration to python-sql
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Al 30/08/13 01:06, En/na Cédric Krier ha escrit: > On 29/08/13 22:58 +0200, Sergi Almacellas Abellana wrote: >>> Yes it is linked to the fact that you create a DB with a >>> translatable language. >> >> So maybe adding a test that installs a database in a translatable >> language should help to prevent those issues. > > Maybe but it will be a very slow test and I think it should install > all languages. > >> I can work on it if you can provide some guide. >> >>> But I think the issue is just reveal but python-sql, the >>> get_access should return always True for root user. >> >> Sorry but didn't understand you here. > > Oops should be: > > But I think the issue is just reveal by python-sql, the get_access > should return always True for root user > >>> I will submit a patch on trunk for that. >> >> Trunk of tryton or trunk of python-sql? >> >> I want to test the patch when done, so would be great if you can >> inform me :) > > It is here: http://codereview.tryton.org/1049002/ > That solved the problem for me. I will report further issues on the codereview. - -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEbBAEBAgAGBQJSIHN3AAoJEGRfwiQCVal5cJwH+IidhBUPW96Ev5wrngouyVJr LiGSyCr1Pz11FGBJs2++zoN/6BKgMtiauLVBpqmRGpjgr2TuG1trE4vZMAKESE7d CssacX1NV53O+IQR8+ucPqwiDG1CY/vHhQLsIaGdHrUZCATFGhyBvpX8YPsGjvKq OV8Ur0z3eS358LcKRFlLL6ZSFxD/ua28dLJ6HB3NzI9qKpTUSc5njr6rtkAA+ifa DHPgiHwUVLClzc+4/7eIUaNRdhFP3U/vf/QvKs6ecT/S5sLSCYP1/UsCVvv0/pqP 8nlg1zqD4JeyTQIgYKsEtmwkslJUvpmQHY6rN19jGDzWEvKa7HC72MuOm2b+NA== =keXy -END PGP SIGNATURE-
[tryton-dev] Fw: [tryton-commit] changeset in trytond: Fix crash in login with incorrect password...
Hi, This fix affect 2.8 but I don't see how to backport it on 2.8 because in some way, it changes the API (which is against the rules). But on the other hands, the API is broken in 2.8. Any ideas? - Forwarded message from Albert Cervera i Areny - Date: Fri, 30 Aug 2013 07:48:34 +0200 From: Albert Cervera i Areny To: tryton-com...@googlegroups.com Subject: [tryton-commit] changeset in trytond: Fix crash in login with incorrect password... Reply-To: h...@tryton.org X-Bogosity: Ham, tests=bogofilter, spamicity=0.00, version=1.2.3 changeset 5236aa254801 in /home/hg/trytond details: http://hg.tryton.org/trytond?cmd=changeset;node=5236aa254801 description: Fix crash in login with incorrect password by renaming delete to remove issue3346 review1044002 diffstat: trytond/res/user.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diffs (21 lines): diff -r ec01d544372f -r 5236aa254801 trytond/res/user.py --- a/trytond/res/user.py Thu Aug 22 08:06:39 2013 +0200 +++ b/trytond/res/user.py Fri Aug 30 07:46:45 2013 +0200 @@ -461,7 +461,7 @@ password = password.encode('utf-8') password_sha = hashlib.sha1(password).hexdigest() if password_sha == user_password: -LoginAttempt.delete(login) +LoginAttempt.remove(login) return user_id LoginAttempt.add(login) return 0 @@ -497,7 +497,7 @@ cls.create([{'login': login}]) @classmethod -def delete(cls, login): +def remove(cls, login): cursor = Transaction().cursor cursor.execute('DELETE FROM "' + cls._table + '" WHERE "login" = %s', (login,)) - End forwarded message - -- 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/ pgpRsDesf2ioF.pgp Description: PGP signature
Re: [tryton-dev] Update another field from Function field
On 30/08/13 00:39 -0700, Martín Guzmán wrote: > Hi all! I'm trying to change the value of a field inside a Function field > getter. When I tried to call the write method I get this: "InternalError: > cannot execute UPDATE in a read-only transaction". Is there a way to do > it? You could change every read calls from readonly to not-readonly: http://doc.tryton.org/2.8/trytond/doc/ref/models/models.html?highlight=rpc#trytond.model.Model.__rpc__ But I hardly descourage you to do so because it will break the design of Tryton. > If you can't, how can I update a field each time a view is refreshed? You can not but could you elaborate on why you want to do this. -- 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/ pgp_C9146R3Wk.pgp Description: PGP signature
Re: [tryton-dev] Image (binary fields) on reports
How would be added on the ODT field? > > You should use Insert => Frame. Then in the "Options" tab, in the "name" field : image: (my_object.format_image(), 'image/jpeg') format_image should return a StringIO object build from your binary field, "image/jpeg" should be the MIME type of your image. Let me know if that works properly. Jean CAVALLO Coopengo
[tryton-dev] Update another field from Function field
Hi all! I'm trying to change the value of a field inside a Function field getter. When I tried to call the write method I get this: "InternalError: cannot execute UPDATE in a read-only transaction". Is there a way to do it? If you can't, how can I update a field each time a view is refreshed? Thanks for advance. Martín Guzmán
Re: [tryton-dev] Proteus problem: slow xmlrpc
On 29/08/13 20:34 -0700, oscar_alvarez wrote: > Hi Devs > > I am using set_xmlrpc method of proteus for access to a database with 3200 > products, but this process in starting in POS client take a long time (10 > minutes), creating list tuple (code, name) from products > > > from proteus import config, Model, Wizard > _Product = Model.get('product.product') > print dir(_Product) > > _products = _Product.find([('active', '=', True)]) > active_products = [] > for p in _products: > active_products.append((p.code, p.template.name)) > print p.template.name > > > Using set_trytond is fasther than xmlrpc, but obviously doesn't work for > remote connections. > > How can I solved this problem? See https://groups.google.com/d/msg/tryton-dev/L9ZT1nfM1L4/tFr24V-92y8J -- 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/ pgp7tvJmHIrAS.pgp Description: PGP signature
Re: [tryton-dev] Slow xmlrpc with Proteus
On 29/08/13 20:16 -0700, adriana.diaz.otalva...@gmail.com wrote: > Hi, Devs > > I am using proteus with set_xmlrpc connection for access to a database with > 3200 products, and I need create a list of tuples as (code, name) inside > model data and search widget for displaying in POS Client but the problem > is this take a long time (10 minutes), so the client is very slow for > start, the code is: > > from proteus import config, Model, Wizard > > config.set_xmlrpc(url) > > _Product = Model.get('product.product') > _products = _Product.find([('active', '=', True)]) > > active_products = [] > for p in _products: > active_products.append((p.code, p.template.name)) > > using set_trytond is faster than set_xmlrpc, but obviously on remote > connections it doesn't work. > > How Can I solved this problem ? Don't use proteus, it was not design for speed (even if some improvement will be welcome) but to behaves like the client. So for simple stufss like that why not just export to RPC a specific method and call it via XML-RPC (with or without proteus). -- 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/ pgp7Xvt5JF9os.pgp Description: PGP signature