i hate encoding problems :) setting use_unicde to false, is not a case I checked the code again. krizz_: google: mysql charset site:.gnuenterprise.org ? hi all hi dimas_ never mind, i'll give it some more try... it seems it's mysql configuration problem hello dimas, thanks for the google tip krizz_: can you try editing mysqldbdrv.py directly? to set use_unicode to false? And replace 'use_unicode': True} by 'charset':'yourcharset'} oh, i can do that give me a moment iso-8859-7 is the right form? or iso8859-7 the second krizz_: hello krizz_, np ouaou!! what a nice a traceback :D dimas_, np what? * siesel install mysql are you using 4.1 or 5.0 charset is an invalid keyword argument siesel, 4.1 krizz_: np=you are welcome and i'm glad to help :) if I can... of that :) thanks * dimas_ is trying to resist say "np" once again haha :) ok let's not spen any of your time with this, before i try it a little more i'll search in the irc.logs and I'll check my mysql configuration first siesel, where i can found the documentation of mysqldb driver, that u quoted me before for a further reading http://sourceforge.net/docman/?group_id=22307 http://dev.mysql.com/doc/refman/4.1/en/charset-connection.html ok i'll check all these first and if don't came across with something, i'll come back :) now i'll shoot question number 2 :) you also can try to set use_unicode to False in the code, then gnue takes over the encoding / decoding that's probably the easies solution i tried use_unicode to false too, but it comes with an error when the form tried to retrive data which error? UnicodeDecodeError: 'utf8' codec can't decode bytes in position 0-1: invalid data If you set the database encoding to the correct encoding it should work now try encoding=iso8859-7 i change the db encoding to greek (or i think i did ) but nothing new ALTER DATABASE db_name CHARACTER SET 'greek' COLLATE 'utf8-bin'; ALTER DATABASE db_name CHARACTER SET 'greek' COLLATE 'greek_bin'; did you add the encoding parameter to connection.conf ? and in which line was the UnicodeDecodeError? no i didn't... is it parsed? should i added in connections.conf (for mysql) ? yes, that parameter is parsed in DBSIG2/Connection.py krizz_: and what is defaultencoding in python for you? dimas_, really new in python, i don't know how to check or set this in python (just installed python packages from ubunu repository) siesel, wait a min to check all these together from python prompt do >>> import sys >>> sys.getdefaultencoding() 'koi8-r' gnue now should care about this but sometimes it still helps to know it is not 'ascii' in there ok siesel , use_encoding to false, connections.conf ( encoding iso8859-7) and db convertted to greek (iso-8859-7) db not necessary needed to be switched to greek ooaoo!!!! siesel !!! that really did work!!!! ok, then I will make use_unicode a parameter. currently it is not read from connection.conf oops again for dimas_ dimas_, python is set to ansi !!! siesel, after using encoding and use_unicode=false, the input fields, started working perfectly when inserting data in greek, too !!!! as it should be :) i'm really really happy now!!! :) so what about question 2 ? krizz_: the setting is hardcoded in something like /usr/lib/python/site.py and may be customized with sitecustomize module that was great dimas_, maybe i must continue reading the tutorials i printed about python in the weekend :) q2, is about gnue-designer i got it running in win with wx, but in my ubuntu it wont start it's probably a dependency problem which version are you running? ubuntu version krizz_: it's always good if you have time left for that :) breezy amd64 dimas_, I'm a student in university, so it's really easy to find time. I just have to choose the things I want to do :D siesel, let me quote you the error oh!! i use the svn version not the the packages from repository Sorry: I Still Don't Know How To Work On GTK/MAC Platforms... Please Download The Latest wxPython Version. if you use the newest svn build I know the error. i update a little before i come in here :D you have to use a newer wxwindows build. ver. 2.6.3 check todays log I didn't get it to run well myself. do u know how wxwindows are translated in ubuntu APT packages? yep. normaly it is build from source, but I would recommend to use alien to convert a rpm to a deb i'm really slappy with installing software from source. I never know where is the right place to install them, maybe that's because i'm really new to gnu/linux too as u can understand i can be a real pain in the as# to people, with my questions :D i'll find a way thought to install the new wxwindows :) maybe i'll try install from the dapper repositoy :D check http://www.wxpython.org/download.php#binaries and scroll down to alien I mean scroll down to Debian wxpython in dapper is too old too damn :) that's what i have to do ? Or you can build newer versions of wxPython for Debian stable yourself by using alien. For example, there is a set of instructions for using alien to make wxPython packages here. yes, you need to use "alien" piece of cake ;) libwxgtk2.4-python , 2.4 goes to wx or to gtk? dimas_, what where can i find sitecustomize module? you should create it yourself and put in PYTHONPATH ok, that's not a pice of cake, i have to read more about it :D ok thanks a lot guys for your time and help. all these will keep me busy for the weekend and that's a good thing can you test the fix for use_unicode? I will commit it in the next 10 min sure!!! :) but after that, you'll let me tell all my friends that i'm a beta tester in gnue project committed you have to add "unicode=false" to the connection.conf let me update and build ok after unicode=false, i add encoding, right? yep but the order doesn't matter i'm afraid, something is not working well dbname = dschool unicode = False encoding = iso8859-7 ok, I will hurry up to install mysql and test it again. probably the boolean parameter is not detected correctly but even when, i set the default value of use_unicode to false in the db driver it's not working now no need to hurry :) I'm just playing with gnue :D and try to make myself useful :) i'm a bad beta tester np krizz_ : fixed now. shall i try it? yes, would be nice :) oh! yes. u r god shall i check if when unicode=true makes the same problem as before? yep. ok it does the same i think it's all ok now great. *** krizz_ has quit IRC *** yure has joined #gnuenterprise *** spack has quit IRC *** reinhard has joined #gnuenterprise *** spack has joined #gnuenterprise the appserver webfrontend is now packaged as extension... http://www.gnuenterprise.org/~jan/gnue-webfrontend.html brb siesel: nice *** dino4k has joined #gnuenterprise *** derek has quit IRC *** dino4k has left #gnuenterprise :) btw. how can I insert a date into a forms date field ? (if the mask is %x) depends on locale, then (IIRC) %x is "date format as defined by the current locale" currently my locale is de_DE.UTF8, but a date like 1.1.2006 doesn't work what does "date +%x" give you on a shell? 04.03.2006 so you maybe must enter the leading zeroes? I try again ok, it works now. but it is very unconvenient as the check is done when you leave the field *** dimas_ has quit IRC yes, this is the format mask topic we are discussing for ages now... I just know that jamest started it long long long ago, but what then happened, i don't know anything about something else: there is a trigger in the address module which addes two dates but it loads mx.datetime for this, and crashes in my case Traceback (most recent call last): File "", line 19, in getnextmeeting File "/usr/lib/python2.4/site-packages/mx/DateTime/DateTime.py", line 610, in __radd__ raise TypeError,"can't add the two types" TypeError: can't add the two types ok, I will reload the database. *** dimas_ has joined #gnuenterprise I thought I changed that, didn't I? yes, you did. I just used the deb-package (last release) to build the database ah, ok And I didn't get the error all the time, because sometimes I uses gnue-appserver (old) and sometime gacvs did you have any ideas to improve the webfrontend? except making all fields work, and enable switching between blocks again? unfortunately I haven't even looked at it I seem to be working way too much lately (which you can tell by the fact that I'm sitting at the computer now, for example) :-) yeah, ... I guess its nice weather out there depends on your taste ;-) I'm happy to be able to code a bit, instead of making presentations and coordinate stuff :) seems like its raining in austria or probably not rain, but snow reminds me that I should go and shovel the snow off the garage entry before sabine returns with the car it's snowing bbl ok, if you find the time, give the xpi a try. I go to sleep now. *** siesel has quit IRC *** dimas_ has quit IRC *** dimas has joined #gnuenterprise *** sjc has joined #gnuenterprise *** kilo has joined #gnuenterprise *** big2rother has joined #gnuenterprise *** bigbrother has quit IRC *** sjc has quit IRC *** spack has quit IRC *** jcater has quit IRC *** Amorphous has quit IRC *** bigbrother` has quit IRC *** gaupe has quit IRC *** chillywilly has quit IRC *** SachaAway has quit IRC *** SachaAway has joined #gnuenterprise *** chillywilly has joined #gnuenterprise *** dimas has quit IRC *** reinhard has quit IRC *** jcater_ has quit IRC *** ncjp has quit IRC *** kilo has quit IRC *** bigbrother_ has quit IRC *** ajmitch has quit IRC *** gaupe has joined #gnuenterprise *** bigbrother has joined #gnuenterprise *** ncjp has joined #gnuenterprise *** jcater_ has joined #gnuenterprise *** reinhard has joined #gnuenterprise *** dimas has joined #gnuenterprise *** gaupe has quit IRC *** reinhard has quit IRC *** jcater_ has quit IRC *** dimas has quit IRC *** ncjp has quit IRC *** ajmitch has joined #gnuenterprise *** bigbrother has joined #gnuenterprise *** niven.freenode.net sets mode: +ns *** bigbrother` has joined #gnuenterprise *** ajmitch has joined #gnuenterprise *** yure has quit IRC *** kilo has quit IRC *** jcater has joined #gnuenterprise *** dimas has joined #gnuenterprise *** sjc has quit IRC *** derek has joined #gnuenterprise *** derek has quit IRC *** derek has joined #gnuenterprise