IRC logs of #tryton for Monday, 2013-04-08

chat.freenode.net #tryton log beginning Mon Apr 8 00:00:06 CEST 2013
2013-04-08 10:24 <prusglajotemis> Hello. What is the best way to log scheduled actions (cron) ?
2013-04-08 12:46 <rpit> I had some problems with the upload.py tool for codereview. i got the following message: Uploading base file for trytond/model/modelstorage.py Unhandled exception. Unauthorized sender [InvalidSenderError]
2013-04-08 12:48 <rpit> But the upload is accepted. After first upload the patch file was there, but not the base file to show the diff. After second upload the base file ist there and the diff works! Is this a known problem or what is my error?
2013-04-08 12:52 <cedk> rpit: it happens sometimes with appengine
2013-04-08 12:53 <cedk> rpit: we would like to move out and host ourself codereview
2013-04-08 12:55 <rpit> cedk: ok, then the codereview issue 767002 seems formally ok to me
2013-04-08 18:14 <mrechte> Hello, Is that normal that invoking trytond without -v option shows INFO logging but not ERROR logging whereas -v options shows both ?
2013-04-08 18:17 <cedk> mrechte: the logging of trytond should be completly reviewed like it was on tryton
2013-04-08 18:19 <Pilou> this patch add log level choice & colored stdout https://projects.bioecoforests.com/attachments/download/680 , patch will be submitted after the release
2013-04-08 18:22 <cedk> Pilou: did it follow the same simple cmd line as the client ?
2013-04-08 18:25 <Pilou> currently a "log_level" parameter is added in trytond.conf but adding support for a command line parameter is a good idea
2013-04-08 18:28 <cedk> Pilou: when I reworked the client logging, at first I wanted to provide all the options of logging module
2013-04-08 18:29 <cedk> Pilou: but I found it was a bad idea, because it is too complex
2013-04-08 18:29 <cedk> Pilou: for me it must be simple: -v some info, -vv more info, -vvv all info
2013-04-08 18:30 <Pilou> ie only ERROR, INFO, DEBUG (warning & critical excluded) ?
2013-04-08 18:35 <cedk> Pilou: critical devrait toujours ĂȘtre affichĂ©
2013-04-08 18:35 <cedk> Pilou: warning = info
2013-04-08 18:35 <cedk> Pilou: faut regarder le client
2013-04-08 18:38 <muelli> hm. Am I reading trytond/protocols/webdav.py right that it supports HTTP Basic Auth only? :-\
2013-04-08 18:41 <cedk> muelli: yes
2013-04-08 18:41 <muelli> damn.
2013-04-08 18:42 <cedk> muelli: that's why you should always use ssl
2013-04-08 18:43 <muelli> nah. I don't trust all the SSL implementations. I.e. the one on my N900 doesn't receive updates for all those broken CAs. And the UIs usually don't offer me to pin certificates.
2013-04-08 18:44 <muelli> so I see SSL as good as plain text. And I wouldn't want my password to fly over the wire.
2013-04-08 18:45 <cedk> muelli: patch for other auth are welcome
2013-04-08 18:45 <muelli> :)
2013-04-08 18:45 <muelli> Digest Auth is messy :-\ I'd reuse stuff from, say, tornado.
2013-04-08 18:47 <cedk> muelli: Digest Auth, I think need to know the password on server side
2013-04-08 18:47 <muelli> yes
2013-04-08 18:47 <muelli> well. A hashed version of that.
2013-04-08 18:47 <muelli> like pre hashed IIRC.
2013-04-08 18:49 <muelli> there is stuff from cyclone, not tornado: https://github.com/fiorix/cyclone/commit/c1d695214ef9d7a4b51ef9dca1ec6f38c0da789b I have just seen tryton for the first time though. So I don't dare yet to implement any of that.
2013-04-08 18:49 <muelli> I just submitted a trivial patch though ;-)
2013-04-08 18:50 <cedk> muelli: Tryton store an sha1 of the password
2013-04-08 18:51 <muelli> well. That's going to be tough then. If it's unsalted, which is hopefully isn't, then the user could use that :o)
2013-04-08 18:53 <cedk> muelli: it is salted
2013-04-08 18:54 <muelli> bad luck then.
2013-04-08 18:55 <muelli> As I've said: I know next to nothing about Tryton. Could I have multiple calendars? Or multiple users? With an ACL or so, so that each user can only write to her calendar?
2013-04-08 18:55 <cedk> muelli: yes
2013-04-08 18:56 <cedk> to all
2013-04-08 18:56 <cedk> muelli: you can also give write access to others
2013-04-08 18:56 <cedk> muelli: or readonly access
2013-04-08 18:58 <cedk> muelli: and indeed with the high modularity of Tryton, you could almost implement any kind of access rights
2013-04-08 18:59 <muelli> :D Okay. Maybe I rephrase: Can I do all that easily? ;-) I don't mind writing code. But I wouldn't necessarily want to learn a new framework. (although it's exciting, but not all too cool if you have to get stuff done)
2013-04-08 19:00 <muelli> thanks for the answers btw. Highly appreciated :)
2013-04-08 19:01 <cedk> muelli: simple access right management is there by default
2013-04-08 19:01 <cedk> muelli: so for each calendar you can define who is the owner (if there is one)
2013-04-08 19:01 <cedk> muelli: who can write on it
2013-04-08 19:01 <cedk> muelli: and who can read it
2013-04-08 20:11 <giedrius> i am wonder if it is a bug or planned behaviour, that the credit/debit is not cumulated over all fiscal years on accounts used in balance sheet
2013-04-08 20:13 <giedrius> example: company was founded few years ago (with starting capital) and now, in the current years, i don't see the capital on the balance sheet
2013-04-08 20:27 <cedk> giedrius: yes it was changed recently
2013-04-08 20:28 <cedk> giedrius: https://bugs.tryton.org/issue1893
2013-04-08 20:32 <giedrius> cedk: sorry, i described it wrongly. I mean, I have zero balance on capital on account.account.type, even it was credited few fiscal years ago
2013-04-08 20:33 <giedrius> cedk: I tried to step into Type.get_amount method, and i see that the wrong amounts are passed to type_sum[]
2013-04-08 20:36 <giedrius> cedk: now I noticed, that all my previous fiscal years are still open, so maybe it has some effect on how account.credit(debit) are calculated
2013-04-08 20:37 <giedrius> i mean account.credit and account.debit (properties)
2013-04-08 20:51 <giedrius> cedk: i think with Transaction().set_context(cumulate=True) is missing on Type.get_acount where the accounts are searched
2013-04-08 20:53 <giedrius> i'll write an issue/patch for this
2013-04-08 21:06 <rpit> cedk: Seems I not able to send a comment to rietveld issue 767002 anymore. I get always the InvalidSenderError.
2013-04-08 21:07 <rpit> No matter using update.py or the browser interface
2013-04-08 21:08 <giedrius> rpit: fyi, I just did this a minute ago without any problem
2013-04-08 21:10 <rpit> giedrius: I had the problems some hours ago, but the data has been send finally. Now I don't know what to try anymore!
2013-04-08 21:43 <plantian> hey guys, when I click Report on a sale there are two entries in the drop down "Sale" and "Sale", is this duplication happening because I customized the sale report?
2013-04-08 21:45 <plantian> I try to do this but it no longer seems to work in 2.6 or somehow the prior keyword is not disabled? -- https://gist.github.com/ianjosephwilson/5339867

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