chat.freenode.net #tryton log beginning Mon Nov 14 00:00:01 CET 2011 | ||
2011-11-14 05:30 <zxq9> Anyone from OpenHex here? | ||
2011-11-14 08:12 <zxq9> Is it always necessary to derive a class from ModelWorkflow to use buttons? | ||
2011-11-14 10:56 <zxq9> Is there a default widget for fields.Time()? | ||
2011-11-14 10:57 <cedk> zxq9: no because there is no fields.Time | ||
2011-11-14 11:37 <zxq9> http://doc.tryton.org/2.2/trytond/doc/ref/models/fields.html#time ? | ||
2011-11-14 11:43 <cedk> zxq9: oh yes | ||
2011-11-14 11:43 <cedk> zxq9: so there is no widgets | ||
2011-11-14 11:43 <zxq9> trytond/model/fields/date.py:21 -- but yes, no widget | ||
2011-11-14 11:43 <zxq9> Is there a convenient one in GTK, I wonder? | ||
2011-11-14 11:44 <zxq9> Should be easy to implement, I just don't know GTK very well. | ||
2011-11-14 11:45 <zxq9> I might do it next week just to learn about GTK. (I've been doing Qt4/C++ lately, this is actually the first time I've used Python, too) | ||
2011-11-14 11:49 <cedk> zxq9: indeed it will be a good contribution, it will allow to replace the float_time widget | ||
2011-11-14 12:08 <nicoe> jmsbrry: in singapour ? I hope you have a decent flight back to australia. | ||
2011-11-14 12:09 <jmsbrry> nicoe: thanks very much | ||
2011-11-14 13:27 <Pander> Hi all, I have implemented searching in categories but it can be optimised I think, also sorting category column in party tree view is hard to enable. It would please me if someone can give my some extra pointer on http://pastebin.com/fkFDjVr7 | ||
2011-11-14 14:24 <cedk> FYI, there is an PG extension for storing (key, value) | ||
2011-11-14 14:24 <cedk> http://www.postgresql.org/docs/8.4/static/hstore.html | ||
2011-11-14 14:25 <cedk> I think it can replace the MongoDB modules of Openlabs | ||
2011-11-14 15:24 <zxq9> I saw a discussion about this earlier and I can't find it now. How do I insert a picture from the database into an ODT? | ||
2011-11-14 15:24 <zxq9> Through a report, of course. | ||
2011-11-14 15:32 -!- ciupicri(~ciupicri@unaffiliated/ciupicri) has joined #tryton | ||
2011-11-14 15:34 <udono> zxq9: hi, look at the relatorio documentation and demofiles. | ||
2011-11-14 15:38 <zxq9> I am. Just haven't found anything about pictures yet. I suppose its there, somewhere. | ||
2011-11-14 15:40 <zxq9> Ah, frame. | ||
2011-11-14 15:46 <zxq9> How do I make a binary field in Tryton which contains image data an "expression when evaluated returns a couple whose first element is a file object and second element is its mimetype"? | ||
2011-11-14 16:07 <udono> zxq9: I have done this in the past, but I don't remember how. | ||
2011-11-14 16:10 <nicoe> zxq9: you don't create a field for this | ||
2011-11-14 16:10 <nicoe> either you use always the same mimetype and then use this mimetype in the expression | ||
2011-11-14 16:10 <nicoe> or you have two fields one for the data, the other for the mimetype | ||
2011-11-14 16:11 <nicoe> case1 : image: ('image/png', object.image) | ||
2011-11-14 16:11 <nicoe> case2 : image: (object.mimetype, object.image) | ||
2011-11-14 16:12 <nicoe> I don't remember exactly the syntax but you've got the idea | ||
2011-11-14 16:14 <zxq9> OK, this makes more sense. I'll try. | ||
2011-11-14 16:18 <zxq9> Hmm... not quite as straightforward as it sounds. | ||
2011-11-14 16:19 <zxq9> I'll figure it out eventually, I suppose. I wonder why we can't just pass something like a general "OLE" object or whatever to OpenOffice (openoffice is smart enough to pull its own metadata/doesn't care what the specific image type is). | ||
2011-11-14 16:22 <cedk> zxq9: indeed no | ||
2011-11-14 16:24 <cedk> zxq9: indeed it is not possible to autodetect with 100% accuracy the type of a file | ||
2011-11-14 16:25 <zxq9> Users are much worse at it than computers, though. I don't expect to get reliable answers from the user if I add a "mimetype" field in the form next to the picture. | ||
2011-11-14 16:26 <zxq9> But OpenOffice lets me drag&drop image files into text documents with no issue. | ||
2011-11-14 16:26 <zxq9> If we can grab onto whatever method it is that openoffice uses to permit that, we could make image insertion much easier. | ||
2011-11-14 16:27 <cedk> zxq9: I guess it rely on the DnD protocol of the OS | ||
2011-11-14 16:28 <zxq9> Or the desktop manager, anyway. But somehow this works across OSes and across window managers within the same OS -- so something is generalized here that should be usable. | ||
2011-11-14 16:29 <zxq9> It would require a bit of time to figure out. Which means *after* I figure out how to get this to work the current way first. :-) | ||
2011-11-14 17:10 -!- pjstevns(~paul@a83-163-46-103.adsl.xs4all.nl) has left #tryton | ||
2011-11-14 23:57 <zodman> cedk: on Telesight videos you start talking ? at part1 ? | ||
2011-11-14 23:57 <zodman> or you on left ? |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!