IRC logs of #tryton for Thursday, 2011-11-10

chat.freenode.net #tryton log beginning Thu Nov 10 00:00:02 CET 2011
2011-11-10 02:55 <zxq9> Is there something wrong with the following declaration: driver_type = fields.Many2One('driver.type', 'Driver Type')
2011-11-10 02:55 <zxq9> I'm getting an ascii codec error every time I try to create a Many2One field.
2011-11-10 02:57 <zxq9> actually, I'm only getting this error when I try to make a Many2One field in a module's primary class. It works fine in a junction table.
2011-11-10 02:59 <zxq9> Here is an example of this: http://fpaste.org/J8xO/
2011-11-10 03:00 -!- ciupicri(~ciupicri@unaffiliated/ciupicri) has joined #tryton
2011-11-10 03:00 <plantian> zxq9: not sure if I can help but can you pastebin the traceback on something like http://paste.pocoo.org/
2011-11-10 03:00 <plantian> or fpaste is fine
2011-11-10 03:02 <zxq9> http://fpaste.org/37fI/
2011-11-10 03:02 <zxq9> Here you are. The error printed says "Error: 'ascii' codec can't decode byte 0xe3 in position 18: orginal not in range(128)"
2011-11-10 03:02 <zxq9> Which is the typical Python encoding error.
2011-11-10 03:03 <zxq9> 0xe3 = ã ('a' with a tilde above it) -- which is not present anywhere in the code or my data.
2011-11-10 03:03 <zxq9> This error is happening when I attempt to install the module.
2011-11-10 03:21 <plantian> Yeah that is real weird
2011-11-10 03:22 <zxq9> Any ideas?
2011-11-10 03:26 <plantian> zxq9: Not really anything springs to mind, can you get rid of the set null part ?
2011-11-10 03:27 <zxq9> I've tried that as well. Same error.
2011-11-10 03:28 <zxq9> I don't get why the driver.vehicle model's Many2One fields don't give the same error, though.
2011-11-10 03:28 <zxq9> I've tried this in a few different models to see what would happen, and I get similar problems each time, but only in a primary module -- and then sometimes it just works magically.
2011-11-10 03:30 <plantian> zxq9: Okay well I don't have anything genius really, can you try printing out the statements in add_fk? You will have to suffer through a bunch until your module loads if you are loading all the modules at once.
2011-11-10 03:34 <plantian> zxq9: Also, when you said the error printed, did you mean you inject code to print the error or just didn't include it in the traceback ?
2011-11-10 03:35 <zxq9> No, it was part of the pop-up screen, just at the top. It didn't produce an error message on the console, just the trace I pasted.
2011-11-10 03:35 <zxq9> It was a python generated error, not from the tryton code.
2011-11-10 03:36 <plantian> Are you running trytond in a console? That is what I usually do during dev. and the errors print there.
2011-11-10 03:36 <zxq9> at least, its the exact same error Python will give you if you try using unicode characters without declaring them.
2011-11-10 03:36 <zxq9> Yes, I am.
2011-11-10 03:36 <zxq9> And the output in the console is what I pasted.
2011-11-10 03:36 <zxq9> The pop up screen from the client had the Python error message at the top, not in the console output.
2011-11-10 03:38 <zxq9> ERROR:common.message:
2011-11-10 03:38 <zxq9> is the only line
2011-11-10 03:38 <zxq9> that wasn't in the paste.
2011-11-10 03:51 <zxq9> ERROR:sql:Wrong SQL: ALTER TABLE "driver_driver" ADD FOREIGN KEY ("driver_type") REFERENCES "driver_type" ON DELETE SET NULL
2011-11-10 03:51 <zxq9> So I see this now.
2011-11-10 03:52 <zxq9> But how does that result in a codec error in Python?
2011-11-10 05:07 <plantian> zxq9: Sorry, I had to step out. I have no idea about the codec, I would focus on this error first though. What DB are you using ?
2011-11-10 05:29 <plantian> nevermind I see it in the traceback
2011-11-10 11:46 <sisalp> hello, leaving for TUL now :-)
2011-11-10 11:46 <cedk> sisalp: on twitter
2011-11-10 11:46 <sisalp> where is the meeting point tonight ?
2011-11-10 11:46 <cedk> sisalp: vaudre 2
2011-11-10 11:46 <nicoe> sisalp: make some noise !
2011-11-10 11:46 <cedk> sisalp: it is in the Tryton calendar
2011-11-10 11:47 <sisalp> I check
2011-11-10 11:47 <cedk> sisalp: http://www.tryton.org/community/calendar.html
2011-11-10 11:47 <cedk> sisalp: https://www.google.com/calendar/b/0/render?eid=dTdmb2UzYm4wdHUzNjBtOHF2cTFlNWpybGsgcDRqaGdwOWo1YTJlaG5kZWJkZ2xvNnRzbGdAZw&ctz=Europe/Brussels&sf=true&output=xml
2011-11-10 11:50 <sisalp> Found, see you there if I'm not too late ;-)
2011-11-10 12:36 -!- sisalp(~dominique@annecy.sisalp.net) has left #tryton
2011-11-10 12:38 <yangoon1> Tryton T-shirt packed, leaving for TUL;)
2011-11-10 17:42 <Pander> My party tree view shows also category in the list. Now I also want so search or even sort on that column. How do I implement that? Current implementation is http://pastebin.com/Dn61R0Sh Thanks for any help on this one.
2011-11-10 17:49 <cedk> Pander: which version?
2011-11-10 17:53 <Pander> 2.0
2011-11-10 17:53 <cedk> Pander: you must add select="1" in the field tag of the XML view
2011-11-10 18:02 <Telesight> I have made a start with the Tryton 2.2 administration manual, if you want to review or help with writing parts of it, you are welcome ...
2011-11-10 18:08 <Pander> I have that: <xpath expr="/tree/field[@name=&quot;name&quot;]" position="after"><field name="categories_string" select="1"/> but categories column is unsortable and the client asks for implementation of search method when searching.
2011-11-10 18:10 <cedk> Pander: unsortable it is normal
2011-11-10 18:11 <cedk> Pander: and you searcher is wrong
2011-11-10 18:11 <Pander> cedk: sortable possible to enable?
2011-11-10 18:11 <cedk> Pander: you can not use self.categories
2011-11-10 18:12 <Pander> cedk: do I have to go over all the parties to get the categories?
2011-11-10 18:13 <cedk> Pander: http://doc.tryton.org/2.0/trytond/doc/ref/models/fields.html#order-field
2011-11-10 18:13 <cedk> Pander: I don't know what you are trying to do
2011-11-10 18:15 <Pander> cedk: I want to enable sorting and/or searching on the categories column in my party tree view
2011-11-10 18:16 <cedk> Pander: searching, you need to fix your searched
2011-11-10 18:17 <cedk> Pander: for sorting you must defaile an order_field
2011-11-10 18:24 <Telesight> To whom it may concern: see you tomorrow on TUL2011 !
2011-11-10 18:34 <nicoe> Telesight: see you ;)
2011-11-10 18:35 <Pander> cedk: I'll give it a go tomorrow, thanks for the pointers.
2011-11-10 22:51 -!- sampac(~spaccoud@def92-7-82-231-203-127.fbx.proxad.net) has left #tryton

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