chat.freenode.net #tryton log beginning Tue Nov 22 00:00:02 CET 2011 | ||
2011-11-22 09:38 <sisalp> hello, this wget http://downloads.tryton.org/2.2/tryton-setup-last.exe answers 404 | ||
2011-11-22 09:39 <sisalp> are there redirections downthere ? | ||
2011-11-22 09:41 <cedk> sisalp: it works for me | ||
2011-11-22 09:42 <cedk> sisalp: but it is managed with a redirection | ||
2011-11-22 09:43 <cedk> sisalp: I see you are using wget, so normally it should support it | ||
2011-11-22 09:43 <corro> sisalp: via wget I get a 404 too, via browser it works properly | ||
2011-11-22 09:44 <cedk> with the OpenBSD ftp it works | ||
2011-11-22 09:48 <cedk> sisalp: ok I know what happens, redirect is disable for Wget | ||
2011-11-22 09:49 <cedk> sisalp: because we use it for backup | ||
2011-11-22 09:49 <sisalp> I can live without it ;-) | ||
2011-11-22 09:51 <cedk> sisalp: fixed | ||
2011-11-22 10:00 <sisalp> thank you | ||
2011-11-22 10:40 <nicoe> on the 28th genshi should be release with py3 support ... I'll port relatorio to py3k and then I think we won't have very much problem to port tryton to py3k | ||
2011-11-22 11:28 <zxq9> Most of the Relatorio iterations I see are like <for each="thing in objects">. Can I reference a specific record like an array element, something like <with thing="object[i]"> or something similar? | ||
2011-11-22 11:29 <zxq9> My problem is input for government forms where there are set numbers of spaces per page and a simple <for each="thing in objects"> doesn't quite work there. | ||
2011-11-22 11:34 <nicoe> zxq9: I don't understand your issue | ||
2011-11-22 11:35 <nicoe> But you can access object[i] to display its content if that's what you want | ||
2011-11-22 11:48 <grasbauer> Sphinx: I have to do other stuff right now - but if you want have a first look http://grasbauer.com/test/index.html | ||
2011-11-22 11:52 <grasbauer> thsi is something that can be discussed ... and need to be improved. I have added a Directive for iframes and we need one to include vimeo videos as well - but it is easy ... | ||
2011-11-22 11:52 <bechamel> grasbauer: where did you need iframes ? | ||
2011-11-22 11:53 <bechamel> for the news it seems | ||
2011-11-22 11:53 <zxq9> nicoe: Oh? I must have just done something silly when I tried that. I'll play with it to make it work. Thanks. | ||
2011-11-22 11:54 <bechamel> grasbauer: by the way there is sphinx plugin that allows to generates feed, I think we will use it instead of blogger | ||
2011-11-22 11:55 <zxq9> nicoe: Is there a max(objects) or similar thing to discover how big the array is or set a limit (like "while (limit <= max(objects)) { stuff; }" ?) | ||
2011-11-22 11:55 <nicoe> zxq9: like len(...) ? | ||
2011-11-22 11:55 <zxq9> nicoe: Yes, something like that. | ||
2011-11-22 11:56 <grasbauer> bechamel: at the startpage I included the last topics of the mailinglists - only to show the accivity of the community | ||
2011-11-22 11:56 <nicoe> well it's len then :D | ||
2011-11-22 11:56 <nicoe> "for i in range(len(...))" | ||
2011-11-22 11:56 <zxq9> nicoe: Ah. Hehehe. Thanks again. I think I can create my loop deloops now. | ||
2011-11-22 11:57 <nicoe> take a look at the genshi documentation, they might help you http://genshi.edgewall.org I think | ||
2011-11-22 11:57 <zxq9> I've been reading it, just couldn't find anything on detailed conditionals for loops like this case or direct element access. | ||
2011-11-22 11:58 <zxq9> The templates page is really helpful though. | ||
2011-11-22 11:58 <bechamel> grasbauer: ok, good idea | ||
2011-11-22 11:58 <nicoe> grasbauer: I kind of like your template ... | ||
2011-11-22 11:58 <nicoe> zxq9: templates ? | ||
2011-11-22 11:58 <bechamel> grasbauer: I have found this https://bitbucket.org/birkenfeld/sphinx-contrib/, which list the "feed" extension | ||
2011-11-22 11:59 <zxq9> nicoe: http://genshi.edgewall.org/wiki/Documentation/0.5.x/xml-templates.html | ||
2011-11-22 12:02 <grasbauer> bechamel: the feed extension generates a feed - for reading I think the oldschool iframe is necessary (ore better with ajax and DOM?) | ||
2011-11-22 12:03 <bechamel> grasbauer: I was talking about managing the news in sphinx. for the groups, we should look if there is an api to do it easily | ||
2011-11-22 12:04 <grasbauer> bechamel: the API is a atom feed ;) | ||
2011-11-22 12:05 <bechamel> grasbauer: nothing else ? | ||
2011-11-22 12:05 <grasbauer> nicoe: the template is mostly from Leonardo G. D. | ||
2011-11-22 12:06 <bechamel> grasbauer: anyway, it's not difficult to parse with javascript | ||
2011-11-22 12:06 <grasbauer> bechamel: and better than iframe ... | ||
2011-11-22 12:08 <bechamel> grasbauer: maybe we will have a problem because of the "same origin policy" | ||
2011-11-22 12:09 <udono> grasbauer: looks very good! | ||
2011-11-22 12:09 <grasbauer> bechamel: found a lot of jquery plugins for parsing feeds - seems simple to find a good one | ||
2011-11-22 12:10 <grasbauer> bechamel: so I can write a new directive for parsing feeds | ||
2011-11-22 12:10 <grasbauer> udono: the fame gos to Leonardo G. D. | ||
2011-11-22 12:12 <udono> ACTION did not know that Leonardo da Vinci had a second name ;-) | ||
2011-11-22 12:13 <grasbauer> bechamel: google again ;( http://code.google.com/intl/de-DE/apis/feed/ - but it looks easy | ||
2011-11-22 12:17 <grasbauer> b.t.w.: some days ago I needed a fast solution to provide a mailinglist. after be bugged by the millions of settings in mailman i tried http://mlmmj.org/ - its really easy to install - works like a charm and has a simple API | ||
2011-11-22 12:17 <grasbauer> gentoo is managing all the list with mlmmj | ||
2011-11-22 12:23 <ivanb> hi! | ||
2011-11-22 12:24 <ivanb> does anybody knows where templates for invoices are? | ||
2011-11-22 12:24 <corro> trytond/modules/account_invoice/invoice.odt | ||
2011-11-22 12:25 <ivanb> ok, let me see | ||
2011-11-22 12:30 <ivanb> can i have different invoice templates for differet customers? | ||
2011-11-22 12:36 <grasbauer> ivanb: depends of what you wanna change - i have done a monster template which have a lots of <if test='customer.foo==bar'> to create different ouput depending of customer.foo ... | ||
2011-11-22 12:38 <ivanb> i want for customers from our country have one template,and from other countries another | ||
2011-11-22 12:40 <grasbauer> ivanb: so you can check the country of the customer and insert tests in the template | ||
2011-11-22 12:51 <ivanb> but i cant have invoice_en.odt and invoice_sl.odt....can i "include" in master odt? | ||
2011-11-22 12:51 <zxq9> grasbauer: Let's say there are 20 countries to handle, is there a place to make the test before the document template is selected to avoid having monolithic template that is really huge? | ||
2011-11-22 12:52 <cedk> ivanb: but why do you want such behavior? | ||
2011-11-22 12:53 <ivanb> because when i send invoice to customer in our country, i would like slovenian texts (Tax becomes DDV,invoice become racun,etc) | ||
2011-11-22 12:53 <zxq9> cedk: I don't know about ivanb, but for me this is particularly annoying in my case with 5 countries, each which use a diffrent alphabet which makes the templates really, really long. | ||
2011-11-22 12:53 <ivanb> but when i send invoice to italian,croatian or hungarian, i would use engish texts | ||
2011-11-22 12:54 <cedk> ivanb: this is just translation so it works out-of-the-box | ||
2011-11-22 12:55 <ivanb> for example, Supplier Invoice N°: seems fixed in template | ||
2011-11-22 12:55 <zxq9> cedk: Move the label strings out of the template and into the database as translatable fields? | ||
2011-11-22 12:55 <ivanb> interesting | ||
2011-11-22 12:56 <cedk> zxq9: not it is done by the translation process | ||
2011-11-22 12:56 <ivanb> and what is syntax for translatable fields in template | ||
2011-11-22 12:56 <cedk> ivanb: they are all | ||
2011-11-22 12:56 <grasbauer> ivanb: every text is by default translatable | ||
2011-11-22 12:57 <zxq9> cedk: What translation process? Plain text in a template is just plain text in a template. There is no magical way to make "invoice" say "請求書" in the API. | ||
2011-11-22 12:57 <ivanb> i tempalate i see | ||
2011-11-22 12:57 <ivanb> invoice.invoice_date | ||
2011-11-22 12:57 <ivanb> i guess invoice is object and invoice_date is a property | ||
2011-11-22 12:57 <zxq9> Unless I make a test, then select which string to print in the report. | ||
2011-11-22 12:57 <cedk> https://code.google.com/p/tryton/wiki/HowtoTranslate | ||
2011-11-22 12:58 <zxq9> cedk: That doesn't change plain strings in an .odt report template. | ||
2011-11-22 12:59 <ivanb> can you explain how to make "Supplier Invoice N°" translatable? | ||
2011-11-22 13:01 <grasbauer> cedk: seems that the beautiful feature of translated reports isn't well known ;) | ||
2011-11-22 13:07 <ivanb> does somebody know,can you explain how to make "Supplier Invoice N°" translatable? | ||
2011-11-22 13:07 <zxq9> grasbauer: Haha. This is the first time I don't get a crash when I "Set Report Translations". | ||
2011-11-22 13:07 <zxq9> grasbauer: So I didn't know how this worked until now. | ||
2011-11-22 13:08 <zxq9> ivanb: Go to Administration > Localization > Translations and use "Set Report Translations" | ||
2011-11-22 13:08 <ivanb> ok, will try that! thanks a lot | ||
2011-11-22 13:08 <zxq9> ivanb: Then check Localization > Translations. | ||
2011-11-22 13:09 <zxq9> ivanb: And filter for "Type: ODT" or whatever doc type you're using. | ||
2011-11-22 13:09 <grasbauer> ivanb: >> set report translations - but I think this already translated. Do you have set the language of the customer to the one you expect? | ||
2011-11-22 13:09 <ivanb> not yet | ||
2011-11-22 13:09 <zxq9> ivanb: And if you have very large report forms, like for government things (like we do here) you will have a million fields, all labeled the same thing, so good luck. | ||
2011-11-22 13:10 <ivanb> thaks guys, i will try...bye | ||
2011-11-22 13:11 <oxcar> How can I two different versions of Tryton client in my linux without problems? | ||
2011-11-22 13:12 <zxq9> oxcar: Just download the versions you want to play with, don't install them and just run them from the command line. | ||
2011-11-22 13:13 <oxcar> @ zxq9: Ah ok, Thanks... | ||
2011-11-22 13:13 <zxq9> oxcar: You'll have to just run "trytond-{ver}/trytond/bin/trytond &" and then run tryton-{ver}/tryton/bin/tryton &", replacing $ver with whatever you are trying out. | ||
2011-11-22 13:14 <zxq9> oxcar: Note that existing databases can get weird if you do this -- so its easier to create a fresh database for whatever version + modules you want to play with. | ||
2011-11-22 13:22 <oxcar> @ zxq9: Yes, now I understand. | ||
2011-11-22 17:35 <grasbauer> bechamel: ping | ||
2011-11-22 17:36 <bechamel> grasbauer: pong | ||
2011-11-22 17:37 <grasbauer> bechamel: Where to put the sphinx stuff - I think bitbucket ... because ist a lot of binaries and additional scripting | ||
2011-11-22 17:39 <cedk> grasbauer: it should be mainly text | ||
2011-11-22 17:40 <cedk> grasbauer: just 1 image | ||
2011-11-22 17:41 <cedk> grasbauer: by the way, is it not possible to fill the feeds with only js | ||
2011-11-22 17:41 <cedk> grasbauer: I would not like to have a server running just for that | ||
2011-11-22 17:42 <grasbauer> cedk: yes - I will take a look | ||
2011-11-22 17:42 <bechamel> grasbauer: I was simply thinking about having them online like grasbauer.com/test/_templates | ||
2011-11-22 17:42 <bechamel> it's enough atm | ||
2011-11-22 17:43 <grasbauer> bechamel: there is one extension to build the main navigation on top | ||
2011-11-22 17:43 <cedk> grasbauer: also I think you should not try to integrate the documentation | ||
2011-11-22 17:43 <cedk> grasbauer: it is a separate things | ||
2011-11-22 17:44 <cedk> grasbauer: and even, I'm thinking if we should not just keep the Python default template for it | ||
2011-11-22 17:44 <grasbauer> bechamel: that was only for having a picture about the styles | ||
2011-11-22 17:44 <bechamel> grasbauer: my only complain with the current layout is that there is no 'Home' item in the navbar, it should be explicitly there | ||
2011-11-22 17:45 <cedk> grasbauer: also how the menu is managed? | ||
2011-11-22 17:45 <grasbauer> bechamel: simple - but the way I build the topnavigation is really strange ;) | ||
2011-11-22 17:45 <cedk> grasbauer: I think it will be good to have it based on the tree structure of the files | ||
2011-11-22 17:45 <grasbauer> cedk, bechamel: one moment. i do a cleaning and then a upload | ||
2011-11-22 17:47 <bechamel> grasbauer: ok | ||
2011-11-22 18:12 <grasbauer> cedk, bechamel: see my messy stuff here: https://bitbucket.org/grasbauer/tryton-sphinx/src - today I had not time to work on it - and there is a lot of stuff only for learning sphinx .... | ||
2011-11-22 18:21 <grasbauer> cedk, bechamel: the extension for building the mainnavigation exist just for one reason: to highlight the link if it is selected | ||
2011-11-22 18:26 <cedk> grasbauer: by the way, is it safe to use iframe? | ||
2011-11-22 18:26 <cedk> grasbauer: will it not better to just depend on sphinxext instead of copying it | ||
2011-11-22 18:27 <grasbauer> cedk: don't understand | ||
2011-11-22 18:28 <grasbauer> cedk: how depend? the stuff inside is handcrafted by me | ||
2011-11-22 18:29 <cedk> grasbauer: ha ok, it doesn't come from the sphinx ext repo | ||
2011-11-22 18:29 <cedk> grasbauer: https://bitbucket.org/birkenfeld/sphinx-contrib/ | ||
2011-11-22 18:34 <grasbauer> cedk: Yes - that was my inspiration ... but which extensions are usefull? feed looks nice and we must write a extension to embed vimeo - but it's easy ... | ||
2011-11-22 18:37 <cedk> grasbauer: yes I thing for now feed is the only one needed | ||
2011-11-22 18:37 <cedk> grasbauer: by the way, I think we don't need the sidebarsearch | ||
2011-11-22 18:38 <grasbauer> cedk: I thought it's disbaled, isn't it? I put the search on top ... | ||
2011-11-22 18:39 <cedk> grasbauer: ok but it is in the template | ||
2011-11-22 18:40 <grasbauer> cedk: only to disbale the block | ||
2011-11-22 18:41 <grasbauer> cedk: disable | ||
2011-11-22 18:41 <cedk> grasbauer: how could we get a tree menu? | ||
2011-11-22 18:41 <cedk> grasbauer: without having all in 1 page? | ||
2011-11-22 18:41 <grasbauer> cedk: nested dict? you mean the topnavigation? | ||
2011-11-22 18:42 <grasbauer> cedk: somthing like a dropdown? | ||
2011-11-22 18:43 <cedk> grasbauer: yes | ||
2011-11-22 18:43 <cedk> grasbauer: because having just 2 level will not be enough | ||
2011-11-22 18:45 <cedk> grasbauer: is it really required to get the google font Nobile? | ||
2011-11-22 18:46 <grasbauer> cedk: NO! | ||
2011-11-22 18:46 <grasbauer> cedk: and we can have a own fontface-package in static as well | ||
2011-11-22 18:47 <pheller> cedk: submitted patch for the mac gdk-pixbuf issue to bugtracker, and reassigned to nobody | ||
2011-11-22 18:47 <yangoon> cedk: hi | ||
2011-11-22 18:47 <yangoon> release 2.2 was one month ago, I think we should have bugfix release soon | ||
2011-11-22 18:47 <pheller> cedk: ready to do the same for the mac detection fix to, once you have a chance to review | ||
2011-11-22 18:47 <yangoon> cedk any plans? | ||
2011-11-22 18:50 <cedk> pheller: ok | ||
2011-11-22 18:50 <cedk> yangoon: yes but I have some bugfix in the queue that I would like to have in the release | ||
2011-11-22 18:50 <cedk> yangoon: I think we can plan it for the week-end or next week | ||
2011-11-22 18:51 <yangoon> cedk: agreed, migration fixes should be in | ||
2011-11-22 18:51 <pheller> cedk,yangoon: I can try to finish the neso bug fixes for Mac, too….. | ||
2011-11-22 18:52 <cedk> pheller: wrong schema for the comment of the patch | ||
2011-11-22 18:52 <cedk> pheller: could you make a new one | ||
2011-11-22 18:52 <cedk> pheller: see https://code.google.com/p/tryton/wiki/HowtoContribute#Mercurial_Usage | ||
2011-11-22 18:53 <pheller> cedk: you mean you want multiple lines now? | ||
2011-11-22 18:54 <cedk> pheller: yes formatted issue and review | ||
2011-11-22 18:54 <cedk> pheller: it is like that since the begining of this year I think | ||
2011-11-22 18:55 <pheller> cedk: ok, I have not made a change since then, I don't think | ||
2011-11-22 18:57 <cedk> pheller: it will be great if we can have Mac client back for the coming release | ||
2011-11-22 18:58 <pheller> cedk: is there a simple way to edit a commit message? | ||
2011-11-22 18:59 <cedk> pheller: hg rollback | ||
2011-11-22 18:59 <cedk> pheller: hg commit | ||
2011-11-22 18:59 <pheller> cedk: yep, got it, thanks | ||
2011-11-22 19:17 <pheller> cedk: fixed commit message, attached new patch | ||
2011-11-22 19:20 <cedk> yangoon: also the corruption of local_data cache | ||
2011-11-22 19:20 <cedk> yangoon: it will be good to have it | ||
2011-11-22 19:21 <yangoon> cedk: +1, absolutely | ||
2011-11-22 20:59 <grasbauer> cedk: Your objection with the levels in the navigation - seems that this to be done with custom methods, because there is no way to do it with sphinx I guess | ||
2011-11-22 21:05 <grasbauer> I am thinking about a nested dict containing all references of subfolders to build a subnavigation in the sidebar ... | ||
2011-11-22 23:50 <pheller> cedk: you still here? so do you want me to change all instances of os.name to sys.platform.startswith, and to win32 / darwin respectively | ||
2011-11-22 23:51 <cedk> pheller: indeed after reading carefully the doc, I think the startswith is only for line | ||
2011-11-22 23:51 <cedk> s/line/linux/ | ||
2011-11-22 23:52 <cedk> pheller: so let's go like you did | ||
2011-11-22 23:52 <pheller> cedk: ok, do you want me to use sys.platform for win32, though? I can make all the changes, but someone else will need to test them | ||
2011-11-22 23:53 <cedk> pheller: no let's keep it like that | ||
2011-11-22 23:53 <pheller> cedk: ok, then I'll only make the changes needed for mac/darwin |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!