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

chat.freenode.net #tryton log beginning Fri Dec 12 00:00:01 CET 2008
2008-12-12 00:00 <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)
2008-12-12 00:00 <X0d_of_N0d_> oh...
2008-12-12 00:00 <X0d_of_N0d_> well, for starters there's no need to log in to the server as admin
2008-12-12 00:01 <X0d_of_N0d_> ldap supports anonymous binds for searches (if you set your acls up like that)
2008-12-12 00:01 <X0d_of_N0d_> and it also allows users to auth themselves...
2008-12-12 00:02 <X0d_of_N0d_> so the first thing I did was make it so it supported an anon bind.
2008-12-12 00:02 <udono> X0d_of_N0d_: do you know what this line will tell us: filter = res_company_ldap['ldap_filter']%(login,)
2008-12-12 00:02 <X0d_of_N0d_> yeah
2008-12-12 00:02 <udono> X0d_of_N0d_: Looks like Perl
2008-12-12 00:02 <X0d_of_N0d_> hehe
2008-12-12 00:02 <udono> X0d_of_N0d_: Why a modulo operator?
2008-12-12 00:02 <X0d_of_N0d_> do this in python
2008-12-12 00:02 <X0d_of_N0d_> a='asdf%s'
2008-12-12 00:03 <X0d_of_N0d_> a%'qwerty'
2008-12-12 00:04 <udono> X0d_of_N0d_: ah, ok, thanks
2008-12-12 00:04 <X0d_of_N0d_> yup
2008-12-12 00:05 <udono> X0d_of_N0d_: so when the filter is empty, I get an error
2008-12-12 00:05 <X0d_of_N0d_> right
2008-12-12 00:05 <udono> X0d_of_N0d_: actually it seems to work, because I cannot login into the system
2008-12-12 00:05 <X0d_of_N0d_> so in your login
2008-12-12 00:05 <X0d_of_N0d_> we do uid=%s
2008-12-12 00:05 <udono> X0d_of_N0d_: as filter?
2008-12-12 00:06 <X0d_of_N0d_> right, the problem is in ldap_check I thnk........
2008-12-12 00:06 <X0d_of_N0d_> yup
2008-12-12 00:06 <X0d_of_N0d_> that way ldap does ldap_search "uid=user"
2008-12-12 00:06 <X0d_of_N0d_> depending on how you want people to log in you could change that
2008-12-12 00:07 <X0d_of_N0d_> if you want them to use their full name as they would write it you'd set filter to gecos=%s
2008-12-12 00:08 <X0d_of_N0d_> if you set up your ldap correctly
2008-12-12 00:08 <X0d_of_N0d_> but usually your unix login will be uid=%s
2008-12-12 00:08 <X0d_of_N0d_> ldap seriously rocks
2008-12-12 00:09 <X0d_of_N0d_> by the way, if you want to know what a good graphical ldap interface looks like check out luma
2008-12-12 00:09 <udono> X0d_of_N0d_: yesterday I seted up my first simple ldap.
2008-12-12 00:09 <X0d_of_N0d_> udono: once you get the main idea, everything else is really quick
2008-12-12 00:09 <udono> X0d_of_N0d_: but the user has no password... cos I just have an addressbook created...
2008-12-12 00:10 <X0d_of_N0d_> udono: the user needs to be able to log in to ldap
2008-12-12 00:10 <udono> X0d_of_N0d_: hmmm. I have a Manager user which can log in...
2008-12-12 00:11 <X0d_of_N0d_> udono: try loggin in as that user, I'm guessing you'll have to change your filter to cn=%s
2008-12-12 00:11 <udono> X0d_of_N0d_: But I need a Tryton user with this name too?
2008-12-12 00:11 <X0d_of_N0d_> also, what's your searchbase?
2008-12-12 00:12 <udono> X0d_of_N0d_: google ;-)
2008-12-12 00:13 <udono> X0d_of_N0d_: dc=lisa,dc=localdomain
2008-12-12 00: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 db
2008-12-12 00:14 <X0d_of_N0d_> ok, so from the commandline you should be able to type `ldapsearch 'cn=manager,dc=lisa,dc=localdomain' cn=manager -x -W
2008-12-12 00:14 <udono> X0d_of_N0d_: but all credentials are bound to a Tryton user...
2008-12-12 00:14 <X0d_of_N0d_> btw, the second dc is not needed
2008-12-12 00:14 <X0d_of_N0d_> no, password is in ldap, not tryton
2008-12-12 00:14 <X0d_of_N0d_> there should be no password in tryton
2008-12-12 00:15 <X0d_of_N0d_> no password SET in tryton
2008-12-12 00:15 <X0d_of_N0d_> yeah
2008-12-12 00: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 stuff
2008-12-12 00:16 <X0d_of_N0d_> just a note
2008-12-12 00:17 <udono> X0d_of_N0d_: I use the Manager for bind ldap... ldap dislike my password on search...
2008-12-12 00:17 <X0d_of_N0d_> what was the error?
2008-12-12 00:17 <udono> Invalid credentials (49)
2008-12-12 00:17 <X0d_of_N0d_> ahh, my bad...
2008-12-12 00:18 <X0d_of_N0d_> `ldapsearch -D 'cn=manager,dc=lisa,dc=localdomain' cn=manager -x -W `
2008-12-12 00:19 <udono> X0d_of_N0d_: yes, this works : http://paste.pocoo.org/show/94973/
2008-12-12 00:20 <X0d_of_N0d_> ok
2008-12-12 00: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 away
2008-12-12 00:21 <udono> X0d_of_N0d_: But I can neither use "Manager", nor "cn=Manager,dc=lisa,dc=localdomain"...
2008-12-12 00:21 <X0d_of_N0d_> it should give you 'int' object is unscriptable
2008-12-12 00:21 <X0d_of_N0d_> hold up
2008-12-12 00:22 <udono> X0d_of_N0d_: which filter to use?
2008-12-12 00:22 <X0d_of_N0d_> cn=%s
2008-12-12 00:24 <udono> X0d_of_N0d_: ok, it works up to the KeyError: 'ir.actions.actions'
2008-12-12 00:24 <X0d_of_N0d_> hold up, I totally broke my tryton
2008-12-12 00:24 <X0d_of_N0d_> yeah
2008-12-12 00:24 <X0d_of_N0d_> that's on you now
2008-12-12 00:24 <udono> X0d_of_N0d_: Thanks for patience...
2008-12-12 00:24 <udono> yes, I've an idea
2008-12-12 00:24 <X0d_of_N0d_> the reason it's doing that is that the user isn't in the database
2008-12-12 00:24 <X0d_of_N0d_> the tinyerp code creates the user, but not completely....
2008-12-12 00:25 <X0d_of_N0d_> the action never gets defined in the tinyerp one, so that's broken
2008-12-12 00:25 <udono> ACTION is missing the third monkey which is closing his eyes...
2008-12-12 00:26 <X0d_of_N0d_> hehe
2008-12-12 00: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 all
2008-12-12 00:50 -!- ikks(n=igor@201.244.188.98) has joined #tryton
2008-12-12 01:24 -!- X0d_of_N0d(n=syn@damnation.neg9.org) has joined #tryton
2008-12-12 01:29 <X0d_of_N0d> udono: you still there?
2008-12-12 01:30 <udono> X0d_of_N0d: yes
2008-12-12 01:31 <X0d_of_N0d> alright, so where were we?
2008-12-12 01:31 <udono> X0d_of_N0d: Its short before login, but it will not login
2008-12-12 01:31 <X0d_of_N0d> ?
2008-12-12 01:31 <udono> see in the repo and try out.
2008-12-12 01:33 <X0d_of_N0d> hum...
2008-12-12 01:35 <X0d_of_N0d> huh...that's interesting
2008-12-12 01:35 <udono> X0d_of_N0d: solved another small bug
2008-12-12 01:35 <udono> now Tryton creates the user
2008-12-12 01:36 <udono> but I get a misterious error client side...
2008-12-12 01:36 <udono> on login: ERROR:common.message:'int' object is unsubscriptable and one time
2008-12-12 01:36 <udono> ERROR:common.message:'long' object is unsubscriptable
2008-12-12 01:36 <X0d_of_N0d> 'int' object is unscriptable
2008-12-12 01:37 <X0d_of_N0d> yeah
2008-12-12 01:37 <X0d_of_N0d> because int is being returned instead of the function
2008-12-12 01:37 <udono> X0d_of_N0d: I know that, but from where did it come...
2008-12-12 01:37 <udono> X0d_of_N0d: ok
2008-12-12 01:37 <X0d_of_N0d> line 122
2008-12-12 01:37 <X0d_of_N0d> for me anyway
2008-12-12 01:38 <X0d_of_N0d> return res[0]
2008-12-12 01:38 <X0d_of_N0d> but that's not right
2008-12-12 01:38 <udono> X0d_of_N0d: but what else to return?
2008-12-12 01:38 <CIA-54> tryton: 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 ...
2008-12-12 01:39 <X0d_of_N0d> hold up.....
2008-12-12 01:39 <X0d_of_N0d> that's what should be returned according to security.......
2008-12-12 01:39 <X0d_of_N0d> user_id
2008-12-12 01:40 <X0d_of_N0d> the problem is in ldap_check
2008-12-12 01:40 <X0d_of_N0d> somewhere
2008-12-12 01:40 <udono> X0d_of_N0d: but res[0] is the user_id...
2008-12-12 01:41 <X0d_of_N0d> right, and I'm pretty sure that works... I think it's outside of the login code
2008-12-12 01:41 <X0d_of_N0d> I thin kit's somewhere in the ldap_check code
2008-12-12 01:41 <X0d_of_N0d> hum.....
2008-12-12 01:41 <X0d_of_N0d> hum...but it's not
2008-12-12 01:41 <X0d_of_N0d> wtf
2008-12-12 01:42 <udono> X0d_of_N0d: Ldap_check is not called on login, I think
2008-12-12 01:42 <udono> X0d_of_N0d: norin security.py
2008-12-12 01:42 <udono> nor in
2008-12-12 01:42 <X0d_of_N0d> it sets up authentication so it's called almost immidtely after
2008-12-12 01:42 <X0d_of_N0d> hum.....
2008-12-12 01:42 <X0d_of_N0d> it's not res[0]
2008-12-12 01:43 <X0d_of_N0d> it is in something set up during login, not outside anywhere
2008-12-12 01:44 <X0d_of_N0d> it's gotta be something to do with 'res.user' or 'ir.actions'
2008-12-12 01:45 <X0d_of_N0d> hum....
2008-12-12 01:45 <udono> ir.action is just the id for the menu and the home action of the user...
2008-12-12 01:45 <X0d_of_N0d> hum...
2008-12-12 01:46 <udono> X0d_of_N0d: they are created right for the new user, afais
2008-12-12 01:46 <X0d_of_N0d> in the old code they were not created correctly
2008-12-12 01:48 <udono> X0d_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#l121
2008-12-12 01:49 <X0d_of_N0d> OHHHHHH
2008-12-12 01:49 <X0d_of_N0d> hum...
2008-12-12 01:49 <X0d_of_N0d> maybe
2008-12-12 01:50 <X0d_of_N0d> if cache is set to true (which by default it is) login returns a tuple instead of an int
2008-12-12 01:50 <X0d_of_N0d> and if you do "1[0]" in python it returns the error 'int' object is unsubscriptable
2008-12-12 01:51 <X0d_of_N0d> so it should return (user_id, session)
2008-12-12 01:51 <X0d_of_N0d> brb, I need to go buy cigaretts
2008-12-12 01:52 <udono> X0d_of_N0d: yeah, that's it
2008-12-12 01:53 <udono> X0d_of_N0d: but where to get the session when not steal?
2008-12-12 01:54 <udono> X0d_of_N0d: I think, I get it...
2008-12-12 02:10 <udono> X0d_of_N0d: I tried this way: http://mercurial.intuxication.org/hg/res_user_auth_ldap/file/1ac94be11686/users_ldap.py#l121
2008-12-12 02:11 <udono> X0d_of_N0d: but will not work.
2008-12-12 02:11 <X0d_of_N0d> the same problem??
2008-12-12 02:12 <udono> X0d_of_N0d: no, another one
2008-12-12 02:12 <X0d_of_N0d> session = str(random.random())
2008-12-12 02:12 <X0d_of_N0d> that's in login
2008-12-12 02:12 <udono> X0d_of_N0d: ERROR:common.message:Not supported: trytond.security/Session
2008-12-12 02:13 <X0d_of_N0d> hum....
2008-12-12 02:13 <X0d_of_N0d> _USER_CACHE
2008-12-12 02:13 <X0d_of_N0d> that needs to be set up
2008-12-12 02:14 <udono> X0d_of_N0d: ... getting tired, we have 2:15 ...
2008-12-12 02:15 <X0d_of_N0d> I'll play around with it some more and post my changes
2008-12-12 02:15 <udono> X0d_of_N0d: but it should be possible to call the Session...
2008-12-12 02:16 <udono> X0d_of_N0d: BTW the whole design as a module for ldap authentication is crap, I thing
2008-12-12 02:16 <X0d_of_N0d> yeah but session is not used in security
2008-12-12 02:16 <X0d_of_N0d> I don't know
2008-12-12 02:16 <X0d_of_N0d> it should be possible to auth against multiple sources
2008-12-12 02:16 <X0d_of_N0d> it seems like the right thing to do would be to write a pam module, then let pam take care of everything else....
2008-12-12 02:17 <udono> The connection setup is better in the /tec/tryton.conf stored, and multicompany is build into the ldap sheme....
2008-12-12 02:17 <udono> s/tec/etc
2008-12-12 02:17 <X0d_of_N0d> that's a design decision
2008-12-12 02:18 <udono> X0d_of_N0d: yes
2008-12-12 02:18 <X0d_of_N0d> again, the solution in that case would be pam
2008-12-12 02:18 <X0d_of_N0d> but 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 plugin
2008-12-12 02:18 <udono> X0d_of_N0d: pam could be a better idea. Do you have experience in Python PAM?
2008-12-12 02:18 <X0d_of_N0d> like an ldap admin plugin
2008-12-12 02:19 <udono> X0d_of_N0d: and party mapping in Ladap...
2008-12-12 02:19 <udono> s/ladap/ldap
2008-12-12 02:20 <X0d_of_N0d> udono: 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)
2008-12-12 02:20 <X0d_of_N0d> etc
2008-12-12 02:20 <X0d_of_N0d> none of which could be done with pam
2008-12-12 02:21 <udono> X0d_of_N0d: yes, but the one thing is system authentication, and the other thing are ldap modules for special things.
2008-12-12 02:22 <udono> X0d_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 module
2008-12-12 02:24 <udono> X0d_of_N0d: so its on you to solve the last step for successful login. Iam to tired... I give my best tomorrow again.
2008-12-12 02:24 <X0d_of_N0d> udono: right, so I think it would be best to keep working on this as a module
2008-12-12 02:24 <X0d_of_N0d> I'll keep working on it
2008-12-12 02:25 <X0d_of_N0d> udono: catch you tomorrow
2008-12-12 02:25 <udono> X0d_of_N0d: great, Read you tomorrow... Good night
2008-12-12 02:25 <X0d_of_N0d> udono: cool, night man
2008-12-12 02:27 <X0d_of_N0d> BWAHAHAH
2008-12-12 02:27 <X0d_of_N0d> hum....
2008-12-12 02:27 <X0d_of_N0d> damn
2008-12-12 02:27 <X0d_of_N0d> almost got it
2008-12-12 02:32 -!- mmarshall_(n=mmarshal@adsl-99-190-37-73.dsl.rcsntx.sbcglobal.net) has joined #tryton
2008-12-12 02:40 <X0d_of_N0d> hum.......
2008-12-12 03:25 <CIA-54> tryton: 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 ...
2008-12-12 03:33 <CIA-54> tryton: X0d_of_N0d roundup * #666/TypeError: list indices must be integers: [chatting] I tried to duplicate a user.
2008-12-12 04:25 -!- X0d_of_N0d(n=syn@damnation.neg9.org) has joined #tryton
2008-12-12 04:25 -!- CIA-54(n=CIA@208.69.182.149) has joined #tryton
2008-12-12 05:20 -!- yangoon(n=mathiasb@p549F7633.dip.t-dialin.net) has joined #tryton
2008-12-12 06:46 -!- Timitos(n=Timitos@88.217.184.172) has joined #tryton
2008-12-12 07:10 -!- vengfulsquirrel(n=ian@c-67-170-212-242.hsd1.ca.comcast.net) has left #tryton
2008-12-12 07:13 <udono> X0d_of_N0d: Hey, still awake?
2008-12-12 07:27 -!- sharkcz(n=dan@plz1-v-4-17.static.adsl.vol.cz) has joined #tryton
2008-12-12 08:17 -!- LordVan(n=lordvan@gentoo/developer/LordVan) has joined #tryton
2008-12-12 08:24 -!- carlos(n=carlos@89.7.24.44) has joined #tryton
2008-12-12 08:29 <CIA-54> tryton: 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 ...
2008-12-12 08:30 <CIA-54> tryton: Timitos roundup * #667/KeyError: 'active': [chatting] tried to open an account.tax.template record
2008-12-12 08:41 <CIA-54> tryton: 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 ...
2008-12-12 08:43 <CIA-54> tryton: 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.
2008-12-12 09:03 -!- nicoe(n=nicoe@ip-80-236-223-83.dsl.scarlet.be) has joined #tryton
2008-12-12 09:20 -!- Cristi_an(n=Cristi@89.120.211.206) has joined #tryton
2008-12-12 09:41 -!- Gedd(n=ged@ip-80-236-223-83.dsl.scarlet.be) has joined #tryton
2008-12-12 09:43 -!- ecir3(n=brice@sednaco19320-gw.clients.easynet.fr) has joined #tryton
2008-12-12 09:46 -!- oversize(n=manuel@port-92-198-7-97.static.qsc.de) has joined #tryton
2008-12-12 09:46 -!- cedk(n=ced@gentoo/developer/cedk) has joined #tryton
2008-12-12 09:54 -!- marmu(n=marmu@p54AD4575.dip.t-dialin.net) has joined #tryton
2008-12-12 10:02 <CIA-54> tryton: C?dric Krier <ced@b2ck.com> default * 1354:12ea133bbb19 trytond/trytond/res/user.py: Fix copy of user to handle list of ids for issue666
2008-12-12 10:02 <CIA-54> tryton: ced roundup * #666/TypeError: list indices must be integers: [resolved] Fix with changeset 12ea133bbb19
2008-12-12 10:02 -!- vengfulsquirrel(n=ian@c-67-170-212-242.hsd1.ca.comcast.net) has joined #tryton
2008-12-12 10:02 -!- vengfulsquirrel1(n=ian@c-67-170-212-242.hsd1.ca.comcast.net) has joined #tryton
2008-12-12 10:09 -!- rvalyi(i=58aaece0@gateway/web/ajax/mibbit.com/x-2f893685906105c8) has joined #tryton
2008-12-12 10:11 -!- bechamel(n=user@host-213-213-252-112.brutele.be) has joined #tryton
2008-12-12 10:20 <cedk> Timitos: http://acysos-openerp.blogspot.com/2008/12/accountreverse.html
2008-12-12 10:25 <Timitos> cedk: 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 tryton
2008-12-12 10:26 <Timitos> cedk: 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.
2008-12-12 10:27 <cedk> Timitos: It was more about the fact that he find the account modelisation is not good in OpenERP
2008-12-12 10:27 <cedk> otherwise, the module is just a tool to simplify live
2008-12-12 10:31 <Timitos> cedk: ok. as i know that accounting implementation of openerp is not that optimal i perhaps ignored this part of the post ;-)
2008-12-12 10:42 -!- ecir3(n=brice@sednaco19320-gw.clients.easynet.fr) has joined #tryton
2008-12-12 10:47 <Timitos> cedk: 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?
2008-12-12 10:49 <cedk> Timitos: no, I think that we are not affect by the issues
2008-12-12 10:49 <Timitos> cedk: ok
2008-12-12 10:53 <udono> Timitos: cedk: what do you think about http://acysos-openerp.blogspot.com/2008/12/accountregularization.html ?
2008-12-12 10:59 <cedk> udono: this is an other usefull tool
2008-12-12 11:06 <udono> cedk: yes, I think about, since Iam sittion on the german tax system...
2008-12-12 11:06 <udono> s/sittion/sitting
2008-12-12 11:11 <udono> cedk: 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/Session
2008-12-12 11:14 <cedk> udono: yes normally
2008-12-12 11:16 <udono> cedk: the error, or the possibility to instanciate?
2008-12-12 11:21 <cedk> udono: I don't see why you could not instanciate it
2008-12-12 11:28 <udono> cedk: ok
2008-12-12 11:53 <Timitos> cedk: do you think a combination of partial payment (actual payment term in tryton) and cash discount would be useful? i don´t think so.
2008-12-12 11:55 <cedk> Timitos: I'm not sure but I think that they are linked in a way
2008-12-12 11:57 <Timitos> cedk: 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.
2008-12-12 12:03 <Timitos> cedk: 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.2008
2008-12-12 12:04 <Timitos> cedk: but i think this is doubled and does not so much sense
2008-12-12 12:04 <Timitos> @all: What do you think about this problem
2008-12-12 12:09 <Timitos> cedk: found the solution. thx for being with me
2008-12-12 12:13 <CIA-54> tryton: 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.
2008-12-12 12:15 <CIA-54> tryton: cedric.krier@b2ck.com * r377 /wiki/ODTGuideLines.wiki: Edited wiki page through web user interface.
2008-12-12 12:15 <CIA-54> tryton: Timitos roundup * #668/TypeError: 'int' object is unsubscriptable: changeset 332:b1b1306b697d i added some print statements to look for the reason
2008-12-12 12:16 <CIA-54> tryton: C?dric Krier <ced@b2ck.com> default * 333:c7aaf2429df1 account/tax.xml: Remove wrong field active in tree view for issue667
2008-12-12 12:17 <CIA-54> tryton: ced roundup * #667/KeyError: 'active': [resolved] Fix with changeset c7aaf2429df1
2008-12-12 12:22 <CIA-54> tryton: C?dric Krier <ced@b2ck.com> default * 313:18b5462d714d account/tax.py: Fix default_group for tax template for issue663
2008-12-12 12:22 <CIA-54> tryton: C?dric Krier <ced@b2ck.com> default * 314:a22a7c44d714 account/party.py: Fix state test with company
2008-12-12 12:22 <CIA-54> tryton: C?dric Krier <ced@b2ck.com> default * 315:bf1dd2bffbb4 account/tax.py: Add active field on tax template for issue667
2008-12-12 12:22 <CIA-54> tryton: ced roundup * #667/KeyError: 'active': [chatting] Fix in 1.0 with changeset bf1dd2bffbb4
2008-12-12 12:30 <CIA-54> tryton: 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 ...
2008-12-12 12:32 <CIA-54> tryton: 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 ...
2008-12-12 12:41 -!- ikks(n=igor@190.12.153.202) has joined #tryton
2008-12-12 13:11 <CIA-54> tryton: ced roundup * #665/Error in wizard company: I need the list of all modules installed for the database.
2008-12-12 13:19 <CIA-54> tryton: matb roundup * #665/Error in wizard company: Additional comment: Installation in english language succeeds, but not in german language
2008-12-12 13:21 -!- Gedd(n=ged@ip-80-236-223-83.dsl.scarlet.be) has joined #tryton
2008-12-12 13:23 <CIA-54> tryton: 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 ...
2008-12-12 13:26 <CIA-54> tryton: C?dric Krier <ced@b2ck.com> default * 1355:d5e23a5c3703 trytond/trytond/ir/ (action.py action.xml): Remove old fields in view and multi for issue669
2008-12-12 13:26 <CIA-54> tryton: ced roundup * #669/Crash in form wizards: [resolved] Fix with changeset d5e23a5c3703
2008-12-12 13:31 <CIA-54> tryton: C?dric Krier <ced@b2ck.com> default * 1285:585f25447707 trytond/trytond/ir/rule.py: Fix typo for user.id operand
2008-12-12 13:31 <CIA-54> tryton: Bertrand Chenal <bch@b2ck.com> default * 1286:c8375cd847d0 trytond/trytond/ir/cron.py: Fix cron messages: fallback to default langage if missing on the user
2008-12-12 13:31 <CIA-54> tryton: C?dric Krier <ced@b2ck.com> default * 1287:4e24a8e4e49f trytond/trytond/ir/ui/menu.py: Improve action_inv on ir.ui.menu for issue659
2008-12-12 13:31 <CIA-54> tryton: C?dric Krier <ced@b2ck.com> default * 1288:78cb3f1f1112 trytond/trytond/tools/convert.py: Add missing module in context when updating xml record for issue657
2008-12-12 13:31 <CIA-54> tryton: C?dric Krier <ced@b2ck.com> default * 1289:656b0fa5dc43 trytond/trytond/webdavsvc.py: Quote the url for html page of webdav collection
2008-12-12 13:31 <CIA-54> tryton: C?dric Krier <ced@b2ck.com> default * 1290:c11c577812e1 trytond/trytond/osv/orm.py:
2008-12-12 13:31 <CIA-54> tryton: Add a default clause for the inselect query of child_of with left and right
2008-12-12 13:32 <CIA-54> tryton: for issue660
2008-12-12 13:32 <CIA-54> tryton: C?dric Krier <ced@b2ck.com> default * 1291:be93c634a84f trytond/trytond/ir/action.py: Add fields view and multi for issue669
2008-12-12 13:53 <cedk> panthera: hi
2008-12-12 13:53 <cedk> panthera: I see that for the OpenERP client, you put a patch to add this line: gtk.gdk.threads_init()
2008-12-12 13:54 <cedk> panthera: can you explain me what is the purpose?
2008-12-12 13:54 <panthera> cedk: mom
2008-12-12 13:55 <panthera> cedk: have you read: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=481895
2008-12-12 13:55 <cedk> ACTION read debian bugs
2008-12-12 13:55 <panthera> cedk: from the code point of view, i've no idea why it's necessary.
2008-12-12 13:57 <cedk> panthera: http://www.moeraki.com/pygtktutorial/pygtk2reference/gdk-functions.html#function-gdk--threads-init
2008-12-12 13:58 <cedk> panthera: it is about the GIL and the lock of GDK
2008-12-12 14:01 <cedk> panthera: in the bug on debian, there is no explaination why the line fix the issue
2008-12-12 14:01 <cedk> anybody has an idea ?
2008-12-12 14:04 <panthera> cedk: you can ask ask Chris Lamb directly if you want, he's nick is 'lamby'
2008-12-12 14:04 <cedk> panthera: on irc?
2008-12-12 14:05 <cedk> doesn't seem to be connected
2008-12-12 14:05 <cedk> I will send an email
2008-12-12 14:08 <panthera> on irc, yes. as far as i can see, he's connected:
2008-12-12 14:08 <panthera> 13:02:21 [freenode] -!- lamby [n=lamby@chris-lamb.co.uk]
2008-12-12 14:08 <panthera> 13:02:21 [freenode] -!- ircname : Chris Lamb <lamby@debian.org> [0x634F9A20]
2008-12-12 14:08 <panthera> 13:02:21 [freenode] -!- server : irc.freenode.net [http://freenode.net/]
2008-12-12 14:08 <panthera> 13:02:21 [freenode] -!- : is identified to services
2008-12-12 14:08 <panthera> 13:02:21 [freenode] -!- : is signed on as account lamby
2008-12-12 14:08 <panthera> 13:02:21 [freenode] -!- End of WHOIS
2008-12-12 14:10 <cedk> panthera: ok I'll try to ask him
2008-12-12 14:41 <CIA-54> tryton: 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 ...
2008-12-12 15:26 -!- tekknokrat(n=gthieleb@dslb-088-074-181-055.pools.arcor-ip.net) has joined #tryton
2008-12-12 15:27 -!- tekknokrat(n=gthieleb@dslb-088-074-181-055.pools.arcor-ip.net) has left #tryton
2008-12-12 15:36 <CIA-54> tryton: udono roundup * #665/Error in wizard company: [chatting] dito, same error with new database under the same conditions. English language works, german language not.
2008-12-12 15:36 <CIA-54> tryton: udono roundup * #665/Error in wizard company: dito, same error with new database under the same conditions. English language works, german language not.
2008-12-12 15:51 <Timitos> cedk: is it possible to create a chart like the one of the bottom of this picture with tryton? http://drupal.org/node/235682
2008-12-12 16:07 <cedk> Timitos: yes but not with the 3D layout
2008-12-12 16:08 <Timitos> cedk: this is enough. thx
2008-12-12 16:15 -!- ikks_(n=igor@190.144.69.234) has joined #tryton
2008-12-12 16:21 <Timitos> cedk: the only important thing for my chart is the grouping for every month like in this example. i need this
2008-12-12 16:21 <cedk> Timitos: but drawing some cavalier perspective will be not so difficult
2008-12-12 16:23 <Timitos> cedk: 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 moment
2008-12-12 16:24 <cedk> Timitos: to create this kind of graph, you have two options
2008-12-12 16:24 <cedk> Timitos: one record for each month with all the values
2008-12-12 16:25 <cedk> Timitos: or one record per month and bar
2008-12-12 16:26 <Timitos> cedk: one record for each month with all values will give me one bar per month, or? this is not what i need
2008-12-12 16:27 <Timitos> one record per month and bar. i think this is what i need
2008-12-12 16:27 <cedk> Timitos: the first one will give you the same but it will work only if you have a fixed amount of bar
2008-12-12 16:28 <Timitos> cedk: ah ok. no it will not be a fixed amount of bar.
2008-12-12 16:28 <cedk> Timitos: so second method :-)
2008-12-12 16:28 <Timitos> cedk: yes. thx
2008-12-12 16:29 <cedk> Timitos: and use the key attributes
2008-12-12 16:30 <cedk> for the x field
2008-12-12 16:31 <Timitos> cedk: 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 ;-)
2008-12-12 16:39 <CIA-54> tryton: 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 ...
2008-12-12 16:40 -!- ikks_(n=igor@201.244.188.98) has joined #tryton
2008-12-12 16:43 -!- ecir3(n=brice@sednaco19320-gw.clients.easynet.fr) has joined #tryton
2008-12-12 16:55 <CIA-54> tryton: C?dric Krier <ced@b2ck.com> default * 214:422733437c13 party/address.py: Return dict instead of list for get_full_address
2008-12-12 17:09 <CIA-54> tryton: C?dric Krier <ced@b2ck.com> default * 399:dec1eb0ef2f2 stock/location.py: Fix loop in warehouse creation for issue664
2008-12-12 17:09 <CIA-54> tryton: ced roundup * #664/cannot create new warehouse: [testing] Fix with changeset dec1eb0ef2f2 Can you test it?
2008-12-12 17:13 <CIA-54> tryton: udo.spallek * r378 /wiki/TrytonLDAPIntegration.wiki: Created wiki page through web user interface.
2008-12-12 17:13 <CIA-54> tryton: udo.spallek * r379 /wiki/TrytonLDAPIntegration.wiki: Edited wiki page through web user interface.
2008-12-12 17:37 <CIA-54> tryton: 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( ...
2008-12-12 17:37 <CIA-54> tryton: Timitos roundup * #672/TypeError: int() argument must be a string or a number, not 'NoneType': [chatting] tried to create an new company with company wizard
2008-12-12 17:43 <CIA-54> tryton: Timitos roundup * #664/cannot create new warehouse: it is working now
2008-12-12 18:23 <udono> cedk: I am struggling with the LDAP... http://paste.pocoo.org/show/95071/ any ideas where to look?
2008-12-12 18:26 <cedk> udono: I don't know
2008-12-12 18:27 <udono> cedk: what a pitty, thanks
2008-12-12 18:38 <udono> anyone knows how to analyse the complete communication between client and server?
2008-12-12 18:39 <udono> I try with snort...
2008-12-12 18:39 <cedk> udono: wireshark
2008-12-12 18:40 <cedk> udono: by the way are working with a standard server or your customize LDAP?
2008-12-12 18:43 <udono> cedk: its customised ldap.
2008-12-12 18:44 <cedk> udono: it can be because the user "Manager" did not receive a valid session
2008-12-12 18:46 <udono> cedk: yes maybe. But we create the session like in security.py and added the _USER_CACHE
2008-12-12 18:48 <cedk> udono: are you sure it is in the _USER_CACHE, is it well a global variable
2008-12-12 18:48 <udono> cedk: the ldap usercache says: user cache: {'try20081212': {3: [(1229106345.8237071, '0.332232518017'), (1229106364.982857, '0.0169629128753')]}}
2008-12-12 18:49 <udono> and we return returning (user_id, session) (3, '0.0169629128753')
2008-12-12 18:49 <udono> 3 ist uid of Manager
2008-12-12 18:49 <cedk> udono: is it the same in security.py ?
2008-12-12 18:52 <udono> cedk: hmmm...
2008-12-12 18:53 <udono> cedk: what does this mean after a class definition: security.login = ldap_login(security.login)
2008-12-12 18:53 <cedk> udono: where?
2008-12-12 18:54 <udono> http://mercurial.intuxication.org/hg/res_user_auth_ldap/file/903ec5382ad1/users_ldap.py#l186
2008-12-12 18:54 <udono> cedk: last line
2008-12-12 18:55 <udono> is the security.login called, too?
2008-12-12 18:55 <cedk> udono: I replace the login function in security with the return of the function ldap_login
2008-12-12 18:56 <udono> cedk: the security.login is never called again?
2008-12-12 18:56 <udono> cedk: if somone calles security.login, then is ldap_login called instead
2008-12-12 18:57 <udono> cedk: I check
2008-12-12 18:57 <cedk> udono: the function ldap_login return the previous function if the module is not installed
2008-12-12 19:02 <udono> cedk: but when it is not installed, how it can return anything?
2008-12-12 19:02 <udono> cedk: is it ancient tiny stuff?
2008-12-12 19:09 <udono> cedk: because I remembe one commit of you, that we do not init functions which are not installed...
2008-12-12 19:10 <udono> ...but iam wrong. Everything is initialised by python under modules on starting the server, so forget my last questions...
2008-12-12 19:17 -!- Gedd(n=ged@155.236-240-81.adsl-dyn.isp.belgacom.be) has joined #tryton
2008-12-12 19:34 -!- Gedd(n=ged@77.109.113.33) has joined #tryton
2008-12-12 19:38 -!- oversize(n=manuel@dslb-088-069-010-061.pools.arcor-ip.net) has joined #tryton
2008-12-12 20:02 -!- vengfulsquirrel(n=ian@c-67-170-212-242.hsd1.ca.comcast.net) has joined #tryton
2008-12-12 20:09 -!- nside(n=nside@206-248-159-106.dsl.teksavvy.com) has joined #tryton
2008-12-12 20:13 <nside> à quoi servent les workflows?
2008-12-12 20:15 <cedk> nside: a controler les états dans le quel un document peut se trouver
2008-12-12 20:15 <nside> y'a un exemple d'utilisation?
2008-12-12 20:15 <nside> je grep les sources, sans succes :)
2008-12-12 20:16 <cedk> nside: par example un facture à comme état (activity) possible: draft, open, cancel, paid, ...
2008-12-12 20:17 <cedk> nside: on peut définir des transitions entre ces états qui sont empruntées en fonction de certain critère
2008-12-12 20:17 <nside> nice
2008-12-12 20:18 <cedk> nside: au fait, on essaye plutot de parler en anglais sur ce chan, pour que les autres puissent suivre
2008-12-12 20:19 <nside> sorry :)
2008-12-12 20:20 <cedk> nside: no problems :-)
2008-12-12 20:20 <nside> i'm browising trytond and so far i like it a lot
2008-12-12 20:21 <nside> i'm wondering hard it would be to write a flex/as3 frontend
2008-12-12 20:22 <cedk> nside: what is flex/as3 ?
2008-12-12 20:22 <nside> cedk: http://www.adobe.com/products/flex/
2008-12-12 20:25 <cedk> nside: http://groups.google.com/group/tryton/browse_thread/thread/ec30aab10780e324#
2008-12-12 20:26 <nside> great
2008-12-12 20:27 <cedk> nside: is flex Open Source?
2008-12-12 20:27 <nside> the only problem i see with a web client is the implementation of the push notifications
2008-12-12 20:27 <nside> cedk: kinda
2008-12-12 20:27 <nside> the framework is open source but the flash runtime is not
2008-12-12 20:28 <nside> adobe also open-sourced the protocols few months ago (rtmp, amf)
2008-12-12 20:28 <X0d_of_N0d> udono: you get a chance to try the module?
2008-12-12 20:29 <X0d_of_N0d> ACTION slept in and just got in to work...
2008-12-12 20:29 <cedk> nside: we don't have push notification
2008-12-12 20:29 <nside> everything is transactional ?
2008-12-12 20:30 <cedk> nside: yes
2008-12-12 20:31 <X0d_of_N0d> udono: the ldap module should work
2008-12-12 20:33 <cedk> nside: did you try the demo server?
2008-12-12 20:34 <nside> cedk: yep
2008-12-12 20:34 <nside> i'm browsing the sources now
2008-12-12 20:37 <nside> trying to understand workflows, actions, etc
2008-12-12 20:37 <nside> i'm wondering:
2008-12-12 20:37 <nside> is http://hg.tryton.org/hgwebdir.cgi/modules/account_invoice/file/a10a8ad5f5a0/invoice.xml machine generated?
2008-12-12 20:38 <udono> X0d_of_N0d: Hi, I gave it some trys, but it will not work for me...
2008-12-12 20:39 <udono> X0d_of_N0d: but maybe just some prefs on my side
2008-12-12 20:39 <cedk> nside: no
2008-12-12 20:39 <udono> X0d_of_N0d: do you have a working ldif for me?
2008-12-12 20:41 <udono> X0d_of_N0d: but great that you are there... did the actual version works for you?
2008-12-12 20:57 <X0d_of_N0d> the version I checked in worked for me actually
2008-12-12 20:57 <X0d_of_N0d> I can't give you a good ldif right now because I'm working off my work db
2008-12-12 20:58 <X0d_of_N0d> tell me what your preferences are
2008-12-12 20:59 <udono> X0d_of_N0d: Maybe I start with the problems...
2008-12-12 21:00 <udono> X0d_of_N0d: no, prefs before are better...
2008-12-12 21:00 <X0d_of_N0d> lemme just verify that I checked in the version I'm working with
2008-12-12 21:01 <udono> X0d_of_N0d: ok, I collect my prefs together. In between you may like to look at: http://code.google.com/p/tryton/wiki/TrytonLDAPIntegration
2008-12-12 21:02 <X0d_of_N0d> changeset 15:8d3028c2ca68
2008-12-12 21:04 <X0d_of_N0d> you're working on that changeset?
2008-12-12 21:04 <udono> X0d_of_N0d: no, using changeset 18 bd38cb845475
2008-12-12 21:05 <X0d_of_N0d> hum.......
2008-12-12 21:05 <udono> X0d_of_N0d: my prefs: http://paste.pocoo.org/show/95090/
2008-12-12 21:06 <X0d_of_N0d> hum....
2008-12-12 21:06 <udono> ACTION thinks he made it more worse?
2008-12-12 21:06 <X0d_of_N0d> 15 was working...lemme see what changed
2008-12-12 21:07 <X0d_of_N0d> just revert to 15 for right now and try it
2008-12-12 21:07 <X0d_of_N0d> I'm going to sort through the diff
2008-12-12 21:14 <X0d_of_N0d> password shouln't be set up for the user on creation.... ldap does auth
2008-12-12 21:16 <udono> X0d_of_N0d: but tryton needs a password...
2008-12-12 21:16 <udono> X0d_of_N0d: maybe its http://mercurial.intuxication.org/hg/res_user_auth_ldap/rev/4150ec304810#l63
2008-12-12 21:17 <udono> X0d_of_N0d: no sorry, that's ok
2008-12-12 21:17 <udono> X0d_of_N0d: maybe this makes problems: http://mercurial.intuxication.org/hg/res_user_auth_ldap/rev/4150ec304810#l220
2008-12-12 21:21 <udono> X0d_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?
2008-12-12 21:22 <X0d_of_N0d> tryton doesn't need a password...
2008-12-12 21:22 <X0d_of_N0d> tryton takes the password, passes it to ldap, ldap auths, then tryton knows that the user is authd
2008-12-12 21:23 <X0d_of_N0d> tryton creates a session and the user is authd, tryton never actually does anything with the passwd but send it to ldap
2008-12-12 21:24 <udono> X0d_of_N0d: ok, I try with r15
2008-12-12 21:24 <udono> X0d_of_N0d: I can login as user admin
2008-12-12 21:24 <udono> X0d_of_N0d: which is actually not a ldap user...
2008-12-12 21:25 <X0d_of_N0d> you should be able to delete your manager user and still log in as manager, then the user will be created
2008-12-12 21:25 <udono> X0d_of_N0d: I can't login with user Manager, which is actually an ldap user.
2008-12-12 21:26 <X0d_of_N0d> hold on, lemme look at your prefs again
2008-12-12 21:26 <udono> X0d_of_N0d: which password I use for user Manager? I just have the connection password...
2008-12-12 21:27 <udono> X0d_of_N0d: my Manager is deleted.
2008-12-12 21:27 <X0d_of_N0d> hold up a sec
2008-12-12 21:27 <udono> \me freeze
2008-12-12 21:31 <X0d_of_N0d> sorry, I keep getting interrupted by users
2008-12-12 21:31 <X0d_of_N0d> ok, log in using manager with your ldap password
2008-12-12 21:31 <X0d_of_N0d> wait...
2008-12-12 21:32 <X0d_of_N0d> is your bind dn and password correct? can you log in from the commandline with those values?
2008-12-12 21:32 <CIA-54> tryton: 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 ...
2008-12-12 21:32 <X0d_of_N0d> ACTION goes outside for a quick smoke
2008-12-12 21:33 <udono> This works: ldapsearch -D 'cn=manager,dc=lisa,dc=localdomain' cn=manager -x -W
2008-12-12 21:34 -!- vengfulsquirrel(n=ian@c-67-170-212-242.hsd1.ca.comcast.net) has left #tryton
2008-12-12 21:34 <udono> X0d_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'
2008-12-12 21:35 <udono> X0d_of_N0d: but there is no menu...
2008-12-12 21:35 <udono> X0d_of_N0d: That's the problem: http://paste.pocoo.org/show/95071/
2008-12-12 21:36 <X0d_of_N0d> that means that it's not going through the security check
2008-12-12 21:37 <X0d_of_N0d> print out _USER_CACHE from check in security.py
2008-12-12 21:38 <X0d_of_N0d> ACTION thinks... hum...
2008-12-12 21:38 <X0d_of_N0d> basically it's not giving you permissions to view the menu
2008-12-12 21:38 <X0d_of_N0d> for some reason
2008-12-12 21:38 <X0d_of_N0d> but if you log in, that means all the ldap settings are right
2008-12-12 21:40 <udono> are you able to login with your installation?
2008-12-12 21:40 <udono> X0d_of_N0d:
2008-12-12 21:40 <X0d_of_N0d> yeah
2008-12-12 21:41 <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?
2008-12-12 21:41 <X0d_of_N0d> print out _USER_CACHE in both login and check and show me the difference
2008-12-12 21:44 <udono> X0d_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...
2008-12-12 21:45 <X0d_of_N0d> right, because security.login = ldap_login(security.login) makes the ldap login replace security.login
2008-12-12 21:45 <udono> X0d_of_N0d: I did right?
2008-12-12 21:46 <X0d_of_N0d> if you comment out that line than the whole module does nothing
2008-12-12 21:48 <udono> X0d_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.
2008-12-12 21:48 <X0d_of_N0d> no
2008-12-12 21:48 <udono> X0d_of_N0d: no?
2008-12-12 21:49 <X0d_of_N0d> i import _USER_CACHE from security, so they are the same
2008-12-12 21:49 <X0d_of_N0d> there should be a line _USER_CACHE=security._USER_CACHE
2008-12-12 21:50 <udono> X0d_of_N0d: but security login is never called when I use the ldap module (in my case)
2008-12-12 21:50 <udono> X0d_of_N0d: anyway, I try
2008-12-12 21:50 <X0d_of_N0d> security login is replaced with ldap_login, but security.check IS called
2008-12-12 21:51 <X0d_of_N0d> and the _USER_CACHE from cache MUST match the one from login, or you have no permissions
2008-12-12 21:54 <X0d_of_N0d> is logging a standard module, or a tryton module?
2008-12-12 21:54 <X0d_of_N0d> it's a tryton module, right?
2008-12-12 21:54 <udono> X0d_of_N0d: I think so, yes
2008-12-12 21:55 <udono> X0d_of_N0d: security._USER_CACHE: {} is called one time on starting trytond and empty
2008-12-12 21:56 <udono> X0d_of_N0d: the other USER_CACHE is never shown in my tests
2008-12-12 21:57 <X0d_of_N0d> ok.... security line 43 add " print ">>>normal check"
2008-12-12 21:57 -!- vengfulsquirrel(n=ian@c-67-170-212-242.hsd1.ca.comcast.net) has joined #tryton
2008-12-12 21:57 <X0d_of_N0d> erm 'print ">>>normal check"'
2008-12-12 21:58 <X0d_of_N0d> next line add
2008-12-12 21:58 <X0d_of_N0d> print "(dbname, user, session, outdate_timeout)",(dbname, user, session, outdate_timeout)
2008-12-12 21:58 <X0d_of_N0d> print "_USER_CACHE",_USER_CACHE
2008-12-12 21:58 <X0d_of_N0d> lput that at your new line 48
2008-12-12 21:58 <X0d_of_N0d> then restart tryton
2008-12-12 22:00 <X0d_of_N0d> your output should look like this: http://pastebin.com/d2979ae6
2008-12-12 22:02 <X0d_of_N0d> or something like that
2008-12-12 22:03 -!- ikks(n=igor@190.144.69.234) has joined #tryton
2008-12-12 22:06 <udono> X0d_of_N0d: Login as Manager doesn't walk into security.login at all, my output is just ldap_login related: http://pastebin.com/f447093c1
2008-12-12 22:07 <udono> X0d_of_N0d: on line 18 you see the call of security._user_cache
2008-12-12 22:08 <udono> X0d_of_N0d: after this it entered ldap_login
2008-12-12 22:08 <udono> X0d_of_N0d: maybe an ldap issue?
2008-12-12 22:11 <X0d_of_N0d> no
2008-12-12 22:11 <X0d_of_N0d> it's not an ldap issue
2008-12-12 22:12 <X0d_of_N0d> you modified your security.py like I said?
2008-12-12 22:13 <X0d_of_N0d> you 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_CACHE
2008-12-12 22:14 <X0d_of_N0d> if the session that gets passed in isn't found in _USER_CACHE then you don't get auth'd
2008-12-12 22:15 <X0d_of_N0d> so you log in, but you don't get permissions to look at anything
2008-12-12 22:16 <udono> X0d_of_N0d: Login as Manager: http://pastebin.com/d675c620
2008-12-12 22:18 <X0d_of_N0d> add a marker to the beginning of security.check (the real tryton one) to show it's being run
2008-12-12 22:21 <udono> X0d_of_N0d: http://pastebin.com/d5007f454
2008-12-12 22:21 <X0d_of_N0d> ok, excellent
2008-12-12 22:22 <X0d_of_N0d> now after the line you added add another one that prints out the value of session like 'print "session=%s" % session'
2008-12-12 22:24 <udono> X0d_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.
2008-12-12 22:26 <X0d_of_N0d> just remove the outdate_timeout variable
2008-12-12 22:26 <udono> X0d_of_N0d: ok, http://pastebin.com/d3947abb0
2008-12-12 22:27 <udono> X0d_of_N0d: it's the same session...
2008-12-12 22:28 <X0d_of_N0d> hum...
2008-12-12 22:29 <X0d_of_N0d> ok, your session is right
2008-12-12 22:29 <X0d_of_N0d> wait
2008-12-12 22:29 <X0d_of_N0d> so after that line print out _USER_CACHE
2008-12-12 22:31 <udono> X0d_of_N0d: http://pastebin.com/d20e3b5dc
2008-12-12 22:32 <udono> X0d_of_N0d: soon I have to sleep... last night just three hours...
2008-12-12 22:32 <X0d_of_N0d> ok, so that looks like it's working
2008-12-12 22:32 <X0d_of_N0d> hum...
2008-12-12 22:32 <X0d_of_N0d> what's your menu action set to for the manager user?
2008-12-12 22:33 <udono> X0d_of_N0d: standard, the same as admin...
2008-12-12 22:33 <udono> X0d_of_N0d: did you have an admin user in your ldap?
2008-12-12 22:33 <udono> X0d_of_N0d: or which user you use...
2008-12-12 22:34 <X0d_of_N0d> I have an admin user in ldap, but it doesn't matter which one I use, both work
2008-12-12 22:34 <udono> X0d_of_N0d: ok
2008-12-12 22:34 <X0d_of_N0d> I can type in the ldap passwd and it works, or the tryton pw
2008-12-12 22:34 <udono> X0d_of_N0d: both passwords works?
2008-12-12 22:34 <X0d_of_N0d> yup
2008-12-12 22:35 <X0d_of_N0d> if you don't log in through ldap it automatically falls back on the old login method
2008-12-12 22:35 <udono> X0d_of_N0d: ok
2008-12-12 22:35 <udono> X0d_of_N0d: this seems to work at my installation, too. With admin.
2008-12-12 22:36 <X0d_of_N0d> ok
2008-12-12 22:36 <udono> ... which is actually not an ldap user
2008-12-12 22:36 <X0d_of_N0d> ok
2008-12-12 22:36 <X0d_of_N0d> so log in as admni and look at the users
2008-12-12 22:36 <X0d_of_N0d> the home action and menu action should be Menu
2008-12-12 22:36 <X0d_of_N0d> for Manager
2008-12-12 22:37 <udono> yes they are... but I give it a try tomorrow or Sunday...
2008-12-12 22:37 <X0d_of_N0d> ok, I'll catch you monday
2008-12-12 22:37 <udono> X0d_of_N0d: yes, that's good to know.
2008-12-12 22:38 <udono> X0d_of_N0d: did you read the google wiki page about the design things of the module?
2008-12-12 22:38 <X0d_of_N0d> udono: I'm going to clean up the code, I'll commit a working version... we can look at everything again
2008-12-12 22:38 <X0d_of_N0d> yeah, I did
2008-12-12 22:38 <X0d_of_N0d> I definitely have some input
2008-12-12 22:38 <X0d_of_N0d> can I get access to edit it?
2008-12-12 22:39 <udono> X0d_of_N0d: great, change what and how you like. If Iam blocked yith my login, I fit the user interface and model of tryton...
2008-12-12 22:39 <udono> X0d_of_N0d: do you have a google account?
2008-12-12 22:39 <X0d_of_N0d> Yeah
2008-12-12 22:40 <udono> If Iam blocked with my login problem, I try to fit the user interface and model for ldap...
2008-12-12 22:40 <udono> just give your google email to cedk, he will put you to the members
2008-12-12 22:40 <X0d_of_N0d> ok
2008-12-12 22:41 <X0d_of_N0d> I'll change the page and we'll talk about further development
2008-12-12 22:41 <udono> X0d_of_N0d: see you, and thanks a lot for patience and help :-)
2008-12-12 22:41 <CIA-54> tryton: 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 ...
2008-12-12 22:42 <X0d_of_N0d> udono: np, catch you later
2008-12-12 22:45 <udono> cedk: are you there?
2008-12-12 22:46 <cedk> udono: yes
2008-12-12 22:46 <udono> cedk: X0d_of_N0d like to become a google member for wiki edit.
2008-12-12 22:47 <X0d_of_N0d> hex@neg9.org is through google
2008-12-12 22:48 <X0d_of_N0d> ACTION has to help a user
2008-12-12 22:48 <cedk> X0d_of_N0d: it is not a google account
2008-12-12 23:01 <X0d_of_N0d> you can't use something that's through google services?
2008-12-12 23:01 <vengfulsquirrel> Can trytond start without the database being setup ?
2008-12-12 23:01 <vengfulsquirrel> *without any database
2008-12-12 23:02 <Timitos> vengfulsquirrel: yes
2008-12-12 23:05 <cedk> X0d_of_N0d: you must have a google account (it is different from a gmail account)
2008-12-12 23:06 <cedk> X0d_of_N0d: https://www.google.com/accounts/NewAccount?continue=http%3A%2F%2Fwww.google.be%2Fwebhp%3Fhl%3Den%26btnG%3DGoogle%2BSearch&hl=en
2008-12-12 23:08 <X0d_of_N0d> brb
2008-12-12 23:10 -!- ikks_(n=igor@190.144.69.234) has joined #tryton
2008-12-12 23:10 <cedk> X0d_of_N0d: it is like when you subscribe to any forum or wiki
2008-12-12 23:10 <X0d_of_N0d> sorry, some user is having a printing issue, I gotta take care of it really quick
2008-12-12 23:14 <cedk> X0d_of_N0d: no problems if I'm not more online when you come back, send me an email
2008-12-12 23:18 <X0d_of_N0d> ACTION hates printings and printers
2008-12-12 23:27 -!- ikks_(n=igor@201.244.188.98) has joined #tryton
2008-12-12 23:30 <vengfulsquirrel> Hey 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.
2008-12-12 23:30 <mmarshall> +1
2008-12-12 23:33 <cedk> vengfulsquirrel: why not simply use the Labels
2008-12-12 23:34 <cedk> there is Phase-Deploy
2008-12-12 23:34 <cedk> and Phase-Implementation
2008-12-12 23:35 <vengfulsquirrel> Implementation ?
2008-12-12 23:36 <vengfulsquirrel> Ha well first off I didn't even know those existed.
2008-12-12 23:36 <vengfulsquirrel> And I guess it depends on the intended audience
2008-12-12 23:38 <vengfulsquirrel> When 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.
2008-12-12 23:38 <cedk> I have added the Phase column in the default list
2008-12-12 23:38 <cedk> the official installation is in the file INSTALL of each package
2008-12-12 23:40 <CIA-54> tryton: matb roundup * #658/Make translation of title of invoice report independent from invoice.type: see attached patch for account_invoice, please apply
2008-12-12 23:43 <vengfulsquirrel> I 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.
2008-12-12 23:45 <cedk> vengfulsquirrel: this is what it is say in the INSTALL file of the package
2008-12-12 23:53 <vengfulsquirrel> Its 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.
2008-12-12 23:55 <CIA-54> tryton: 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. ...
2008-12-12 23:56 <vengfulsquirrel> I'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.
2008-12-12 23:57 <cedk> vengfulsquirrel: we can add a line about module installation in INSTALL of trytond

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