good morning good morning i can't make dbf work on 0.5.14 or svn:HEAD :( *** johannesV has joined #gnuenterprise mnemoc: Was the link you found any good? (http://ftp.madnom.com/kldp/download/dbf2sql/dbf.py) rynik: yes, but problem now seems to be purely gnue :) on 0.5.14 i get: AttributeError: Connection instance has no attribute 'defaultBehavior' and with HEAD: DB000: File "/home/amery/{projects}/gnue/.cvsdevelbase/gnue/common/datasources/drivers/file/Base.py", line 46, in __init__ DB000: GIntrospection.__init__ (self, connection) DB000: TypeError: module.__init__() argument 1 must be string, not instance mnemoc: OK. Just asking because I keep a record of things that come up on the irc, like a FAQ. aha is it public? Not yet mnemoc, are you using packages or svn ? don't forget to tell that on 0.5.14 dbf is 'dbf', but on 0.5.15 it will be dbffile :) johannesV: both first try was 0.5.14 second, svn as reinhard did a rewrite to drivers in current svn what i pasted with DB000 is from svn:HEAD but one wll still need a dbf.py in 0.5.15 yes, i injected it ah, ok from the location rynik just re-pasted i've thought about rewriting that dbf.py too if i had a bit more time ... :) so gnue has it's own full dbf-support i need 43 hours per day to sleep and be on time with my gantt charts.... how many do you need? :) lol *** kilo has joined #gnuenterprise *** sjc has joined #gnuenterprise good morning *** SachaS has quit IRC *** reinhard has joined #gnuenterprise *** SachaS has joined #gnuenterprise *** wt has joined #gnuenterprise *** btami has joined #gnuenterprise *** wt has quit IRC *** reinhard has quit IRC *** wt has joined #gnuenterprise *** johannesV has quit IRC *** johannesV has joined #gnuenterprise *** mnemoc has quit IRC *** mnemoc has joined #gnuenterprise *** dcmwai has quit IRC *** docelic has joined #gnuenterprise Good day ladies and gentlemen hi docelic *** docelic has quit IRC *** docelic has joined #gnuenterprise *** sjc has quit IRC *** wendall911 has quit IRC *** wendall911 has joined #gnuenterprise *** btami has quit IRC *** aries_mindworks has joined #gnuenterprise hi hello aries are there any example how can i add style to a report file (.grd) ? docelic: hello i want to create a nice form with gnue-report, with colors, pictures... a precise, press-ready PDF output would be nice :) i see the settings in the filters, but dunno what the exact commands is hi aries_mindworks hi kilo I'll be away for a while... cannot help much in reports, btami can or jcater *** kilo has quit IRC *** jamest_ has joined #gnuenterprise *** docelic has quit IRC *** jamest_ has left #gnuenterprise *** mnemoc_ has joined #gnuenterprise *** johannesV has quit IRC *** johannesV has joined #gnuenterprise *** mnemoc has quit IRC *** jcater has joined #gnuenterprise jcarter: hi! do you have any examples or tutorial how can i use the reports? i want to add to my helloworld like grd a stylesheet and i'd like to export it to pdf. are there any howto how can i do this? jcater: kilo said you and btami are competent in this question i've to go bye *** aries_mindworks has left #gnuenterprise *** titopbs has joined #gnuenterprise *** danielb has joined #gnuenterprise hey people if I have a shell variable that has a variable name as its value how can I then dereference that variable? you mean access the environment? ${${NAME}_VAR} doesn't seem to be valid substituion no that value of a variable is the name of a previously set variable I want the value of that previously set variable it's like a variable variable ;) extra level of indirectioj n danielb, FOO="BAR"; BAR="a value" echo ${!FOO} should do the trick wth is the '!' for? what if the variable only contains part of the name? FOO="BAR"; BAR_VAR="a value" moin echo ${!BAR_VAR} ? erm echo ${!FOO_VAR} ? I suppose I can use another variable to hold the name thanks johannesV *** jamest_ has joined #gnuenterprise hi, i get errors trying to use dbf from 0.5.14 and from SVN, can anyone give me a hand? (yes, i injected dbf.py) hello all johannesV: Added lookup dialog to dropdowns (currently using Ctrl-W) how is this work? oh, it is curses specific? dimas, yes for curses only * johannesV still in and out *** jamest_ has left #gnuenterprise anyone know of a tool that I can index source code with where I can load it into a web browser and lick my way though various includes or import, etc.? LXR? johannesV: why dbf.py has not been adopted on gnue yet? mnemoc_, what do you mean with adopted ? johannesV: svn add johannesV: until you code your own johannesV: instead of depending on a extern download location which is gone today will reinhard return today? doubtful :'( can anyone give me a hand with some bug on dbf drivers? 0.5.14 and svn mnemoc, i think it could be added to common's external directory (meanwhile) what kind of pbl do you have with dbf migrations on 0.5.14 i get: AttributeError: Connection instance has no attribute 'defaultBehavior' and on svn i get DB000: TypeError: module.__init__() argument 1 must be string, not instance that's not related to dbf.py i think hm, at least it's a problem with common ... if license permits we can add to gnue.common.external how did you define the connections.conf like johannesV mentioned jcater, of course mnemoc, can you give me your dbf's connections.conf entry ? [caj_vta4] comment = DBF caj_vta4 from 2005-03 provider = dbffile file = /home/amery/{projects}/amery/clients/socomep/software/legacy-data/2005-03/CAJ_VTA4.DBF ok, and that's all then ? connections.conf is generated yes, that all for one connection *** jamest_ has joined #gnuenterprise /me is downloading dbf.py from http://www.fiby.at/dbfpy/ *** danielb has quit IRC i got it from http://ftp.madnom.com/kldp/download/dbf2sql/dbf.py .... i'll grab yours *** chillywilly has quit IRC mnemoc, i think it doesn't matter which one you're using ... since it wouldn't change something about the error (i think) ok, i'll keep mine then :) *** chillywilly has joined #gnuenterprise gn8 all *** johannesV has quit IRC gneight? wth is gneight ;) :) jcater: dbf.py is licensed this way: # Author : Michal Spalinski (mspal@fuw.edu.pl) # Copying policy: unlimited (do what you want with it) # Warranty : none whatsoever only designed _needs_ wxpython24? or any other tools has wxpython24 as it's only interface? cool!.... dbffile:76 return [dict (zip (fieldnames, record)) for record in f] bah what a crappy license text it's ambiguous mnemoc, I designer definitely needs wx 2.4 or better I think forms still might support 2.2 but am not 100% positive i have wx26 and wx24 2.6 is out? yes wxpy26 was released yestarday sigh but wxpy24 gets confused with two versions of wxwidgets I doubt they fixed the bugs we had with canvases in designer and gnue had big troubles at least with wx25 i doubt it also well, if 2.6 is out I guess we can officially "work around" them they strings api change is weird *** kilo has joined #gnuenterprise *** SachaS has quit IRC *** SachaS has joined #gnuenterprise *** titopbs has quit IRC i am a python-newbie.... what zip means here? return [dict (zip (fieldnames, record)) for record in f] (dbffile.py:76) >>> zip([1,2,3],['a','b','c']) [(1, 'a'), (2, 'b'), (3, 'c')] aha thanks print [fieldnames for record in f] and print [record for record in f] work but print [zip (fieldnames, record) for record in f] fails with: DB000: File "/home/amery/{projects}/gnue/.cvsdevelbase/gnue/common/datasources/drivers/file/dbf.py", line 137, in __getattr__ DB000: raise ValueError, ('"%s": no such field !' % aname) DB000: ValueError: "__iter__": no such field ! what does this means? 136 if not self.hook.has_key(lower(aname)): 137 raise ValueError, ('"%s": no such field !' % aname) this language have confused me a lot why does it fail for one and not another *** jcater has quit IRC good night all *** rynik has left #gnuenterprise *** titopbs has joined #gnuenterprise is zip a python function or a gnue function? *** reinhard has joined #gnuenterprise @pydoc zip kilo: zip(seq1 [, seq2 [...]]) -> [(seq1[0], seq2[0] ...), (...)]. Return a list of tuples, where each tuple contains the i-th element from each of the argument sequences. The returned list is truncated in length to the length of the shortest argument sequence. kilo: any idea why print [ (fieldnames, record) for record in f] for dbf works, but the zip of it doesn't? if i use zip it ask dbf for a field called __iter__ which doesn't exist i don't know python, but i see no reason for this behavior thats the way sequences are virtualized uhm? isn't zip called over the output of the iterator? python is confusing :( *** titopbs has quit IRC its expecting you to pass it two sequences well, one or more sequences I'm trying to find docs on this gnue/common/datasources/drivers/file/dbffile.py:76 btw :) it expects record to be an iterator but it appearantly isn't reinhard :D when you do print [record for record in f] what does that print? have you tried with the other dbf.py from the fiby page johannes gave here? [(' 1', '1', 'VARIOS CLIENTES PARTICULARES ',....... ah hah http://docs.python.org/ref/sequence-types.html fiby doesn't work 's i'm using one which suppose to be from mspal can you try to use list(record) instead of just record inside the zip()? and print? DB000: File "/home/amery/{projects}/gnue/.cvsdevelbase/gnue/common/datasources/drivers/file/dbffile.py", line 76, in _loadFile DB000: print [list(record) for record in f] DB000: File "/home/amery/{projects}/gnue/.cvsdevelbase/gnue/common/datasources/drivers/file/dbf.py", line 137, in __getattr__ DB000: raise ValueError, ('"%s": no such field !' % aname) DB000: ValueError: "__iter__": no such field ! should i add an exception on dbf.py to handle that field? no hmm can you svn up and try again? btw, i had to add 'import dbf' on _listFields and _loadFile to make it run no error but it doesn't do my print erm silly me createResultSet() is returning: mnemoc: please svn up and try again yes! now it works thanks a lot :) thanks for joining this late on a weekend :D late? weekend? what are you talking of? :-P :) i'm not used to see around saturday and sunday see _you_ around* 6pm here means midnight there, afaik *** jamest_ has left #gnuenterprise mnemoc: sat/sun depends on what else I am doing over the weekend and yes it's midnight here :) :) you save my neck anyway :) *** sjc has joined #gnuenterprise well I forgot to ask do you actually have a support contract with us? ;-) :( i'm helping you :) to have a better product :p i hope to be able to help you with code as far as i learn python mnemoc: I was j/k i know don't take me too serious :) OT: if i don't install wxpy24, what else than designer i wont be able to run? nothing (AFAICT) nice good night all *** reinhard has quit IRC gn8 reinhard *** kilo has quit IRC *** jcater has joined #gnuenterprise *** titopbs has joined #gnuenterprise *** docelic has joined #gnuenterprise *** sjc has quit IRC *** wt has quit IRC *** wendall911 has quit IRC if I want to assign a shell variable the literal value of '**' how do I keep it from expanding that value to mean all the files in the cwd? FOO='**' not work? I thought single quotes stopped it from expanding hmm yea, me too hmm let me try that but it doesn't no, I just tried :) yes, fails miserably I guess I dunno then damn I swore '' worked my world has collapsed kinda hard to use '**' in an --exclude with rdiff-backup in my shell script then *** titopbs has quit IRC chillywilly: A='**" *will* save literal ** in a variable.. you just need to use "$A" when referencing it to prevent expansion at that point s/"/'/ at the first A= how can i connect (from a GClientApp) to an appserver and use the classes as classes? thanks docelic hi lo 'howdy hey docelic: hmmm, this thing still chokes http://rafb.net/paste/results/YbCSs969.html ./run_backup: line 83: syntax error near unexpected token `echo' ./run_backup: line 83: ` echo "$i"' ah, oops nevermind found it ;) good ;-) hmmm, this thing is driving me batty *** docelic has quit IRC *** holycow has joined #gnuenterprise *** dcmwai has joined #gnuenterprise wassup my niggas? *** holycow has quit IRC *** lxf has joined #gnuenterprise *** lxf has quit IRC *** holycow has joined #gnuenterprise