IRC logs of #tryton for Friday, 2008-06-06

chat.freenode.net #tryton log beginning Fri Jun 6 00:01:01 CEST 2008
2008-06-06 05:20 -!- yangoo1(n=mathiasb@p549F6FF8.dip.t-dialin.net) has joined #tryton
2008-06-06 06:20 -!- udono(n=udono@dynamic-unidsl-85-197-21-238.westend.de) has joined #tryton
2008-06-06 07:15 -!- Timitos(n=Timitos@88.217.184.172) has joined #tryton
2008-06-06 09:06 -!- gadaga(n=gael@sednaco19320-gw.clients.easynet.fr) has joined #tryton
2008-06-06 09:06 <gadaga> hi
2008-06-06 09:08 <Timitos> gadaga: hi
2008-06-06 09:08 <gadaga> Timitos: hi
2008-06-06 09:09 <udono> gadaga: hi
2008-06-06 09:09 <gadaga> udono: hi
2008-06-06 09:37 -!- cedk(n=ced@gentoo/developer/cedk) has joined #tryton
2008-06-06 10:06 <CIA-50> tryton: C?dric Krier <ced@b2ck.com> default * 365:75aac633f7cb /tryton/gui/main.py: Fix set_tab_reorderable for gtk < 2.10
2008-06-06 10:33 -!- gael_(n=gael@sednaco19320-gw.clients.easynet.fr) has joined #tryton
2008-06-06 10:43 <udono> cedk: Good Morning. Timitos and me discussed yesterday the implementation of people and organization. We concluded it may better to not create two seperate Objects for person and organization, but to overload the party object directly, and distinguish the entitys by a type attribute (people|organization). All the depending attributes get a state of invisible if the other entitytype is choosen. What do you think about this.
2008-06-06 10:47 <cedk> udono: I have no problems with it
2008-06-06 10:48 <udono> ok
2008-06-06 10:48 <udono> cedk: http://groups.google.com/group/tryton/browse_thread/thread/1d940d467f4006b0#
2008-06-06 10:51 <CIA-50> trytond: C?dric Krier <ced@b2ck.com> default * 554:499b6dc24ac3 /trytond/ (ir/cron.py pooler.py trytond.py):
2008-06-06 10:51 <CIA-50> trytond: Fix ir.cron to not run in a separate thread
2008-06-06 10:51 <CIA-50> trytond: Fix issue69
2008-06-06 10:55 <cedk> udono: I saw it, I will add it
2008-06-06 10:56 <udono> :-)
2008-06-06 10:56 <CIA-50> tryton: C?dric Krier <ced@b2ck.com> default * 366:d39019d61856 /share/tryton/tipoftheday.txt: Add Triton tips
2008-06-06 11:27 <udono> can anyone of you read SAXParseExceptions? what does the numbers mean in : <unknown>:23:6: mismatched tag
2008-06-06 11:28 <cedk> udono: I think that you a at line 23 char 6 a xml error
2008-06-06 11:28 <cedk> udono: By the way, I read a little bit, your code for relationship
2008-06-06 11:28 <udono> yes
2008-06-06 11:28 <cedk> udono: I have some remarks about the coding guidelines
2008-06-06 11:29 <cedk> udono: do you know: http://www.python.org/dev/peps/pep-0008/
2008-06-06 11:29 <cedk> udono: espacially "Whitespace in Expressions and Statements"
2008-06-06 11:30 <udono> :-)
2008-06-06 11:30 <cedk> udono: we find that trying to align all the = is not very usefull
2008-06-06 11:31 <udono> not usefull, but better to read
2008-06-06 11:31 <cedk> udono: I don't find
2008-06-06 11:32 <cedk> udono: an it is very annoying when you add a new line that more longer :-)
2008-06-06 11:32 <cedk> udono: you must reindent all your code
2008-06-06 11:32 <udono> cedk: yes you are right
2008-06-06 11:32 <cedk> udono: and so, when you read log file of commits, you don't see what it has really change
2008-06-06 11:33 <cedk> udono: otherwise, I don't find it is usefull to have a table gender ?
2008-06-06 11:33 <udono> cedk: log files, ah yes, its getting interesting, thats right
2008-06-06 11:33 <udono> cedk: table gender is already dropped
2008-06-06 11:34 <cedk> udono: ha ok
2008-06-06 11:34 <cedk> udono: also, you put a vat number on organisation
2008-06-06 11:35 <udono> cedk: I changed also other attributes...
2008-06-06 11:35 <cedk> udono: here in Belgium, person can have also a VAT number
2008-06-06 11:35 <cedk> udono: that why we put it on party directly
2008-06-06 11:35 <udono> cedk: is the person than a tiny company?
2008-06-06 11:36 <cedk> udono: yes a real person
2008-06-06 11:36 <udono> cedk: but a company, too?
2008-06-06 11:36 <cedk> udono: yes companies has also VAT number
2008-06-06 11:37 <cedk> udono: ha also for coding guideline, we try to not exceed 80 col for lines
2008-06-06 11:37 <udono> cedk: do you have persons in Belgium which have a VAT Number and are NOT a single person company?
2008-06-06 11:38 <udono> cedk: May your tree years old sister have a VAT ID in Belgium?
2008-06-06 11:39 <cedk> udono: yes, they are not a company but just person that can have VAT
2008-06-06 11:39 <cedk> udono: You must have a profession
2008-06-06 11:40 <cedk> udono: like architect
2008-06-06 11:42 <udono> cedk: in german we have nearly the same, like me and korbinian, we are persons, we have a vat id. But when you are a person and have a VATID than you are automaticaly a company, like architect. You can have employees and so on.
2008-06-06 11:42 <udono> ... but you must not have employees, you could stand alone
2008-06-06 11:43 <udono> ... and you are regardless on this a company
2008-06-06 11:45 <cedk> udono: in Belgium if you are a person, I don't think that you can have employee, you must create a real company
2008-06-06 11:46 <udono> sprl?
2008-06-06 11:46 <cedk> udono: and you are personnaly responsible
2008-06-06 11:46 <udono> yes
2008-06-06 11:46 <cedk> udono: sprl is a kind of company
2008-06-06 11:46 <udono> yes I know
2008-06-06 11:47 <cedk> udono: My brother is architect and he was a person with VAT number until 1 year
2008-06-06 11:47 <cedk> udono: now he creates a company
2008-06-06 11:48 <udono> cedk: yes, did the vat number change?
2008-06-06 11:50 <cedk> udono: no
2008-06-06 11:50 <cedk> udono: I don't think
2008-06-06 11:54 <udono> cedk: In this case, you are right, the vat number depends to the party. I correct this.
2008-06-06 11:54 <udono> cedk: also I drop some more person fields like birth_date, height, weight, mothers_maiden_name, marital_status, social_security_no, passport_no, passport_expire_date, work_experience
2008-06-06 11:55 <udono> cedk: and I drop salutation...
2008-06-06 11:56 <cedk> udono: ok
2008-06-06 11:56 <udono> cedk: the only things resist will be:a. partytype: Person|Organisation, b. different Name attributes depending of partytype, c. remove name from address
2008-06-06 11:57 <udono> (I know you dont like c...) :-)
2008-06-06 11:57 <udono> afk
2008-06-06 12:01 <udono> back
2008-06-06 12:05 <cedk> udono: I have more information, when person with vat number create a company
2008-06-06 12:06 <cedk> udono: in fact the company will have a new VAT number but the old VAT is always valid for the person
2008-06-06 12:06 <udono> cedk: Ok, than its definately a party attribute
2008-06-06 12:09 <udono> cedk: ... and I read the Style Guide for Python Code PEP8
2008-06-06 12:18 -!- gadaga(n=gael@sednaco19320-gw.clients.easynet.fr) has joined #tryton
2008-06-06 13:05 <CIA-50> tryton: C?dric Krier <ced@b2ck.com> default * 367:617dbef598cd /tryton/gui/window/view_form/ (model/field.py view/form_gtk/one2many.py view/list.py):
2008-06-06 13:05 <CIA-50> tryton: Fix readonly on one2many fields dialog
2008-06-06 13:05 <CIA-50> tryton: Update state attributes on list view for current model
2008-06-06 13:05 <CIA-50> tryton: Disable drag and drop on list that have sequence fields readonly
2008-06-06 13:05 <CIA-50> trytond: C?dric Krier <ced@b2ck.com> default * 99:9d5fe334c398 account/move.py: Remove default date if not in manual entry
2008-06-06 13:05 <CIA-50> trytond: C?dric Krier <ced@b2ck.com> default * 45:9e39c1fb7312 account_invoice/invoice.xml: Add amount_to_pay_today on list view
2008-06-06 13:19 <CIA-50> tryton: C?dric Krier <ced@b2ck.com> default * 368:2c6d91478124 /tryton/rpc.py: Fix rpc test for change socket connection
2008-06-06 13:19 <CIA-50> trytond: C?dric Krier <ced@b2ck.com> default * 555:75524ff38ef7 /trytond/res/user.py: Disable reading password user
2008-06-06 13:32 <CIA-50> trytond: C?dric Krier <ced@b2ck.com> default * 556:80f13ccbd080 /trytond/res/user.py: Prevent to write password with 'x' * 10
2008-06-06 13:39 -!- bechamel(n=user@user-85-201-84-14.tvcablenet.be) has joined #tryton
2008-06-06 13:58 -!- Timitos(n=Timitos@88.217.184.172) has joined #tryton
2008-06-06 14:07 <yangoo1> cedk: do you have time to talk shortly on proxy.patch?
2008-06-06 14:10 <yangoo1> I made yesterday my first steps in python
2008-06-06 14:10 <cedk> yangoo1: yes
2008-06-06 14:10 <cedk> yangoo1: did you try my last patch ?
2008-06-06 14:11 <yangoo1> hte changes in patch2 I made myself, and some more, but I am now hanging with NameError: name 'DictType' is not defined
2008-06-06 14:11 <yangoo1> if I understand correctly, you are implementing your own transport class
2008-06-06 14:12 <cedk> yangoo1: can you post the traceback ?
2008-06-06 14:12 <yangoo1> and you take from xmlrpclib the functions you need
2008-06-06 14:12 <yangoo1> traceback already posted on bugtracker
2008-06-06 14:14 <yangoo1> now there are also needed functions from class Marshaller:
2008-06-06 14:14 <cedk> yangoo1: it is because it miss import httplib
2008-06-06 14:15 <yangoo1> yes, but there is more to do
2008-06-06 14:15 <yangoo1> it also makes use of string
2008-06-06 14:15 <cedk> yangoo1: can you post the traceback after you add import httplib ?
2008-06-06 14:18 <yangoo1> IIRC the next error was, that it couldn't find DictType
2008-06-06 14:18 <yangoo1> I added def dump_struct(self, value, write, escape=escape):
2008-06-06 14:18 <yangoo1> i = id(value)
2008-06-06 14:18 <yangoo1> if self.memo.has_key(i):
2008-06-06 14:18 <yangoo1> raise TypeError, "cannot marshal recursive dictionaries"
2008-06-06 14:18 <yangoo1> self.memo[i] = None
2008-06-06 14:18 <yangoo1> dump = self.__dump
2008-06-06 14:19 <yangoo1> write("<value><struct>\n")
2008-06-06 14:19 <yangoo1> for k, v in value.items():
2008-06-06 14:19 <yangoo1> write("<member>\n")
2008-06-06 14:19 <yangoo1> if type(k) is not StringType:
2008-06-06 14:19 <yangoo1> if unicode and type(k) is UnicodeType:
2008-06-06 14:19 <yangoo1> k = k.encode(self.encoding)
2008-06-06 14:19 <yangoo1> else:
2008-06-06 14:19 <yangoo1> raise TypeError, "dictionary key must be string"
2008-06-06 14:19 <yangoo1> write("<name>%s</name>\n" % escape(k))
2008-06-06 14:19 <yangoo1> dump(v, write)
2008-06-06 14:19 <yangoo1> write("</member>\n")
2008-06-06 14:19 <yangoo1> write("</struct></value>\n")
2008-06-06 14:19 <yangoo1> del self.memo[i]
2008-06-06 14:19 <yangoo1> dispatch[DictType] = dump_struct
2008-06-06 14:19 <yangoo1> and def escape as well
2008-06-06 14:19 <yangoo1> nevertehless error about dispatch
2008-06-06 14:19 <yangoo1> I added
2008-06-06 14:20 <yangoo1> def __init__(self, encoding=None, allow_none=0):
2008-06-06 14:20 <yangoo1> self.memo = {}
2008-06-06 14:20 <yangoo1> self.data = None
2008-06-06 14:20 <yangoo1> self.encoding = encoding
2008-06-06 14:20 <yangoo1> self.allow_none = allow_none
2008-06-06 14:20 <yangoo1> dispatch = {}
2008-06-06 14:20 <cedk> yangoo1: plase don't copy traceback in irc, use http://rafb.net/paste/
2008-06-06 14:22 <yangoo1> but now again: http://rafb.net/p/K8NGhL38.html
2008-06-06 14:23 <yangoo1> my common.py at the moment is at http://rafb.net/p/QT9js030.html
2008-06-06 14:24 <cedk> yangoo1: why did you add dump_struct ?
2008-06-06 14:25 <yangoo1> to get DictType..;-)
2008-06-06 14:25 <cedk> yangoo1: you get it with the inherit
2008-06-06 14:26 <cedk> yangoo1: try without it
2008-06-06 14:26 <yangoo1> as I said, totally new in python, was just a try
2008-06-06 14:27 <yangoo1> if you want, we can add step by step whats needed and I will test at once
2008-06-06 14:27 <yangoo1> because I didn't even restart trytond so far to not loose the bug...:-)
2008-06-06 14:27 <cedk> yangoo1: I post a new patch procy3.patch
2008-06-06 14:27 <yangoo1> ok
2008-06-06 14:27 <cedk> yangoo1: try with only this patch
2008-06-06 14:28 <cedk> yangoo1: and paste the traceback if there is
2008-06-06 14:28 <yangoo1> will do
2008-06-06 14:31 <yangoo1> new traceback http://rafb.net/p/5OgLg447.html
2008-06-06 14:36 <cedk> yangoo1: ok, can you try with the new proxy4.patch
2008-06-06 14:36 <yangoo1> ok
2008-06-06 14:44 <yangoo1> new traceback at http://rafb.net/p/tTlYgN15.html
2008-06-06 14:46 <cedk> yangoo1: I see on a previous post, that you put "http://ip:port" in http_proxy
2008-06-06 14:46 <cedk> yangoo1: I think you must put just "ip:port"
2008-06-06 14:47 <yangoo1> without protocol?
2008-06-06 14:48 <cedk> yangoo1: so put just http_proxy='squid:3128'
2008-06-06 14:48 <cedk> yangoo1: yes
2008-06-06 14:48 <yangoo1> other applications will refuse to accept this setting, but I can try
2008-06-06 14:50 <cedk> yangoo1: and are you that squid is correctly resolved ?
2008-06-06 14:50 <yangoo1> no, that shouldn't be the error: http://rafb.net/p/KIe7Aw74.html
2008-06-06 14:51 <yangoo1> yes, of course, but i can put the IP
2008-06-06 14:52 <cedk> yangoo1: I think the error is that the proxy doesn't allow xmlrpc
2008-06-06 14:52 <yangoo1> ok, mom, let me see
2008-06-06 14:54 <yangoo1> in the proxy.log I have:
2008-06-06 14:54 <yangoo1> 192.168.1.13 TCP_MISS/200 3916 CONNECT bugs.tryton.org:443 - DIRECT/91.121.95.126 -
2008-06-06 14:55 <yangoo1> so I suppose it connects succesfully to bugs.tryton.org:443
2008-06-06 14:56 <yangoo1> and since the data stream is ssl encrypted, the proxy shouldn't be aware of any hidden protocol?
2008-06-06 14:58 <yangoo1> class SafeTransport(Transport): seems to be rather untested?
2008-06-06 14:58 <yangoo1> does https without proxy work reliably?
2008-06-06 15:00 <cedk> yangoo1: yes it works
2008-06-06 15:01 <cedk> yangoo1: but the nameserver is not bugs.tryton.org but roundup-xmlrpc.tryton.org
2008-06-06 15:01 <cedk> yangoo1: and I submit a new patch that must works with http://squid:3128
2008-06-06 15:02 <yangoo1> just tried with http_proxy=http://192.168.1.10:3128, same result as with name
2008-06-06 15:03 <cedk> yangoo1: what have you in your ~/.trytonrc for roundup.xmlrpc
2008-06-06 15:05 <yangoo1> my .trytonrc is at http://rafb.net/p/rnYfos13.html
2008-06-06 15:05 <yangoo1> cedk:
2008-06-06 15:10 <cedk> yangoo1: do you see any log for connection to roundup-xmlrpc.tryton.org
2008-06-06 15:12 <yangoo1> store.log: text/html 1102/1102 POST https://matb@roundup-xmlrpc.tryton.org/RPC2
2008-06-06 15:13 <yangoo1> access.log: CONNECT www.tryton.org:443 - DIRECT/91.121.95.126 -
2008-06-06 15:14 <yangoo1> and
2008-06-06 15:14 <yangoo1> CONNECT bugs.tryton.org:443 - DIRECT/91.121.95.126 -
2008-06-06 15:14 <yangoo1> cedk:
2008-06-06 15:15 <cedk> yangoo1: connection to bugs.tryton.org doesn't correspond to the xmlrpc
2008-06-06 15:15 <cedk> yangoo1: I don't know what means store.log ?
2008-06-06 15:15 <cedk> do you have any error message in logs ?
2008-06-06 15:15 <yangoo1> two different logs of squid
2008-06-06 15:17 <cedk> yangoo1: but you don't have CONNECT roundup-xmlrpc.tryton.org
2008-06-06 15:17 <yangoo1> store.log: # Logs the activities of the storage manager. Shows which objects are ejected from the cache, and which objects are saved and for how long.
2008-06-06 15:19 <yangoo1> access.log are cleint requests
2008-06-06 15:19 <yangoo1> I will try once again
2008-06-06 15:37 <udono> I have problems with the on_change parameter: Is it possible to use the same on_change method on different fields (with different names)? If I try with on_change=['on_change_name'] or on_change=['name'] in a field with the name person_first_name than I get everytime the error: AttributeError: 'relationship.party' object has no attribute 'on_change_person_first_name'
2008-06-06 15:39 <udono> But I never told Tryton to use on_change_person_first_name I like to tell it to use on_change_name
2008-06-06 15:39 <cedk> udono: no, on_change doesn't work like you think
2008-06-06 15:40 <yangoo1> with latest patch5 now traceback5 at http://rafb.net/p/MJhT4a91.html
2008-06-06 15:40 <cedk> udono: what you define with the on_change=[] is the value that will be sent to the on_change function
2008-06-06 15:40 <yangoo1> and error appears at once, before was with timeout
2008-06-06 15:40 <cedk> udono: the on_change function for a field is always named on_change_field_name
2008-06-06 15:40 <udono> cedk: ok, I understand
2008-06-06 15:42 <yangoo1> I think you can forget about the log entries: seems they came from access with browser
2008-06-06 15:42 <yangoo1> yes definitely, nothing is logged from tryton directly
2008-06-06 15:47 <yangoo1> cedk: have to leave for today, thanks for your input!
2008-06-06 15:48 <cedk> yangoo1: welcome
2008-06-06 15:48 <udono> cedk: which method I need to read the actual values displayed on the screen called from a class method?
2008-06-06 15:51 <udono> cedk: is it fields_get() or read()
2008-06-06 15:53 <udono> or self.pool.get
2008-06-06 15:55 <cedk> udono: I don't understand ?
2008-06-06 16:03 <udono> cedk: mee, too. But I think I got it. The on_change=[] parameter can hold more fields than one, so I transport every field I like to the on_change function. Is it possible to shorten the things to transport all actual Variables with on_change=[] to the on_change function?
2008-06-06 16:05 <cedk> udono: no we don't have keywords
2008-06-06 16:05 <cedk> udono: but you must think that to have better performence, you must just send to the server only field that is needed
2008-06-06 16:06 <udono> Yes ok, its less work to write less fields, thanks a lot :-)
2008-06-06 19:11 -!- Timitos(n=Timitos@88.217.184.172) has left #tryton
2008-06-06 19:31 -!- essich(n=essich@p4FCF9A84.dip0.t-ipconnect.de) has joined #tryton
2008-06-06 22:17 <CIA-50> tryton: C?dric Krier <ced@b2ck.com> default * 369:161414bbe98d / (70 files in 13 dirs): Add Tango icons adn remove gtk icons
2008-06-06 22:17 <CIA-50> tryton: C?dric Krier <ced@b2ck.com> default * 370:97ac45b8b41f /setup.py: Fix setup for new Tango icons
2008-06-06 22:17 <CIA-50> trytond: C?dric Krier <ced@b2ck.com> default * 557:11d134f3595d /trytond/ (ir/ir.xml ir/ui/menu.py tools/convert.py): Use new Tango icons
2008-06-06 22:17 <CIA-50> trytond: C?dric Krier <ced@b2ck.com> default * 100:53760f7f6ad7 account/ (account.xml journal.py move.xml tax.xml): Use new Tango icons
2008-06-06 22:17 <CIA-50> trytond: C?dric Krier <ced@b2ck.com> default * 7:24e5fe2c8af6 analytic_account/account.xml: Use new Tango icons
2008-06-06 22:17 <CIA-50> trytond: C?dric Krier <ced@b2ck.com> default * 53:a4b9e5d72edc product/product.xml: Use new Tango icons
2008-06-06 22:17 <CIA-50> trytond: C?dric Krier <ced@b2ck.com> default * 25:dbad67fe65f2 purchase/purchase.xml: Use new Tango icons
2008-06-06 22:17 <CIA-50> trytond: C?dric Krier <ced@b2ck.com> default * 88:cdfc39c60c5f relationship/relationship.xml: Use new Tango icons
2008-06-06 22:17 <CIA-50> trytond: C?dric Krier <ced@b2ck.com> default * 140:9add0d9957e0 stock/ (__tryton__.py location.xml stock.xml): Use new Tango icons
2008-06-06 22:17 <CIA-50> trytond: C?dric Krier <ced@b2ck.com> default * 20:6ca984bd674b timesheet/ (line.xml timesheet.xml work_type.xml): Use new Tango icons
2008-06-06 22:30 <CIA-50> trytond: C?dric Krier <ced@b2ck.com> default * 558:e53bd1572b69 /trytond/ (ir/module/module.xml res/user.xml): Remove gtk icons
2008-06-06 22:30 <CIA-50> trytond: C?dric Krier <ced@b2ck.com> default * 101:79645d8d86a5 account/ (account.xml move.py move.xml): Remove gtk icons
2008-06-06 22:30 <CIA-50> trytond: C?dric Krier <ced@b2ck.com> default * 46:a4041bbe1739 account_invoice/invoice.xml: Remove gtk icons
2008-06-06 22:30 <CIA-50> trytond: C?dric Krier <ced@b2ck.com> default * 32:5f6a08c75916 company/company.xml: Remove gtk icons
2008-06-06 22:51 <CIA-50> tryton: C?dric Krier <ced@b2ck.com> default * 371:c8e523bc5b19 /share/pixmaps/ (tryton-cancel.png tryton-ok.png): Add Tango icons ok, cancel
2008-06-06 22:51 <CIA-50> trytond: C?dric Krier <ced@b2ck.com> default * 559:2f6373e1fd03 /trytond/ (ir/module/module.py ir/translation.py res/user.py): Remove gtk icons
2008-06-06 22:51 <CIA-50> trytond: C?dric Krier <ced@b2ck.com> default * 102:9e17466e71bc account/ (account.py fiscalyear.py move.py tax.py): Remove gtk icons
2008-06-06 22:51 <CIA-50> trytond: C?dric Krier <ced@b2ck.com> default * 47:7f0775fb967e account_invoice/invoice.py: Remove gtk icons
2008-06-06 22:51 <CIA-50> trytond: C?dric Krier <ced@b2ck.com> default * 8:e6b103ad037c analytic_account/account.py: Remove gtk icons
2008-06-06 22:51 <CIA-50> trytond: C?dric Krier <ced@b2ck.com> default * 33:93f3f7253a23 company/company.py: Remove gtk icons
2008-06-06 22:51 <CIA-50> trytond: C?dric Krier <ced@b2ck.com> default * 141:53a3f3e609b9 stock/ (location.py packing.py product.py): Remove gtk icons
2008-06-06 22:51 <CIA-50> trytond: C?dric Krier <ced@b2ck.com> default * 21:60e7b874c6c7 timesheet/ (line.py work_type.py): Remove gtk icons

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