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 #tryton22:56
-!- thaneor1(~lenovo3@r179-25-49-137.dialup.adsl.anteldata.net.uy) has joined #tryton02:25
-!- yangoon1(~mathiasb@106-163-142-46.pool.kielnet.net) has joined #tryton02:29
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton05:28
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton06:21
-!- Timitos(~kpreisler@2001:a61:5a4:b101:762b:62ff:fe84:ed7e) has joined #tryton06:41
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton07:19
-!- nicoe(~nicoe@2a02:2788:54:5a3:7e2a:31ff:fe5e:b25d) has joined #tryton07:53
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!09:45
cedkmrichez: you need to replace the None value by something in your key function09:47
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...09:49
cedkmrichez: you are sorting using a tuples? That's very strange09:52
cedkmrichez: but then you can use () as default value09:53
mrichezcedk: yes it's tuples, i'm extending sorting key on purchase_requests09:53
cedkmrichez: be also careful that None in the tuple will break the sorting10:07
cedkACTION do not like the Python 3 exception against None comparison10:08
mrichezcedk: not work with None... here's my code: https://pastebin.com/m3XvpywP10:09
cedkmrichez: I would just not put the key with None value10:10
mrichezcedk: but how to sort with this key then ? i use it to group my purchase requests10:11
cedkmrichez: I do not see the problem10:13
cedkmrichez: the requests will be sorted10:14
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 ?10:17
cedkmrichez: and what will be the problem?10:19
cedkmrichez: the value is None for those removed keys10:20
mrichezcedk: not always None... my custom field could have a value10:22
cedkmrichez: but you remove only when it is None10:25
mrichezcedk: ok10:26
mrichezcedk: Thanks! working :-)10:33
-!- thaneor(~lenovo3@r179-25-49-137.dialup.adsl.anteldata.net.uy) has joined #tryton10:43
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton10:52
-!- rpit(~rpit@h-213.61.178.154.host.de.colt.net) has joined #tryton11:11
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton11:59
-!- SimAlbertiBeltra(sim6matrix@gateway/shell/matrix.org/x-hvecsbvmodgppbzj) has joined #tryton12:55
-!- nminix(~greta@123-243-101-209.static.tpgi.com.au) has joined #tryton13:15
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_13:25
nminixpwd = admin". Any help is greatly appreciated.13:25
cedknminix: trytond.conf does not store password since many years13:26
cedknminix: database initialization is done with trytond-admin13:26
cedkhttp://docs.tryton.org/projects/server/en/latest/topics/setup_database.html#topics-setup-database13:26
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.13:30
cedknminix: what version is it?13:34
nminixtryton-server/xenial,xenial.now 3.8.3-113:35
cedknminix: 3.8 is no more supported since 2.5 years13:36
cedknminix: you should use a supported version like 5.0 which is LTS13:36
cedkcheck https://discuss.tryton.org/t/release-process/39513:38
nminixI'm going via the `python setup.py install` on 5.0.0 now13:43
cedknminix: an easy way to try Tryton is to use the Docker image: http://www.tryton.org/download#docker13:45
-!- Springwurm_(~Springwur@5.104.149.54) has joined #tryton13:50
-!- nminix__(~greta@123-243-101-209.static.tpgi.com.au) has joined #tryton13:53
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton13:54
-!- plaes_(~plaes@plaes.org) has joined #tryton13:55
-!- thaneor(~lenovo3@179.26.155.16) has joined #tryton15:13
-!- thaneor1(~lenovo3@r167-56-55-56.dialup.adsl.anteldata.net.uy) has joined #tryton15:35
-!- thaneor(~lenovo3@r167-56-55-56.dialup.adsl.anteldata.net.uy) has joined #tryton15:38
-!- plaes(~plaes@plaes.org) has joined #tryton16:46
-!- plaes(~plaes@unaffiliated/amd) has joined #tryton16:46
-!- rpit(~rpit@p4FF497C4.dip0.t-ipconnect.de) has joined #tryton20:01
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton21:22

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