chat.freenode.net #tryton log beginning Wed 09 Oct 2019 12:00:02 AM CEST | ||
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 22:56 | |
-!- thaneor1(~lenovo3@r179-25-49-137.dialup.adsl.anteldata.net.uy) has joined #tryton | 02:25 | |
-!- yangoon1(~mathiasb@106-163-142-46.pool.kielnet.net) has joined #tryton | 02:29 | |
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton | 05:28 | |
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton | 06:21 | |
-!- Timitos(~kpreisler@2001:a61:5a4:b101:762b:62ff:fe84:ed7e) has joined #tryton | 06:41 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 07:19 | |
-!- nicoe(~nicoe@2a02:2788:54:5a3:7e2a:31ff:fe5e:b25d) has joined #tryton | 07:53 | |
mrichez | hi, 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 |
---|---|---|
cedk | mrichez: you need to replace the None value by something in your key function | 09:47 |
mrichez | cedk: 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 |
cedk | mrichez: you are sorting using a tuples? That's very strange | 09:52 |
cedk | mrichez: but then you can use () as default value | 09:53 |
mrichez | cedk: yes it's tuples, i'm extending sorting key on purchase_requests | 09:53 |
cedk | mrichez: be also careful that None in the tuple will break the sorting | 10:07 |
cedk | ACTION do not like the Python 3 exception against None comparison | 10:08 |
mrichez | cedk: not work with None... here's my code: https://pastebin.com/m3XvpywP | 10:09 |
cedk | mrichez: I would just not put the key with None value | 10:10 |
mrichez | cedk: but how to sort with this key then ? i use it to group my purchase requests | 10:11 |
cedk | mrichez: I do not see the problem | 10:13 |
cedk | mrichez: the requests will be sorted | 10:14 |
mrichez | in 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 |
cedk | mrichez: and what will be the problem? | 10:19 |
cedk | mrichez: the value is None for those removed keys | 10:20 |
mrichez | cedk: not always None... my custom field could have a value | 10:22 |
cedk | mrichez: but you remove only when it is None | 10:25 |
mrichez | cedk: ok | 10:26 |
mrichez | cedk: Thanks! working :-) | 10:33 |
-!- thaneor(~lenovo3@r179-25-49-137.dialup.adsl.anteldata.net.uy) has joined #tryton | 10:43 | |
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton | 10:52 | |
-!- rpit(~rpit@h-213.61.178.154.host.de.colt.net) has joined #tryton | 11:11 | |
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton | 11:59 | |
-!- SimAlbertiBeltra(sim6matrix@gateway/shell/matrix.org/x-hvecsbvmodgppbzj) has joined #tryton | 12:55 | |
-!- nminix(~greta@123-243-101-209.static.tpgi.com.au) has joined #tryton | 13:15 | |
nminix | Hello 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 |
nminix | pwd = admin". Any help is greatly appreciated. | 13:25 |
cedk | nminix: trytond.conf does not store password since many years | 13:26 |
cedk | nminix: database initialization is done with trytond-admin | 13:26 |
cedk | http://docs.tryton.org/projects/server/en/latest/topics/setup_database.html#topics-setup-database | 13:26 |
nminix | I 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 |
cedk | nminix: what version is it? | 13:34 |
nminix | tryton-server/xenial,xenial.now 3.8.3-1 | 13:35 |
cedk | nminix: 3.8 is no more supported since 2.5 years | 13:36 |
cedk | nminix: you should use a supported version like 5.0 which is LTS | 13:36 |
cedk | check https://discuss.tryton.org/t/release-process/395 | 13:38 |
nminix | I'm going via the `python setup.py install` on 5.0.0 now | 13:43 |
cedk | nminix: an easy way to try Tryton is to use the Docker image: http://www.tryton.org/download#docker | 13:45 |
-!- Springwurm_(~Springwur@5.104.149.54) has joined #tryton | 13:50 | |
-!- nminix__(~greta@123-243-101-209.static.tpgi.com.au) has joined #tryton | 13:53 | |
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton | 13:54 | |
-!- plaes_(~plaes@plaes.org) has joined #tryton | 13:55 | |
-!- thaneor(~lenovo3@179.26.155.16) has joined #tryton | 15:13 | |
-!- thaneor1(~lenovo3@r167-56-55-56.dialup.adsl.anteldata.net.uy) has joined #tryton | 15:35 | |
-!- thaneor(~lenovo3@r167-56-55-56.dialup.adsl.anteldata.net.uy) has joined #tryton | 15:38 | |
-!- plaes(~plaes@plaes.org) has joined #tryton | 16:46 | |
-!- plaes(~plaes@unaffiliated/amd) has joined #tryton | 16:46 | |
-!- rpit(~rpit@p4FF497C4.dip0.t-ipconnect.de) has joined #tryton | 20:01 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 21:22 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!