*** ajmitch_ has joined #gnuenterprise good morning everyone *** ajmitch has quit IRC *** ajmitch_ is now known as ajmitch *** reinhard has joined #gnuenterprise good morning all good evening *** yure has quit IRC *** btami has joined #gnuenterprise *** johannesV has joined #gnuenterprise good morning good morning *** kilo has joined #gnuenterprise good morning hm, looks like the python-bindings for kinterbasdb is still not fixed for breezy .. they are not :( maybe next release... which packages were needed in order to compile that kinterbasdb ? it was something with devel .. i think ah, i think it was python-dev reinhard: i have a small bug which seems to have been induced by yesterday's changes if i _destroy a session and then close the tcp connection i get: damn, i can't get it compiled ... kilo could you give me some advice ? phone DB000: Exception in thread Thread-20: DB000: Traceback (most recent call last): DB000: File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap DB000: self.run() DB000: File "/usr/lib/python2.4/threading.py", line 422, in run DB000: self.__target(*self.__args, **self.__kwargs) DB000: File "/usr/lib/python2.4/SocketServer.py", line 467, in process_request_thread DB000: self.close_request(request) DB000: File "/usr/lib/gnue/python/gnue/common/rpc/drivers/xmlrpc/ServerAdapter.py", line 378, in close_request DB000: self.serverAdapter._clearClientObjects (request.getpeername ()) DB000: File "/usr/lib/gnue/python/gnue/common/rpc/drivers/xmlrpc/ServerAdapter.py", line 210, in _clearClientObjectsDB000: self._destroy (item) DB000: File "/usr/lib/gnue/python/gnue/common/rpc/drivers/xmlrpc/ServerAdapter.py", line 152, in _destroy DB000: item._destroy () DB000: File "/usr/lib/gnue/python/gnue/appserver/geasSession.py", line 270, in _destroy DB000: self.__connection.close () DB000: AttributeError: 'NoneType' object has no attribute 'close' lekma, please svn up ... ok johannesV: I think a different fix would be better: the problem seems to be that _destroy is called twice, isn't it? right, i might get called twice lekma: how did you call _destroy of the session? and within _destroy () the __connection is unset so the second call runs into troubles johannesV: you need firebird2-dev, python2.4-dev for sure and something more... but cant remember _call(sessobj, "_destroy") and btami has checked it, it is only available in dapper is that correct? AFAICT you should do _destroy(sessobj) because that would not only do the _destroy of the geasSession but also remove it from the list of active objects in the server ok let me try and the server would later know that it does not have to be _destroy'ed again kilo, i've installed that python2.4-dev as well as all firebird2-* but it still complains about a lot of syntax errors when calling python setup.py build i'm gonna try to make up what is needed still reinhard: well it works with johannesV fix but i will correct my calls anyway lekma: I would still be interested if fixing the call fixes it without johannes' fix what would be the svn command to go back one update? svn -r PREV up IIRC hmm it says Skipped '.' johannesV: check irc logs for 2005-06-07 and 06-08 was it svn up -r PREV ? hm well i did all that steps but it still fails ... which package contains stdio.h ? got it, you need the package build-essentials downloading ... kinterbasdb is installed (3, 2, 0, 'alpha', 1) thanks for your help i'll add some comments into our driver-file \o/ all i had in my mind was 'it was a package starting with b...' lekma: yes svn up -r PREV yep correcting the calls fixed the pb and does it still work with fixed _destroy calls? excellent johannesV: I would seriously recommend undoing this last change in geasSession then i think it would be defensive to let the if-condition in there yes and no reinhard, why ? calling _destroy twice is a bug hm and letting bugs undiscovered is not always a good thing best example: if you let this in, lekma would never have discovered that he calls _destroy the wrong way yeah, ok kilo, the bug you've reported on 02-16 is reproducable ... but i'm not sure if it's a interbase-related one ... i am quite sure it is not i've just found out how to avoid it i remember it was discussed eariler but wasnt solved before iterating down all that records, jumpt to the last and back to the first then it works fine erm... should i tell it to the customer? :) but as soon as you've iterated over all records which had been fetched at first an exception will be raised no, you won't tell that your customer ... we're going to fix it now, shouldn't we ? :) but i've got some similar issue in mind with sqlite3 * johannesV needs some coffee first * kilo smiles some ev0l way... ok, it does work with postgres ... (not surprisingly) hm, well i can't reproduce it with any other db here ... (other than firebird) maybe some firebird driver cursor issue then? hard to say ... my pb is that it works if you first jump to the last record and that calls the same functions as iterating through the records it is connected somehow with cursor size in zipcodes example it is set at 15 or so explicitly i mean in 'normal' cases, this all happens after record #5 no, it happens for 15 in my states.gfd maybe it's a master-detail thingy oh, wow now i get it on a different position (after i've removed the cache="" attribute) right, it happens after all chached records are scrolled through ... but only on states.gfd ... if i apply the same to zipcode.gfd (without master/detail) it works fine hmmm so cache size plus M/D maybe the pb is, that we have multiple open cursors at the same time there ... hmm can be and with one of them saving, ie committing, is that closed? no need to change anything the error appears just by iterating over the cache-size *** yure has joined #gnuenterprise ah i thought it was commit-related no, it isn't ... there's something wired with the firebird-cursors uh oh ah, got it workin just remove that autocommit="Y" see? it is commit related... right, sorry :) i haven't seen that there was an autocommit set night *** sacha is now known as SachaZzzz kilo, looks like a commit renders all open cursors invalid yep got it in a python-sample well, on one hand, ouch, on the other hand, can be understandable hm, well, that seems to do the trick .. i've created a simple python-script opening a connection, creating a cursor, running an executed followed by two calls of fetchmany. this runs fine. if i add a commit between the fetchmany-calls the exception arises a short check with sqlite3 shows, that sqlite's cursors aren't affected by an intermediate commit same seems to apply to postgres (could check it with maxDb too) anyway, we'd have to think about a workaround for this situation will talk to reinhard as soon as he's back ... hmm i can totally accept by now it closes the cursor... the commit can change the given record in a way that it should not be included in the cursor anymore, so keeping it open would be a mistake indeed it should be reopened instead i think there's already such a concept (requery or the like) .... but reinhard knows that for sure :) *** johannesV has quit IRC *** johannesV has joined #gnuenterprise *** dimas has joined #gnuenterprise *** btami has quit IRC wow lol went to customer, came back now, and saw that I was in the middle of a mail writing... someone has a little bit of time to lose? lekma: sorry, not right now, I have that right behind me :) spent 2 hours at a customer searching for a network problem and still don't know what's wrong and had to go without fixing it, which is a considerable disappointment for me :( can i have the time at the millisecond precision with python? lol i did the same and concluded: call the one who set it up, he surely knows how to fix it (though i am pretty sure he does not...) kilo: you mean looking for a network problem? problem is they don't want to talk anymore to the one who set it up because they found out he is incompetent (which says a lot about *how* the current status of the host in question is) so damn usual :( this one was like: first there was one big ms workgroup, shared printers, etc then he invented he separates every room into a new workgroup... but the fact it breaks printer shares... he just didnt care and what does poor customer say? 'the software doesnt print' sure and of course it's the fault of the software especially if you were unlucky enough to just have installed an update a few days ago :) welcome to the club :) lekma, on which os do you take the precise time ? usually you could use time.time () i just wanted to compare apples and oranges and was looking to have the time in millisecond with python on linux but on msw it is only microseconds (as the clock doesn't give a better resolution there) i benchmarked all javascript rpc impl i have ah, ok, for benchmarks there's something different i think and was quite surprised by the results so i wanted to have a pure python base to see if i was not out of my mind you could use either hotshot module or the profile (or pstats) module using these modules you could see which function takes how much time ... and much more not smthing that powerfull :), i just and overall execution time to have an idea (i failed to make the javascript profiler work, so i'm really in the subjective here) what do you make of that: 0:00:02.133180 it's the result of datetime.datetime.now() - the same before is it 2 seconds and smthing indeed ok well one test to go and i'm off to bed... :) bye *** lekma has left #gnuenterprise *** jamest has joined #gnuenterprise hm, that usercommand-thing added to the keymapper causes some troubles ... on a mac you enter the @- or €-symbol using Alt+L or Alt+E so the keymapper converts such a keypress into a usercommand, instead of passing it through to the gfentry jamest, can you tell me something about the intention of the 'usercommand' ? sure is that something I added recently? if so I believe it was to allow you to define a trigger to fire on a user defined key sequence well, not recently ... but about one or two months ago sigh, that's recently for me unfortunately ah, ok, i see ... :) /msg johannesV and you think reinhard is a slave driver er....um..... :) ok, and how is that 'trigger-command' defined ? ah, ok i've found it ... on such a command the trigger named "KEY-" is fired yes hm, ok, now i see ... however i was having issues passing back ctrl sequences iirc as they map differently, i think i was going to do something in the keymapper to fix this hm what kind of trigger is that you'd like to fire ? i added this for someone in IRC though I could see value in having custom keystrokes pop up dialogs and such to ease input yes, i like the idea too, but i'd love to see it more formalized. so the keymapper would know such events not just pass everything which is not know to such an event but maybe we could combine this with the general option of "user-defined" menu items yes i thought it would be nice to map those custom triggers to menu/toolbar items so one could add a trigger code which is activated via menu (and having a keyboard-shortcut) maybe we could add some attributes to the trigger-tag, like .... or better menu="Some fancy menu entry"> .. and all that triggers are then bound to a menu called "Extras" or the like *** jcater has left #gnuenterprise or maybe we could have menus and submenus there has been a few attempts at a user defined menu like pulling the menu code from designer and moving to common but i don't recall where any of that stuff is at i don't know the menu code from designer ... as far as progress iirc, it's dynamic so you can adjust menus on the fly and I think there might have been a start of a gfd structure at one time yeah, that would be much cleaner anyway so you could create/override custom forms menus having a hierarchy would be great i could imagine this could be a quite clean and very flexible solution and i don't think it's very hard to accomplish anyway i think the hardest parts were going to be 1) how it interacted with the build in menu could they override existing entries (handy) 2) making it so triggers could enable/disable/add/remove menu entries i know i have several forms where i hide the toolbar/menu and put a "complete" button on the form as I can't stop the F6 commit action and that doesn't do what I need on forms where all the blocks hook to unbound datasources hm, right, that sounds reasonable ok, so one pb would be to identify the standard (builtin) menus and their items and another one to enable/disable or to hide them from within a gfd-tree as well as trigger-code must run, off until thursday cu *** reinhard has quit IRC i would think so *** kilo has left #gnuenterprise *** derek has joined #gnuenterprise *** jcater has joined #gnuenterprise *** yure has quit IRC *** klasstek has joined #gnuenterprise *** jcater has quit IRC *** yure has joined #gnuenterprise *** btami has joined #gnuenterprise *** jcater has joined #gnuenterprise *** jcater has quit IRC *** jcater has joined #gnuenterprise *** btami has quit IRC *** johannesV_ has joined #gnuenterprise *** johannesV has quit IRC *** johannesV_ has quit IRC *** derek has quit IRC *** derek has joined #gnuenterprise *** sjc has joined #gnuenterprise *** jcater has quit IRC *** jcater has joined #gnuenterprise *** jcater has quit IRC *** jcater has joined #gnuenterprise *** jamest has quit IRC *** derek has quit IRC *** klasstek has quit IRC *** sjc has quit IRC *** yure has quit IRC *** jamest has joined #gnuenterprise *** gaupe has quit IRC *** ajmitch has quit IRC *** nickr has quit IRC *** chillywilly has quit IRC *** ajmitch has joined #gnuenterprise *** gaupe has joined #gnuenterprise *** nickr has joined #gnuenterprise *** chillywilly has joined #gnuenterprise *** jcater has quit IRC *** jcater has joined #gnuenterprise *** jcater has quit IRC *** jcater has joined #gnuenterprise *** jcater has quit IRC *** jcater has joined #gnuenterprise *** jcater has quit IRC *** jcater has joined #gnuenterprise *** jcater has quit IRC *** jason__ has joined #gnuenterprise *** SachaZzzz has quit IRC *** jason__ has quit IRC