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

chat.freenode.net #tryton log beginning Fri Dec 12 00:00:01 CET 2008
X0d_of_N0d_I had to create an ldap user, then I had to add the ldap user to tryton (which needs to be fixed)00:00
X0d_of_N0d_oh...00:00
X0d_of_N0d_well, for starters there's no need to log in to the server as admin00:00
X0d_of_N0d_ldap supports anonymous binds for searches (if you set your acls up like that)00:01
X0d_of_N0d_and it also allows users to auth themselves...00:01
X0d_of_N0d_so the first thing I did was make it so it supported an anon bind.00:02
udonoX0d_of_N0d_: do you know what this line will tell us: filter = res_company_ldap['ldap_filter']%(login,)00:02
X0d_of_N0d_yeah00:02
udonoX0d_of_N0d_: Looks like Perl00:02
X0d_of_N0d_hehe00:02
udonoX0d_of_N0d_: Why a modulo operator?00:02
X0d_of_N0d_do this in python00:02
X0d_of_N0d_a='asdf%s'00:02
X0d_of_N0d_a%'qwerty'00:03
udonoX0d_of_N0d_: ah, ok, thanks00:04
X0d_of_N0d_yup00:04
udonoX0d_of_N0d_: so when the filter is empty, I get an error00:05
X0d_of_N0d_right00:05
udonoX0d_of_N0d_: actually it seems to work, because I cannot login into the system00:05
X0d_of_N0d_so in your login00:05
X0d_of_N0d_we do uid=%s00:05
udonoX0d_of_N0d_: as filter?00:05
X0d_of_N0d_right, the problem is in ldap_check I thnk........00:06
X0d_of_N0d_yup00:06
X0d_of_N0d_that way ldap does ldap_search "uid=user"00:06
X0d_of_N0d_depending on how you want people to log in you could change that00:06
X0d_of_N0d_if you want them to use their full name as they would write it you'd set filter to gecos=%s00:07
X0d_of_N0d_if you set up your ldap correctly00:08
X0d_of_N0d_but usually your unix login will be uid=%s00:08
X0d_of_N0d_ldap seriously rocks00:08
X0d_of_N0d_by the way, if you want to know what a good graphical ldap interface looks like check out luma00:09
udonoX0d_of_N0d_: yesterday I seted up my first simple ldap.00:09
X0d_of_N0d_udono: once you get the main idea, everything else is really quick00:09
udonoX0d_of_N0d_: but the user has no password... cos I just have an addressbook created...00:09
X0d_of_N0d_udono: the user needs to be able to log in to ldap00:10
udonoX0d_of_N0d_: hmmm. I have a Manager user which can log in...00:10
X0d_of_N0d_udono: try loggin in as that user, I'm guessing you'll have to change your filter to cn=%s00:11
udonoX0d_of_N0d_: But I need a Tryton user with this name too?00:11
X0d_of_N0d_also, what's your searchbase?00:11
udonoX0d_of_N0d_: google ;-)00:12
udonoX0d_of_N0d_: dc=lisa,dc=localdomain00:13
X0d_of_N0d_udono: in the tinyerp implimentation you don't need to create the user before you log in....tryton creates the user in tryton's db00:13
X0d_of_N0d_ok, so from the commandline you should be able to type `ldapsearch 'cn=manager,dc=lisa,dc=localdomain' cn=manager -x -W00:14
udonoX0d_of_N0d_: but all credentials are bound to a Tryton user...00:14
X0d_of_N0d_btw, the second dc is not needed00:14
X0d_of_N0d_no, password is in ldap, not tryton00:14
X0d_of_N0d_there should be no password in tryton00:14
X0d_of_N0d_no password SET in tryton00:15
X0d_of_N0d_yeah00:15
X0d_of_N0d_the second dc is not needed when you set up your db, so it could just be cn=manager,dc=lisa... but once your db is set up you have to type that extra stuff00:15
X0d_of_N0d_just a note00:16
udonoX0d_of_N0d_: I use the Manager for bind ldap... ldap dislike my password on search...00:17
X0d_of_N0d_what was the error?00:17
udonoInvalid credentials (49)00:17
X0d_of_N0d_ahh, my bad...00:17
X0d_of_N0d_`ldapsearch -D  'cn=manager,dc=lisa,dc=localdomain' cn=manager -x -W `00:18
udonoX0d_of_N0d_: yes, this works : http://paste.pocoo.org/show/94973/00:19
X0d_of_N0d_ok00:20
X0d_of_N0d_so if you login to tryton with Manager as your user and your ldap passwd, that should ....well... it shouldn't break right away00:20
udonoX0d_of_N0d_: But I can neither use "Manager", nor "cn=Manager,dc=lisa,dc=localdomain"...00:21
X0d_of_N0d_it should give you 'int' object is unscriptable00:21
X0d_of_N0d_hold up00:21
udonoX0d_of_N0d_: which filter to use?00:22
X0d_of_N0d_cn=%s00:22
udonoX0d_of_N0d_: ok, it works up to the KeyError: 'ir.actions.actions'00:24
X0d_of_N0d_hold up, I totally broke my tryton00:24
X0d_of_N0d_yeah00:24
X0d_of_N0d_that's on you now00:24
udonoX0d_of_N0d_: Thanks for patience...00:24
udonoyes, I've an idea00:24
X0d_of_N0d_the reason it's doing that is that the user isn't in the database00:24
X0d_of_N0d_the tinyerp code creates the user, but not completely....00:24
X0d_of_N0d_the action never gets defined in the tinyerp one, so that's broken00:25
udonoACTION is missing the third monkey which is closing his eyes...00:25
X0d_of_N0d_hehe00:26
X0d_of_N0d_I believe all the tinyerp ldap modules are broken, but I do have one I made work if that would help at all00:26
-!- ikks(n=igor@201.244.188.98) has joined #tryton00:50
-!- X0d_of_N0d(n=syn@damnation.neg9.org) has joined #tryton01:24
X0d_of_N0dudono: you still there?01:29
udonoX0d_of_N0d: yes01:30
X0d_of_N0dalright, so where were we?01:31
udonoX0d_of_N0d: Its short before login, but it will not login01:31
X0d_of_N0d?01:31
udonosee in the repo and try out.01:31
X0d_of_N0dhum...01:33
X0d_of_N0dhuh...that's interesting01:35
udonoX0d_of_N0d: solved another small bug01:35
udononow  Tryton creates the user01:35
udonobut I get a misterious error client side...01:36
udonoon login: ERROR:common.message:'int' object is unsubscriptable and one time01:36
udonoERROR:common.message:'long' object is unsubscriptable01:36
X0d_of_N0d'int' object is unscriptable01:36
X0d_of_N0dyeah01:37
X0d_of_N0dbecause int is being returned instead of the function01:37
udonoX0d_of_N0d: I know that, but from where did it come...01:37
udonoX0d_of_N0d: ok01:37
X0d_of_N0dline 12201:37
X0d_of_N0dfor me anyway01:37
X0d_of_N0dreturn res[0]01:38
X0d_of_N0dbut that's not right01:38
udonoX0d_of_N0d: but what else to return?01:38
CIA-54tryton: ced roundup * #664/cannot create new warehouse: [in-progress] We need to find a way to enter the looping relation between warehouse and storage. Warehouse needs input, output and storage and the ...01:38
X0d_of_N0dhold up.....01:39
X0d_of_N0dthat's what should be returned according to security.......01:39
X0d_of_N0duser_id01:39
X0d_of_N0dthe problem is in ldap_check01:40
X0d_of_N0dsomewhere01:40
udonoX0d_of_N0d: but res[0] is the user_id...01:40
X0d_of_N0dright, and I'm pretty sure that works... I think it's outside of the login code01:41
X0d_of_N0dI thin kit's somewhere in the ldap_check code01:41
X0d_of_N0dhum.....01:41
X0d_of_N0dhum...but it's not01:41
X0d_of_N0dwtf01:41
udonoX0d_of_N0d: Ldap_check is not called on login, I think01:42
udonoX0d_of_N0d: norin security.py01:42
udononor in01:42
X0d_of_N0dit sets up authentication so it's called almost immidtely after01:42
X0d_of_N0dhum.....01:42
X0d_of_N0dit's not res[0]01:42
X0d_of_N0dit is in something set up during login, not outside anywhere01:43
X0d_of_N0dit's gotta be something to do with 'res.user' or 'ir.actions'01:44
X0d_of_N0dhum....01:45
udonoir.action is just the id for the menu and the home action of the user...01:45
X0d_of_N0dhum...01:45
udonoX0d_of_N0d: they are created right for the new user, afais01:46
X0d_of_N0din the old code they were not created correctly01:46
udonoX0d_of_N0d: my user seems to be created correctly, I think the problem is in http://mercurial.intuxication.org/hg/res_user_auth_ldap/file/4fd04fd176b4/users_ldap.py#l12101:48
X0d_of_N0dOHHHHHH01:49
X0d_of_N0dhum...01:49
X0d_of_N0dmaybe01:49
X0d_of_N0dif cache is set to true (which by default it is) login returns a tuple instead of an int01:50
X0d_of_N0dand if you do "1[0]" in python it returns the error 'int' object is unsubscriptable01:50
X0d_of_N0dso it should return (user_id, session)01:51
X0d_of_N0dbrb, I need to go buy cigaretts01:51
udonoX0d_of_N0d: yeah, that's it01:52
udonoX0d_of_N0d: but where to get the session when not steal?01:53
udonoX0d_of_N0d: I think, I get it...01:54
udonoX0d_of_N0d: I tried this way: http://mercurial.intuxication.org/hg/res_user_auth_ldap/file/1ac94be11686/users_ldap.py#l12102:10
udonoX0d_of_N0d: but will not work.02:11
X0d_of_N0dthe same problem??02:11
udonoX0d_of_N0d: no, another one02:12
X0d_of_N0d   session = str(random.random())02:12
X0d_of_N0dthat's in login02:12
udonoX0d_of_N0d: ERROR:common.message:Not supported: trytond.security/Session02:12
X0d_of_N0dhum....02:13
X0d_of_N0d_USER_CACHE02:13
X0d_of_N0dthat needs to be set up02:13
udonoX0d_of_N0d: ... getting tired, we have 2:15 ...02:14
X0d_of_N0dI'll play around with it some more and post my changes02:15
udonoX0d_of_N0d: but it should be possible to call the Session...02:15
udonoX0d_of_N0d: BTW the whole design as a module for ldap authentication is crap, I thing02:16
X0d_of_N0dyeah but session is not used in security02:16
X0d_of_N0dI don't know02:16
X0d_of_N0dit should be possible to auth against multiple sources02:16
X0d_of_N0dit seems like the right thing to do would be to write a pam module, then let pam take care of everything else....02:16
udonoThe connection setup is better in the /tec/tryton.conf stored, and multicompany is build into the ldap sheme....02:17
udonos/tec/etc02:17
X0d_of_N0dthat's a design decision02:17
udonoX0d_of_N0d: yes02:18
X0d_of_N0dagain, the solution in that case would be pam02:18
X0d_of_N0dbut since ldap can be used for so many things (and is), it might be useful to have ldap as a plugin and have a whole ldap infrastructure plugin02:18
udonoX0d_of_N0d: pam could be a better idea. Do you have experience in Python PAM?02:18
X0d_of_N0dlike an ldap admin plugin02:18
udonoX0d_of_N0d: and party mapping in Ladap...02:19
udonos/ladap/ldap02:19
X0d_of_N0dudono: I'd like to see our employee records all in ldap, and then the ability to turn employees into users with a few clicks (that would allow people who come after me to easily modify ldap)02:20
X0d_of_N0detc02:20
X0d_of_N0dnone of which could be done with pam02:20
udonoX0d_of_N0d: yes, but the one thing is system authentication, and the other thing are ldap modules for special things.02:21
udonoX0d_of_N0d: but maybe start with a authentication _module_. After this it should be easily possible to put it into the core as an internal ir module02:22
udonoX0d_of_N0d: so its on you to solve the last step for successful login. Iam to tired... I give my best tomorrow again.02:24
X0d_of_N0dudono: right, so I think it would be best to keep working on this as a module02:24
X0d_of_N0dI'll keep working on it02:24
X0d_of_N0dudono: catch you tomorrow02:25
udonoX0d_of_N0d: great, Read you tomorrow... Good night02:25
X0d_of_N0dudono: cool, night man02:25
X0d_of_N0dBWAHAHAH02:27
X0d_of_N0dhum....02:27
X0d_of_N0ddamn02:27
X0d_of_N0dalmost got it02:27
-!- mmarshall_(n=mmarshal@adsl-99-190-37-73.dsl.rcsntx.sbcglobal.net) has joined #tryton02:32
X0d_of_N0dhum.......02:40
CIA-54tryton: X0d_of_N0d roundup * #666/TypeError: list indices must be integers: [new] Traceback (most recent call last): File "/trytond/netsvc.py", line 282, in run res = method(*msg[2:]) File "/trytond/web_service/obj ...03:25
CIA-54tryton: X0d_of_N0d roundup * #666/TypeError: list indices must be integers: [chatting] I tried to duplicate a user.03:33
-!- X0d_of_N0d(n=syn@damnation.neg9.org) has joined #tryton04:25
-!- CIA-54(n=CIA@208.69.182.149) has joined #tryton04:25
-!- yangoon(n=mathiasb@p549F7633.dip.t-dialin.net) has joined #tryton05:20
-!- Timitos(n=Timitos@88.217.184.172) has joined #tryton06:46
-!- vengfulsquirrel(n=ian@c-67-170-212-242.hsd1.ca.comcast.net) has left #tryton07:10
udonoX0d_of_N0d: Hey, still awake?07:13
-!- sharkcz(n=dan@plz1-v-4-17.static.adsl.vol.cz) has joined #tryton07:27
-!- LordVan(n=lordvan@gentoo/developer/LordVan) has joined #tryton08:17
-!- carlos(n=carlos@89.7.24.44) has joined #tryton08:24
CIA-54tryton: Timitos roundup * #667/KeyError: 'active': [new] Traceback (most recent call last): File "/tryton/gui/window/tree.py", line 289, in sig_activate self.sig_edit() File "/tryton/gui/wi ...08:29
CIA-54tryton: Timitos roundup * #667/KeyError: 'active': [chatting] tried to open an account.tax.template record08:30
CIA-54tryton: Timitos roundup * #668/TypeError: 'int' object is unsubscriptable: [new] Traceback (most recent call last): File "/trytond/netsvc.py", line 282, in run res = method(*msg[2:]) File "/trytond/web_service/wiz ...08:41
CIA-54tryton: Timitos roundup * #668/TypeError: 'int' object is unsubscriptable: [chatting] error happend when using the wizard 'create chart of account from template' the record which causes this error seems to be correct.08:43
-!- nicoe(n=nicoe@ip-80-236-223-83.dsl.scarlet.be) has joined #tryton09:03
-!- Cristi_an(n=Cristi@89.120.211.206) has joined #tryton09:20
-!- Gedd(n=ged@ip-80-236-223-83.dsl.scarlet.be) has joined #tryton09:41
-!- ecir3(n=brice@sednaco19320-gw.clients.easynet.fr) has joined #tryton09:43
-!- oversize(n=manuel@port-92-198-7-97.static.qsc.de) has joined #tryton09:46
-!- cedk(n=ced@gentoo/developer/cedk) has joined #tryton09:46
-!- marmu(n=marmu@p54AD4575.dip.t-dialin.net) has joined #tryton09:54
CIA-54tryton: C?dric Krier <ced@b2ck.com> default * 1354:12ea133bbb19 trytond/trytond/res/user.py: Fix copy of user to handle list of ids for issue66610:02
CIA-54tryton: ced roundup * #666/TypeError: list indices must be integers: [resolved] Fix with changeset 12ea133bbb1910:02
-!- vengfulsquirrel(n=ian@c-67-170-212-242.hsd1.ca.comcast.net) has joined #tryton10:02
-!- vengfulsquirrel1(n=ian@c-67-170-212-242.hsd1.ca.comcast.net) has joined #tryton10:02
-!- rvalyi(i=58aaece0@gateway/web/ajax/mibbit.com/x-2f893685906105c8) has joined #tryton10:09
-!- bechamel(n=user@host-213-213-252-112.brutele.be) has joined #tryton10:11
cedkTimitos: http://acysos-openerp.blogspot.com/2008/12/accountreverse.html10:20
Timitoscedk: sounds quite good. i have it in my mind about some weeks that we need this. the imporant this is that the moves must be done with negative value on the same side. i hope they did it this way. but this is also an important feature for tryton10:25
Timitoscedk: there are still some other features missing on accounting. but i hope that i will be able to finish my thoughts about cash discount today.10:26
cedkTimitos: It was more about the fact that he find the account modelisation is not good in OpenERP10:27
cedkotherwise, the module is just a tool to simplify live10:27
Timitoscedk: ok. as i know that accounting implementation of openerp is not that optimal i perhaps ignored this part of the post ;-)10:31
-!- ecir3(n=brice@sednaco19320-gw.clients.easynet.fr) has joined #tryton10:42
Timitoscedk: i read the post again. there are some good informations in it to keep in mind. but i don´t see changes necessary on tryton for now. or do you see an issue for tryton?10:47
cedkTimitos: no, I think that we are not affect by the issues10:49
Timitoscedk: ok10:49
udonoTimitos: cedk: what do you think about http://acysos-openerp.blogspot.com/2008/12/accountregularization.html ?10:53
cedkudono: this is an other usefull tool10:59
udonocedk: yes, I think about, since Iam sittion on the german tax system...11:06
udonos/sittion/sitting11:06
udonocedk: is it opssible to instanciate security.Session (in security.py) from a module? If I try, I get the error: ERROR:common.message:Not supported: trytond.security/Session11:11
cedkudono: yes normally11:14
udonocedk: the error, or the possibility to instanciate?11:16
cedkudono: I don't see why you could not instanciate it11:21
udonocedk: ok11:28
Timitoscedk: do you think a combination of partial payment (actual payment term in tryton) and cash discount would be useful? i don´t think so.11:53
cedkTimitos: I'm not sure but I think that they are linked in a way11:55
Timitoscedk: the problem is that normally the due date on early payment is computed by adding some days to the invoice date. when you do partial payment you cannot do this. the datum reference is missing. you need to compute reverse from the end due date.11:57
Timitoscedk: the only way would be to grant a payment target on partial payment. this means that a payment that is due on 01.01.2008 with a payment target of 30 days needs to be payed on 31.01.200812:03
Timitoscedk: but i think this is doubled and does not so much sense12:04
Timitos@all: What do you think about this problem12:04
Timitoscedk: found the solution. thx for being with me12:09
CIA-54tryton: ced roundup * #668/TypeError: 'int' object is unsubscriptable: [need-eg] Which version of account module do you use because line number doesn't correspond to any tips.12:13
CIA-54tryton: cedric.krier@b2ck.com * r377 /wiki/ODTGuideLines.wiki: Edited wiki page through web user interface.12:15
CIA-54tryton: Timitos roundup * #668/TypeError: 'int' object is unsubscriptable: changeset 332:b1b1306b697d i added some print statements to look for the reason12:15
CIA-54tryton: C?dric Krier <ced@b2ck.com> default * 333:c7aaf2429df1 account/tax.xml: Remove wrong field active in tree view for issue66712:16
CIA-54tryton: ced roundup * #667/KeyError: 'active': [resolved] Fix with changeset c7aaf2429df112:17
CIA-54tryton: C?dric Krier <ced@b2ck.com> default * 313:18b5462d714d account/tax.py: Fix default_group for tax template for issue66312:22
CIA-54tryton: C?dric Krier <ced@b2ck.com> default * 314:a22a7c44d714 account/party.py: Fix state test with company12:22
CIA-54tryton: C?dric Krier <ced@b2ck.com> default * 315:bf1dd2bffbb4 account/tax.py: Add active field on tax template for issue66712:22
CIA-54tryton: ced roundup * #667/KeyError: 'active': [chatting] Fix in 1.0 with changeset bf1dd2bffbb412:22
CIA-54tryton: matb roundup * #669/Crash in form wizards: [new] Opening Administration/User Interface/Actions/Wizards on an just updated database: Traceback (most recent call last): File "/tryton/gui/w ...12:30
CIA-54tryton: matb roundup * #665/Error in wizard company: Just tested once again on new database: installed: all b2ck modules + account_de_skr03_2008 working on changeset for trytond: 1366:b8b07be6a9c9 t ...12:32
-!- ikks(n=igor@190.12.153.202) has joined #tryton12:41
CIA-54tryton: ced roundup * #665/Error in wizard company: I need the list of all modules installed for the database.13:11
CIA-54tryton: matb roundup * #665/Error in wizard company: Additional comment: Installation in english language succeeds, but not in german language13:19
-!- Gedd(n=ged@ip-80-236-223-83.dsl.scarlet.be) has joined #tryton13:21
CIA-54tryton: matb roundup * #665/Error in wizard company: "account" "Buchhaltung" "B2CK" "1.1.0" "http://www.tryton.org/" "Installiert" "account_de_skr03_2008" "Deutscher Kontenrahmen SKR03 2008" "virtual ...13:23
CIA-54tryton: C?dric Krier <ced@b2ck.com> default * 1355:d5e23a5c3703 trytond/trytond/ir/ (action.py action.xml): Remove old fields in view and multi for issue66913:26
CIA-54tryton: ced roundup * #669/Crash in form wizards: [resolved] Fix with changeset d5e23a5c370313:26
CIA-54tryton: C?dric Krier <ced@b2ck.com> default * 1285:585f25447707 trytond/trytond/ir/rule.py: Fix typo for user.id operand13:31
CIA-54tryton: Bertrand Chenal <bch@b2ck.com> default * 1286:c8375cd847d0 trytond/trytond/ir/cron.py: Fix cron messages: fallback to default langage if missing on the user13:31
CIA-54tryton: C?dric Krier <ced@b2ck.com> default * 1287:4e24a8e4e49f trytond/trytond/ir/ui/menu.py: Improve action_inv on ir.ui.menu for issue65913:31
CIA-54tryton: C?dric Krier <ced@b2ck.com> default * 1288:78cb3f1f1112 trytond/trytond/tools/convert.py: Add missing module in context when updating xml record for issue65713:31
CIA-54tryton: C?dric Krier <ced@b2ck.com> default * 1289:656b0fa5dc43 trytond/trytond/webdavsvc.py: Quote the url for html page of webdav collection13:31
CIA-54tryton: C?dric Krier <ced@b2ck.com> default * 1290:c11c577812e1 trytond/trytond/osv/orm.py:13:31
CIA-54tryton: Add a default clause for the inselect query of child_of with left and right13:31
CIA-54tryton: for issue66013:32
CIA-54tryton: C?dric Krier <ced@b2ck.com> default * 1291:be93c634a84f trytond/trytond/ir/action.py: Add fields view and multi for issue66913:32
cedkpanthera: hi13:53
cedkpanthera: I see that for the OpenERP client, you put a patch to add this line: gtk.gdk.threads_init()13:53
cedkpanthera: can you explain me what is the purpose?13:54
pantheracedk: mom13:54
pantheracedk: have you read: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=48189513:55
cedkACTION read debian bugs13:55
pantheracedk: from the code point of view, i've no idea why it's necessary.13:55
cedkpanthera: http://www.moeraki.com/pygtktutorial/pygtk2reference/gdk-functions.html#function-gdk--threads-init13:57
cedkpanthera: it is about the GIL and the lock of GDK13:58
cedkpanthera: in the bug on debian, there is no explaination why the line fix the issue14:01
cedkanybody has an idea ?14:01
pantheracedk: you can ask ask Chris Lamb directly if you want, he's nick is 'lamby'14:04
cedkpanthera: on irc?14:04
cedkdoesn't seem to be connected14:05
cedkI will send an email14:05
pantheraon irc, yes. as far as i can see, he's connected:14:08
panthera13:02:21 [freenode] -!- lamby [n=lamby@chris-lamb.co.uk]14:08
panthera13:02:21 [freenode] -!-  ircname  : Chris Lamb <lamby@debian.org> [0x634F9A20]14:08
panthera13:02:21 [freenode] -!-  server   : irc.freenode.net [http://freenode.net/]14:08
panthera13:02:21 [freenode] -!-           : is identified to services14:08
panthera13:02:21 [freenode] -!-           : is signed on as account lamby14:08
panthera13:02:21 [freenode] -!- End of WHOIS14:08
cedkpanthera: ok I'll try to ask him14:10
CIA-54tryton: matb roundup * #670/Error on update of some not very recent databases: [new] I think, this issue will also exist, when updating databases of the current stable version to next stable version. How should we handle suc ...14:41
-!- tekknokrat(n=gthieleb@dslb-088-074-181-055.pools.arcor-ip.net) has joined #tryton15:26
-!- tekknokrat(n=gthieleb@dslb-088-074-181-055.pools.arcor-ip.net) has left #tryton15:27
CIA-54tryton: udono roundup * #665/Error in wizard company: [chatting] dito, same error with new database under the same conditions. English language works, german language not.15:36
CIA-54tryton: udono roundup * #665/Error in wizard company: dito, same error with new database under the same conditions. English language works, german language not.15:36
Timitoscedk: is it possible to create a chart like the one of the bottom of this picture with tryton? http://drupal.org/node/23568215:51
cedkTimitos: yes but not with the 3D layout16:07
Timitoscedk: this is enough. thx16:08
-!- ikks_(n=igor@190.144.69.234) has joined #tryton16:15
Timitoscedk: the only important thing for my chart is the grouping for every month like in this example. i need this16:21
cedkTimitos: but drawing some cavalier perspective will be not so difficult16:21
Timitoscedk: for me in the moment only the function is important. i just used this picture as i found my functional needs there. design is not an issue for the moment16:23
cedkTimitos: to create this kind of graph, you have two options16:24
cedkTimitos: one record for each month with all the values16:24
cedkTimitos: or one record per month and bar16:25
Timitoscedk: one record for each month with all values will give me one bar per month, or? this is not what i need16:26
Timitosone record per month and bar. i think this is what i need16:27
cedkTimitos: the first one will give you the same but it will work only if you have a fixed amount of bar16:27
Timitoscedk: ah ok. no it will not be a fixed amount of bar.16:28
cedkTimitos: so second method :-)16:28
Timitoscedk: yes. thx16:28
cedkTimitos: and use the key attributes16:29
cedkfor the x field16:30
Timitoscedk: ok. i will look at it. in the moment it is enough for me that it is possible as i am working on a list of requirements but not on the module itself ;-)16:31
CIA-54tryton: matb roundup * #671/Cannot insert new products in purchases or sales: [new] On saving form new purchase with a new created product inserted (brandnew database): The value of the field "Product" on "Purchase Line" is ...16:39
-!- ikks_(n=igor@201.244.188.98) has joined #tryton16:40
-!- ecir3(n=brice@sednaco19320-gw.clients.easynet.fr) has joined #tryton16:43
CIA-54tryton: C?dric Krier <ced@b2ck.com> default * 214:422733437c13 party/address.py: Return dict instead of list for get_full_address16:55
CIA-54tryton: C?dric Krier <ced@b2ck.com> default * 399:dec1eb0ef2f2 stock/location.py: Fix loop in warehouse creation for issue66417:09
CIA-54tryton: ced roundup * #664/cannot create new warehouse: [testing] Fix with changeset dec1eb0ef2f2 Can you test it?17:09
CIA-54tryton: udo.spallek * r378 /wiki/TrytonLDAPIntegration.wiki: Created wiki page through web user interface.17:13
CIA-54tryton: udo.spallek * r379 /wiki/TrytonLDAPIntegration.wiki: Edited wiki page through web user interface.17:13
CIA-54tryton: Timitos roundup * #672/TypeError: int() argument must be a string or a number, not 'NoneType': [new] Traceback (most recent call last): File "/tryton/gui/window/view_form/view/form.py", line 152, in _action value = Action._exec_action( ...17:37
CIA-54tryton: Timitos roundup * #672/TypeError: int() argument must be a string or a number, not 'NoneType': [chatting] tried to create an new company with company wizard17:37
CIA-54tryton: Timitos roundup * #664/cannot create new warehouse: it is working now17:43
udonocedk: I am struggling with the LDAP... http://paste.pocoo.org/show/95071/ any ideas where to look?18:23
cedkudono: I don't know18:26
udonocedk: what a pitty, thanks18:27
udonoanyone knows how to analyse the complete communication between client and server?18:38
udonoI try with snort...18:39
cedkudono: wireshark18:39
cedkudono: by the way are working with a standard server or your customize LDAP?18:40
udonocedk: its customised ldap.18:43
cedkudono: it can be because the user "Manager" did not receive a valid session18:44
udonocedk: yes maybe. But we create the session like in security.py and added the _USER_CACHE18:46
cedkudono: are you sure it is in the _USER_CACHE, is it well a global variable18:48
udonocedk: the ldap usercache says: user cache: {'try20081212': {3: [(1229106345.8237071, '0.332232518017'), (1229106364.982857, '0.0169629128753')]}}18:48
udonoand we return returning (user_id, session) (3, '0.0169629128753')18:49
udono3 ist uid of Manager18:49
cedkudono: is it the same in security.py ?18:49
udonocedk: hmmm...18:52
udonocedk: what does this mean after a class definition: security.login = ldap_login(security.login)18:53
cedkudono: where?18:53
udonohttp://mercurial.intuxication.org/hg/res_user_auth_ldap/file/903ec5382ad1/users_ldap.py#l18618:54
udonocedk: last line18:54
udonois the security.login called, too?18:55
cedkudono: I replace the login function in security with the return of the function ldap_login18:55
udonocedk: the security.login is never called again?18:56
udonocedk: if somone calles security.login, then is ldap_login called instead18:56
udonocedk: I check18:57
cedkudono: the function ldap_login return the previous function if the module is not installed18:57
udonocedk: but when it is not installed, how it can return anything?19:02
udonocedk: is it ancient tiny stuff?19:02
udonocedk: because I remembe one commit of you, that we do not init functions which are not installed...19:09
udono...but iam wrong. Everything is initialised by python under modules on starting the server, so forget my last questions...19:10
-!- Gedd(n=ged@155.236-240-81.adsl-dyn.isp.belgacom.be) has joined #tryton19:17
-!- Gedd(n=ged@77.109.113.33) has joined #tryton19:34
-!- oversize(n=manuel@dslb-088-069-010-061.pools.arcor-ip.net) has joined #tryton19:38
-!- vengfulsquirrel(n=ian@c-67-170-212-242.hsd1.ca.comcast.net) has joined #tryton20:02
-!- nside(n=nside@206-248-159-106.dsl.teksavvy.com) has joined #tryton20:09
nsideà quoi servent les workflows?20:13
cedknside: a controler les états dans le quel un document peut se trouver20:15
nsidey'a un exemple d'utilisation?20:15
nsideje grep les sources, sans succes :)20:15
cedknside: par example un facture à comme état (activity) possible: draft, open, cancel, paid, ...20:16
cedknside: on peut définir des transitions entre ces états qui sont empruntées en fonction de certain critère20:17
nsidenice20:17
cedknside: au fait, on essaye plutot de parler en anglais sur ce chan, pour que les autres puissent suivre20:18
nsidesorry :)20:19
cedknside: no problems :-)20:20
nsidei'm browising trytond and so far i like it a lot20:20
nsidei'm wondering hard it would be to write a flex/as3 frontend20:21
cedknside: what is flex/as3 ?20:22
nsidecedk: http://www.adobe.com/products/flex/20:22
cedknside: http://groups.google.com/group/tryton/browse_thread/thread/ec30aab10780e324#20:25
nsidegreat20:26
cedknside: is flex Open Source?20:27
nsidethe only problem i see with a web client is the implementation of the push notifications20:27
nsidecedk: kinda20:27
nsidethe framework is open source but the flash runtime is not20:27
nsideadobe also open-sourced the protocols few months ago (rtmp, amf)20:28
X0d_of_N0dudono: you get a chance to try the module?20:28
X0d_of_N0dACTION slept in and just got in to work...20:29
cedknside: we don't have push notification20:29
nsideeverything is transactional ?20:29
cedknside: yes20:30
X0d_of_N0dudono: the ldap module should work20:31
cedknside: did you try the demo server?20:33
nsidecedk: yep20:34
nsidei'm browsing the sources now20:34
nsidetrying to understand workflows, actions, etc20:37
nsidei'm wondering:20:37
nsideis http://hg.tryton.org/hgwebdir.cgi/modules/account_invoice/file/a10a8ad5f5a0/invoice.xml machine generated?20:37
udonoX0d_of_N0d: Hi, I gave it some trys, but it will not work for me...20:38
udonoX0d_of_N0d: but maybe just some prefs on my side20:39
cedknside: no20:39
udonoX0d_of_N0d: do you have a working ldif for me?20:39
udonoX0d_of_N0d: but great that you are there... did the actual version works for you?20:41
X0d_of_N0dthe version I checked in worked for me actually20:57
X0d_of_N0dI can't give you a good ldif right now because I'm working off my work db20:57
X0d_of_N0dtell me what your preferences are20:58
udonoX0d_of_N0d: Maybe I start with the problems...20:59
udonoX0d_of_N0d: no, prefs before are better...21:00
X0d_of_N0dlemme just verify that I checked in the version I'm working with21:00
udonoX0d_of_N0d: ok, I collect my prefs together. In between you may like to look at: http://code.google.com/p/tryton/wiki/TrytonLDAPIntegration21:01
X0d_of_N0dchangeset 15:8d3028c2ca6821:02
X0d_of_N0dyou're working on that changeset?21:04
udonoX0d_of_N0d: no, using changeset 18 bd38cb84547521:04
X0d_of_N0dhum.......21:05
udonoX0d_of_N0d: my prefs: http://paste.pocoo.org/show/95090/21:05
X0d_of_N0dhum....21:06
udonoACTION thinks he made it more worse?21:06
X0d_of_N0d15 was working...lemme see what changed21:06
X0d_of_N0djust revert to 15 for right now and try it21:07
X0d_of_N0dI'm going to sort through the diff21:07
X0d_of_N0dpassword shouln't be set up for the user on creation.... ldap does auth21:14
udonoX0d_of_N0d: but tryton needs a password...21:16
udonoX0d_of_N0d: maybe its http://mercurial.intuxication.org/hg/res_user_auth_ldap/rev/4150ec304810#l6321:16
udonoX0d_of_N0d: no sorry, that's ok21:17
udonoX0d_of_N0d: maybe this makes problems: http://mercurial.intuxication.org/hg/res_user_auth_ldap/rev/4150ec304810#l22021:17
udonoX0d_of_N0d: how run the authentication actually... It is just a check if the user exist in ldap? The user need no special tag or password to login? The only password provided is for ldap connection?21:21
X0d_of_N0dtryton doesn't need a password...21:22
X0d_of_N0dtryton takes the password, passes it to ldap, ldap auths, then tryton knows that the user is authd21:22
X0d_of_N0dtryton creates a session and the user is authd, tryton never actually does anything with the passwd but send it to ldap21:23
udonoX0d_of_N0d: ok, I try with r1521:24
udonoX0d_of_N0d: I can login as user admin21:24
udonoX0d_of_N0d: which is actually not a ldap user...21:24
X0d_of_N0dyou should be able to delete your manager user and still log in as manager, then the user will be created21:25
udonoX0d_of_N0d: I can't login with user Manager, which is actually an ldap user.21:25
X0d_of_N0dhold on, lemme look at your prefs again21:26
udonoX0d_of_N0d: which password I use for user Manager? I just have the connection password...21:26
udonoX0d_of_N0d: my Manager is deleted.21:27
X0d_of_N0dhold up a sec21:27
udono\me freeze21:27
X0d_of_N0dsorry, I keep getting interrupted by users21:31
X0d_of_N0dok, log in using manager with your ldap password21:31
X0d_of_N0dwait...21:31
X0d_of_N0dis your bind dn and password correct? can you log in from the commandline with those values?21:32
CIA-54tryton: matb roundup * #673/Stable version 1.0.2: cannot create new database as german user: [new] on creating new database (with german or with english language): [Fri Dec 12 21:23:15 2008] INFO:init:module:ir:creating or updating databa ...21:32
X0d_of_N0dACTION goes outside for a quick smoke21:32
udonoThis works: ldapsearch -D  'cn=manager,dc=lisa,dc=localdomain' cn=manager -x -W21:33
-!- vengfulsquirrel(n=ian@c-67-170-212-242.hsd1.ca.comcast.net) has left #tryton21:34
udonoX0d_of_N0d: Trytond tells me that I am successful logged in: [Fri Dec 12 22:29:23 2008] INFO:web-service:successful login from 'Manager' using database 'try20081212'21:34
udonoX0d_of_N0d: but there is no menu...21:35
udonoX0d_of_N0d: That's the problem: http://paste.pocoo.org/show/95071/21:35
X0d_of_N0dthat means that it's not going through the security check21:36
X0d_of_N0dprint out _USER_CACHE from check in security.py21:37
X0d_of_N0dACTION thinks... hum...21:38
X0d_of_N0dbasically it's not giving you permissions to view the menu21:38
X0d_of_N0dfor some reason21:38
X0d_of_N0dbut if you log in, that means all the ldap settings are right21:38
udonoare you able to login with your installation?21:40
udonoX0d_of_N0d:21:40
X0d_of_N0dyeah21:40
mmarshall_What are the recommended ways to build a public website that uses data from tryton?  Would it work to import trytond and use OSV.browse/create methods? Or would there be any problem with caches if I use a different ORM with the postgresql tables?21:41
X0d_of_N0dprint out _USER_CACHE in both login and check and show me the difference21:41
udonoX0d_of_N0d: I comment out #security.login = ldap_login(security.login) then restart, then try to login as Manager, but res=None, so I cannot login...21:44
X0d_of_N0dright, because security.login = ldap_login(security.login) makes the ldap login replace security.login21:45
udonoX0d_of_N0d: I did right?21:45
X0d_of_N0dif you comment out that line than the whole module does nothing21:46
udonoX0d_of_N0d: Yes, you want the _USER_CACHE of security.login, so I need to disable the module, since the module overwrites security.login with ldap_login.21:48
X0d_of_N0dno21:48
udonoX0d_of_N0d: no?21:48
X0d_of_N0di import _USER_CACHE from security, so they are the same21:49
X0d_of_N0dthere should be a line _USER_CACHE=security._USER_CACHE21:49
udonoX0d_of_N0d: but security login is never called when I use the ldap module (in my case)21:50
udonoX0d_of_N0d: anyway, I try21:50
X0d_of_N0dsecurity login is replaced with ldap_login, but security.check  IS called21:50
X0d_of_N0dand the _USER_CACHE from cache MUST match the one from login, or you have no permissions21:51
X0d_of_N0dis logging a standard module, or a tryton module?21:54
X0d_of_N0dit's a tryton module, right?21:54
udonoX0d_of_N0d: I think so, yes21:54
udonoX0d_of_N0d: security._USER_CACHE: {} is called one time on starting trytond and empty21:55
udonoX0d_of_N0d: the other USER_CACHE is never shown in my tests21:56
X0d_of_N0dok.... security line 43 add " print ">>>normal check"21:57
-!- vengfulsquirrel(n=ian@c-67-170-212-242.hsd1.ca.comcast.net) has joined #tryton21:57
X0d_of_N0derm 'print ">>>normal check"'21:57
X0d_of_N0dnext line add21:58
X0d_of_N0d print "(dbname, user, session, outdate_timeout)",(dbname, user, session, outdate_timeout)21:58
X0d_of_N0dprint "_USER_CACHE",_USER_CACHE21:58
X0d_of_N0dlput that at your new line 4821:58
X0d_of_N0dthen restart tryton21:58
X0d_of_N0dyour output should look like this: http://pastebin.com/d2979ae622:00
X0d_of_N0dor something like that22:02
-!- ikks(n=igor@190.144.69.234) has joined #tryton22:03
udonoX0d_of_N0d: Login as Manager doesn't walk into security.login at all, my output is just ldap_login related: http://pastebin.com/f447093c122:06
udonoX0d_of_N0d: on line 18 you see the call of security._user_cache22:07
udonoX0d_of_N0d: after this it entered ldap_login22:08
udonoX0d_of_N0d: maybe an ldap issue?22:08
X0d_of_N0dno22:11
X0d_of_N0dit's not an ldap issue22:11
X0d_of_N0dyou modified your security.py like I said?22:12
X0d_of_N0dyou need to print out the value of session that gets passed in to security.check, and compare that to the value that's in _USER_CACHE22:13
X0d_of_N0dif the session that gets passed in isn't found in _USER_CACHE then you don't get auth'd22:14
X0d_of_N0dso you log in, but you don't get permissions to look at anything22:15
udonoX0d_of_N0d: Login as Manager: http://pastebin.com/d675c62022:16
X0d_of_N0dadd a marker to the beginning of security.check (the real tryton one) to show it's being run22:18
udonoX0d_of_N0d: http://pastebin.com/d5007f45422:21
X0d_of_N0dok, excellent22:21
X0d_of_N0dnow after the line you added add another one that prints out the value of session like 'print "session=%s" % session'22:22
udonoX0d_of_N0d: actually I have problems with line 48 where I added the stuff for analysing,  print "(dbname, user, session, outdate_timeout)",(dbname, user, session, outdate_timeout) There is no outdate_timeout... its in the check function.22:24
X0d_of_N0djust remove the outdate_timeout variable22:26
udonoX0d_of_N0d: ok, http://pastebin.com/d3947abb022:26
udonoX0d_of_N0d: it's the same session...22:27
X0d_of_N0dhum...22:28
X0d_of_N0dok, your session is right22:29
X0d_of_N0dwait22:29
X0d_of_N0dso after that line print out _USER_CACHE22:29
udonoX0d_of_N0d: http://pastebin.com/d20e3b5dc22:31
udonoX0d_of_N0d: soon I have to sleep... last night just three hours...22:32
X0d_of_N0dok, so that looks like it's working22:32
X0d_of_N0dhum...22:32
X0d_of_N0dwhat's your menu action set to for the manager user?22:32
udonoX0d_of_N0d: standard, the same as admin...22:33
udonoX0d_of_N0d: did you have an admin user in your ldap?22:33
udonoX0d_of_N0d: or which user you use...22:33
X0d_of_N0dI have an admin user in ldap, but it doesn't matter which one I use, both work22:34
udonoX0d_of_N0d: ok22:34
X0d_of_N0dI can type in the ldap passwd and it works, or the tryton pw22:34
udonoX0d_of_N0d: both passwords works?22:34
X0d_of_N0dyup22:34
X0d_of_N0dif you don't log in through ldap it automatically falls back on the old login method22:35
udonoX0d_of_N0d: ok22:35
udonoX0d_of_N0d: this seems to work at my installation, too. With admin.22:35
X0d_of_N0dok22:36
udono... which is actually not an ldap user22:36
X0d_of_N0dok22:36
X0d_of_N0dso log in as admni and look at the users22:36
X0d_of_N0dthe home action and menu action should be Menu22:36
X0d_of_N0dfor Manager22:36
udonoyes they are... but I give it a try tomorrow or Sunday...22:37
X0d_of_N0dok, I'll catch you monday22:37
udonoX0d_of_N0d: yes, that's good to know.22:37
udonoX0d_of_N0d: did you read the google wiki page about the design things of the module?22:38
X0d_of_N0dudono: I'm going to clean up the code, I'll commit a working version... we can look at everything again22:38
X0d_of_N0dyeah, I did22:38
X0d_of_N0dI definitely have some input22:38
X0d_of_N0dcan I get access to edit it?22:38
udonoX0d_of_N0d: great, change what and how you like. If Iam blocked yith my login, I fit the user interface and model of tryton...22:39
udonoX0d_of_N0d: do you have a google account?22:39
X0d_of_N0dYeah22:39
udonoIf Iam blocked with my login problem, I try to fit the user interface and model for ldap...22:40
udonojust give your google email to cedk, he will put you to the members22:40
X0d_of_N0dok22:40
X0d_of_N0dI'll change the page and we'll talk about further development22:41
udonoX0d_of_N0d: see you, and thanks a lot for patience and help :-)22:41
CIA-54tryton: matb roundup * #665/Error in wizard company: Only installing account_invoice and its dependencies: Traceback (most recent call last): File "/tryton/gui/window/view_form/view/form.py", line ...22:41
X0d_of_N0dudono: np, catch you later22:42
udonocedk: are you there?22:45
cedkudono: yes22:46
udonocedk: X0d_of_N0d like to become a google member for wiki edit.22:46
X0d_of_N0dhex@neg9.org is through google22:47
X0d_of_N0dACTION has to help a user22:48
cedkX0d_of_N0d: it is not a google account22:48
X0d_of_N0dyou can't use something that's through google services?23:01
vengfulsquirrelCan trytond start without the database being setup ?23:01
vengfulsquirrel*without any database23:01
Timitosvengfulsquirrel: yes23:02
cedkX0d_of_N0d: you must have a google account (it is different from a gmail account)23:05
cedkX0d_of_N0d: https://www.google.com/accounts/NewAccount?continue=http%3A%2F%2Fwww.google.be%2Fwebhp%3Fhl%3Den%26btnG%3DGoogle%2BSearch&hl=en23:06
X0d_of_N0dbrb23:08
-!- ikks_(n=igor@190.144.69.234) has joined #tryton23:10
cedkX0d_of_N0d: it is like when you subscribe to any forum or wiki23:10
X0d_of_N0dsorry, some user is having a printing issue, I gotta take care of it really quick23:10
cedkX0d_of_N0d: no problems if I'm not more online when you come back, send me an email23:14
X0d_of_N0dACTION hates printings and printers23:18
-!- ikks_(n=igor@201.244.188.98) has joined #tryton23:27
vengfulsquirrelHey guys I propose making at least these two new wiki pages: InstallForDeployment and InstallForDevelopment and raising those to Featured and dropping the current install stuff to not being featured because right now its not clear what's for development and what's for deployment.  We can then link in the appropriate wiki pages to those two parent pages.23:30
mmarshall+123:30
cedkvengfulsquirrel: why not simply use the Labels23:33
cedkthere is Phase-Deploy23:34
cedkand Phase-Implementation23:34
vengfulsquirrelImplementation ?23:35
vengfulsquirrelHa well first off I didn't even know those existed.23:36
vengfulsquirrelAnd I guess it depends on the intended audience23:36
vengfulsquirrelWhen I first found this project I just assumed that this was the install docs: http://www.tryton.org/doc/branches/1.0/trytond/doc/installation.html  and I started doing that I didn't even think that the install info would be on the wiki let alone that GentooOverlay existed or that you could install it via easy install.23:38
cedkI have added the Phase column in the default list23:38
cedkthe official installation is in the file INSTALL of each package23:38
CIA-54tryton: matb roundup * #658/Make translation of title of invoice report independent from invoice.type: see attached patch for account_invoice, please apply23:40
vengfulsquirrelI just think having a definitive starting point for installation would be helpful.  Cloning the repo and installing it with `python setup.py install` is one method of installation.23:43
cedkvengfulsquirrel: this is what it is say in the INSTALL file of the package23:45
vengfulsquirrelIts not clear how to install more modules either or that there are more modules to be installed, at least to someone new to the project.23:53
CIA-54tryton: htgoebel roundup * #604/NoneType-Exception if pressing Ctrl-C in console: Result is now: ....8<-------------- [Fri Dec 12 23:53:30 2008] INFO:web-service:stop server Unhandled exception in thread started by Error in sys. ...23:55
vengfulsquirrelI'm not saying its bad right now I'm just saying I think it could be improved by addressing these issues: 1. There are more ways to install than just doing hg clone/python setup.py install and 2. a generic explanation on installing more modules.23:56
cedkvengfulsquirrel: we can add a line about module installation in INSTALL of trytond23:57

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