IRC logs of #tryton for Monday, 2012-07-09

chat.freenode.net #tryton log beginning Mon Jul 9 00:00:02 CEST 2012
2012-07-09 04:38 -!- lukio1(~lukio@190.220.23.130) has left #tryton
2012-07-09 09:24 <pietervdr> Hi, tried to install trytond_account_nl-2.2.2 but I get an ImportError: No module named version, when I initialize the dbase. Any Ideas?
2012-07-09 10:27 -!- pjstevns(~pjstevns@nfg3.nfgs.net) has left #tryton
2012-07-09 17:08 <rhubner> Hi nicoe
2012-07-09 17:10 <nicoe> rhubner: hello
2012-07-09 17:12 <rhubner> nicoe: hi... I tried to catch the dates but I got no success yet...
2012-07-09 17:12 <nicoe> rhubner: You should send a codereview asap with your changes so that we can rate your midterm stuff
2012-07-09 17:12 <nicoe> rhubner: explain what youy did
2012-07-09 17:15 <rhubner> nicoe: I made a sql with the same cursor defined in modelview.py... But it gives error! Can you give me an idea how to get the dates and send them to client?
2012-07-09 17:15 <nicoe> rhubner: show us what you did
2012-07-09 17:19 <rhubner> nicoe: I did some tests like this: http://pastebin.com/wRWDY2d5
2012-07-09 17:20 <nicoe> What does the SQL give as error ?
2012-07-09 17:20 <rhubner> nicoe: I'd like to get at least the dates before putting in codereview
2012-07-09 17:21 <rhubner> nicoe: this > http://pastebin.com/wRWDY2d5
2012-07-09 17:22 <nicoe> rhubner: I know, but what is the error ?
2012-07-09 17:26 <rhubner> nicoe: syntax error at or near "'party.party'"
2012-07-09 17:26 <rhubner> LINE 1: SELECT write_date FROM 'party.party'__history WHERE (id...
2012-07-09 17:28 <rhubner> nicoe: But I also think that it is not the right file. I do not understand how the modelstorage.py works..
2012-07-09 17:28 <udono> rhubner: hi, it must be party_party__history
2012-07-09 17:28 <nicoe> If you do not show us anything it will be difficult to comment please make a codereview
2012-07-09 17:29 <nicoe> anyway, as udono said it is not 'party.party' but party_party
2012-07-09 17:30 <nicoe> In the code you show you're using self._name and not self._table_name
2012-07-09 17:30 <nicoe> oups not self._table_name but self.table_name
2012-07-09 17:33 <rhubner> nicoe udono: i understood now.. tks
2012-07-09 17:33 <rhubner> nicoe: what correct file to make this?
2012-07-09 17:34 <rhubner> nicoe: And how can I do to access it later?
2012-07-09 17:37 <nicoe> rhubner: the correct file is probably modelsql (but according to me _history could have been defined in modelstorage)
2012-07-09 17:37 <nicoe> this method should be callable just like fileds_view_get is
2012-07-09 17:41 <rhubner> nicoe: could I then make the call inside the method fields_view_get and define the method callable in modelsql.py?
2012-07-09 17:42 <nicoe> rhubner: no
2012-07-09 17:42 <nicoe> the fields_view_get method get information about the view for one model
2012-07-09 17:43 <nicoe> the data you will return is linked to specific instance of this model
2012-07-09 17:48 <rhubner> nicoe: But how should I call this method that i will define? This is confusing to me...
2012-07-09 17:50 <nicoe> In the client when you call 'display' on your widget you should call the method to get the information
2012-07-09 17:52 <rhubner> nicoe: Haaa ok.. I did not think could make this call directly!
2012-07-09 17:52 <nicoe> rhubner: this is a rpc call
2012-07-09 17:53 <nicoe> rhubner: look after other rpc calls (there are example all around the client)
2012-07-09 17:53 <nicoe> rhubner: do not forget to make your method rpc-callable also
2012-07-09 17:54 <rhubner> nicoe: Ok! I'll try to finish this part today and then I'll post the codereview
2012-07-09 17:56 <rhubner> nicoe: How is a method callable rpc? If it seems like which methods and which files?
2012-07-09 17:58 <nicoe> rhubner: please post the codereview asap as we are in the evaluation week
2012-07-09 17:59 <nicoe> rhubner: look in modelview.py how fields_view_get has been made callable
2012-07-09 17:59 <nicoe> rhubner: it is in __init__.py
2012-07-09 18:00 <nicoe> rhubner: not __init__.py but the __init__ method
2012-07-09 18:02 <rhubner> nicoe: ok.. Can i do codereview tonight?
2012-07-09 18:03 <nicoe> rhubner: of course
2012-07-09 18:10 <rhubner> nicoe: where I add the method on the server? Or should I create a new class or new file?
2012-07-09 18:14 <nicoe> rhubner: I don't understand your question
2012-07-09 18:14 <nicoe> rhubner: you should have two codereviews : one for the client, one for the server
2012-07-09 18:17 <rhubner> nicoe: no no.. i am talking about the code... where I put the method to extract the dates? In which file? modelsql.py? It will be a new method or a new class?
2012-07-09 18:19 <nicoe> rhubner: I think the right place is modelsql.py
2012-07-09 18:19 <nicoe> rhubner: It will obviously be a method
2012-07-09 19:41 -!- rhubner(~rhubner@187.59.91.204) has left #tryton
2012-07-09 23:42 <rhubner> udono: hi
2012-07-09 23:43 <rhubner> udono: An error is showing when i did a RPCExecute: Calling method get_history_tables on model party.address is not allowed!
2012-07-09 23:44 <rhubner> udono: Do you know what is this?
2012-07-09 23:48 <rhubner> udono: i am just calling: result = RPCExecute('model', record.model_name, 'get_history_tables')

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