IRC logs of #tryton for Thursday, 2010-12-30

chat.freenode.net #tryton log beginning Thu Dec 30 00:00:02 CET 2010
2010-12-30 00:56 -!- elbenfreund(~elbenfreu@p54B97961.dip.t-dialin.net) has joined #tryton
2010-12-30 01:02 -!- gremly(~gremly@200.106.202.91) has joined #tryton
2010-12-30 02:06 -!- pepeu(~manuel@201.155.193.192) has joined #tryton
2010-12-30 05:19 -!- yangoon(~mathiasb@p549F6016.dip.t-dialin.net) has joined #tryton
2010-12-30 05:58 -!- gremly(~gremly@200.106.202.91) has joined #tryton
2010-12-30 06:53 -!- okko(~okko@dhcp-077-251-140-095.chello.nl) has joined #tryton
2010-12-30 07:40 -!- Vladimirek(~vladimir@213.151.246.136) has joined #tryton
2010-12-30 08:14 -!- okko(~okko@62.58.29.41) has joined #tryton
2010-12-30 08:22 -!- enlightx(~enlightx@dynamic-adsl-94-34-184-180.clienti.tiscali.it) has joined #tryton
2010-12-30 08:37 -!- jcm(~jcm@symetrie.net) has joined #tryton
2010-12-30 09:54 -!- plantian(~ian@206-211-209-202.utilitytelephone.net) has joined #tryton
2010-12-30 10:02 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2010-12-30 10:04 -!- paepke(~paepke@p4FEB02AF.dip0.t-ipconnect.de) has joined #tryton
2010-12-30 10:21 -!- trifon(~trifon@95-42-39-94.btc-net.bg) has joined #tryton
2010-12-30 11:53 -!- mhi(~mhi@pd95b104a.dip0.t-ipconnect.de) has joined #tryton
2010-12-30 11:58 -!- okko(~okko@62.58.29.41) has joined #tryton
2010-12-30 12:03 -!- paepke(~paepke@p4FEB02AF.dip0.t-ipconnect.de) has left #tryton
2010-12-30 12:06 -!- okko(~okko@62.58.29.41) has joined #tryton
2010-12-30 12:39 -!- enlightx(~enlightx@static-217-133-61-144.clienti.tiscali.it) has joined #tryton
2010-12-30 13:09 -!- elbenfreund(~elbenfreu@p54B932F4.dip.t-dialin.net) has joined #tryton
2010-12-30 14:24 -!- woakas(~woakas@200.106.202.91) has joined #tryton
2010-12-30 14:51 -!- chrue(~chrue@dyndsl-091-096-008-234.ewe-ip-backbone.de) has joined #tryton
2010-12-30 15:10 -!- nicoe(~nicoe@193.200.42.57) has joined #tryton
2010-12-30 15:20 -!- gremly(~gremly@200.106.202.91) has joined #tryton
2010-12-30 15:36 -!- okko(~okko@62.58.29.41) has joined #tryton
2010-12-30 16:06 -!- pheller(~pheller@c1fw231.constantcontact.com) has joined #tryton
2010-12-30 16:28 -!- Vladimirek(~vladimir@213.151.246.136) has joined #tryton
2010-12-30 16:29 <pheller> cedk: saw your url re: Mac OS and URL Handlers...... the problem is that the code at that link is Objective-C, and would have to live within gtk-osx. The developers of that project are hesitant to include it....
2010-12-30 16:31 <pheller> cedk: so, the next option is to use pyobjc to write a small helper script that handles the URL dispatch. The pyobjc part has to be separate because pyobjc enters an NSMainLoop (which doesn't run concurrently with the GTK MainLoop), and also does not play well with threads.
2010-12-30 16:31 <pheller> cedk: I'll work on this on Sunday
2010-12-30 16:39 <cedk> pheller: the gtk_osxapplication.OSXApplication doesn't get the right method to listen ?
2010-12-30 16:39 <pheller> cedk: nope.
2010-12-30 16:40 <cedk> pheller: do you know why?
2010-12-30 16:40 <cedk> pheller: or is there any other way?
2010-12-30 16:41 <cedk> pheller: because if I understand well, the application need to be started to get the URL handle
2010-12-30 16:41 <pheller> cedk: ...as I understand, because gtk itself doesn't have the same concept of a listener for URL based invocation. (instead, using gconftool-2)
2010-12-30 16:42 <cedk> pheller: isn't it possible to simply define the command to run to open URL
2010-12-30 16:42 <cedk> pheller: gconftool is from gnome not gtk
2010-12-30 16:42 <pheller> cedk: perhaps, though I have not yet found how to do that. As far as I understand, all URL dispatch is configured with application bundle plists
2010-12-30 16:43 <pheller> cedk: right, the point is, gtk itself does not specify methods for url invocation. it's left up to the window manager
2010-12-30 16:43 <cedk> pheller: but it is strange because the application need to be started to listen
2010-12-30 16:43 <cedk> pheller: what happens if the application is not started?
2010-12-30 16:44 <pheller> cedk: I use plenty of mac applications which register url handlers, which will open when an appropriate url is invoked.
2010-12-30 16:45 <cedk> pheller: but if the application is not started how MacOSX know that it must start this application fro this URL kind
2010-12-30 16:45 <pheller> cedk: magic? :-)
2010-12-30 16:45 <pheller> cedk: I'm testing it right now with an application I use.
2010-12-30 16:45 <cedk> pheller: can you start many Tryton client?
2010-12-30 16:47 <pheller> cedk: not through the normal window manager invocation, but if you execute the binary within the application bundle multiple times, then yes.
2010-12-30 16:48 <pheller> cedk: yes, url handler works for application bundle even when application isn't running.
2010-12-30 16:49 <pheller> cedk: e.g., OmniFocus is not running (and it has no background listener). I open "omnifocus:///task/a3TDxVo0veL", and the application launches and does the right thing.
2010-12-30 16:52 <cedk> pheller: it is perhaps possible with script: http://hublog.hubmed.org/archives/001154.html
2010-12-30 16:55 <pheller> cedk: perhaps. I'll try some things when I have time to work on this again, Sunday.
2010-12-30 16:55 -!- paepke(~paepke@p4FEB36BB.dip.t-dialin.net) has joined #tryton
2010-12-30 16:57 <cedk> pheller: ok
2010-12-30 16:58 <cedk> pheller: but normally, there is no reason that passing the url to the binary will not work like it does on Linux
2010-12-30 16:59 <pheller> cedk: correct. when invoked from command line, it will work fine. we only need this helper to glue that method of invocation to the Mac OS URL dispatch system.
2010-12-30 17:00 <cedk> pheller: yes it should be the way to go
2010-12-30 17:19 -!- pepeu(~manuel@201.155.193.192) has joined #tryton
2010-12-30 17:21 -!- okko(~okko@62.58.29.41) has joined #tryton
2010-12-30 17:56 -!- chrue(~chrue@dyndsl-091-096-008-234.ewe-ip-backbone.de) has joined #tryton
2010-12-30 18:10 -!- enlightx(~enlightx@dynamic-adsl-94-34-216-196.clienti.tiscali.it) has joined #tryton
2010-12-30 18:27 -!- chrue(~chrue@dyndsl-091-096-008-234.ewe-ip-backbone.de) has joined #tryton
2010-12-30 18:37 -!- paepke_(~paepke@p4FEB3FCB.dip.t-dialin.net) has joined #tryton
2010-12-30 18:45 -!- Zeerak(~cauthorn@80.71.135.117) has joined #tryton
2010-12-30 18:46 <Zeerak> Hey, just wondering if anyone here is running tryton on gentoo? I could use some help with getting started.
2010-12-30 19:00 <cedk> Zeerak: I do
2010-12-30 19:06 -!- okko(~okko@dhcp-077-251-140-095.chello.nl) has joined #tryton
2010-12-30 19:09 <cedk> Zeerak: there is a overlay in layman
2010-12-30 19:09 <Zeerak> cedk: how did you set it up? After emerging it (and looking at the wiki and realizing I have no postgres user) running it just tells me it can't connect to the server
2010-12-30 19:10 <Zeerak> cedk: Yup, used the overlay as well, but I get a failure when trying to run it. Running trytond as a command also fails along with neso (pastebin on it's way)
2010-12-30 19:11 <cedk> Zeerak: did you run the "emerge --config =app-office/trytond"
2010-12-30 19:11 <Zeerak> cedk: actually trytond might work, it seems that starting it from init.d might have caused the fault
2010-12-30 19:12 <Zeerak> cedk: Nope, i just ran an emerge -uDN @world (after adding tryton and the appropriate modules to my sets)
2010-12-30 19:14 <Zeerak> neso error: http://pastebin.com/aMASCPJE
2010-12-30 19:14 <Zeerak> and trying to run emerge with the config flag
2010-12-30 19:16 <Zeerak> cedk: http://pastebin.com/SQQev0qv is an error I get when I try to run with --config
2010-12-30 19:21 <cedk> Zeerak: it seems that you don't have postgresql running
2010-12-30 19:22 <cedk> Zeerak: and the neso ebuild missing a dependency on pysqlite or sqlite flag for python
2010-12-30 19:23 <Zeerak> that's something that struck me as strange though, the only thing postgresql related binary i can find is postgresql-config
2010-12-30 19:24 <cedk> Zeerak: I suggest you for a first try to not try to fix postgres
2010-12-30 19:24 <cedk> Zeerak: but simply fix neso
2010-12-30 19:24 <cedk> Zeerak: which Python version are using ?
2010-12-30 19:24 <Zeerak> 2.6
2010-12-30 19:25 <cedk> Zeerak: so you must active the sqlite flag on python
2010-12-30 19:26 <Zeerak> just added the sqlite flag to python and currently reemerging
2010-12-30 19:41 <Zeerak> hehey! Neso is running.
2010-12-30 20:01 <pheller> cedk: I just tried Tryton on Mac with the new URL patch.... it *somewhat* works.
2010-12-30 20:02 <pheller> cedk: if I am connected to database "test", and the url has database "foo", then a new Tryton window is created.
2010-12-30 20:03 <pheller> cedk: but, if I give a good url, like: tryton://my.tryton.hostname/test/model/party.party/1 (where my.tryton.hostname is the actual hostname of the tryton host), it does nothing....
2010-12-30 20:06 <cedk> pheller: need some debuging in ipc.py
2010-12-30 20:06 <pheller> ok, I'll get to this on Sunday too.
2010-12-30 20:06 <cedk> pheller: could you check that the running client receive the message
2010-12-30 20:06 <pheller> cedk: I will do it, but I can't today.
2010-12-30 20:07 <pheller> cedk: maybe I will have a little time to test tomorrow morning
2010-12-30 20:08 <cedk> pheller: ok
2010-12-30 20:36 -!- trifon(~trifon@95-42-39-94.btc-net.bg) has joined #tryton
2010-12-30 21:02 -!- okko(~okko@dhcp-077-251-140-095.chello.nl) has joined #tryton
2010-12-30 21:46 -!- jcm(~jcm@cxr69-10-88-172-230-130.fbx.proxad.net) has joined #tryton
2010-12-30 21:59 -!- elbenfreund1(~elbenfreu@p54B932F4.dip.t-dialin.net) has joined #tryton
2010-12-30 22:10 <cedk> Zeerak: I fixed neso ebuilds according to sqlite dependency
2010-12-30 22:34 <pheller> cedk: I had a little time to test.... it's very weird. it's like the gtk client is blocking somehow.
2010-12-30 22:34 <pheller> cedk: the client does read from the fifo.... but only when an event is performed inside the gtk loop
2010-12-30 22:37 <pheller> cedk: I bet this has something to do with gtk.gdk_threading, which is disabled on macos
2010-12-30 22:37 <pheller> cedk: hmmh, yes, I just re-enabled gtk.gdk.threads_init() for mac os, and it works right.....
2010-12-30 22:38 <pheller> cedk: maybe it is better to use gobject.io_add_watch() than select.select in another thread?
2010-12-30 22:51 <plantian> How are the tryton urls going to be used?
2010-12-30 22:56 <cedk> plantian: I don't understand the question
2010-12-30 22:58 <cedk> pheller: could you test if with gtk.gdk.threads_init() the client behave normally
2010-12-30 23:03 -!- okko(~okko@dhcp-077-251-140-095.chello.nl) has joined #tryton
2010-12-30 23:22 <plantian> cedk: The new functionality with the tryton://my.tryton.hostname/test/model/party.party/1. What is the use-case? I guess is what I meant.
2010-12-30 23:23 <plantian> I don't understand how it will be used.
2010-12-30 23:25 <cedk> plantian: it is useful to share/communicate with others
2010-12-30 23:25 <plantian> Like to embed urls in emails to other people in your company?
2010-12-30 23:25 <cedk> plantian: yes
2010-12-30 23:26 <plantian> cedk: Okay thanks, that makes sense.
2010-12-30 23:41 -!- okko(~okko@dhcp-077-251-140-095.chello.nl) has joined #tryton
2010-12-30 23:53 <Zeerak> cedk: ah sweet, I'll update the overlay
2010-12-30 23:53 <Zeerak> not that it makes much of difference now though...
2010-12-30 23:53 <Zeerak> but yeah
2010-12-30 23:57 -!- heg(~heg@dyn.144-85-146-044.dsl.vtx.ch) has joined #tryton

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