*** btami has joined #gnuenterprise *** reinhard has joined #gnuenterprise *** johannesV has joined #gnuenterprise *** SachaS has joined #gnuenterprise good morning hello SachaS hi reinhard, how are you? a bit busy today because i was out of office for 2 days now and have to catch up on a lot of things but apart from that, i'm fine :) sounds good to me :) hi SachaS, reinhard hi ajmitch hello ajmitch how's the deb upload war going? you still need jbailey to sign the packages? reinhard: i cant keep up with your and johannes development speed :) which is a good thing SachaS, well, actually this is my job :) which is really a good thing johannesV, you got a cool job ;) oh this reminds me to write down the notes of the last meeting with reinhard ... reinhard: (sorry I went afk), I just need jeff or another DD like jordi to upload them :) I saw jeff online the other day & spoke to him he was going to.. excellent just had the first calculated field workin' ... *** kilo_ has joined #gnuenterprise dah :) good news *** lekma has joined #gnuenterprise hi everyone *** holycow has joined #gnuenterprise is it possible to have newlines in form labels? *** holycow has quit IRC *** SachaLunch has quit IRC *** btami has quit IRC *** btami has joined #gnuenterprise *** btami has joined #gnuenterprise *** btami has quit IRC *** dsmith has joined #gnuenterprise *** jamest has joined #gnuenterprise *** kilo_ has quit IRC hello jamest i have a question in datasources when you insert a new record *** johannesV_ has joined #gnuenterprise the recordSet._fields doesn't contain a complete field list is that correct? *** dneighbo_ has joined #gnuenterprise right you either have to define the fields in the wrapper or not define them and then IIRC it fills them on query *** johannesV has quit IRC jamest: i define the fields in the wrapper but on resultSet.insertRecord the recordSet._fields dictionary only gets initialized for fields that have a default value so the recordSet._fields dict doesn't have a key for every referenced field *** dneighbo has quit IRC odd isn't there a variable named referencedFields or some such that contains them all? yep but that is in DataObject sigh now that I think about it I'm pretty sure forms has to do a lot of recordSet._dataObject.foo kinda defeats the purpose of the _ doesn't it :( wouldn't you think it could make sense to always have a full-featured _fields dictionary in recordSet ? i think it definately needs some TLC there as i fight it a bit using common outside forms but i don't recall why things are the way they are so have just lived w/ it :) we very much stumbling over that now i'm not against changing it i just never hit anything where it stopped me dead in my tracks so it's been "good enough" if that's the case now then we can probably change it *** dneighbo_ has quit IRC *** dneighbo_ has joined #gnuenterprise *** Arturas has joined #gnuenterprise Hello :) *** reinhard_ has joined #gnuenterprise *** reinhard has quit IRC hi Arturas *** jcater has joined #gnuenterprise hi Arturas do you ever seek M? if so tell him I said hello Hello Derek not now i'm finishing my bachelor studies last 2 months had exam time in the following month i'll have my bachelor thesis not much time for GNUe or anything else :( :( *** Morphous has joined #gnuenterprise *** Amorphous has quit IRC *** jamest has quit IRC *** Morphous has quit IRC *** Amorphous has joined #gnuenterprise *** jamest has joined #gnuenterprise bbl *** reinhard has quit IRC *** lekma has quit IRC *** johannesV_ has quit IRC *** _florin_ has joined #gnuenterprise <_florin_> hi *** ajmitch has quit IRC *** ajmitch has joined #gnuenterprise *** _florin has joined #gnuenterprise *** Konijn has joined #gnuenterprise *** jamest has joined #gnuenterprise *** _florin_ has quit IRC *** reinhard has joined #gnuenterprise *** sjc has joined #gnuenterprise *** reinhard has quit IRC *** Konijn has quit IRC *** kilo has joined #gnuenterprise *** ogger has quit IRC *** wendall911 has joined #gnuenterprise *** ogger has joined #gnuenterprise *** sjc has quit IRC anyone home? yo does syn_import as written allow one to import a class symbol? like if I pass it package.module.classname will it give me the class symbol? and I can then instantiate it right? I think so if not, dyn_import('package.module').classname() will work but I think both will ok, but the classname is in a string...so I have to eval() it? eval(dyn_import('package.module').__name__+'classname()') ? bleh, I am a little confused wa? you either eval or dyn_import not both ok, but importing the class symbol is not enough to get an instance though is it? you tack on a () to make it an instance :) dyn_imoirt('package.module') is same as import package.module you get real instances back not strings dyn_import('package.module.classname')() will give me an instance? yes ok don't beat me oh python master np just listen sometimes, instead of disagreeing =) I did listen bleh just teasing *** jcater has quit IRC *** jamest has quit IRC *** dsmith has quit IRC *** kilo has quit IRC *** _florin_ has quit IRC *** jcater has joined #gnuenterprise *** jamest has joined #gnuenterprise hmmmmm whaddup my peeps? I dunno if dyn_import is workin' so fix it :) I don't think it lets you give it a full path to a class name hmm, set sys.path? iirc I shouldn't need to do that I just don't think you can import a class name ;) aha bleh huh? I can do getattr on the module jamest: I want to load a class dynmaically and I have the class name as a string I have dyn_import from gnue common self.levelManager = dyn_import("adrius.age.managers.level.%s" % gConfig('LevelManager')).manager(self) I just imported the module then did getattr to get the class and tacked '()' on the end to get an instance hmmm not sure what you're asking but that is a valid dyn_import that calls a method? calls the constructor passing is a variable ,--8<- |def crossSection(self, cutdims): | mod = dyn_import('meas.apps.cart.ProdUtils') | cls = string.capwords(self.form) + 'SectionalCalc' | calc = getattr(mod, cls)() `-->8- class manager(events.EventAware): def __init__(self, application): you have the class name hard coded mine is a string huh the class name is dynamic how? the .manager(self) is outside the dyn_import the classname is manager() right? yea, it's hardcoded ah i see what you're getting at mine is a string that I construct I just import the module with dyn_import then did a gettattr(mod, classnamestring) to get the class then tacked '()' on the end to get an instance is there any other way? it works so I guess that's all that matters i can't think of anything less ugly heheh :P i would think you could do that in an eval but damn it'd be fugly then it all needs to be a string so you'd have to use __name__ on the module right? well no you wouldn't HAVE to nm I would think that dyn_import could habdle a fully qualified class name I think I saw soemthing in the python cookbook I can't type :( probably could be i guess we've always just used it as I posted above yea...cause you force your drivers to have the same class names right? ;P whereas if you are implementing the strategy patter (function object, whatever you want to call it) then you might name your classes differently, like based on the algorithm pattern not in my house! we name things the way nature intended !!! huh? nothing :) * chillywilly hands jamest some downers can't take them damn client needed a laptop up and running for a new sales drone by Friday gave it too me at lunch to work on tonight and tomorrow night then called at 4pm and said they would pick it up 6:45am tomorrow as she's flying out in the AM geee thanks that was my thoughts too I'm sure you'll get it done * jcater just wonders how it managed to take 36 hrs =) (billing-wise, of course) i had to split the work up it's XP so i'd be using the keyboard and the agobot backdoor users will be racking up hours over the net *** holycow has joined #gnuenterprise *** nick|sjlinux has joined #gnuenterprise *** nick|sjlinux has left #gnuenterprise *** holycow has quit IRC jamest: what the heck is agobot? a piece of windows luving let me see if I can find a url http://securityresponse.symantec.com/avcenter/venc/data/w32.gaobot.aay.html is a bot in the same family gaobot and agobot are the same IIRC they are killing the university the wonderfull thing about the latest worms is that they install backdoors and that the removal tools aren't working they remove the original virus/worm but the backdoor let other things in that reopen the hole or something so at KSU they run the remover and within minutes the machine is fully infected again joy is this propagated through email? at the security meeting on friday they said that with the current strains out there 99% of the time you have to wipe the machine nm email or security holes in windows don't you run clamav? ;P shit dude I do like I got to worry about them much i have my users on pine well we use mozilla mail but some people are still not too bright and I've got 13 windows boxes in the whole dept everything else in debian or openbsd but i want to get clam up and running for now yavr is doing the job ok fwiw I'm moving those 13 boxes to either XP or debian starting next week user gets to pick os that reminds me out of the last 4 new professors we hired 4 of them requested linux boxes that's over a 2 or 3 year period :) cool though to be fair i have 1 GTA out of about 40 that hates linux with a passion brings it up every time i'm in his office as i force kde on the GTA offices after 1 too many "improvements" were made to my winNT boxes w/o permission what are his gripes? it's crazy as he bitches to high heaven how nothing works but can't give a single example nothing works what's wrong with windwos printing doesn't work heh i have him print 4 different things in front of me go upstairs and find 4 printouts waiting and this is rich the previous printouts lying in the printout bin unclaimed the ones that didn't print doofus he just hates it he's kinda like jcaters user that complained about OO.org being too "generic" one of the girls in the office was whining about openoffice saying she will never give up word then ben was like what are you going to do when we go all linux ;P dude there's quite a few people who hate OO.org in the office the new guy likes it though yea? at the local company i moonlight for the owner basically said "I ain't paying $XXX per copy for Office so deal w/ it" he bought them a few books on staroffice and now they are all used to it what do your users bitch about? with OO well I think the specific complaint was about printing on envelopes or something i think i've looked at that once their default label thing is a 1 at a time setup IIRC which sucked, but there is/was a workaround ok i don't recall details as that was like 1 year ago however i should know more over the summer as math office is (finally) migrating from WP to OO well I will just have to find a solution eventually i love windows btw it's the campus request that we move to recent windows (aka 2k, XP) I don't really recall all the nitty gritty details and the fact that Word Perfect 5.1 for DOS runs like absolute shit under XP that finally got that wheel turning for 1 of the office staff there's another person who also hates OO.org but he has problems with all sorts of things she tried WP5.1 under XP and quit compaining about how it was running under win4lin as wp5.1 on win4lin w/ win98 is bearable wp5.1 on XP has to be seen to be believed win4lin doesn't really save you much cash though....you still have to buy that thig thing yip but it's allowed me to convert over 1/2 the office to linux and get them used to it now they do as much outside windows as in it once the migration away from WP is complete they'll have little need for daily windows use we have 15 locations i've got some slick shit coming down the pipe for my unix users too via tightvnc and plink i can currently give any unix user access to their desktop from anywhere on the planet plink is only for the ssh tunnel none of this different remote desktop than office desktop that my wife has to deal with using windows terminal services vnc drives me nuts sometimes try terminal services the mouse disappears at times can't get the full screen window to grab focus at times you using realvnc ? I used it before yea that was the one as there are options on the client(?) side that effects that I am sure terminal services are crappier is I dunno...haven't used it in a while they have different modes depending on how much bandwidth you are willing to burn eventually I think it would be nice to have thin clients with LTSP and those would hit the web based systems' that's how my plink/tightvnc setup works :) i hook into my ltsp server I never heard of plink part of putty well, from same place as putty oh basically sets up tunnels i'll find same sample I see plink -ssh math.ksu.edu -L 5900:leibniz.math.ksu.edu:5900 vncviewer localhost I'm putting those on icons for winders users on my mathpack cd so they can have a local OS too then? oh local os? that's not a thin client though ;) sure it is well they have a local OS too in the office they have either stand alone boxes w/ HDs or they have ltsp terms that boot from floppy no boot rom? :P all run sweet, sweet KDE so currently moving from thin to thick the only thing they lose is sound boot roms cost money i'm dead ass broke some year i'll invest in roms by my original ltsp setup was all scraps no budget? i have one faculty member using a AMD 486 66MHz ltsp term and the NICs are whatever I could find, even ISA cards i have a budget i'd show it too you but it's kinda hard to see * chillywilly gets out his magnifying glass and it spooks easily being so small and all well, here's one way to look at it i started in 96 with my budget in that time i've probably dbl'd the number of computers in the dept added things like rdbms, web servers, web mail, etc, etc my reward my budget didn't change a penny from 96 thru 02 were now in FY03 and my budget finally changed it got cut 27% bleh it's not all bad as it forces one to not waste funds and to figure out the crap like that free remote access thing above *** Morphous has joined #gnuenterprise instead of dropping 5 figures into something like WTS hi Morphous like you would use WTS ;) yea right ;) you know the python interpreter also makes a handy calculator ;) *** Amorphous has quit IRC yes i do :) if you catch a KeyError is there a way to tell what the key name is if you have several keyed values in the try block? hmm, seems to have the key in the error message printing it seems to give the key nm then! *** jcater has quit IRC *** jamest has quit IRC