IRC logs of #tryton for Monday, 2013-01-07

chat.freenode.net #tryton log beginning Mon Jan 7 00:00:01 CET 2013
2013-01-07 12:00 -!- mr_amit(~amit@1.22.99.209) has left #tryton
2013-01-07 15:07 <zodman> cedk, i recived a admin perms from codereview, are you need something ?
2013-01-07 15:15 <cedk> zodman: I give you viewer permission because for some user google doesn't send email except if they are users
2013-01-07 15:15 <zodman> ok
2013-01-07 16:32 <sharoonthomas> cedk: based on the fixture added to doctests when they are added to test suites, it seems like doc tests only work with SQLite
2013-01-07 16:32 <sharoonthomas> cedk: is that correct ? example: http://hg.tryton.org/2.4/modules/stock/file/a3b4525ee61e/tests/test_stock.py#l491
2013-01-07 16:34 <cedk> sharoonthomas: no
2013-01-07 16:36 <sharoonthomas> cedk: are databases created and dropped before each test suite is run ? or is it for each test case ? where is this handled ?
2013-01-07 16:39 <cedk> sharoonthomas: it depends
2013-01-07 16:39 <cedk> sharoonthomas: all in one DB except for scenario
2013-01-07 16:40 <sharoonthomas> cedk: ok
2013-01-07 16:40 <sharoonthomas> cedk: my problem is I am trying to clean up the test cases of nereid as you suggested to use the existing tryton testing framework which depends on unittest
2013-01-07 16:41 <sharoonthomas> cedk: the nereid tests exploit the use of class based test fixtures introduced in unittest2 (std unit test in python 2.7+)
2013-01-07 16:41 <sharoonthomas> cedk: these class based fixtures create and drop the database before and after each test
2013-01-07 16:41 <sharoonthomas> cedk: what is your suggestion to get around this ?
2013-01-07 16:41 <cedk> sharoonthomas: it is too slow
2013-01-07 16:42 <cedk> sharoonthomas: make test transactional and rollback after each test
2013-01-07 16:43 <sharoonthomas> cedk: well, that is the root of the problem. you cannot rollback because web requests cannot be tested as the tests are written outside the dispatcher which commits code on successful completion of a request
2013-01-07 16:43 <sharoonthomas> cedk: for example, a POST to the registration page is tested by checking if it created a user record in the database
2013-01-07 16:44 <cedk> sharoonthomas: skip this layout
2013-01-07 16:44 <cedk> sharoonthomas: skip this layer
2013-01-07 16:45 <sharoonthomas> cedk: checking ...
2013-01-07 16:45 <Pilou> With postgresql, if the database creation takes a great time, the database can be created once and next used as a template database.
2013-01-07 16:46 -!- calbasi(~joan@14.66.14.37.dynamic.jazztel.es) has left #tryton
2013-01-07 16:49 <sharoonthomas> Pilou: thats an interesting approach, but would again require class based testing fixtures
2013-01-07 16:55 <sharoonthomas> cedk: looks like a possible solution and better solution. Its a level deeper and I guess integration tests should be left elsewhere.
2013-01-07 16:55 <sharoonthomas> cedk: nereid tests so far seem to be a blend of unit and integration tests
2013-01-07 17:45 <shomon> hi
2013-01-07 17:45 <shomon> I'm in the translations area in tryton and I only see english translations! What am I missing?
2013-01-07 18:08 <shomon> another question: how do you change the word "party" - the title of the party menu... I want to translate it
2013-01-07 18:23 <cedk> shomon: it is the name of the action linked to the menu entry
2013-01-07 18:39 <shomon> ah found it, thanks cedk!
2013-01-07 23:27 <plantian> hi guys, my upgrade of tryton and been postponed repeatedly but now I have time to try and upgrade, i have custom modules and existing database, is the best approach to use --update=all in each successive stable trytond version?
2013-01-07 23:27 <plantian> I also see this -- http://code.google.com/p/tryton/wiki/Migration_2_0 -- I hand apply all these after update in 2.0 version but before 2.2 --update=all right?
2013-01-07 23:28 <cedk> plantian: normally you should be able to upgrade directly to the last one
2013-01-07 23:30 <plantian> cedk: Okay, so I update all code and xml in modules, then load 1.8 database with psql, then I can just upgrade in 2.6 code base?
2013-01-07 23:31 <plantian> What about database changes, like the one listed here with regard to changes to column defaults: http://code.google.com/p/tryton/wiki/Migration_2_4
2013-01-07 23:33 <plantian> It seems that if my modules created integers, floats or numeric columns I would have to fix this by hand.
2013-01-07 23:33 <cedk> plantian: it should not be a real issue
2013-01-07 23:33 <cedk> plantian: but you can remove the default if you want
2013-01-07 23:34 <cedk> plantian: it only matters if you had such field with required=True because now 0 will be allowed
2013-01-07 23:37 <plantian> cedk: Okay, I will have to check all my modules.
2013-01-07 23:39 <cedk> plantian: yes there is a lot of change in the API over 4 versions
2013-01-07 23:41 <plantian> cedk: Has a process been developed for building mac client for development versions of trytond?
2013-01-07 23:41 <cedk> plantian: especially the Active Record, new workflow, new wizard
2013-01-07 23:42 <plantian> cedk: yes, new wizard will be a big problem to update, but I'm hoping it will be a lot better than the old wizard
2013-01-07 23:42 <cedk> plantian: no, I just build Mac client per release
2013-01-07 23:42 <Pilou> about mac building, you could follow http://code.google.com/p/tryton/wiki/BuildingMacOSXInstall (using updated versions of mentionned software): it works
2013-01-07 23:43 <plantian> Pilou: Yes problem is I only have 2 users that use mac client and no development machine.
2013-01-07 23:43 <cedk> plantian: then you don't need of trunk build
2013-01-07 23:44 <plantian> cedk: Typically I have had to deploy trunk version to get fixes.
2013-01-07 23:44 <cedk> Pilou: by the way, we should not wait too long to include GIS patch
2013-01-07 23:44 <cedk> Pilou: otherwise it will be too close of the next release
2013-01-07 23:44 <plantian> Hopefully not this time, but it is problematic if I need trunk version fixes but there is no way to build client.
2013-01-07 23:45 <cedk> plantian: fix happens in released series also
2013-01-07 23:45 <Pilou> cedk: when starts the freeze ?
2013-01-07 23:46 <cedk> Pilou: 1 month before the release but big patch should be there long before
2013-01-07 23:48 <cedk> ACTION forgot to choose the next release date
2013-01-07 23:48 <plantian> cedk: I was just looking to see where that was.
2013-01-07 23:48 <plantian> cedk: The date for 2.8 right?
2013-01-07 23:49 <cedk> plantian: done
2013-01-07 23:50 <cedk> plantian: I have to go, bye
2013-01-07 23:50 <plantian> cedk: Okay thanks.
2013-01-07 23:51 <plantian> april 22nd, I guess

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