IRC logs of #tryton for Wednesday, 2019-10-09

chat.freenode.net #tryton log beginning Wed 09 Oct 2019 12:00:02 AM CEST
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton00:10
-!- thaneor1(~lenovo3@r179-25-49-137.dialup.adsl.anteldata.net.uy) has joined #tryton04:10
-!- yangoon1(~mathiasb@106-163-142-46.pool.kielnet.net) has joined #tryton04:10
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton07:10
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton08:10
-!- Timitos(~kpreisler@2001:a61:5a4:b101:762b:62ff:fe84:ed7e) has joined #tryton08:10
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:10
-!- nicoe(~nicoe@2a02:2788:54:5a3:7e2a:31ff:fe5e:b25d) has joined #tryton09:10
mrichezhi, how do you deal with typeerror on sorted function ? i've added a custom field( one2many not mandatory) on a model . I've added this field as key on sorted method. When having lines with an empty value and not empty value for this field, i got an error: '<' not supported between instances of "mycustommodel" and NoneType. Thanks for help!11:10
cedkmrichez: you need to replace the None value by something in your key function11:10
mrichezcedk: i try with '' or 0 ... but it's not working because not the same type.... i saw for datetime, there's a datetime.min but in my case it's a field one2many from a custom model...11:10
cedkmrichez: you are sorting using a tuples? That's very strange11:10
cedkmrichez: but then you can use () as default value11:10
mrichezcedk: yes it's tuples, i'm extending sorting key on purchase_requests11:10
cedkmrichez: be also careful that None in the tuple will break the sorting12:10
cedkACTION do not like the Python 3 exception against None comparison12:10
mrichezcedk: not work with None... here's my code: https://pastebin.com/m3XvpywP12:10
cedkmrichez: I would just not put the key with None value12:10
mrichezcedk: but how to sort with this key then ? i use it to group my purchase requests12:10
cedkmrichez: I do not see the problem12:10
cedkmrichez: the requests will be sorted12:10
mrichezin purchase_requests it's the same key used for sorted and groupby functions... so if i remove the key with None value, it will not be use in the groupby function ?12:10
cedkmrichez: and what will be the problem?12:10
cedkmrichez: the value is None for those removed keys12:10
mrichezcedk: not always None... my custom field could have a value12:10
cedkmrichez: but you remove only when it is None12:10
mrichezcedk: ok12:10
mrichezcedk: Thanks! working :-)12:10
-!- thaneor(~lenovo3@r179-25-49-137.dialup.adsl.anteldata.net.uy) has joined #tryton12:10
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton12:10
-!- rpit(~rpit@h-213.61.178.154.host.de.colt.net) has joined #tryton13:10
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton13:10
-!- SimAlbertiBeltra(sim6matrix@gateway/shell/matrix.org/x-hvecsbvmodgppbzj) has joined #tryton14:10
-!- nminix(~greta@123-243-101-209.static.tpgi.com.au) has joined #tryton15:10
nminixHello there, I'm in the process of setting up Tryton as a test in a Ubuntu 16.04 VM. I configured /etc/tryton/trytond.conf and ran # trytond -c /etc/tryton/trytond.conf -v . I then launch the Client on the same machine, and create a new profile connecting to localhost:8000. When I craete a new database I receive the error "Sorry, wrong password for the Tryton server." I'm using the password "admin" as I supplied in trytond.conf as "super_15:10
nminixpwd = admin". Any help is greatly appreciated.15:10
cedknminix: trytond.conf does not store password since many years15:10
cedknminix: database initialization is done with trytond-admin15:10
cedkhttp://docs.tryton.org/projects/server/en/latest/topics/setup_database.html#topics-setup-database15:10
nminixI followed that first, but my installation doesn't have trytond-admin. # find / -iname trytond-admin doesn't return any results. I installed from the xenial repos.15:10
cedknminix: what version is it?15:10
nminixtryton-server/xenial,xenial.now 3.8.3-115:10
cedknminix: 3.8 is no more supported since 2.5 years15:10
cedknminix: you should use a supported version like 5.0 which is LTS15:10
cedkcheck https://discuss.tryton.org/t/release-process/39515:10
nminixI'm going via the `python setup.py install` on 5.0.0 now15:10
cedknminix: an easy way to try Tryton is to use the Docker image: http://www.tryton.org/download#docker15:10
-!- Springwurm_(~Springwur@5.104.149.54) has joined #tryton15:10
-!- nminix__(~greta@123-243-101-209.static.tpgi.com.au) has joined #tryton15:10
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton15:10
-!- plaes_(~plaes@plaes.org) has joined #tryton15:10
-!- thaneor(~lenovo3@179.26.155.16) has joined #tryton17:10
-!- thaneor1(~lenovo3@r167-56-55-56.dialup.adsl.anteldata.net.uy) has joined #tryton17:10
-!- thaneor(~lenovo3@r167-56-55-56.dialup.adsl.anteldata.net.uy) has joined #tryton17:10
-!- plaes(~plaes@plaes.org) has joined #tryton18:10
-!- plaes(~plaes@unaffiliated/amd) has joined #tryton18:10
-!- rpit(~rpit@p4FF497C4.dip0.t-ipconnect.de) has joined #tryton22:10
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton23:10

Generated by irclog2html.py 2.16.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!