chat.freenode.net #tryton log beginning Sat Sep 25 00:00:01 CEST 2010 | ||
2010-09-25 00:11 -!- rednul__(~rednul@host-174-45-250-246.bln-mt.client.bresnan.net) has joined #tryton | ||
2010-09-25 00:57 -!- sharoon(~sharoon@92.26.139.112) has joined #tryton | ||
2010-09-25 01:21 -!- zodman(~andres-va@foresight/developer/zodman) has joined #tryton | ||
2010-09-25 02:49 -!- digitalsatori(~tony@116.233.250.229) has joined #tryton | ||
2010-09-25 03:53 -!- digitalsatori(~tony@116.233.250.229) has joined #tryton | ||
2010-09-25 05:20 -!- yangoon(~mathiasb@p549F64ED.dip.t-dialin.net) has joined #tryton | ||
2010-09-25 06:47 -!- timewulf(~timewulf@essn-5d83144f.pool.mediaWays.net) has joined #tryton | ||
2010-09-25 08:09 -!- timewulf(~timewulf@essn-5d83144f.pool.mediaWays.net) has left #tryton | ||
2010-09-25 08:11 -!- sharoon(~sharoon@92.26.143.117) has joined #tryton | ||
2010-09-25 08:11 <sharoon> cedk: ping (Good morning) | ||
2010-09-25 08:40 -!- enlightx(~enlightx@dynamic-adsl-94-34-180-143.clienti.tiscali.it) has joined #tryton | ||
2010-09-25 09:08 -!- chrue(~chrue@dialin-65225.ewetel.net) has joined #tryton | ||
2010-09-25 09:23 -!- eLBati(~elbati@94.162.80.153) has joined #tryton | ||
2010-09-25 09:35 -!- sharoon(~sharoon@78.144.212.138) has joined #tryton | ||
2010-09-25 09:40 <cedk> sharoon: pong | ||
2010-09-25 09:40 <sharoon> cedk: did u have time to see the code i uploaded to codereview? | ||
2010-09-25 09:40 <cedk> sharoon: yes but send me the link | ||
2010-09-25 09:40 <sharoon> http://codereview.appspot.com/2214046/ | ||
2010-09-25 10:05 <cedk> sharoon: done | ||
2010-09-25 10:05 <cedk> sharoon: good job | ||
2010-09-25 10:05 <sharoon> cedk: thanks :) | ||
2010-09-25 10:05 <cedk> sharoon: why don't you put wrong data in reference? | ||
2010-09-25 10:06 <sharoon> cedk: yep, that would kind of complete the coverage i guess | ||
2010-09-25 10:06 <cedk> sharoon: you can do it with an SQL query | ||
2010-09-25 10:07 <sharoon> cedk: got you, some invalid model and some invalid id | ||
2010-09-25 10:07 <cedk> sharoon: so now we should fix the issue you found :-) | ||
2010-09-25 10:07 <sharoon> cedk: yes :) | ||
2010-09-25 10:13 <sharoon> cedk: brb, i can try to fix these issues as part of my improvement in 1.8 based on what you think should be right behaviour | ||
2010-09-25 10:13 <sharoon> ACTION brb | ||
2010-09-25 10:14 <cedk> sharoon: I think it should be better to fix it separatly | ||
2010-09-25 10:14 <cedk> sharoon: like that we can backport it to other series | ||
2010-09-25 10:15 <cedk> sharoon: without breaking stuff as we had now test for it :-) | ||
2010-09-25 10:37 <sharoon> cedk: yes | ||
2010-09-25 10:40 <sharoon> cedk: so these tests have to be backported to v1.6 also right? | ||
2010-09-25 10:50 -!- Timitos(~kp@88.217.184.172) has joined #tryton | ||
2010-09-25 11:50 <sharoon> cedk: ping | ||
2010-09-25 11:54 <cedk> sharoon: pong | ||
2010-09-25 11:54 <cedk> sharoon: I don't think we need to backport test | ||
2010-09-25 11:55 <sharoon> cedk: looks like there is a prob with the historisation too.. or it could be a prob with the way i am testing | ||
2010-09-25 11:56 <sharoon> cedk: i create a record in model x and then write to same record | ||
2010-09-25 11:56 <sharoon> cedk: the history table should have the values of created record right (not write)? | ||
2010-09-25 11:58 <sharoon> cedk: but looks like the value in the history table is the written value | ||
2010-09-25 11:59 <cedk> sharoon: the history table have a copy the values of the original table | ||
2010-09-25 12:02 <sharoon> cedk: but when i read from the history table i am getting the second values that were written | ||
2010-09-25 12:03 <cedk> sharoon: yes, I copy the values at writing | ||
2010-09-25 12:04 <cedk> sharoon: so the last record in history table is the same then in origin table | ||
2010-09-25 12:04 <sharoon> cedk: but search returns only 1 record | ||
2010-09-25 12:05 <cedk> sharoon: which search? | ||
2010-09-25 12:06 <sharoon> cedk: a search on the history table itself | ||
2010-09-25 12:06 <cedk> sharoon: you can not | ||
2010-09-25 12:06 <cedk> sharoon: you do a "SELECT" sql? | ||
2010-09-25 12:06 <sharoon> cedk: nope, i went for a search :/ | ||
2010-09-25 12:07 <cedk> sharoon: there is no model for history table | ||
2010-09-25 12:08 <sharoon> cedk: got it | ||
2010-09-25 12:08 <sharoon> cedk: so prob with my test as expected | ||
2010-09-25 13:28 -!- chrue(~chrue@dialin-65225.ewetel.net) has joined #tryton | ||
2010-09-25 13:40 -!- digitalsatori(~tony@116.233.250.229) has joined #tryton | ||
2010-09-25 14:28 -!- sharoon(~sharoon@78.144.212.138) has joined #tryton | ||
2010-09-25 15:15 -!- heg(~heg@dyn.144-85-151-245.dsl.vtx.ch) has joined #tryton | ||
2010-09-25 15:48 -!- chrue(~chrue@dialin-65225.ewetel.net) has joined #tryton | ||
2010-09-25 16:07 -!- eLBati(~elbati@94.163.152.205) has joined #tryton | ||
2010-09-25 16:48 <cedk> sharoon: I think your read test should also test translation | ||
2010-09-25 16:49 <sharoon> cedk: ah! thats a good addition | ||
2010-09-25 16:49 <cedk> sharoon: by the way, how did you compute the coverage? | ||
2010-09-25 16:50 <sharoon> cedk: i used nosetests with coverage | ||
2010-09-25 16:50 <sharoon> cedk: http://somethingaboutorange.com/mrl/projects/nose/0.11.1/plugins/cover.html | ||
2010-09-25 16:51 <cedk> sharoon: so you can run trytond test with nosetests? | ||
2010-09-25 16:51 <sharoon> cedk: yes | ||
2010-09-25 16:51 <sharoon> cedk: extremely useful because u can run single tests etc | ||
2010-09-25 16:51 <cedk> sharoon: how? | ||
2010-09-25 16:52 <sharoon> cedk: just install nosetests, then go to the folder where the test file resides and you can chose which tests to run | ||
2010-09-25 16:52 <sharoon> cedk: you can run just failed tests | ||
2010-09-25 16:52 <sharoon> cedk: also there is a useful plugin to give pdb prompt when a test fails, thats too useful | ||
2010-09-25 16:52 <cedk> sharoon: what is the command line? | ||
2010-09-25 16:53 <sharoon> cedk: Terminal, Command Prompt (for the less fortunate windows users) | ||
2010-09-25 16:55 <sharoon> cedk: if its about the script i just pasted, its an extract of the Tryton WSGI middleware for nereid | ||
2010-09-25 16:55 <cedk> sharoon: no, per example I just run test like this: python trytond/tests/test_sequence.py | ||
2010-09-25 16:56 <cedk> sharoon: so I'm wondering how you must do to run it with nosetest instead of unittest | ||
2010-09-25 16:56 <sharoon> cedk: nosetests will ad a script to /usr/bin | ||
2010-09-25 16:56 <sharoon> cedk: so u can use nosetests -v test_sequence.py | ||
2010-09-25 16:57 <cedk> sharoon: ok that's what I wanted to know ;-) | ||
2010-09-25 16:57 <sharoon> cedk: essentially `nosetests -v --with-coverage test_modelaql.py` | ||
2010-09-25 16:58 <cedk> sharoon: will you continue https://bugs.tryton.org/roundup/issue1641 | ||
2010-09-25 16:59 <sharoon> cedk: i can continue that, hmm i never saw that i had an issue in my name | ||
2010-09-25 17:01 <sharoon> cedk: if i write documentatin for the read method will it be picked up by the documentation tool? | ||
2010-09-25 17:02 <cedk> sharoon: I don't understand | ||
2010-09-25 17:03 <sharoon> cedk: if i write the doc in the doc string for the read method, it wont be used by the documentation tool which generates tryton doc right? | ||
2010-09-25 17:03 <cedk> sharoon: yes, docstring is for devs and doc/*.rst is more general | ||
2010-09-25 17:04 <sharoon> cedk: then may be we should split into developer documentation? | ||
2010-09-25 17:05 <cedk> sharoon: don't understand | ||
2010-09-25 17:06 <sharoon> cedk: i think we should have API documentation which could be easily generated using sphinx if we write doc strings for all functions | ||
2010-09-25 17:06 <cedk> sharoon: I think it is useless | ||
2010-09-25 17:07 <cedk> sharoon: doc is the code | ||
2010-09-25 17:07 <cedk> sharoon: Python documentation is done this way | ||
2010-09-25 17:07 <sharoon> cedk: really? i think python documentation ues what i said... it uses doc strings to generate the doc no? | ||
2010-09-25 17:08 <sharoon> s/ues/uses | ||
2010-09-25 17:08 <cedk> sharoon: no | ||
2010-09-25 17:09 <cedk> sharoon: http://svn.python.org/view/python/trunk/Doc/library/collections.rst?view=markup | ||
2010-09-25 17:11 <cedk> sharoon: http://svn.python.org/view/python/trunk/Lib/collections.py?view=markup | ||
2010-09-25 17:12 <cedk> sharoon: as you can see the doc online is different of the docstring | ||
2010-09-25 17:13 <sharoon> cedk: thanks, got it... so in code only dev doc and doctests | ||
2010-09-25 17:14 <cedk> sharoon: yes but we can not make doctests in Tryton | ||
2010-09-25 17:15 <sharoon> cedk: not for models, but for testing tools, util functions etc | ||
2010-09-25 17:15 <cedk> sharoon: why not | ||
2010-09-25 17:15 <cedk> sharoon: but they should be runned by the trytond/tests/test_tryton.py script | ||
2010-09-25 17:16 <sharoon> cedk: and with nose its even more easy, it can load doctests also? is there a test bot for tryton? | ||
2010-09-25 17:16 <sharoon> cedk: if not we could think of hudson | ||
2010-09-25 17:18 <cedk> sharoon: http://www.tryton.org/community.html | ||
2010-09-25 17:18 <cedk> sharoon: http://tests.tryton.org/~test/postgresql.html | ||
2010-09-25 17:18 <sharoon> cedk: can you share the script that generates this html output? | ||
2010-09-25 17:19 <cedk> sharoon: http://tungwaiyip.info/software/HTMLTestRunner.html | ||
2010-09-25 17:20 <cedk> sharoon: we don't need of all this crappy test bot | ||
2010-09-25 17:20 <cedk> sharoon: a simple cron task is enough | ||
2010-09-25 17:20 <sharoon> cedk: so the cron just downloads latest repos | ||
2010-09-25 17:20 <sharoon> cedk: runs the test and dumps html which gets displayed by a web server, i like it | ||
2010-09-25 17:21 <cedk> sharoon: yes | ||
2010-09-25 17:21 <cedk> sharoon: also I receive an email if a test fails | ||
2010-09-25 17:21 <sharoon> cedk: ah thats interesting, need it for use at openlabs | ||
2010-09-25 17:22 <cedk> sharoon: and in fact, the script update the repo instead of new one | ||
2010-09-25 17:22 <sharoon> cedk: dint understand | ||
2010-09-25 17:23 <cedk> sharoon: the cron script don't clone a new repo each night but just update the previous one | ||
2010-09-25 17:23 <sharoon> cedk: got you | ||
2010-09-25 17:23 <cedk> sharoon: I will copy/paste the cron script, you will understand | ||
2010-09-25 17:24 <sharoon> thanks | ||
2010-09-25 17:24 <cedk> sharoon: http://paste.pocoo.org/show/267180/ | ||
2010-09-25 17:26 <sharoon> cedk: liked it :) iterate on configuration file | ||
2010-09-25 17:26 <cedk> sharoon: I think we should try to keep thing as simple as possible | ||
2010-09-25 17:27 <cedk> sharoon: I find hudson or any other similar tools too bloated | ||
2010-09-25 17:28 <sharoon> cedk: i have never used them, wanted to try this time... but this solution is quick and simple and I only need so much.. probably a lint plugin for hg | ||
2010-09-25 17:31 <cedk> sharoon: perhaps http://code.google.com/p/aspersievim/source/browse/compiler/pylint.vim | ||
2010-09-25 17:31 <cedk> sharoon: but I'm not a fan of such mix of tool | ||
2010-09-25 17:32 <sharoon> cedk: but pylint for vim is useful for me... will save some time | ||
2010-09-25 17:36 <cedk> sharoon: if you like it go for it :-) | ||
2010-09-25 18:28 -!- enlightx(~enlightx@dynamic-adsl-94-34-180-143.clienti.tiscali.it) has joined #tryton | ||
2010-09-25 18:48 -!- rednul_(~rednul@host-174-45-250-246.bln-mt.client.bresnan.net) has joined #tryton | ||
2010-09-25 18:53 -!- sharoon(~sharoon@92.26.129.164) has joined #tryton | ||
2010-09-25 18:54 -!- sharoon(~sharoon@92.26.129.164) has left #tryton | ||
2010-09-25 19:00 -!- sharoon(~sharoon@92.26.129.164) has joined #tryton | ||
2010-09-25 19:45 -!- ready(~ready@tiu.ligno.com) has joined #tryton | ||
2010-09-25 19:58 -!- chrue(~chrue@dialin-65225.ewetel.net) has joined #tryton | ||
2010-09-25 19:59 -!- pepeu(~manuel@187.137.64.63) has joined #tryton | ||
2010-09-25 20:00 -!- eLBati(~elbati@94.160.28.169) has joined #tryton | ||
2010-09-25 20:02 -!- pheller(~pheller@pool-173-48-216-195.bstnma.fios.verizon.net) has joined #tryton | ||
2010-09-25 20:03 <pheller> cedk: sorry about closing the issues before the patch; and sorry I did not attach the patch to the issues! I will do this from now on. | ||
2010-09-25 20:06 <cedk> pheller: no problem | ||
2010-09-25 21:30 -!- enlightx(~enlightx@dynamic-adsl-94-34-180-143.clienti.tiscali.it) has joined #tryton | ||
2010-09-25 21:49 -!- sharoon(~sharoon@92.26.129.164) has joined #tryton | ||
2010-09-25 21:53 -!- eLBati(~elbati@94.160.28.169) has joined #tryton | ||
2010-09-25 22:56 -!- sharoon(~sharoon@92.26.129.164) has joined #tryton | ||
2010-09-25 23:32 -!- sharoon(~sharoon@92.26.129.164) has joined #tryton |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!