*** SachaS has joined #gnuenterprise *** holycow has quit IRC *** dimas has joined #gnuenterprise *** SachaS has quit IRC *** reinhard has joined #gnuenterprise * reinhard loves to see work starting again on qt driver *** reinhard has quit IRC *** sjc has joined #gnuenterprise *** reinhard has joined #gnuenterprise *** yure has joined #gnuenterprise *** yure has quit IRC *** reinhard has quit IRC *** reinhard has joined #gnuenterprise *** sjc has quit IRC *** yure has joined #gnuenterprise *** yure has quit IRC *** yure has joined #gnuenterprise *** jamest has joined #gnuenterprise reinhard: you here? yes sorry was away do you know of a way to do the following i have a gnue.common.gui.navigator.[qt|gtk2|win32] and a gnue.common.gui.window.[qt|gtk2|win32] i'd like to somehow set the widget set to one of the options then in my code do things like from gnue.common.gui import window I'd look how "import os.path" works it's quite the same system AFAICT as "os" maps to something dependent on the platform and have it be the widget set i selected before ok FWIW I'd do gnue.common.gui.[qt|gtk2|win32].window rather than the other one I'd go for the abstract factory pattern but maybe that's not pythonic enough ;) so all of qt is in a single tree i thought about do that as well "navigator" does not relate to gnue-navigator, does it? and looking into using the plugin system IMHO having forms|navigator|designer specific code in common defeats the purpose of common :) it does not ok :) navigator is working name for the top level widget struture that will manage the windows under it you could think of it as the MDI wrapper and main event loop for a ui ah ok i'm really just playing around now but I'd like to get the basic wrapper up and going w/o any features fwiw any common.gui widget will be an inherited from a class in the desired widget set and there will only be a handfull of common.gnu widgets os just compares names in sys.builtin_module_names and then uses if statements to do stuff like import posixpath as path import ntpath as path import macpath as path i didn't think that would work not really the same issue def init_ui (name): if name == 'gtk2': from gtk2 import window, navigator elif name == 'qt': from qt import window, navigator ... ? but if you put that in common.gui.__init__ not very elegant working with __import__ would be better still wouldn't that screw up imports in say common.gui.gtk if they tried to import common.gui._base don't think so as only window, navigator... are redefined you do agree that the plugin.py isn't a good fit here right? as it's not a single class we're interfacing with not sure it's a library of widgets dbdrivers are not a single class, either plugin.py gives you a complete module it just *checks* wheater a class is there to see if it's a valid module but a module developer would do something like from gnue.common.gui import window from gnue.common.gui import menu and the like I wrote a plugin system that uses python metaclasses to validate the class structure...that certain methods were there, etc. was fun :) still think it could work but probably no need to use plugin.py hmmm I still say abstract factory pattern :) the classic example is the tooliy independent UI toolkit* but I know there's gotta be a more pythonic way to implement it reinhard: you guys using hotilne? yes i added that detail datasource driven dropdown and the form blows up when adding new records modifying old ones is fine hmmm in our case the master is a readonly datasource new ones do the insert then puke in the __do_requery what kind of puke? i'll trace it back now as it's dying on an AttributeError: keys ok, that happens (IIRC) if the requery issues an empty result set actually I should raise a better exception in that case can you check the SQL statements, whether the requery statement is correct? do you have up to date svn? there was a bug in requery code about a week ago or so or two http://jamesthornton.com/eckel/TIPython/html/Sect08.htm#Heading61 i should be bleeding edge now but i'll check ASPN is down but it looks like there's some nice recipe in there too chillywilly: thanks let me move my irc to the devel box *** jamest has quit IRC *** jamest has joined #gnuenterprise it's blowing up in the Base/RecordSet.py line 597 wb http://www.pasteur.fr/formation/infobio/python/ch18s06.html I think his example is weak looks like a nice book on programming python though :) reinhard: how'd you make the datasource readonly? i don't see that as an attribute it is "de facto" readonly oh, so is mine the master one I mean so I can't insert a new master i can't eithr what I have is a item form that lets you set an item to a certain family(class) of parts speaker, amplifier, etc jamest: i added that detail datasource driven dropdown jamest: and the form blows up when adding new records then on the 2nd form tab i have a dropdown that lists a set of features based upon the item's class ah so your master is a dropdown so user can go to a specific radio and your detail is another dropdown? go to second tab and the dropdown shows the valid "features" a radio can have the user selects a feature (say channels or watts) and types in a value so the datasource that populates the dropdown is a detail of the item table linked to it's field that sets the class of item eventually it'll work like object properties in designe r but for now the form dropdown fakes that functionality http://linux.sys-con.com/read/44251.htm?CFID=109398&CFTOKEN=A8CB3A68-FC4D-C858-A92214F8A0588B60 the funny stuff you find when googling as a speaker may track size and a radio may track watts, mp3 capability, etc as features for that class of item hmmm DB003: 0:00:13.695 [Connection:284] DBSIG2 Statement: SELECT item_id, family_id FROM items WHERE oid IS NULL in __do_requery my self.__wherefields () is set to {'oid':None} can you please check again if you are up to date? looks like the bug we fixed 2 weeks ago and I added an explicit exception for the case when requery doesn't find the record it looks for lol still bombs just in a new spot :) what exception? erm hold it seems like I can reproduce *** jcater has joined #gnuenterprise reinhard: right now it's an error in the Expception already fixed that investigating on the other one i'll revert mine then :) had the warehouse mgr pull me away from my task chillywilly: thanks for the link, nice to see someone else feel that way :) *** jamest has quit IRC *** jamest has joined #gnuenterprise * jamest forgets just how bad kopete in kde 3.3 was aaaaaaaa!!!!! fsck found it * chillywilly just found out that AJAX ~= XMLHttpRequest crap stupid buzz words * jcater crosses his fingers that whatever it was isn't in the commit I did last night jcater: no :) whew jcater: it's a datasource issue with my luck lately, I wouldn't be surprised :) indirectly though you could take the blame after all they did have to read through the old caterized datasource code while crafting the new stuff that's bound to have long lasting effects jamest: don't forget about derek when talking about blame oh yeah it's been so long last night after thwapping cater for the first time in years it hit me how long it's been :) reinhard: is it a simple fix or something that'll be a while same old GNUe already committed great let the beatings commence! i'd already moved that form into production :) * jcater troutslaps chillywilly owey jcater: you're at jamest's house? no, he kicked me out sunday grrrr when will you finally come to visit *me* ? ;-) what's the closest airport? reinhard: it was pretty cool i talked to him about what I want to do with the workbench jcater: you would probably want to go via zurich showed him a flash demo of how designer should work you could see the geek in him be reborn, sheding his thick skin of upper management cruft built up over the last few years lol fwiw let me find that flash as it kicks ass * chillywilly is playing with M$ Project :( http://www.netbeans.org/kb/articles/matisse.html go to tthe section To get a feel for what Matisse looks like, watch or download the flash demo by Roman Strobl. the flight cost isn't too bad but I'm a horrible guest, reinhard just ask jamest reinhard: actually everything was ok, except his "No pants after 3pm" policy so you live in germany, reinhard ? * jcater ducks reinhard: works perfectly now thanks jcater: austria (south of germany) so you want designer to work like matisse? nifty demo *** SachaS has joined #gnuenterprise chillywilly: i think it would be nice *** jamest has quit IRC *** jamest has joined #gnuenterprise jamest: get to coding then ;) doesn't seem like it would be very simple :) why do you think i showed it to jason it's not I'd want to code it :) jamest, jcater: I would *seriously* welcome you here if you ever come to europe reinhard, I couldn't before next spring but I might take you up on that *** jamest has quit IRC what about me reinhard ? :) only them HEH * chillywilly slaps mnemoc around some outch *** jamest has joined #gnuenterprise *** sjc has joined #gnuenterprise *** jamest has quit IRC *** jamest has joined #gnuenterprise *** jamest has quit IRC *** mnemoc_ has joined #gnuenterprise *** mnemoc has quit IRC *** jamest has joined #gnuenterprise *** jamest has quit IRC *** wendall has joined #gnuenterprise *** jamest has joined #gnuenterprise *** mixi has joined #gnuenterprise someone knows if there is a channel for wx widgets? *** jamest has quit IRC or possibly help me as i have a memory problem in a wx widgets app no leaks, but it consumes loads *** dimas has quit IRC *** chillywilly has quit IRC *** chillywilly has joined #gnuenterprise 3 bah *** jcater has quit IRC *** jamest has joined #gnuenterprise *** jcater has joined #gnuenterprise night all *** reinhard has quit IRC *** wendall911 has left #gnuenterprise *** jamest has quit IRC *** jamest has joined #gnuenterprise *** SachaS has quit IRC *** jamest has left #gnuenterprise *** sjc has quit IRC *** sjc has joined #gnuenterprise *** yure has quit IRC *** jcater_ has joined #gnuenterprise *** sjc has quit IRC *** jcater has quit IRC *** jamest has joined #gnuenterprise *** mixi has quit IRC *** wendall911 has joined #gnuenterprise *** jcater_ has joined #gnuenterprise *** wendall911 has left #gnuenterprise good news is that breezy has both wx 2.4 & 2.6 now bad news is that I have to make minor source patches to explicitly select 2.4 *** holycow has joined #gnuenterprise *** jcater has quit IRC breezy? is that the next ubuntu? that's a toy story character at least I think it is the penguin that lost it's squeeker that's squeek, I thought or squeeky? are we really discussing this in a logged public channel? since it is being logged :-P lol I was thinking the next debian was etch s/was/is you are right the one scheduled for, what 2015? ubuntu is breezy wow, they have a lot of faith in the streamlined development processes if '15 is the target :) yes breezy is the next ubuntu release, due out in october *** jamest has quit IRC sid essentially has the same wx* packaging 2.6 is in experimental at the moment *** jamest has joined #gnuenterprise wb jamest if reinhard gets new releases out, I can probably push them into breezy thanks it would be great to have a useful app that people can install, that could be packaged up ? lol time.sleep is in seconds not milliseconds *** jcater has quit IRC *** jamest has quit IRC