IRC logs of #tryton for Tuesday, 2008-12-30

chat.freenode.net #tryton log beginning Tue Dec 30 00:00:01 CET 2008
CIA-10tryton: C?dric Krier <ced@b2ck.com> default * 220:242218d32445 website/Makefile: Fix PYTHONPATH for extract01:45
CIA-10tryton: C?dric Krier <ced@b2ck.com> default * 221:528553d4b6ae website/ (5 files in 3 dirs): Fix copyright translation01:45
-!- gremly(n=oscar@190.156.166.44) has joined #tryton02:55
-!- gremly(n=oscar@190.156.166.44) has joined #tryton03:39
-!- yangoon(n=mathiasb@p549F4E7D.dip.t-dialin.net) has joined #tryton05:19
-!- vengfulsquirrel_(n=penny@72-173-96-53.cust.wildblue.net) has joined #tryton05:29
-!- snowch(n=snowch@82.152.13.57) has left #tryton05:54
-!- Timitos(n=Timitos@88.217.184.172) has joined #tryton07:06
-!- udono(n=udono@dynamic-unidsl-85-197-24-142.westend.de) has joined #tryton07:58
-!- carlos(n=carlos@89.7.24.44) has joined #tryton08:49
-!- bechamel(n=user@85.201.86.139) has joined #tryton09:50
-!- cristi_an(n=cristi@89.120.211.206) has joined #tryton10:01
-!- evernichon(n=evernich@LAubervilliers-151-12-43-37.w80-14.abo.wanadoo.fr) has joined #tryton10:48
-!- cedk(n=ced@gentoo/developer/cedk) has joined #tryton10:49
-!- enlightx(n=enlightx@host-84-223-74-196.cust-adsl.tiscali.it) has joined #tryton11:28
CIA-10tryton: C?dric Krier <ced@b2ck.com> default * 222:bac0340576ae website/sphinx_build.py: Fix url scan for new layout11:40
CIA-10tryton: C?dric Krier <ced@b2ck.com> default * 223:b5b51b45f7a7 website/locale/fr_FR/LC_MESSAGES/ (tryton.mo tryton.po): Translate "kernel" into "noyau" in french11:40
cristi_ancedk: thx for you answers on group12:01
cristi_ani have the following scenario: created a new database and after that added some users with no right setted12:31
cristi_anwhat are the default right for those users ?12:32
-!- CIA-10(n=CIA@208.69.182.149) has joined #tryton12:32
cristi_anwhere are those right defined ? (or waht does means that they do not have rights) since i can create partties12:34
cristi_anafter installing that module with a user that has no special right sette12:34
cristi_and12:34
CIA-10tryton: C?dric Krier <ced@b2ck.com> default * 224:4daf6398574c website/ (html_incl/menu-html.t2t screen.css): Fix language link for ie12:52
CIA-10tryton: C?dric Krier <ced@b2ck.com> default * 225:5ffdfbe8890f website/ (5 files in 2 dirs): Add news for website translated in french13:04
CIA-10tryton: matb roundup * #706/Translation: confirmation strings in xml-files: [new] Soem confirmation strings in xml files like: Are you sure to force assignation? (stock/packing.xml) Are you sure to close fiscal year? (acco ...13:25
CIA-10tryton: C?dric Krier <ced@b2ck.com> default * 237:4f19bbf3d45b account_invoice/invoice.py: Update amount in on_change_product of invoice line for issue70313:52
CIA-10tryton: ced roundup * #703/Invoice line: amount , taxed, total not updated after editing product: [resolved] Fix with changeset 4f19bbf3d45b13:52
CIA-10tryton: C?dric Krier <ced@b2ck.com> default * 1428:dfe31396262d trytond/trytond/ir/sequence.py: Use SQL query to bypass access rules in ir.sequence:get_id13:54
CIA-10tryton: C?dric Krier <ced@b2ck.com> default * 219:b83ce8c74044 party/party.py: Fix copy party for check on changing party on address13:54
CIA-10tryton: ced roundup * #705/create nested company: [resolved] I try and there is no issue. I think it was because somebody remove the company on your user.13:57
CIA-10tryton: ced roundup * #706/Translation: confirmation strings in xml-files: [resolved] Fix with changeset 89c59380067314:12
CIA-10tryton: C?dric Krier <ced@b2ck.com> default * 1429:89c593800673 trytond/trytond/osv/orm.py: Add missing translation of confirm attribute for issue70614:12
CIA-10tryton: C?dric Krier <ced@b2ck.com> default * 1430:99d81acdf996 trytond/trytond/ir/ui/view.py: Factorize _translate_view14:12
CIA-10tryton: C?dric Krier <ced@b2ck.com> default * 226:f3a3bcc932fa website/sitemap.xml: Update sitemap for new fr_FR directory14:16
-!- cristi_an(n=cristi@89.120.211.206) has joined #tryton14:21
CIA-10tryton: cristi roundup * #705/create nested company: [chatting] i do not want you to waste time with my imaginary bugs but if you try to create now a company with user u1 pass u1 and to put as paren ...14:27
cristi_ancedk: now the "bug" (maybe is how it suposed to work) may be reproduced very easy14:28
cristi_ancedk: just run demo login with u1/u1 (has all the rights) then create a company that has as parent the "asdas..." company14:29
CIA-10tryton: ced roundup * #705/create nested company: [resolved] This is because the company "asdas..." doesn't have default value for accounting and by the way, it has not any accounts.14:30
CIA-10tryton: ced roundup * #688/TypeError: int() argument must be a string or a number, not 'tuple': Is it fixed?14:31
CIA-10tryton: ced roundup * #674/Modules: Userside switching language doesn't work any longer: Any news?14:31
CIA-10tryton: cristi roundup * #705/create nested company: [chatting] oki that is good to know . I did not knew about this kind of details.14:35
CIA-10tryton: ced roundup * #705/create nested company: [resolved] This is improved in the development branch.14:36
-!- ikks(n=igor@201.244.188.98) has joined #tryton14:56
-!- evernichon(n=evernich@LAubervilliers-151-12-43-37.w80-14.abo.wanadoo.fr) has joined #tryton14:56
CIA-10tryton: C?dric Krier <ced@b2ck.com> default * 227:a8e35ec284ef website/locale/fr_FR/LC_MESSAGES/ (tryton.mo tryton.po): Fix typo15:36
CIA-10tryton: C?dric Krier <ced@b2ck.com> default * 228:a7b5211c126a website/ (Makefile txt2tags): Make modification date localized15:36
CIA-10tryton: C?dric Krier <ced@b2ck.com> default * 229:9aa7cf6c65a3 website/sphinx_data/templates/layout.html:15:52
CIA-10tryton: Fix sphinx layout to add language links15:52
CIA-10tryton: Remove ending space15:52
CIA-10tryton: Add google analytics script15:52
-!- oversize(n=manuel@dslb-088-069-003-010.pools.arcor-ip.net) has joined #tryton16:04
CIA-10tryton: C?dric Krier <ced@b2ck.com> default * 1309:9c5f8adaf913 trytond/trytond/osv/orm.py: Fix order on selection field to order with selection values17:15
CIA-10tryton: C?dric Krier <ced@b2ck.com> default * 1310:16f854bdd738 trytond/trytond/ir/translation.py: Fix unicode conversion of source in _get_sources if it is None17:15
CIA-10tryton: C?dric Krier <ced@b2ck.com> default * 1311:73aab0f7cfdd trytond/trytond/osv/orm.py: Add missing translation of confirm attribute for issue70617:15
CIA-10tryton: C?dric Krier <ced@b2ck.com> default * 200:823ed7d5a784 account_invoice/invoice.py: Update amount in on_change_product of invoice line for issue70317:15
-!- mrcast(n=mrcast@host71-69-dynamic.41-79-r.retail.telecomitalia.it) has joined #tryton17:52
-!- mrcast(n=mrcast@host71-69-dynamic.41-79-r.retail.telecomitalia.it) has left #tryton17:52
-!- mrcast(n=mrcast@host71-69-dynamic.41-79-r.retail.telecomitalia.it) has joined #tryton17:53
-!- udono(n=udono@dynamic-unidsl-85-197-24-142.westend.de) has joined #tryton18:38
-!- cristi_an(n=cristi@89.120.211.206) has joined #tryton18:58
cristi_ani searched on models docs info about some issues present in the following code http://paste.pocoo.org/show/97369/ but i did not found .can someone explain to me shortly what that means19:15
cristi_an?19:15
cristi_anselect =1 (what this means) and the states19:16
cristi_an+ on_change19:16
cristi_anok i found something19:27
cristi_anat least select = 1 someone has to know19:40
Timitoscristi_an: look at field options: http://www.tryton.org/doc/branches/1.0/trytond/doc/models.html#fields19:45
cristi_anTimitos: i read the model doc more then once19:47
cristi_anmaybe i just do not see where this case select =1 is described19:48
Timitoscristi_an: select: An integer. When equal to 1, an index is created in the database and the field will appear in the search box on list view. When equal to 2 the field appear in the Advanced Search part of the search box.19:48
Timitosthis is from this doc19:48
cristi_ani belive you19:49
cristi_anbut i did not found it19:49
Timitosit is under " Fields options"19:49
Timitosthere you also find on_change19:49
cristi_anyep...thx a lot !19:50
cristi_anthis kind of help is very very welcomed19:50
cristi_ani have some free days starting from now and i want to advance as much as possible19:50
Timitoscristi_an: tell me if there is something not clear about these  fields options19:50
cristi_anwell here  type = fields.Selection(_TYPES, 'Type', required=True, states=STATES,19:51
cristi_an            sort=False)19:51
cristi_anstates =  'readonly': "active == False",19:52
Timitoscristi_an: i  think  you should try to create a dummy  module for testing. i think you will learn best this way.19:52
cristi_anbut my question is what kind of arguments i may pass19:52
cristi_ani plan to do that today19:52
cristi_an'readonly' ?19:52
cristi_anwhat other things i may specifiy in **args19:53
Timitoscristi_an: i do not understand your question?19:53
cristi_anwhen fields.XXX is called....19:53
cristi_anthen an object is create a Char,Selection etc...19:54
cristi_anright ?19:54
Timitosyes19:54
cristi_anther objects are all Columns as well19:54
cristi_ansince all extend column19:55
cristi_anright ?19:55
cristi_an:)19:55
Timitosyou mean in the db?19:55
cristi_anno i mean as object ,classes19:55
cristi_anChar extends Column19:55
cristi_anChar(Column)19:55
cristi_anas python objects19:56
cristi_anso this is the "constructor" for columns object19:56
cristi_an def __init__(self, string='unknown', required=False, readonly=False,19:56
cristi_an            domain=None, context='', states=None, priority=0,19:56
cristi_an            change_default=False, size=None, ondelete="SET NULL",19:56
cristi_an            translate=False, select=0, on_change=None, on_change_with=None,19:56
cristi_an            **args):19:56
Timitosah ok. this is  framework stuff. as i most time work on module level i do not know so much about that19:56
cristi_anw8 i am sure you know19:57
cristi_anso my question is from the above constructor what parameter **args accept ?19:57
Timitoscristi_an: for creating a first dummymodul you do not need to know  things like this.19:57
cristi_ani need belive me.19:57
cristi_anyou shoud need as well.19:57
cristi_ansince  'readonly': "active == False" is part of  **args19:58
cristi_anso what i am courious beside readonly what kind of attributes i may pay with **args19:58
cristi_an?19:58
cristi_ani noticed 2 more : 'invisible': "type != 'email'",19:58
cristi_an                'required': "type == 'email'",19:58
cristi_an                'readonly': "active == False",19:58
Timitosthese **args are optional. you can put there what you want. you  need to extract them later to use them. i think you should look on a python book or site about the use of **variables19:59
cristi_an**args are optional i know that.19:59
cristi_ani spent 2 weeks first learing some basics :)20:00
cristi_anon that optional parameter i may put whatever attributes i want ?20:00
Timitoscristi_an:    i will be back later. need  todo a long phone call20:01
cristi_ansure npo20:01
cristi_anthx a lot for your time20:01
cristi_ansome error stacktrace http://paste.pocoo.org/show/97383/20:21
cristi_another stacktrace :http://paste.pocoo.org/show/97384/20:23
CIA-10tryton: cristi roundup * #707/TypeError: dict objects are unhashable: [new] Traceback (most recent call last): File "/tryton/gui/window/view_form/view/list.py", line 324, in drag_data_received self.screen.model ...20:47
CIA-10tryton: cristi roundup * #708/ProgrammingError: invalid input syntax for integer: "comment": [new] Traceback (most recent call last): File "/trytond/netsvc.py", line 282, in run res = method(*msg[2:]) File "/trytond/web_service/obj ...20:48
CIA-10tryton: C?dric Krier <ced@b2ck.com> default * 1431:32c4a0397a99 trytond/trytond/ir/translation.py: Fix cache of ir.translation when source is None20:56
CIA-10tryton: C?dric Krier <ced@b2ck.com> default * 1432:dbd4eae96a3c trytond/trytond/server.py: Add logging shutdown before exit20:56
CIA-10tryton: ced roundup * #607/untranslated item in error message: [resolved] Fix with changeset aebe2d05c4f220:56
CIA-10tryton: C?dric Krier <ced@b2ck.com> default * 1433:e59c01a72697 trytond/trytond/ir/model.py: Add translate on field_description and help of ir.model.field20:56
CIA-10tryton: C?dric Krier <ced@b2ck.com> default * 1434:aebe2d05c4f2 trytond/trytond/ (ir/translation.py osv/orm.py): Handle translation of ir.model name for issue60720:57
CIA-10tryton: cristi roundup * #709/ProgrammingError: can't adapt: [new] Traceback (most recent call last): File "/trytond/netsvc.py", line 282, in run res = method(*msg[2:]) File "/trytond/web_service/obj ...20:57
CIA-10tryton: ced roundup * #707/TypeError: dict objects are unhashable: [need-eg] Which version do you use?20:58
cristi_anlatest demo20:58
cristi_anhow can i attach picture ?20:59
cristi_anto bug21:00
cristi_ancedk: ?21:00
cedkcristi_an: please reply in bug tracker21:00
cristi_ansure21:00
CIA-10tryton: cristi roundup * #707/TypeError: dict objects are unhashable: latest demo version21:01
CIA-10tryton: ced roundup * #708/ProgrammingError: invalid input syntax for integer: "comment": [need-eg] Need more information.21:01
CIA-10tryton: ced roundup * #709/ProgrammingError: can't adapt: [need-eg] Need more information.21:02
CIA-10tryton: cristi roundup * #709/ProgrammingError: can't adapt: sure this strange UI appeared on contacts mechanism see attached picture... is not the regular contacts mechanism21:03
CIA-10tryton: cristi roundup * #708/ProgrammingError: invalid input syntax for integer: "comment": i played with contacts mechanism with default values and default in the left up corner of the contacts mechanism ui on both 708 and 709 bugs21:07
CIA-10tryton: cristi roundup * #710/ValueError: list.index(x): x not in list: [new] Traceback (most recent call last): File "/tryton/gui/window/view_form/view/form_gtk/one2many.py", line 502, in switch_view self.screen ...21:16
CIA-10tryton: ced roundup * #707/TypeError: dict objects are unhashable: From mercurial or from package?21:16
CIA-10tryton: cristi roundup * #710/ValueError: list.index(x): x not in list: [chatting] i use the latest version of demo on demo server. i swithed the view of cantacts mechanism to editing then a just pushed add,add,add a ...21:17
CIA-10tryton: cristi roundup * #707/TypeError: dict objects are unhashable: from download site (linux version) (that is package i guess)21:18
CIA-10tryton: ced roundup * #709/ProgrammingError: can't adapt: [resolved] This is due to bad default value.21:20
CIA-10tryton: ced roundup * #708/ProgrammingError: invalid input syntax for integer: "comment": [resolved] This is due to bad default value.21:21
CIA-10tryton: ced roundup * #710/ValueError: list.index(x): x not in list: [resolved] see issue70921:22
CIA-10tryton: cristi roundup * #709/ProgrammingError: can't adapt: [chatting] i see but did you see the image ? how can i endup having that layout again? and bad default values is possible to add ? for a user is ...21:27
-!- Timitos(n=Timitos@88.217.184.172) has joined #tryton21:29
CIA-10tryton: ced roundup * #709/ProgrammingError: can't adapt: On 30/12/08 21:27 +0100, Cristi wrote: > > Cristi <cristian.chiovari@gmail.com> added the comment: > > i see > but did you see the image ? > ho ...21:31
Timitoscristi_an: you said that "active==False" is a part of **args. i don´t think so. this is an argument of the variable 'states'21:32
Timitoscristi_an: are you online tomorrow morning? perhaps we can continue this tomorrow?21:33
cristi_anthat is correct as you said21:33
cristi_ani am interested in understanding 100% at least the contacts mechanism class21:34
cristi_an:)21:34
cristi_anthis line i understand 100 % :  type = fields.Selection(_TYPES, 'Type', required=True, states=STATES,21:34
cristi_an            sort=False) :)21:34
Timitoscristi_an: this is a good starting point.21:35
cristi_anbut next there are invisible,readonly and required21:35
Timitosthese are values that define the handling of a field in a form.21:36
cristi_anhttp://paste.pocoo.org/show/97397/21:37
Timitosyou can define a condition with this. if the condition is matched the field will be required, invisible or readonly in the form21:37
cristi_anok but those condition i may invent myself or they are predefined or so21:37
cristi_an?21:37
cristi_anwhy invisible not inv :)21:38
Timitosfirst line: if type in email, ... then the field is invisible in the view21:38
cristi_anif you know what i mean21:38
Timitosif type not in email, website then the field will be required21:39
Timitosif active == False then the field is readonly in the view21:39
cristi_anfrom what i understood if type in email or website or skype or sip then invisible = true21:39
Timitosyes.21:39
cristi_anso these state invisible21:40
cristi_anis predefined somewhere ?21:40
Timitosso you can check the effect of these states everywhere in the modules. there are many examples.21:40
cristi_anwhat if instead of invisible i write inv ?21:40
Timitosyes. it is predefined.21:40
cristi_anok thatis what i wanted to know21:40
cristi_anwhere are these stuff explained ?21:41
cristi_andon;t tell me in the model doc :)21:41
CIA-10tryton: ced roundup * #709/ProgrammingError: can't adapt: [resolved] Fix with changeset ddaa3f12995121:41
CIA-10tryton: C?dric Krier <ced@b2ck.com> default * 1140:ddaa3f129951 tryton/tryton/gui/window/view_form/view/form_gtk/interface.py: Prevent setting invalid default value for issue70921:41
CIA-10tryton: C?dric Krier <ced@b2ck.com> default * 1141:12b0f40194ba tryton/: merge21:41
cristi_ancedk: i hope you are not upset putting those bugs21:42
Timitoshttp://paste.pocoo.org/show/97398/21:42
cristi_anbe sure after i will go over the party and company module bug rate will be < 2,3 % :)21:42
Timitoscristi_an: yes it is in the doc but in the form doc21:43
cristi_anahaa....21:43
cristi_anform doc...21:43
cristi_ansince it was used in models i did not looked there21:43
cristi_anthat is the xml part21:43
Timitoscristi_an: but it is correct. it needs to be on model too. there is only an example for states but not all possible arguments21:44
cristi_anso these are linked...model and form21:44
cristi_anin doc21:44
Timitoshttp://www.tryton.org/doc/branches/1.0/trytond/doc/views.html#form-view21:45
cristi_ani printed21:46
cristi_anthe doc...21:46
cristi_anjust reading that21:46
cristi_anso if type is email the widget is hidded ?21:46
cristi_ancan we try this on demo client i wonder how is this ... materialized in UI21:46
Timitosyes you can try this21:47
Timitoscristi_an: but perhaps it is not a good example as you don´t see exactly what is happening21:49
Timitoscristi_an: i am looking for a better example21:49
cristi_anwhy i do not see ?21:49
cristi_anthat is what intrigued me21:50
Timitoshttp://paste.pocoo.org/show/97405/21:51
Timitoscristi_an: take a look at this field21:51
Timitosthis is from account module21:51
cristi_ani amall eyes21:52
Timitoslook in financial management-> configuration -> General Account -> accounts21:52
Timitosopen an account21:52
Timitosthere you find the field 'kind'21:53
Timitoschange the field value from 'view' to any kind and back. and look on the field 'type' which is defined in my paste21:53
cristi_anyes21:54
Timitosso you see what this argument 'invisible' does21:54
cristi_anjust a sec just arrived tehre21:55
cristi_anhide unhide type...thx for clearing this ..it is i expected21:56
cristi_anwhat is not what i expect is contacts mecahnism21:56
cristi_anwhich i try to understand....21:56
cristi_anit's ok21:57
Timitosin contact mechanism another field takes the same place. so you do not see that it is happening21:57
cristi_ani got it now there as welll21:57
cristi_anthx Timitos...i owe you now more then 1 bear :)21:57
cristi_anbeer21:58
Timitos;-) yes21:58
cristi_ancount them...plz21:58
cristi_anwho knows next year we will meet :)21:59
Timitosbut perhaps something other as i don´t drink very much beer. :P21:59
Timitoseverything is possible ;-)21:59
cristi_anwell i can bring from ro national drink :)21:59
cristi_anpalinka21:59
cristi_anask you mother in law21:59
Timitosyou mentioned this earlier i remember22:00
cristi_an:)22:00
Timitosok. so enough for today. i will be back tomorrow22:00
Timitoscu22:00
Timitosafk22:01
cristi_ank . thx again22:01
-!- udono(n=udono@dynamic-unidsl-85-197-24-142.westend.de) has joined #tryton22:23
CIA-10tryton: ced roundup * #707/TypeError: dict objects are unhashable: [testing] Is it fixed with the issue709 ?22:30
CIA-10tryton: ced roundup * #604/NoneType-Exception if pressing Ctrl-C in console: [testing] Can you try with the changeset dbd4eae96a3c ?22:31
CIA-10tryton: cristi roundup * #707/TypeError: dict objects are unhashable: i update the code and run localy , i can't reporduce it locally22:35
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 1142:632a6f4c81fd tryton/share/locale/de_DE/LC_MESSAGES/ (tryton.mo tryton.po): Update translation for de_DE22:41
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 1143:55b891d1fb25 tryton/: merge22:41
cristi_anwhen on change is called when i lost focus on a filed or when i press save or update ?22:41
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 238:ac0a6648a258 account_invoice/de_DE.csv: Update translation for de_DE22:43
cristi_anwhy email ,sip,skype and webiste are defined as  fields.Function23:06
cristi_anand the for all the other is enough one fields.Char23:06
cristi_an?23:06
-!- vengfulsquirrel(n=penny@wireless-216-170-122-150.digitalputty.com) has joined #tryton23:12
-!- carlos(n=carlos@89.7.24.44) has joined #tryton23:32
CIA-10tryton: matb roundup * #711/Permissions: user with all permissions cannot see Inventory Moves: [new] The attached screenshot shows two users (admin in german, engl in english) looking at the same object (Customer Packing). While admin can se ...23:34
CIA-10tryton: ced roundup * #707/TypeError: dict objects are unhashable: [resolved] So I close the issue.23:54

Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!