*** reinhard has joined #gnuenterprise *** johannesV has joined #gnuenterprise *** SachaS has joined #gnuenterprise hi everyone back in Liechtenstein :) *** wayneg has quit IRC wb SachaS :) thanks reinhard :) *** wayneg has joined #gnuenterprise *** btami has joined #gnuenterprise *** dimas has quit IRC *** dimas has joined #gnuenterprise *** kilo has joined #gnuenterprise *** johannesV has quit IRC *** johannesV has joined #gnuenterprise *** Morphous has joined #gnuenterprise *** Amorphous has quit IRC *** johannesV_ has joined #gnuenterprise *** johannesV has quit IRC *** dimas_ has joined #gnuenterprise *** dimas has quit IRC *** sjc has joined #gnuenterprise *** dcmwai has quit IRC *** sjc has quit IRC *** dneighbo has joined #gnuenterprise *** dneighbo_ has quit IRC *** ajmitch has quit IRC *** SachaS has quit IRC *** ajmitch has joined #gnuenterprise *** dneighbo has quit IRC *** dneighbo has joined #gnuenterprise *** reinhard has quit IRC *** dsmith has joined #gnuenterprise People: quick question Am I right in thinking that the result of a GNUe project is a stand-alone executable? Not quite stand-alone - I expect it still needs Python of course . . *** phil__ has quit IRC *** phil has joined #gnuenterprise *** jamest has joined #gnuenterprise phil__:you can get the answare if you download .exe files and install them 1. gnue-dependancies 2. common *** reinhard has joined #gnuenterprise *** kilo has quit IRC 3. forms,designer, etc-etc 1. = Gnue-Runtime-Environment-xxx.exe btami, I am using RH9 - I have found how to use the command line with gnue-forms now I just need to work out how to create a new form myself with the designer . . hi phil sorry, for misunderstanding :) gnue on linux has no binary, but python scripts and modules only and many xml files like gfd/grd/gsd etc phil: for first time i'm suggesting to try wizards in designer file/new/from wizard... *** btami has quit IRC *** reinhard_ has joined #gnuenterprise *** reinhard has quit IRC phil step one is to get your connections.conf file configured for your database then as btami mentioned... run the wizard to create a new form *** jbailey has joined #gnuenterprise *** dcmwai has joined #gnuenterprise anone know of a good command line CD ripper? I'd like to rip some songs off a CD in my machine via ssh ;)\ I know one, stfu perhaps you've heard of it :) * chillywi1ly prepares nickr a shit sandwhich chillywi1ly: cdparanoia? *** sjc has joined #gnuenterprise cdparanoia is good Especially on damaged cds derek, made a bit of progress with the wizard but could not get a table field into a block widget *** johannesV__ has joined #gnuenterprise *** johannesV_ has quit IRC *** dhill1 has joined #gnuenterprise *** slegg has joined #gnuenterprise *** slegg has left #gnuenterprise I'm playing with intro.gfd, trying to make it work. With the default locale, string.lowercase returns abcdefghijklmnopqrstuvwxyzܣPaGpSstFTOd8fen===()vn and the program barfs. If I break the locale setting, the program works. How do I correctly set the locale for a US windows user? dhill1: i don't know there are a couple of people in here now that deal w/ the locale stuff but they'll probably be a little spotty they do seem to be a little shady, don't they oh, you said "spotty" scratch that.... I don't care if they have stripes if they can help :-) jamest/jcater it appears what dhill1 is running into is that win32 (and likely debian from what i hear) doesnt like the locales.setLocale(LC_ALL,'') in i18n.py it sets it just fine, but makes for some "weird" strings if you edit i18n.py to be something like Yes, exactly. If I replace the '' with 'junk', the program works. locales.setLocal(LC_ALL,'en_US') in i18n.py the program no longer barfs (but there some oddities in the setting in any event editing i18n.py seems like a bad solution if we can get someone that knows i18n better to explain a few things maybe the right answer is to add to gnue.conf local = 'somelocale' and that i18n.py reads in that value regicide? of course a quick fix to the intro.gfd is change out string.uppercase adn string.lowercase with a constant string containing the same value (for use enlish speaking folks) derek: we can add a gone.conf var, but i know nothing about i18n and localization er gnue.conf *** jamest has quit IRC *** dimas_ has quit IRC *** jamest has joined #gnuenterprise *** dcmwai has quit IRC *** johannesV__ has quit IRC for the logs there is a bug in intro.gfd intro.gfd does not work with any non-us locale the bug in my opinion does not appear to be in intro.gfd of course if you edit i18n.py to not properly init locales it appears to be in how we deal with locales the bug won't apply how do you fix the bug last time i looked print string.uppercase was VALID doing print string.uppercase on windows prints grossness i do not see how intro.gfd brok string.uppercase can you tell me how to make string.uppercase produce the proper result with the properly inited locale? cause currently it fails miserably i am not understanding how making a form with a trigger that only has import string print string.uppercase is a form with a bug print string.uppercase works not on win32 on default install what doesn't work is a comparsion between an unicode string and string.uppercase no i disagree do a print string.uppercase on win2000 default config it prints ABCD.... then a crap load of stray data the value of string.uppercase is bad when you do in pure python or when you do in a form? doing word[p-1].encode('ascii','replace') doesnt work it errors out because the value of string.lowercase in teh compare has non ascii characters only when in a form pure python print string.lowercase is normal if you do it in a form it attachs non ascii characters after the z if you set your local in i18n.py to say en_US ~$ python it no longer writes those characters Python 2.1.3 (#1, Sep 7 2002, 15:29:56) [GCC 2.95.4 20011002 (Debian prerelease)] on linux2 Type "copyright", "credits" or "license" for more information. >>> import string >>> print string.lowercase abcdefghijklmnopqrstuvwxyz >>> so it's a matter of definition what is "normal" :) >>> import string >>> print string.lowercase abcdefghijklmnopqrstuvwxyz >>> from my python 2.3.3 sure however if i run that same statement in a trigger in forms it prints the crap after the z because you're running on us or C locale i guess im not understanding how this is a bug in intro.gfd yes intro.gfd needs to be chagned to do the .encode('ascii','replace') but my point is that i18n.py is not initing right on win32 it might be that there is a bug in intro.gfd *and* in i18n initializing for win32 as even if i fix the bug in intro.gfd the forms still dies because the value in string.lowercase is bogus yes i agree with that statement because intro.gfd also fails for me if i run from debian i think we probably need to add in gnue.conf ability to set your locale then let i18n.py read that value from gnue.conf * derek admits im clueless on this i18n stuff i have no idea if there is a way under windows to find out the current locale my point is we should get it from the gnue.conf or do check os locale (if blank) check gnue.conf or do or if gnue.conf is blank use system otehrwise use gnue.conf as i saw comment in the code for i18n.py that it doesnt work for MAC either i think i will beg kilo or btami to test for me *** reinhard has quit IRC *** reinhard has joined #gnuenterprise *** reinhard_ has joined #gnuenterprise *** reinhard has quit IRC *** btami has joined #gnuenterprise derek: i can't reproduce your bug with intro.gfd i have a localised (hungarian) XP, and intro.gfd is working fine here in python command line i get this: c:\python23\scripts>python Python 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import locale >>> locale.setlocale(locale.LC_ALL,'') 'Hungarian_Hungary.1250' >>> locale.getdefaultlocale() ('hu_HU', 'cp1250') >>> import string >>> print string.uppercase ABCDEFGHIJKLMNOPQRSTUVWXYZ-L+T++L-T=+---- >>> print string.lowercase abcdefghijklmnopqrstuvwxyzܝ-- >>> but I think the issue is if you aren't using a localized linux *** kilo has joined #gnuenterprise you are screwed hmm *** dsmith has quit IRC locale.setlocale(locale.LC_ALL, '') This sets the locale for all categories to the user's default setting (typically specified in the LANG environment variable). from Python help... i'm in trouble, koz i can't reproduce the bug, and never seen any lines from bugreport hi so i don't know what bug derek hunting for hi kile kilo I'm Dave. I work with Derek. He's away from his desk. hi dhill1 dhill1: i'm sorry how do you cope? :-) btami: my lawyer had great difficulties understanding definitions like 'record', 'FAT', 'partition'... the old bill affair? aye If I remove the exception handling in info.gfd, I get the following output: Runtime Error occured: Traceback (most recent call last): File "", line 27, in __main___NAMED_PigLatin UnicodeDecodeError: 'ascii' codec can't decode byte 0x8a in position 26: ordinal not in range(128) you mean intro.gfd? what os and locale settings you use? yes, intro windows 2000 ok, will start it now then Runtime Error occured: Traceback (most recent call last): File "", line 27, in __main___NAMED_PigLatin UnicodeDecodeError: 'ascii' codec can't decode byte 0x8a in position 26: ordinal *** reinhard has joined #gnuenterprise not in range(128) oops... en_US, cp1252 *** reinhard has quit IRC is that what you're looking for? yes, this is the os default? not sure how I can tell... I think so, I didn't change it. it is what python reports as locale.getdefaultlocale() how do you type 0x8a? it's not a letter from us alphabet (I'm new to python and new to GNUe, so I may act stupid) I don't know how to type the 0x8a, but if I understand the message properly, it's the a with the karet on top. i dont think it is os default i18n.py seems to overide the default with '' no unless '' means use the default (which it may) yes local.setlocale(locale.LC_ALL,'') returns 'English_United States.1252' i think the default for us is ascii not 1252, but maybe i'm wrong have you got any environ variables set like LC_ALL LANGUAGE LANG i think the default english user cant type 0x8a if you can, you have to set textencoding=cp1252 in gnue.conf [common] section LC_ALL=EN_US That's the only one I see in the environment. can you try the textEncoding=cp1252 in gnue.conf ? same results hmm, cp 1252 is for Western Europe, not for us "Hmmm" is exactly what I thought :-) and they use characters above 128, but us not IMO can you remove your LC_ALL , and try again without textEncoding=xxxx *** SachaS has joined #gnuenterprise what python gets for locale.setlocale(locale.LC_ALL,'') ? btw, are your 2000 is us version, not a localised? my win2k is the us version, and locale.setlocale(locale.LC_ALL,'') returns 'English_United States.1252' I'm not sure how to get LC_ALL out of my environment. controlpanel/system/special/environ variables/remove night all *** SachaS has left #gnuenterprise Same results. A line of debug code in i18n tells me I'm still using cp1252 and I still get the error. back now, kids requested their timeshare... using US win2k, regional setting is english/US. getdefaultlocale returns enUS and cp1250 en_US wow i'v just changed my locale settings to en_US with control panel, etc and get what dhill1 ! That's good, yes? i mean cp1252 it might not be good, but its consistent xp->1252, 2k->1250 ? Good in the sense that somebody outside our building might be able to duplicate the error? i think windows is 5150 personally yes no i got no errors just en_US with cp1252 and can type in intro.gfd huh Did you take the exception handling out of intro.gfd? ok, got your error but form is working anyhow, i can't imagine how can you type 0x8a i can, coz i have two langs for keyboard hu and us I never typed it. I'm guessing what it looks like based on string.lowercase ah, yes, sorry i get exactly the same message as you And we could not fix it by adding encode('ascii','replace') koz you use cp1252 try encode('cp1252','replace') i think finally i understand the problem If I use 1252 instead of ascii I get Runtime Error occured: Traceback (most recent call last): File "", line 21, in __main___NAMED_PigLatin UnicodeDecodeError: 'ascii' codec can't decode byte 0x83 in position 26: ordinal not in range(128) the trigger in intro.gfd doesnt use the standard gnue way for encode Is that better or worse? :-) try s = SampleBlock.NameEntry.get().encode('cp1252') (the correct fix is using textEncoding) so is fix here going to be setting a encoding = 'cp1252' in gnue.conf but it needs more work... yes then use .encode(gnueConfValue) or whatever and fix intro.gfd yes does gnue.conf currently have encoding options * derek thinks i saw them in there if so this might be fixable today no w/o much work except fixing intro.gfd to use said gnue.conf value in sample.gnue.conf we have [common]# Encoding for XML headers and for fonts in forms.#textEncoding = iso8859-1#textEncoding = utf-8 *** reinhard has joined #gnuenterprise Okay, it seems to have worked for me with the s=SampleBlock.NameEntry.get().encode('cp1252') do the gnue.conf variables get loaded into a global space? i.e. is there some easy way to retrieve a value of a gnue.conf setting? or must one import some modules and what not first from gnue.common.apps import GConfig somestring.encode(gConfig('textEncoding'),'replace') or in this case SB.NE.get().encode(gConfig('textEncoding')) er s = SB.NE.get().encode(gConfig('textEncoding')) good night all *** btami has quit IRC bah anybody here use xchat with gnome 2? what font do you use to make it look least ugly? lol i don't think xchat supports non ugly fonts reinhard: There's a new gnome-xchat coming out. reinhard: It was announced in footnotes the other day. would be cool ok i think intro.gfd is fixed now * derek stresses the "i think" reinhard: wait, i'll check it hehehe, i use Terminal font 8-)) kilo do you have time to help get a svn client working on windows that HAS to go through port 22 i.e. using plink or someother foreign magic? haven't tried ssh access yet, btami has. as i have no commit possibioity... *** jamest has left #gnuenterprise *** jbailey has quit IRC so cant help much with that is btami gone for night or do you know if he plans on returning? *** reinhard_ has joined #gnuenterprise *** reinhard_ has quit IRC it is past midnight here, so i think he is asleep *** reinhard has quit IRC i think i have it working but dont know how to get anon svn access... jcater.... jamest? *** kilo has quit IRC *** sjc has quit IRC *** dhill1 has quit IRC *** phil has quit IRC *** Vee has quit IRC *** dneighbo has quit IRC *** wayneg has quit IRC *** havoc has quit IRC *** Stoke has quit IRC *** mdean has quit IRC *** nickr has quit IRC *** phil has joined #gnuenterprise *** Stoke has joined #GnuEnterprise *** dneighbo has joined #gnuenterprise *** wayneg has joined #gnuenterprise *** Vee has joined #gnuenterprise *** nickr has joined #gnuenterprise *** mdean has joined #gnuenterprise *** havoc has joined #gnuenterprise *** jamest has joined #gnuenterprise *** jbailey has joined #gnuenterprise *** jamest has quit IRC *** jcater has quit IRC *** jbailey has quit IRC