IRC logs of #tryton for Thursday, 2013-01-24

chat.freenode.net #tryton log beginning Thu Jan 24 00:00:02 CET 2013
2013-01-24 03:29 <iamnoob> good day.. just wondering.. what the "test" folder inside the official module's folder doing?
2013-01-24 03:47 <plantian> iamnoob: As far as I know trytond.test is for the module tests, ie. stock/tests, and for trytond tests.
2013-01-24 03:48 <iamnoob> plantian: ok got it. thanks :)
2013-01-24 05:27 <iamnoob> plantian: ping
2013-01-24 05:27 <plantian> iamnoob: hey
2013-01-24 05:29 <iamnoob> plantian: hi there, having a problem updating my database its seem its not like on version 1.4 where tryton automatically create the tables based on the models i declare in my .py file and xml
2013-01-24 05:30 <plantian> iamnoob: What is the error you are having?
2013-01-24 05:30 <iamnoob> plantian: pastebin.com/LYxJGifh here is the error
2013-01-24 05:33 <plantian> iamnoob: What does your __init__.py file look like? And can you pastebin the model catgroup.catgroup?
2013-01-24 05:33 <iamnoob> plantian: ok wait gimme a sec
2013-01-24 05:35 <iamnoob> platian: here's my __init__.py -> pastebin.com/SLenUEp8
2013-01-24 05:38 <iamnoob> plantian: here my model link -> pastebin.com/mF8S8CDq
2013-01-24 05:40 <plantian> There are some things in your model that might be wrong but seems like the table would still be made. What is the XML? And what command are you running to update the models with trytond?
2013-01-24 05:41 <plantian> iamnoob:
2013-01-24 05:41 <iamnoob> plantian: my XML is this : pastebin.com/m0UapU0T
2013-01-24 05:42 <iamnoob> plantian: i did notice at the logs there was an error in parsing my XML... i did a side to side comparison with the country module.. and i cant find or got idea whats causing the error..
2013-01-24 05:43 <iamnoob> plantian: im using this command to update the database -> trytond -d 100 -u CatalogGroup
2013-01-24 05:43 <iamnoob> plantian: where 100 is the name of my test database
2013-01-24 05:46 <plantian> iamnoob: There is another xml error?
2013-01-24 05:47 <iamnoob> plantian: umm no there's only one.. the one im talking about is line 1 of pastebin.com/LyxJGifh
2013-01-24 06:01 <plantian> iamnoob: Yeah it seems really odd. I don't think the error is that the table is missing but rather the model cannot be found in the python code.
2013-01-24 06:12 <plantian> iamnoob: Yeah I don't see a problem, how are you deploying your module? Are you editing it in-place with the trytond installation?
2013-01-24 06:12 <iamnoob> plantian: still looking for what i may have miss..
2013-01-24 06:14 <iamnoob> plantian: i have this copy in my desktop.. thats the one im editing.. then pasting it into the trytond directory
2013-01-24 06:15 <iamnoob> plantian: i mean.. copying it.. then trying to update the database again with "trytond -d 100 -u CatalogGroup"
2013-01-24 06:15 <plantian> yeah maybe make sure the code is correct in the destination dir, for whatever reason it may be wrong there
2013-01-24 06:16 <plantian> just a thought
2013-01-24 06:18 <iamnoob> plantian: i put my module in this directory.. usr/local/lib/python2.6/dist-package/trytond-2.6.2-py2.6.egg/trytond/modules/CatalogGroup
2013-01-24 06:19 <iamnoob> plantian: what im confused about is.. the official modules is in directory .. usr/local/lib/python2.6/dist-package/<official module name.egg>
2013-01-24 07:10 <plantian> iamnoob: yeah, i'm not sure how that part works
2013-01-24 07:54 <iamnoob> plantian: i go on try some more things.. there must be something i havent dont yet. thanks again
2013-01-24 09:13 <iamnoob> still cant figure out what's wrong. --> pastebin.com/LyxJGifh , i already check my XML .. and i dont get why its not working --> pastebin.com/m0UapU0T
2013-01-24 09:14 <iamnoob> i dont know if its because it didnt create the table in the database.. or its something else.. anyone care to help me please?
2013-01-24 09:28 <cedk> iamnoob: did you register your Model in the Pool?
2013-01-24 09:35 <iamnoob> cedk: hi cedk.. is it in the __init__.py? --> pastebin.com/3pS32ZT1
2013-01-24 09:36 <cedk> iamnoob: could you put http in front of your links, otherwise it is not links
2013-01-24 09:37 <iamnoob> cedk: ok sorry , its http://pastebin.com/3pS32ZT1
2013-01-24 09:38 <cedk> iamnoob: so CatalogGroup has a wrong name
2013-01-24 09:38 <jcav> iamnoob: If you can , we would also need the CatalogGroup.py file
2013-01-24 09:39 <iamnoob> jcav: here.. http://pastebin.com/mF8S8CDq theres my .py file
2013-01-24 09:42 <iamnoob> cedk: i dont get it.. is it not the Class name i should put in the "def register()"?
2013-01-24 09:43 <jcav> iamnoob: it is
2013-01-24 09:45 <iamnoob> jcav: how bout on the module= ?, is it the model name?
2013-01-24 09:45 <iamnoob> jcav: i mean .. the model name inside the class?
2013-01-24 09:46 <jcav> iamnoob: module= should be the name of your module, usually it matches the first part of the __name__ of your class for readability
2013-01-24 09:46 <jcav> iamnoob: so here it looks good
2013-01-24 09:49 <iamnoob> jcav: on the error .. it says i got a problem on <record model="ir.action.act_window.view"> see line 45 http:// pastebin.com/m0UapU0T plantian said its good.. i do too.. but got confused on the error.
2013-01-24 09:49 <iamnoob> jcav: http://pastebin.com/m0UapU0T
2013-01-24 09:49 <jcav> iamnoob: I saw that. Did you try commenting out this part ? Just to be sure ?
2013-01-24 09:50 <jcav> iamnoob: and are you sure your tryton.cfg uses the right xml filename ?
2013-01-24 09:52 <iamnoob> jcav: here is my tryton.cfg http://pastebin.com/VqeCgNPu
2013-01-24 09:56 <iamnoob> jcav: trying out commenting of those part.. brb
2013-01-24 10:08 <iamnoob> jcav: hi got the database updated now.. i think its the <data skiptest> tag that some how causing the problem
2013-01-24 10:10 <iamnoob> jcav: got my moduled installed now. but when i try to open it. i got the error that i had yesterday..
2013-01-24 10:10 <jcav> iamnoob: which was ?
2013-01-24 10:10 <iamnoob> jcav: http://pastebin.com/iRrwEXpp
2013-01-24 10:11 <iamnoob> jcav: the list.index(x): x not in list error
2013-01-24 10:12 <jcav> iamnoob: did you comment the act_catgroups_form_view2 part of the xml ?
2013-01-24 10:15 <iamnoob> jcav: yes.. but it keeps on giving me error.. until i try to remove the <data skiptest> tag, after that when i run "trytond -d 100 -u CatalogGroup" it success' | here is the latest one http://pastebin.com/AwRwKN38
2013-01-24 10:18 <jcav> iamnoob: Ok, so just to be sure, what is the name of your module ? the folder in which are your files ?
2013-01-24 10:19 <iamnoob> jcav: ohh .. i named it 'CatalogGroup' also
2013-01-24 10:19 <iamnoob> jcav: ohh .. i named it 'CatalogGroup' that the Folder name where i put all the .py and .cfg
2013-01-24 10:25 <jcav> iamnoob: I think (not sure about this one) that the name of the folder is sometime used by the framework
2013-01-24 10:25 <jcav> iamnoob: so if you can, try to renae i
2013-01-24 10:25 <jcav> rename it "catgroup"
2013-01-24 10:26 <iamnoob> jcav: i see... alright. will try it out. thanks
2013-01-24 10:26 <jcav> iamnoob: you're welcome
2013-01-24 10:37 -!- calbasi(~joan@14.66.14.37.dynamic.jazztel.es) has left #tryton
2013-01-24 10:46 <iamnoob> jcav: after i changed it.. it give me an error. it finding the old folder name
2013-01-24 10:46 <iamnoob> jcav: maybe the foldername really needs to be the same as the .py and .xml file . but not sure.
2013-01-24 18:26 -!- ciupicri(~ciupicri@unaffiliated/ciupicri) has left #tryton
2013-01-24 21:25 <plantian> Hey guys, if I want to run a wizard programmatically do I just instantiate one? Is there a good example in the modules where that might happen?
2013-01-24 21:26 <plantian> In my example I am trying to pay an invoice with the PayInvoice wizard.
2013-01-24 21:31 <cedk> plantian: there is no good example because it was not design for
2013-01-24 21:32 <cedk> plantian: but I guess you could instanciate and call _execute
2013-01-24 21:32 <cedk> plantian: but why don't you use pay_invoice method?
2013-01-24 21:37 <plantian> cedk: Yeah okay, I will check that out. I wrote this code a long time ago.
2013-01-24 21:37 <plantian> It is a wizard the pays many invoices at once.

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