IRC logs of #tryton for Wednesday, 2008-07-16 #tryton log beginning Wed Jul 16 00:00:02 CEST 2008
2008-07-16 00:26 -!- bechamel( has joined #tryton
2008-07-16 05:19 -!- yangoon1( has joined #tryton
2008-07-16 07:59 -!- markusleist( has joined #tryton
2008-07-16 08:12 -!- Gedd(n=ged@ has joined #tryton
2008-07-16 09:42 -!- FWiesing(n=FWiesing@ has left #tryton
2008-07-16 09:42 -!- cedk(n=ced@gentoo/developer/cedk) has joined #tryton
2008-07-16 10:07 -!- FWiesing(n=FWiesing@ has joined #tryton
2008-07-16 10:34 -!- bechamel( has joined #tryton
2008-07-16 10:35 -!- markusleist(n=markus@ has joined #tryton
2008-07-16 10:48 <udono> hello
2008-07-16 10:49 <cedk> hi
2008-07-16 10:50 <udono> cedk: I like to create a patch for the login dialog, but I cant get it complete. Its a patch upon my last submitted one in roundup... Is it enough for you?
2008-07-16 10:52 <cedk> udono: what is the problem
2008-07-16 10:53 <udono> cedk: I examiated the new patch, but there is missing the removement of the glade things Ive already done before my first commit.
2008-07-16 10:53 <udono> cedk: I thing its a lag in understanding hg?!
2008-07-16 10:54 <cedk> udono: you must create a bundle
2008-07-16 10:54 <udono> cedk: ok, I take a look
2008-07-16 11:06 <cedk> guys don't forget to update your mercurial:
2008-07-16 11:09 <udono> cedk: ok, I got it done with bundle, but now i have some changes I didnt done myself... but Ive done a pull and update before... strange
2008-07-16 11:10 <cedk> udono: I don't think it will be a problems
2008-07-16 11:10 <udono> cedk: ok
2008-07-16 11:11 <cedk> udono: you run wich command ?
2008-07-16 11:12 <udono> hg bundle glade2gtk-0.2.patch
2008-07-16 11:12 <udono> cedk:
2008-07-16 11:13 <cedk> udono: it must be ok, but it is more common to use the .hg extension
2008-07-16 11:13 <udono> ok, I do
2008-07-16 11:13 <udono> cedk:
2008-07-16 11:18 -!- nicoe(n=nicoe@ has joined #tryton
2008-07-16 11:18 <nicoe> Jour'
2008-07-16 11:26 <udono> nicoe: hello
2008-07-16 11:35 <cedk> bechamel: to use relatorio, we need to work with unicode string instead of str
2008-07-16 11:35 <cedk> bechamel: what do you think about that ?
2008-07-16 11:35 <bechamel> cedk: it's a big modification ?
2008-07-16 11:37 <cedk> bechamel: not really but it can generate many little errors with the client
2008-07-16 11:37 <cedk> bechamel: as we must be sure that the client will send unicode string
2008-07-16 11:38 <nicoe> cedk: you could also include an 'Encoding' header and decode all the strings with this encoding.
2008-07-16 11:39 <bechamel> cedk: and what's happen when you use non-unicode with relatorio ? an exception ?
2008-07-16 11:39 <cedk> nicoe: where ?
2008-07-16 11:40 <cedk> bechamel: yes when the parser of genshi replace the value of the browse record and put it in the xml, there is a convertion error for non-ascii value
2008-07-16 11:41 <nicoe> cedk: I'll take a look at your source ...
2008-07-16 11:42 <cedk> nicoe: we have hand on both client/server so we just have to fix the encoding for both, and it is done
2008-07-16 11:43 <nicoe> cedk: You have to carefully choose the encoding used by both the client and the server because a chines might use 'kio-whatever' and you will use 'utf-8' the server must know this if you pass str string in the pipe
2008-07-16 11:45 <nicoe> cedk: with the socket connection there does not seems to be a problem since you are using a pickle
2008-07-16 11:45 <nicoe> cedk: But to convert in unicode you have to know the encoding of the 'str' objects
2008-07-16 11:46 <cedk> nicoe: yes, of course use unicode everywhere will simplify as we will no more need to convert string
2008-07-16 11:47 <nicoe> cedk: Indeed
2008-07-16 11:49 <cedk> bechamel: make psycopg2 return unicode instead of str, it is just one line of code
2008-07-16 11:49 <nicoe> cedk: you will patch psycopg ?
2008-07-16 11:49 <cedk> bechamel: but we must check everywhere we use str() to convert things
2008-07-16 11:50 <cedk> nicoe: no, it is just a register to call
2008-07-16 11:50 <cedk> nicoe: psycopg2.extensions.register_type(psycopg2.extensions.UNICODE)
2008-07-16 11:50 <bechamel> cedk: yes, and also isinstance(x,str)
2008-07-16 11:52 <nicoe> cedk: OK.
2008-07-16 11:52 <bechamel> cedk: ack-grep --py "str\b"|wc returns 191 lines :)
2008-07-16 11:53 <nicoe> kinder:../trytond|hg:default|trytond % rgrep "\bstr(" . | wc -l #7034
2008-07-16 11:53 <nicoe> 98
2008-07-16 11:53 <nicoe> bechamel: but ack returns more row than necessary
2008-07-16 11:53 <nicoe> bechamel: I use it also ;)
2008-07-16 11:54 <bechamel> nicoe: not when you pipe the result
2008-07-16 11:55 <bechamel> nicoe: but my regexp return more lines
2008-07-16 11:55 <nicoe> bechamel: because there is also things like "writestr("
2008-07-16 11:56 <bechamel> nicoe: yes
2008-07-16 11:57 -!- nicoe(n=nicoe@ has left #tryton
2008-07-16 11:57 -!- nicoe(n=nicoe@ has joined #tryton
2008-07-16 11:57 -!- nicoe(n=nicoe@ has joined #tryton
2008-07-16 11:59 <cedk> bechamel: so are we going to unicode ?
2008-07-16 12:03 <bechamel> cedk: is this modification gonna improve other parts ? i mean if genshi choose to use unicode it's because they saw an advantage to do it.
2008-07-16 12:04 <cedk> bechamel: it will become the standard in python 3000
2008-07-16 12:04 <cedk> bechamel: it doesn't need to know the str encoding
2008-07-16 12:05 <cedk> bechamel: because if you write xml, you must know the encoding so using unicode you know the encoding
2008-07-16 12:05 <bechamel> cedk: ok, so let's go for it
2008-07-16 12:05 <cedk> bechamel: and in fact, psycopg2 need to have unicode for the queries
2008-07-16 12:12 <udono> How can I change the Border of Buttons in py-gtk. If you use Keyboard for navigation, there are only Entry boxes shown as "active", but when I use tabulator key to move to open or close button, I loose visual response where the keyboard focus is. Any help?
2008-07-16 12:12 <udono> sorry it doesnt depend to the Border of Buttons... but the rest of my question remains...
2008-07-16 12:14 <cedk> udono: what do you mean by Keyboard for navigation ?
2008-07-16 12:14 <udono> using Tabulator Key
2008-07-16 12:15 <udono> cedk:
2008-07-16 12:15 <cedk> udono: so I don't understand you question as you say that with keyboard navigation there is only the entry that is focused but with tab you can focus on button also ?
2008-07-16 12:16 <udono> cedk: Yes, i can focus on button, but Its not shown by the-little-blue-border where I can see which widget has focus
2008-07-16 12:18 <cedk> udono: how do you construct the button ?
2008-07-16 12:21 <udono> cedk:
2008-07-16 12:23 <udono> cedk: Just open loginwindow, press tab, than you are on the "close Button" but its not 'highlighted'...
2008-07-16 12:25 <cedk> udono: remove all the set_flags and set_focus_on_click
2008-07-16 12:25 <cedk> udono: it is default value
2008-07-16 12:25 <udono> ok
2008-07-16 12:26 <cedk> udono: and I think if you want to use it you must call it once with set_flags(gtk.CAN_FOCUS|gtk.CAN_DEFAULT|gtk.HAS_DEFAULT)
2008-07-16 12:27 <udono> cedk: Its the same, I pasted...
2008-07-16 12:28 <cedk> udono: we use everywhere just the default value for button and you can have focus on it
2008-07-16 12:29 <udono> cedk: did you try it in the login Dialog?
2008-07-16 12:29 <cedk> bechamel: one more things, it is that gtk use unicode everywhere but when you retreive data from entry by example you get a str
2008-07-16 12:30 <udono> cedk: Just open loginwindow, press tab, than you are on the "close Button" but its not 'highlighted'...
2008-07-16 12:30 -!- FWiesing(n=FWiesing@ has left #tryton
2008-07-16 12:30 <cedk> udono: yes but for me focus on button, it is just a little rectangle dotted
2008-07-16 12:35 <udono> cedk: strange in an old Version I have the same dotted rectangle... but with pygtk I cant get it...
2008-07-16 12:39 <udono> cedk: do you have a blue border right and left of an entry box, when it is focused?
2008-07-16 12:43 <cedk> udono: no
2008-07-16 12:43 <udono> cedk: ... iam getting closer. Its just happening in all pygtk widgets. The glade widgets are ok. If you provocate an error, than you can see this misbehavior. (Use strg-Tab to come out of the Textfield)
2008-07-16 12:44 <cedk> udono: I don't understand what about you are talking
2008-07-16 12:44 <udono> cedk: :-)
2008-07-16 12:44 <cedk> udono: is the button or the netry widget ?
2008-07-16 12:45 <cedk> udono: I think your blue border come from your theme
2008-07-16 12:45 <udono> cedk: both are shown different in pygtk and glade
2008-07-16 12:45 <cedk> udono: send screenshot of what you want and what it is displayed
2008-07-16 12:48 <udono> cedk: ok, I think you are right with the theme, since I use KDE, there could be some problems for gtk... I will check
2008-07-16 12:49 <cedk> udono: but having different display between gtk and glade, is not really a problems.
2008-07-16 12:50 <cedk> udono: what we need is pygtk with good behavior
2008-07-16 12:50 <udono> cedk: you are right, I get it the dumb KDE people just use silly themes for gtk which doesnt display right...
2008-07-16 12:51 <udono> cedk: I thought first I have to eneable something to get this focus highlight, but its working out of the box.
2008-07-16 12:53 <cedk> udono: perhaps kde people have patches glade but not pygtk
2008-07-16 12:54 <udono> cedk: no, they just have two themes for gtk inside qt: qt and raleigh. Raleigh is working, qt is not working properly
2008-07-16 12:55 <udono> cedk: it doesnt depend on my thought of glade and pygtk. If I change the theme, everything works like expected
2008-07-16 13:09 <cedk> udono: ok so no problems
2008-07-16 13:10 <udono> cedk: no problem :-) sorry for disturbing... and thanks for testing.
2008-07-16 13:18 <cedk> nicoe: how do you think about translation of reports with relatorio ?
2008-07-16 13:21 <cedk> nicoe: I think we can add an _handle_text in odt template and pass dict for translation ?
2008-07-16 13:29 <cedk> nicoe: ok I find that I can use a genshi Translator
2008-07-16 13:29 <cedk> nicoe: but I need to be able to add it to the odt template
2008-07-16 13:30 <cedk> nicoe: but the problem is that is instantiate on the call of Report so I don't have access to it
2008-07-16 13:31 <cedk> nicoe: we can load it on the init or add a params to be able to insert filter in the odt template
2008-07-16 13:32 <cedk> nicoe: otherwise I succeed to convert the purchase report
2008-07-16 13:50 <nicoe> ACTION is back from lunch
2008-07-16 13:50 <nicoe> cedk: good news for the translation
2008-07-16 13:51 <nicoe> cedk: I'd like to keep the same signature as the genshi template
2008-07-16 13:51 <nicoe> cedk: I'll take a look at it
2008-07-16 13:56 <CIA-53> tryton: Bertrand Chenal <> default * 135:a7e19b5e689f account/ Fix: missing AND in sql clause
2008-07-16 14:06 <CIA-53> tryton: udono roundup * #176/Moving glade to pygtk: Final: Moving login dialog from glade to pygtk Including cedks comments. Code Cleanup. accesskeys for c_onnect and c_hange
2008-07-16 14:07 <nicoe> cedk: If generate returned a stream of event instead of an already available odt file you could apply to it your translator
2008-07-16 14:08 <cedk> nicoe: I don't understand
2008-07-16 14:09 <cedk> nicoe: I need to run self.content_template.insert(0, translator) in the odt Template
2008-07-16 14:10 <cedk> nicoe: but the Template is instanciate only in __call__ of Report
2008-07-16 14:10 <cedk> nicoe: so I can not have access to it
2008-07-16 14:11 <cedk> nicoe: or I by pass the Report class
2008-07-16 14:11 <nicoe> cedk: it is one way to do it. another way would be to use the translator on the framework side and render it there.
2008-07-16 14:12 <cedk> nicoe: I find not really efficient to parse twice the xml of the report
2008-07-16 14:12 <cedk> nicoe: and genshi can make the job
2008-07-16 14:13 <cedk> nicoe: all it needs is to be able to add filters to the template
2008-07-16 14:13 <nicoe> cedk: You do not have to parse it twice if you're using stream
2008-07-16 14:13 <cedk> nicoe: I think it can be usefull for other things
2008-07-16 14:14 <cedk> nicoe: what do you mean by stream, the lxml tree ?
2008-07-16 14:15 <nicoe> cedk: I'm abusing the *generate()* method from genshi to produce the odt file.
2008-07-16 15:34 -!- kultviech( has joined #tryton
2008-07-16 15:48 <CIA-53> tryton: uspallek@bart.dsl default * 517:187d3f527142 tryton/ (share/tryton/ tryton/gui/
2008-07-16 15:48 <CIA-53> tryton: Moving win_login and win_server to pygtk.
2008-07-16 15:48 <CIA-53> tryton: Cleanup code.
2008-07-16 15:48 <CIA-53> tryton: Adding accesskey to C_hange and C_onnect.
2008-07-16 15:48 <CIA-53> tryton: C?dric Krier <> default * 518:2277bdcd399f tryton/tryton/gui/
2008-07-16 15:48 <CIA-53> tryton: Remove unused set_transient_for
2008-07-16 15:48 <CIA-53> tryton: Remove default value for parent in DBLogin
2008-07-16 15:48 <CIA-53> tryton: Add icon on connect button
2008-07-16 15:48 <CIA-53> tryton: Improve table Expand
2008-07-16 15:49 <cedk> udono: I applied your patch
2008-07-16 15:49 <udono> cedk: Thanks
2008-07-16 15:49 <cedk> udono: I make some improvement
2008-07-16 15:49 <cedk> udono: now we can split the
2008-07-16 15:49 <udono> cedk: ok in which parts?
2008-07-16 15:50 <cedk> udono: I propose to do it
2008-07-16 15:50 <cedk> udono: I will create a, etc ..
2008-07-16 15:51 <udono> cedk: ah, yes, I understand. Great decision
2008-07-16 15:51 <udono> cedk: next week I will go further with glade2pygtk
2008-07-16 15:51 <udono> cedk: which module next?
2008-07-16 15:51 <udono> module=dialog
2008-07-16 15:53 <cedk> udono: don't know yet
2008-07-16 15:54 <udono> cedk: database?
2008-07-16 16:02 -!- FWiesing(n=FWiesing@ has joined #tryton
2008-07-16 16:04 <cedk> udono: yes I think it is the same kind
2008-07-16 16:06 <udono> cedk: I think so, too. I take first some smaller ones, then the main window. If there are some minor Dialogs missing fr the release, there is no problem for me if they cant be translated...
2008-07-16 16:29 <CIA-53> tryton: C?dric Krier <> default * 519:bb0df46d7632 tryton/tryton/ (6 files in 3 dirs): Factorize main and add some new window
2008-07-16 16:29 <cedk> udono: this is the begining
2008-07-16 16:30 <cedk> udono: I think we can also create DBDrop, DBBackup, etc ...
2008-07-16 16:30 <cedk> udono: that are enterely in the Main object
2008-07-16 16:30 <cedk> udono: but it can be done when converting it to pygtk
2008-07-16 16:31 <cedk> udono: so I think with that you can work on DB dialog stuff
2008-07-16 16:32 <CIA-53> tryton: ced roundup * #176/Moving glade to pygtk: Applied
2008-07-16 17:01 <udono> cedk: yes, this looks good
2008-07-16 17:01 <udono> cedk: any news about the sales module?
2008-07-16 17:55 <cedk> bechamel: I just finish my test to integrate relatorio in tryton without loose functionality
2008-07-16 17:55 <cedk> bechamel: it mess just two things that nicoe will fix
2008-07-16 17:55 <cedk> bechamel: after that we can go for it
2008-07-16 17:55 <udono> nicoe: is it possible to 'parse' ods files with relatorio
2008-07-16 17:55 <udono> ?
2008-07-16 17:56 <bechamel> cedk: ok
2008-07-16 17:57 <cedk> for those who want to see how looks report with relatorio:
2008-07-16 17:57 <cedk> this is the purchase
2008-07-16 17:58 <cedk> one things that I was able to add, it is to use a different style for title purchase line
2008-07-16 17:59 <cedk> it is a little bit more verbose than the previous
2008-07-16 18:08 <CIA-53> tryton: C?dric Krier <> default * 61:b2c0058fec7a product/ Add translate on name and symbol of uom
2008-07-16 18:09 -!- nicoe(n=nicoe@ has left #tryton
2008-07-16 18:14 <udono> Gedd: you are from openhex?
2008-07-16 18:14 <Gedd> yes, why?
2008-07-16 18:15 <cedk> Gedd: I tell to udono about the relatorio stuff etc ...
2008-07-16 18:15 <Gedd> ah ok...
2008-07-16 18:15 <udono> Gedd: Just a question, is it possible to use relatio for ods and the other document types of open office?
2008-07-16 18:16 <cedk> udono: did you have already some spec about the file format ?
2008-07-16 18:17 <Gedd> This is nicoe ... I got disconnected and did not take the time to check what was wrong with madwifi
2008-07-16 18:17 <Gedd> Anyway
2008-07-16 18:18 <Gedd> relatorio is manipulating the xml tree from the files to add genshi directives (
2008-07-16 18:18 <udono> Gedd: ok, than it should be no problem
2008-07-16 18:18 <Gedd> So in fact yes you could use relatorio to create simple ods file
2008-07-16 18:19 <Gedd> But there is probably some subtilities in ods file that are not yet taken into account
2008-07-16 18:20 <Gedd> It is on my schedule to test it and fix the bugs I'll found ...
2008-07-16 18:20 <udono> cedk: yes, ods works a bit different, I will write it together next week. This Week Iam struggling with Plone...
2008-07-16 18:21 <udono> Gedd: Ok.
2008-07-16 18:22 <cedk> udono: ok, you can use the wiki or send to the google groups
2008-07-16 18:22 <udono> cedk: Ai Ai, Sir
2008-07-16 18:24 <cedk> Gedd: I don't know if you have subscribe to the google groups
2008-07-16 18:25 <Gedd> ACTION is back as himself
2008-07-16 18:27 <cedk> Gedd: can you ask to nicoe if he receive my last comment in private chat ?
2008-07-16 18:37 <CIA-53> tryton: Bertrand Chenal <> default * 136:635a69de42f8 account/ Added kind field when accounts are created from templates.
2008-07-16 18:39 <Gedd> cedk: quel commentaire?
2008-07-16 19:15 <CIA-53> tryton: C?dric Krier <> default * 24:98276f895080 gentoo-overlay/dev-python/Babel/ (Babel-0.9.2.ebuild Manifest): In portage now
2008-07-16 20:24 -!- irclog( has joined #tryton
2008-07-16 20:35 -!- bechamel( has joined #tryton
2008-07-16 20:37 <cedk> udono: do you see
2008-07-16 21:00 <bechamel> cedk, udono : on a legal point of view, is historical data mandatory ? or the solution of storing the pdf sufficient ?
2008-07-16 21:00 <udono> bechamel: mandatory
2008-07-16 21:01 <udono> bechamel: storing the pdf is mandatory, too
2008-07-16 21:02 <udono> bechamel: in Germany, Austria, Swiss, Netherlands, USA I know its mandatory
2008-07-16 21:02 <bechamel> udono: maybe it's mandatory for "financial forensic" stuff
2008-07-16 21:03 <udono> bechamel: of course. In germany they plug into your accounting system and check it via software...
2008-07-16 21:04 <udono> bechamel: we (the germans of us) need to implement an interface for this...
2008-07-16 21:04 <udono> ... into tryton
2008-07-16 21:07 <bechamel> udono: you talk about a user interface or a comunication interface (for another software) ?
2008-07-16 21:08 <udono> just a communication interface. They want a special XML export, burned on serveral CDs...
2008-07-16 21:08 <udono> bechamel:
2008-07-16 21:08 <bechamel> udono: several cd ... :p
2008-07-16 21:09 <udono> bechamel: yes, if you have some more data... the government somtimes like to have the last fife years data...
2008-07-16 21:11 <bechamel> to talk about something completely different, postgres-r has been open-sourced, it's a db replication extension:
2008-07-16 21:40 -!- nicoe( has joined #tryton
2008-07-16 22:24 <CIA-53> tryton: udono roundup * #177/IRC Log: possible to set anchors for each Date:time, for better Referencing IRC discussions: [new] is it possible to set anchors for each Date:time in Tryton IRC log, for better referencing IRC discussions?
2008-07-16 22:49 <FWiesing> udono: in Austria it is law to have the last seven years!
2008-07-16 22:49 <udono> FWiesing: in Germany its ten years
2008-07-16 22:50 <FWiesing> wow!
2008-07-16 23:34 <CIA-53> tryton: ced roundup * #177/IRC Log: possible to set anchors for each Date:time, for better Referencing IRC discussions: [resolved] Done
2008-07-16 23:35 <cedk> udono: is it possible to have the template of the xml that is needed for german law?
2008-07-16 23:42 <nicoe> cedk: The filters are working now (and they have been working for hours it was my example that was not good even on 'normal' streams)
2008-07-16 23:42 <nicoe> cedk: I will now work on the style thing
2008-07-16 23:43 <cedk> nicoe: ok I check
2008-07-16 23:43 <nicoe> cedk: It's not commited yet
2008-07-16 23:44 <cedk> nicoe: for styles.xml, I think that you just need to do the same as for content.xml
2008-07-16 23:44 <cedk> nicoe: ok I wait :-(
2008-07-16 23:44 <nicoe> cedk: Got to clean my mess first, add some tests and it will be ready
2008-07-16 23:45 <nicoe> cedk: for the styles.xml. Well, it is a bit more complicated since you want to also use filters on them
2008-07-16 23:46 <nicoe> cedk: Well, even if you don't I want it :)
2008-07-16 23:47 <nicoe> cedk: So I have to mark the start of the style Stream and the start of the content Stream before I apply the filters ...
2008-07-16 23:47 <cedk> nicoe: yes it will be a good things but for tryton it is not yet mandatory
2008-07-16 23:47 <cedk> nicoe: you will parse the both in one way?
2008-07-16 23:48 <cedk> nicoe: for me it can be done separatly
2008-07-16 23:48 <udono> cedk: yes:
2008-07-16 23:48 <nicoe> cedk: I was doing to do it that way yes
2008-07-16 23:48 <udono> cedk: but its in german language...
2008-07-16 23:49 <nicoe> s/doing/going
2008-07-16 23:53 <cedk> udono: ok, it is an xml file that describe a csv file
2008-07-16 23:53 <udono> yes
2008-07-16 23:55 <cedk> udono: it doesn't describe what field is mandatory for invoice
2008-07-16 23:56 <cedk> udono: by the way, is the irclog looks better?
2008-07-16 23:57 <udono> yes, its looking good, thank you. But you inserted id="datetime" for linking we need <a name="date_time"></a>
2008-07-16 23:57 <udono> cedk:
2008-07-16 23:59 <udono> cedk: then we can link to <a href=" 10:24">linktext</a>

Generated by 2.17.3 by Marius Gedminas - find it at!