chat.freenode.net #tryton log beginning Tue Nov 8 00:00:01 CET 2011 | ||
2011-11-08 03:51 -!- ciupicri(~ciupicri@unaffiliated/ciupicri) has joined #tryton | ||
2011-11-08 04:59 -!- udono(~udono@ip-109-91-208-150.unitymediagroup.de) has left #tryton | ||
2011-11-08 05:47 -!- udono(~udono@ip-109-91-208-150.unitymediagroup.de) has left #tryton | ||
2011-11-08 05:50 -!- udono(~udono@ip-109-91-208-150.unitymediagroup.de) has left #tryton | ||
2011-11-08 05:50 -!- udono(~udono@ip-109-91-208-150.unitymediagroup.de) has left #tryton | ||
2011-11-08 07:36 <zxq9> Anyone familiar with Many2Many junctions? I am having a 'Wrong field name (blah) for foo.bar in order!' problem. | ||
2011-11-08 07:37 <zxq9> I'm sure I just don't understand the way Tryton expects to see junction table references. | ||
2011-11-08 08:21 <zxq9> If I add "from trytond.pool import Pool" to the module I'm trying to create a many2many relationship from, the error changes to 'Wrong field name (blah) for foo.bar in order! | ||
2011-11-08 08:22 <zxq9> Jut like all the other issues I've had, I'm sure I'm just missing some very simple element that isn't explicit in the docs. | ||
2011-11-08 08:25 <zxq9> Haha. If I just close all the error screens (the same one pops many times), the actual Many2Many function within the program is correct. O.o | ||
2011-11-08 08:25 <zxq9> I feel like this should tell me something about my mistake, but I'm confused! This shouldn't work if the field reference is actually wrong...? | ||
2011-11-08 09:57 <zxq9> Hi cedk. I have a question for you about many2many fields. | ||
2011-11-08 09:59 <sisalp> Hi, I need a piece of advice about protocols : is xml-rpc protocol still useful since version 2.2 | ||
2011-11-08 09:59 <cedk> zodman: don't ask to ask | ||
2011-11-08 10:00 <cedk> sisalp: useful for external application/language that doesn't talk json | ||
2011-11-08 10:00 <sisalp> will it be maintained over time ? | ||
2011-11-08 10:01 <cedk> zxq9: don't ask to ask | ||
2011-11-08 10:02 <cedk> sisalp: I don't see any reason to drop it | ||
2011-11-08 10:02 <sisalp> version 2.0 configuration already mentionned json-rpc, was it implemented for true ? | ||
2011-11-08 10:03 <sisalp> net-rpc is dropped, correct ? | ||
2011-11-08 10:03 <cedk> sisalp: don't understand 1th question | ||
2011-11-08 10:03 <cedk> sisalp: and yes net-rpc is dropped | ||
2011-11-08 10:05 <sisalp> I read configuration file for 2.0 and json-rpc is configured, while I never cared. So json-rpc already existed in 2. ? | ||
2011-11-08 10:05 <zxq9> cedk: Just making sure you were here. (^.^) | ||
2011-11-08 10:05 <sisalp> 2.0 | ||
2011-11-08 10:06 <cedk> zxq9: I'm not the only one to answer | ||
2011-11-08 10:06 <zxq9> So far today you are. | ||
2011-11-08 10:06 <cedk> sisalp: yes | ||
2011-11-08 10:07 <sisalp> version 2.0 asked for 4 ports net-rpc, xml-rpc, json-rpc and webdav ; version 2.2 asks for 3 ports xml-rpc, json-rpc and webdav ; correct ? | ||
2011-11-08 10:08 <zxq9> With fields.Many2Many I am getting the error ('Error', 'Wrong field name (blah) for foo.bar in order!'), but the actual function of the junction table is working correctly in the client (after closing the error messages). | ||
2011-11-08 10:08 <zxq9> I think I'm missing something. | ||
2011-11-08 10:09 <cedk> sisalp: yes | ||
2011-11-08 10:10 <cedk> zxq9: you try to order on something wrong | ||
2011-11-08 10:10 <sisalp> thank you, I can finalize my script now. | ||
2011-11-08 10:11 <zxq9> What does "order" mean here? Call, reference, sort? | ||
2011-11-08 10:12 <zxq9> Do I have to import Pool in both source files? or does that matter? | ||
2011-11-08 10:15 <cedk> zxq9: order means sort | ||
2011-11-08 10:16 <cedk> zxq9: depends if you need it | ||
2011-11-08 10:19 <zxq9> What part of the Many2Many definition is causing an order operation? | ||
2011-11-08 10:19 <zxq9> Let me paste some code... I've obviously got something silly happening. | ||
2011-11-08 10:26 <cedk> zxq9: use a pastebin | ||
2011-11-08 10:52 <zxq9> Here is an example of my first problem "KeyError: vehicle.vehicle" http://fpaste.org/kRTT/ http://fpaste.org/icvI/ | ||
2011-11-08 10:53 <zxq9> I reduced the example to be extremely simple. | ||
2011-11-08 10:56 <cedk> zxq9: which error? | ||
2011-11-08 10:56 <zxq9> KeyError: 'vehicle.vehicle' | ||
2011-11-08 10:57 <cedk> zxq9: ok it is because the put a plurial for the _name of the class Vehicules | ||
2011-11-08 10:58 <cedk> zxq9: it is strange to put plurial for such name | ||
2011-11-08 10:59 <zxq9> OK, that was a silly mistake. | ||
2011-11-08 11:00 <zxq9> Now fixed. | ||
2011-11-08 11:00 <zxq9> Now this error: Exception: ('Error', 'Wrong field name (vehicle) for drivers.vehicle in order!') | ||
2011-11-08 11:00 <zxq9> And this order error happens, but the function of the module works fine. Do you need the XML? | ||
2011-11-08 11:06 <cedk> zxq9: it is because Tryton tries to order drivers.vehicle on vehicle field which is a many2one so it joins with the vehicle.vehicle and use the _rec_name | ||
2011-11-08 11:06 <cedk> zxq9: _rec_name has the value 'name' by default which is not defined | ||
2011-11-08 11:07 <zxq9> Should a field "name" be defined in the Vehicles() class in vehicles.py? | ||
2011-11-08 11:09 <cedk> zxq9: yes or change _rec_name | ||
2011-11-08 11:11 <zxq9> Where does _rec_name occur? | ||
2011-11-08 11:11 <cedk> zxq9: record name | ||
2011-11-08 11:12 <zxq9> Where can I define that? Is it an argument to Many2Many? | ||
2011-11-08 11:12 <cedk> zxq9: it is an attribute of the Model class | ||
2011-11-08 11:15 <cedk> zxq9: http://doc.tryton.org/2.2/trytond/doc/ref/models/models.html#trytond.model.Model._rec_name | ||
2011-11-08 11:16 <zxq9> Ah! | ||
2011-11-08 11:16 -!- pjstevns(~pjstevns@a83-163-46-103.adsl.xs4all.nl) has left #tryton | ||
2011-11-08 11:16 <zxq9> cedk, you're awesome. | ||
2011-11-08 11:17 <zxq9> I was looking in the Many2Many definition (>.<) | ||
2011-11-08 13:56 <oscar__> What do you think about sale list_price have a field additional with result to apply formula? | ||
2011-11-08 14:00 <oscar__> Hi, all ¿What do you think about sale list_price have a field additional with result to apply formula? | ||
2011-11-08 14:01 <cedk> oscar__: don't understand | ||
2011-11-08 14:01 <grasbauer> oscar__: don't understand | ||
2011-11-08 14:01 <grasbauer> opps ;) | ||
2011-11-08 14:02 <oscar__> in view fom for list price appear "Product - Quantity - Formula" | ||
2011-11-08 14:04 <oscar__> But in that view fom I can not see result, I can not know if formula is Ok | ||
2011-11-08 14:05 <oscar__> But in that view form I can not see result, I can not know if formula is Ok | ||
2011-11-08 14:05 <oscar__> I think we could add other Field named "Result" | ||
2011-11-08 14:06 <oscar__> it will be something this "Product - Quantity - Formula - Result" | ||
2011-11-08 14:06 <grasbauer> oscar__: check_formula is a constraint | ||
2011-11-08 14:09 <cedk> oscar__: how do you want to compute the result without any information on Quantity nor Product | ||
2011-11-08 14:11 <oscar__> Ok, but Result will be a function field read-only with attribute on_change with product and formula. | ||
2011-11-08 14:13 <cedk> oscar__: but there is not necessary a product and more over no quantities | ||
2011-11-08 14:13 <cedk> oscar__: what could be done is a wizard that ask for input and compute the price | ||
2011-11-08 14:21 <oscar__> I think that "Result" is only compute formula and view real value in $ | ||
2011-11-08 14:23 <oscar__> in Tree view, because is very important for a quick/fast evaluation the price list | ||
2011-11-08 14:32 <cedk> oscar__: but a formula has many parameters | ||
2011-11-08 14:34 <cedk> oscar__: indeed I don't really see what you try to test, the formula will always be valid | ||
2011-11-08 14:43 <oscar__> cedk: Maybe I confused you, sorry, the important for me is can view the value computed of formula in view tree. | ||
2011-11-08 14:44 <cedk> oscar__: but this computation depends on many parameters | ||
2011-11-08 14:49 <oscar__> cedk: Ahh ok thanks, however I will try add this feature and later say you how I was going... | ||
2011-11-08 14:51 <cedk> oscar__: price list must be seen as a generator, so it sounds strange to try to consume it | ||
2011-11-08 14:57 <oscar__> Ok, I understand | ||
2011-11-08 14:59 <cedk> oscar__: but perhaps you will find an elegant solution | ||
2011-11-08 15:05 <oscar__> Thanks, | ||
2011-11-08 15:47 <sisalp> hi, what is #jsondata_path = /var/www/localhost/tryton for ? | ||
2011-11-08 15:48 <cedk> sisalp: provide static data throught the json webserver | ||
2011-11-08 15:48 <sisalp> in case of several trytonds, shall I declare separate directories ? | ||
2011-11-08 15:51 <cedk> sisalp: it depends of your usage | ||
2011-11-08 15:52 <sisalp> I have several copies of the trytond source and run them independently on different ports | ||
2011-11-08 15:59 <sisalp> other question : in #privatekey = server.pem, in which directory should the life be ? and which permissions should be set on it ? | ||
2011-11-08 16:00 <cedk> sisalp: in the directory you prefer :-) | ||
2011-11-08 16:00 <cedk> sisalp: an just read access to the user of trytond is enough | ||
2011-11-08 16:01 <sisalp> and a last one (I hope) # Enable psyco module : should I ? | ||
2011-11-08 16:02 <sisalp> directory I guess I can give a path like ../certs but where is the root of the path (or tryton looks everywhere under its own root ?) | ||
2011-11-08 16:02 <cedk> sisalp: no it could generate crashes | ||
2011-11-08 16:03 <cedk> sisalp: the root is is the CWD of the process | ||
2011-11-08 16:04 <sisalp> you mean the one I'm in when I start it ? | ||
2011-11-08 16:05 <sisalp> I think I'll put an absolute path for key and cert. Will be ok ? | ||
2011-11-08 16:06 <sisalp> your answer on crash was related to psyco I guess | ||
2011-11-08 16:09 <sisalp> so last point I did not concluse is json data path. If I provide different directories for each independent process I guess I 'll get it right | ||
2011-11-08 16:10 <sisalp> by the way is tryton populating json data or should I populate it myself at installation time ? | ||
2011-11-08 16:12 <cedk> sisalp: yes better absolute path | ||
2011-11-08 16:12 <cedk> sisalp: trytond doesn't populate json_data | ||
2011-11-08 16:13 <cedk> sisalp: indeed the idea is to put a webclient using json-rpc | ||
2011-11-08 16:14 <sisalp> you mean that as long as just use gtk client, I don't have to care about json_data ? | ||
2011-11-08 16:14 <cedk> sisalp: no | ||
2011-11-08 16:15 <sisalp> no = you don't mean, or I don't have to care | ||
2011-11-08 16:15 <sisalp> ? | ||
2011-11-08 16:16 <cedk> sisalp: you don't have to care | ||
2011-11-08 16:16 <sisalp> cedk : I think I 'm all set, excellent merci | ||
2011-11-08 20:58 <durkham> yay , before i could ask my stupid question in here i solved it myself XD, tx for being here anyway | ||
2011-11-08 20:59 <plantian> ha np | ||
2011-11-08 21:00 -!- ciupicri(~ciupicri@unaffiliated/ciupicri) has joined #tryton | ||
2011-11-08 21:20 -!- durkham(~astrid@d166007.adsl.hansenet.de) has left #tryton | ||
2011-11-08 22:20 <tray> Hi, when installing Neso is there way of specifying the location of the sqlite file? I'm using win7. | ||
2011-11-08 22:24 <tray> The installation I completed had the database file created in my documents and settings folder. I was trying to use the Neso as portable application in that all the files were in one folder. | ||
2011-11-08 22:36 <tray> version=Neso 2.2 | ||
2011-11-08 22:38 <cedk> tray: yes there is a tip | ||
2011-11-08 22:39 <cedk> tray: you can create a directory .neso in the same folder as neso | ||
2011-11-08 22:39 <cedk> tray: then neso will use it instead of $HOME/.neso | ||
2011-11-08 22:46 <tray> Thanks cedk, I created the folder and then created a new database, and it works. |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!