IRC logs of #tryton for Tuesday, 2010-07-20

chat.freenode.net #tryton log beginning Tue Jul 20 00:00:02 CEST 2010
2010-07-20 01:17 -!- digitalsatori(~tony@116.233.240.151) has joined #tryton
2010-07-20 01:31 -!- zodman(~Miranda@67.223.236.231) has joined #tryton
2010-07-20 02:58 -!- digitalsatori(~tony@116.233.240.151) has joined #tryton
2010-07-20 05:19 -!- yangoon(~mathiasb@p549F5F80.dip.t-dialin.net) has joined #tryton
2010-07-20 06:01 -!- mr_amit(~amit@117.254.177.155) has joined #tryton
2010-07-20 08:18 -!- ohuisman(~ohuisman@62.58.29.41) has joined #tryton
2010-07-20 08:25 -!- Timitos(~timitos@88.217.184.172) has joined #tryton
2010-07-20 08:27 -!- paepke(~paepke@p5B32B353.dip.t-dialin.net) has joined #tryton
2010-07-20 09:43 -!- digitalsatori(~tony@116.233.240.151) has joined #tryton
2010-07-20 09:49 -!- eLBati(~elbati@94.163.62.24) has joined #tryton
2010-07-20 10:06 -!- ohuisman(~ohuisman@62.58.29.41) has left #tryton
2010-07-20 10:59 -!- carlos(~carlos@84.120.37.193.dyn.user.ono.com) has joined #tryton
2010-07-20 11:05 -!- digitalsatori(~tony@116.233.240.151) has joined #tryton
2010-07-20 11:08 -!- MikaelPettersson(~chatzilla@host191-12.bornet.net) has joined #tryton
2010-07-20 11:26 -!- bechamel(~user@chimie-prtx11.scf.fundp.ac.be) has joined #tryton
2010-07-20 11:32 -!- Red15(~red15@unaffiliated/red15) has joined #tryton
2010-07-20 11:56 -!- tekknokrat(~lila@dslb-188-102-049-029.pools.arcor-ip.net) has joined #tryton
2010-07-20 14:06 -!- dba(~daniel@static.88-198-196-34.clients.your-server.de) has joined #tryton
2010-07-20 14:07 -!- Red15(~red15@unaffiliated/red15) has joined #tryton
2010-07-20 14:11 -!- Mayank_OL(~openlabs@122.176.50.143) has joined #tryton
2010-07-20 14:12 <Mayank_OL> Is it possible to change view of a model from "Frontend" ??
2010-07-20 14:14 <Mayank_OL> when i tried to do so, i got an exception
2010-07-20 14:15 <Mayank_OL> You are not allowed to modify this record.
2010-07-20 14:15 <Mayank_OL> This record is part of the base configuration.
2010-07-20 14:16 <Mayank_OL> can someone tell me the way to change the view of a model from python file?
2010-07-20 14:19 <bechamel> Mayank_OL: by default you cannot change records that comes from the xml files, this ensure consistency
2010-07-20 14:19 <bechamel> but changing a view from a python file is another stuff
2010-07-20 14:20 <Mayank_OL> i tried to change a view from python file and got the same exception
2010-07-20 14:21 <Mayank_OL> bechamel: can you give me some example for changing view from python file?
2010-07-20 14:22 <bechamel> yes, if you want to change a record that comes from xml you must allow it on the model, I search for an example ..
2010-07-20 14:22 <cedk> Mayank_OL: you can not update view from other module, you must use the inherit way
2010-07-20 14:23 <cedk> Mayank_OL: http://hg.tryton.org/hgwebdir.cgi/modules/account_product/file/71ba024d452e/product.xml#l7
2010-07-20 14:23 <cedk> Mayank_OL: this adds new fields on product view
2010-07-20 14:24 <Mayank_OL> cedk: can we do the same thing from python file?
2010-07-20 14:24 <cedk> Mayank_OL: I don't understand
2010-07-20 14:25 <Mayank_OL> cedk: i want to add new fields dynamically to a model. So, i want to create their view from python file
2010-07-20 14:28 <bechamel> Mayank_OL: views of move lines are dynamics : http://hg.tryton.org/hgwebdir.cgi/modules/account/file/26e46d15ab63/move.py#l1231
2010-07-20 14:29 <cedk> Mayank_OL: first, I'm not sure it is a good idea to create dynamic fields on models
2010-07-20 14:30 <cedk> Mayank_OL: then you can create a ir.ui.view record that inherit the view and put the xpath code
2010-07-20 14:31 <Mayank_OL> cedk: thanks. i got it.
2010-07-20 14:32 <cedk> Mayank_OL: if you want we can discuss about what you try to do. There is perhaps a better way.
2010-07-20 14:35 <Mayank_OL> cedk: sure
2010-07-20 14:36 <Mayank_OL> cedk: I am trying to add fields in product.product according to user specifications, something like magento attributes
2010-07-20 14:37 <Mayank_OL> cedk: so, to create view of these fields i am trying to add this field in view of products
2010-07-20 14:38 <cedk> Mayank_OL: why not using a one2many linked to a model with attribute name and value
2010-07-20 14:41 <Mayank_OL> cedk: the one2many will create fields but the view for the new fields will not be the way, user defined it.
2010-07-20 14:42 <bechamel> Mayank_OL: can you give an example of field you would like to add ? this may help us to understand
2010-07-20 14:44 <Mayank_OL> cedk: Eg: a selection field
2010-07-20 14:45 -!- eLBati(~elbati@94.163.59.181) has joined #tryton
2010-07-20 14:47 <Mayank_OL> bechamel: if we try to add selection field name "color" in products
2010-07-20 14:48 <Mayank_OL> bechamel: which would have some options like "red", "black" etc
2010-07-20 14:48 <cedk> Mayank_OL: I think it is a false solution because given this possibility to the user will not bring any advantage, you can not reuse this field on other part of the system
2010-07-20 14:49 <cedk> Mayank_OL: and also the GUI will become very fast ugly and meanless
2010-07-20 14:49 <cedk> per example: with the color example, this field has only meaning for a stockable (or consumable) product but not for a service one
2010-07-20 14:50 <cedk> so if you want to be complet, you must add a invisible attributes on the field that makes it invisible for service product
2010-07-20 14:50 <bechamel> cedk: if i understand well, those field are just there to define which options are shown on the webshop
2010-07-20 14:51 <cedk> bechamel: i don't understand
2010-07-20 14:52 <Mayank_OL> cedk: we are trying to add fields based on the product category, so that this field appears only for the specified categories
2010-07-20 14:52 <bechamel> Mayank_OL: cmiiw, the idea is to allow something like: "this shoe is available in color red or black, and with or without a decoration" and allow the web user to choose
2010-07-20 14:53 <bechamel> Mayank_OL: how much fields do you have to add ?
2010-07-20 14:53 <Mayank_OL> bechamel: yes
2010-07-20 14:53 <Mayank_OL> bechamel: it depends, it can be any number
2010-07-20 14:54 <cedk> but this is different product (variants)
2010-07-20 15:03 <Mayank_OL> cedk: i dont understand what you intend to explain to me
2010-07-20 15:03 -!- paepke(~paepke@p4FEB2394.dip0.t-ipconnect.de) has joined #tryton
2010-07-20 15:04 <bechamel> Mayank_OL: a red shoe and a blue shoe are two separate products, you cannot mix them when you purhcase, sale or store them
2010-07-20 15:07 <Mayank_OL> bechamel: a product category -- shoe
2010-07-20 15:07 <Mayank_OL> can have a attribute -- color which can be selection to red and blue
2010-07-20 15:07 <Mayank_OL> later we require to add a new attribute size --- numeric
2010-07-20 15:07 <Mayank_OL> so we need to add a numeric field dynamically for size to the products for category shoe
2010-07-20 15:07 <Mayank_OL> bechamel: this is what we actually intend to implement
2010-07-20 15:08 <cedk> Mayank_OL: but what is the real goal?
2010-07-20 15:08 <cedk> Mayank_OL: where this information will be used?
2010-07-20 15:08 <cedk> Mayank_OL: from where the information comes?
2010-07-20 15:08 <Mayank_OL> cedk: this actually is the real goal and can be used in the ecommerce extension to nereid
2010-07-20 15:09 <cedk> Mayank_OL: a goal can not be a technical stuff
2010-07-20 15:09 <bechamel> Mayank_OL: IMO you cannot add those options dynamically, they must correspond to separate products (that can not be created dynamicaly)
2010-07-20 15:14 <cedk> also storing code as data is not good for security, for maintenance, for update
2010-07-20 15:16 <Mayank_OL> cedk: i dont understand
2010-07-20 15:16 <cedk> Mayank_OL: you will store model definition as data instead of code
2010-07-20 15:18 <Mayank_OL> cedk: yes
2010-07-20 15:18 <cedk> Mayank_OL: so this is bad for previous reasons
2010-07-20 15:21 <cedk> I'm not sure you go in the right direction with nereid because you try to make something that does everthing
2010-07-20 15:21 <cedk> which is not in the philosophy of Tryton
2010-07-20 15:21 <cedk> We have extention of models/views through modules
2010-07-20 15:22 <cedk> and I think you should use that
2010-07-20 15:22 <cedk> and write modules for each needs
2010-07-20 15:23 <cedk> you can not except user to design correctly their data model, it is the job of a dev
2010-07-20 15:30 <bechamel> cedk: s/user/magento/ :)
2010-07-20 15:32 -!- paepke(~paepke@p4FEB2394.dip0.t-ipconnect.de) has left #tryton
2010-07-20 15:41 -!- Mayank_OL(~openlabs@122.176.50.143) has left #tryton
2010-07-20 15:42 <cedk> bechamel: no, I think they try to duplicate functionality of magento into nereid
2010-07-20 15:45 <bechamel> cedk: anyway, I can understand that a user does not want to see two products (red shoe, blue shoe) but only one and the color as an option
2010-07-20 16:00 <cedk> bechamel: yes but that must be solved with variants
2010-07-20 16:32 -!- digitalsatori(~tony@116.233.240.151) has joined #tryton
2010-07-20 16:33 -!- tekknokrat(~lila@p5796BEF2.dip.t-dialin.net) has joined #tryton
2010-07-20 17:10 -!- tekknokr1t(~lila@p5796B285.dip.t-dialin.net) has joined #tryton
2010-07-20 17:40 -!- paepke(~paepke@p4FEB794A.dip.t-dialin.net) has joined #tryton
2010-07-20 18:01 -!- tekoholic(~quassel@174-29-154-168.hlrn.qwest.net) has joined #tryton
2010-07-20 18:32 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2010-07-20 18:44 -!- ohuisman(~ohuisman@62.58.29.41) has joined #tryton
2010-07-20 18:59 -!- MikaelPettersson(~chatzilla@host191-12.bornet.net) has joined #tryton
2010-07-20 20:06 -!- MikaelPettersson(~chatzilla@host191-12.bornet.net) has joined #tryton
2010-07-20 20:10 -!- MikaelPettersson(~chatzilla@host191-12.bornet.net) has joined #tryton
2010-07-20 21:40 -!- ohuisman(~ohuisman@dhcp-077-251-140-095.chello.nl) has joined #tryton
2010-07-20 21:40 -!- pheller(~pheller@c1fw236.constantcontact.com) has joined #tryton
2010-07-20 21:41 <pheller> hello.... does anyone have a problem where the server does not stop when it receives SIGINT ?
2010-07-20 21:42 <yangoon> pheller: if there is a client accessing the server and there is a running process, yes
2010-07-20 21:43 <pheller> hmmh, I have no clients connected. I can start the server, and immediately send SIGINT, and it will never return
2010-07-20 21:56 <pheller> weird. when I stop the process within Eclipse, it appears to die, though the process is still alive. However, ctrl-c when running interactively from a terminal does nothing
2010-07-20 21:57 <pheller> appears to be getting hung up in server.py when it attempts to join threads.
2010-07-20 22:03 <pheller> hmmh, definitely in netrpc. If I disable it, no problem.
2010-07-20 22:15 -!- zodman(~Miranda@67.223.236.231) has joined #tryton
2010-07-20 22:42 <mr_amit> yangoon: I have similar issue with openerp server
2010-07-20 22:42 <mr_amit> I have fixed this issue for myself
2010-07-20 22:43 <mr_amit> use `os._exit` instead of `sys.exit`
2010-07-20 22:43 <mr_amit> as sys.exit doesn't work perfectly with threads
2010-07-20 22:44 <mr_amit> though not sure whether this is a good soln
2010-07-20 22:44 <mr_amit> as os._exit will terminate the process immediately
2010-07-20 22:44 <mr_amit> without given vm a chance to release the resources
2010-07-20 22:55 -!- paepke(~paepke@p4FEB2AD2.dip.t-dialin.net) has joined #tryton
2010-07-20 22:57 -!- ohuisman(~ohuisman@dhcp-077-251-140-095.chello.nl) has left #tryton
2010-07-20 22:57 -!- paepke_(~paepke@p4FEB2AD2.dip.t-dialin.net) has joined #tryton
2010-07-20 23:04 -!- carlos(~carlos@84.120.37.193.dyn.user.ono.com) has joined #tryton

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