*** dcmwai has quit IRC *** dimas has joined #gnuenterprise *** lxf has joined #gnuenterprise *** sjc has joined #gnuenterprise *** lxf has quit IRC *** kilo has joined #gnuenterprise *** reinhard has joined #gnuenterprise hi reinhard :) good morning hi kilo hi dimas anyone using mysql? not me good morning all kilo: I don't think anybody is using mysql in production johannes has installed it and does some tests from time to time what's necessary to maintain the driver a chap wrote me in private, he is using mysql on winxp and asked for a decent connection.conf entry should be the usual provider/dbname/host/port reinhard: my problem is disappeared :) hmm, thx reinhard, will tell him then if count my dirty hands as main cause, it still exist dimas: and do you have any idea what made it go away? strange i can't explain at what point it could get wrong, when today i broke it completely (it did not work even without filters) i updated ServerAdapter and xmlrpclib.py thats all broken ones saved hmm *very* strang strange yes, because xmlrpclib was fresh as i switched to python2.3 I'd again say that you had local modifications in the xmlrpc part of common, but then actually you tried with a completely fresh copy of appserver and common yesterday and i freshed ServerAdapter yesterday after some rest i will into them will look hi hello ajmitch *** mnemoc has quit IRC *** btami has joined #gnuenterprise *** dimas has quit IRC *** dimas has joined #gnuenterprise *** dimas has quit IRC *** dimas has joined #gnuenterprise *** sjc has quit IRC *** holycow has joined #gnuenterprise *** mnemoc has joined #gnuenterprise *** dere1 has quit IRC *** btami has quit IRC reinhard: packages in ubuntu hoary are in sync with sid now ajmitch: great! ajmitch: isn't there some kind of freeze for hoary? *** holycow has quit IRC *** tiredbones has joined #gnuenterprise *** kilo has quit IRC reinhard: you here? yes can you tell me a little about languages in app server if i initialized with only *-C.gld what would i get? then you will only see English no matter what language you use for generated forms could it somehow affect all foms? now all new data is eaten old data displayed properly *** jamest has joined #gnuenterprise old/new - before/after filter initialization (.gld loading) not sure I understand you correctly you have a class that previously had no filter? and added a filter later? yes hmmm is that possible at all? i added class that required filter later ah so you didn't add a filter to an existing class hm but you added a new class that had a filter? yep and you don't see data in that new class? other classes with data existed before or you are missing data in the old class? *** jamest has quit IRC no, old classes is good ok so new class doesn't display data you entered? is the data in the db backend? can you check whether the filter column is filled out correctly? if I insert new data in any classes it commits without error but do not displayed later ok data should go into postgres reinhard: i have gl-ru.gld, btw so there must be a difference between the rows inserted before and those inserted afterwards in the db looking into it *** jamest has joined #gnuenterprise reinhard: rows were commited, when i query them i see proper number of rows queried but fields empty if dump to gsd to this rows only gnue_ stamps fields exist empty fields in db? second time i inserted ascii data over previous russian in the db it is good could paste here just a sec, brb now i loaded gl-ru.gld, restarted app server - all forms does not work DB009: 0:05:01.619 [ServerAdapter:464] Unexpected Exception in XML-RPC code: exceptions.UnicodeDecodeError:'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128) DB009: 0:05:01.631 [ServerAdapter:418] exodus.vbc.elcom.ru - - [11/Mar/2005 17:37:47] "POST / HTTP/1.0" 500 - *** jcater has joined #gnuenterprise dimas: this seems to happen in ServerAdapter between line 441 and 458 you could remove the try - except block around that to get the complete traceback but actually it looks as if you use an old version of that file reinhard: i would better not change ServerAdapter today joke old like yesterdays because for me, this message is on debug level 1?? what does the copyright line of ServerAdapter say in your version? there is no version line there copyright which copyright year 1->9 is my changes, sorry ah, ok Copyright 2001-2005 ok, then it's ok :) just thought you have an old copy of something there ServerAdapter from rev 7007 is ok, yes seems just how languages behave i have initialized something with *-C.gld now i added some *-ru.gld what i have with languages now? the gld's should only affect the look of the generated forms and the messages displayed not the data itself not in any way *** dcmwai has joined #gnuenterprise *** dcmwai has quit IRC *** dcmwai has joined #gnuenterprise jcater: if you have a minute, I have a problem understanding a feature of datasources it's the _primaryIdField and _primaryIdFormat stuff oracle seems to be the only driver using it *** wendall911 has joined #gnuenterprise *** btami has joined #gnuenterprise jcater: ? *** SachaS has joined #gnuenterprise jcater, jamest, all: just committing a *quite* intrusive change in dbdrivers, please test before using it in production. especially stuff dealing with primary key generation and handling test? erm sorry I mean "please test by using it in production" ;-) ooooh ok, np other question we have a whole bunch of dbdrivers that have been unmaintained and not functional for years now db2, gadfly, informix, ingres, ldap, odbc, sqlrelay, sybase they haven't even followed the last few structural changes I wonder if we should remove them from svn, move them to gnue-contrib, or whatever probably they confuse me in my code cleanups as the seem to "use" stuff that's no longer supported or not even available any more and when I grep for a function or a variable, I get buttloads of mathces from these drivers i'd say ditch them what would you think? svn remove? (can be recovered anyway through svn if somebody wants to revive them) i think that's fine ok, thanks *** btami has quit IRC *** johannesV has joined #gnuenterprise reinhard, glds also affect filters: they determine the labels an props to be queried in login dialog btw i had serious troubles with GParser and friends regarding garbage collection today this is because appserver processes xml files in the same process multiple times ... (gcd, gld) so the leaking parser and obj.trees accumulated *** btami has joined #gnuenterprise bbl *** mnemoc has quit IRC *** tiredbones has quit IRC back reinhard, you still there ? yes i've added a method 'breakReferences ()' to ParserObj in GParserHelpers.py this method clears the ref to the _parent and also clears the _children and _inits sequences ok doing this it allows xml-object trees to get freed properly but i somehow don't like the name 'breakReferences' since it does a bit more what about free () ? anyway, it'd be better to use weakref.ref () for _parent, as well as all children but this would imply a massive change to the code and i really don't like to do that now what's weakref? yes, free () sounds good to me (as i've thought of this name too) (kudos to good old delphi :)) that's a python module designed for creating chaches and mappings well, I'd vote for no more massive changes it'd be good if you could commit over the weekend as on monday a lot of customer work will wait for you, so you might be away from gnue for a week or two it creates a weak reference to an object, which does not interfere with the garbage colletion ok, so i'll stick with my solution right now, as it seems to have no more leaks (atm) and maybe i can commit it this evening or at least tomorrow ... excellent i was quite shocked after i've found out about those 6000+ leakin' objects after a sighup to appserver ... and every additional sighup added another 6000+ (and these are numbers with a quite small repository ~600 props) do you actually follow my changes in common? quite some restructuring yes, i'm reading all commit-mails .. i felt good while reading it ... so just go on in that manner :) :) let's hope jamest and jcater feel the same :) lol btw, i've added support of typedefs like "number(5,2)" to gnue-schema (in my working copy) ok, i'm off for another hour *** sjc has joined #gnuenterprise *** Egyptian[Home] has joined #gnuenterprise reinhard, after updating svn i get a traceback on starting appserver shall i paste ? yep please DB000: resultSet= self._dataObject.createResultSet(conditions,readOnly,sql=sql) DB000: File "/home/johannes/prj/gnue/.cvsdevelbase/gnue/common/datasources/drivers/Base/DataObject.py", line 90, in createResultSet DB000: readOnly=readOnly, masterRecordSet=masterRecordSet, sql=sql) DB000: File "/home/johannes/prj/gnue/.cvsdevelbase/gnue/common/datasources/drivers/DBSIG2/DataObject.py", line 190, in _createResultSet DB000: query = self._buildQuery(conditions, additionalSQL = sql) DB000: File "/home/johannes/prj/gnue/.cvsdevelbase/gnue/common/datasources/drivers/DBSIG2/DataObject.py", line 317, in _buildQuery DB000: whereClause = self._conditionToSQL(conditions) DB000: File "/home/johannes/prj/gnue/.cvsdevelbase/gnue/common/datasources/drivers/DBSIG2/DataObject.py", line 235, in _conditionToSQL DB000: where = " WHERE (%s)" % (self.__conditionToSQL (cond._children[0])) DB000: File "/home/johannes/prj/gnue/.cvsdevelbase/gnue/common/datasources/drivers/DBSIG2/DataObject.py", line 266, in __conditionToSQL DB000: result.append(self.__conditionToSQL(element._children[i])) DB000: File "/home/johannes/prj/gnue/.cvsdevelbase/gnue/common/datasources/drivers/DBSIG2/DataObject.py", line 278, in __conditionToSQL DB000: raise GConditions.ConditionError, tmsg DB000: ConditionError: Bedingungselement 'or' erwartet mindestens 2 Argumente, hat aber nur 0 (it's only the tail) hmm... doens't look like something related to my changes at all hmm, maybe it's not your fault ... i'll try something it's not my fault in any case - it's derek's fault but that's a completely different topic :) ah, right, i forgot about derek ... *lol* ok, got it ... sorry for blaming you np hmm, found another leak :/ this looks like a never-ending story ... seems as if it's something with conditions again ... but i need some further tests ... damn, this new repository rocks ... starting appserver is a matter of a second :) (including complete reload of gcd/gld) johannesV: you tell this just to tease us, right? so we wait eargerly for your commit ;-) *lol* ... yeah, exactly ... but i think i'll commit it, and fix memory leaks afterwards ... I think you can do that hm, no i'll change readgcd/gld a bit first ... but this isn't too complicated ok, the leak comes in on adding a *new* record using sample.gfd it's 41 objects, all of them are dealing with GCondition instances ... so maybe there's still a ref-cycle in there ... think i'll change the station now bbl *** johannesV has quit IRC reinhard: the interbase dbdriver has a problem c:\python23\scripts>C:\python23\python.exe C:\python23\scripts\gnue-appserver Szolgáltatások exportja ezen keresztül: xmlrpc (port 8765)... Osztßlyk÷nyvtßr ˙jrat÷ltÚse... gnue-appserver: Nem sikerŘlt a firebird plugin bet÷ltÚse Az alßbbi plugin-eknÚl t÷rtÚnt hiba: * gnue.common.datasources.drivers.interbase.interbase: NameError: name 'kinterbasedb' is not defined btami: let me fix should be fixed thanks for reporting np another one: after F8,F9, then pressing "Show record" button in appserver's sample.gfd File "c:\python23\Lib\site-packages\gnue\common\datasources\drivers\DBSIG2\Connection.py", line 269, in makecursor cursor.execute (s) File "C:\python23\Lib\site-packages\kinterbasdb\__init__.py", line 1582, in execute self.description = _k.execute(self._C_cursor, sql, params) ProgrammingError: (-804, 'isc_dsql_prepare: Dynamic SQL Error. SQL error code = -804. Function unknown. LOWER. ') is LOWER in SQL standard ? I thought so hmm I think this problem relates to case insensitive queries debug level 3 should now give you exact SQL statement output although I wonder what query is caused by the "show record" button DB003: 0:00:42.831 [c:\python23\Lib\site-packages\gnue\common\datasources\drivers\DBSIG2\Connection:260] DBSIG2 Statemen t: SELECT t0.gnue_text,t1.gnue_id,t0.gnue_id FROM gnue_message t0 LEFT JOIN gnue_module t1 ON t1.gnue_id = t0.gnue_modul e WHERE (((LOWER(t1.gnue_name) = 'address') AND (LOWER(t0.gnue_name) = 'nameis') AND (t0.gnue_language = 'hu_HU'))) DB003: 0:00:42.841 [c:\python23\Lib\site-packages\gnue\common\datasources\drivers\DBSIG2\Connection:261] DBSIG2 Paramete rs: None ah let me test something *** siesel has joined #gnuenterprise hi btami: yes, I get exactly the same statement, but it works for postgres there is no LOWER in interbase? hey siesel long time no see (like always) ;-) *** johannesV has joined #gnuenterprise :) back hi siesel hi btami, reinhard, johannes btami, lower is sql-standard reinhard: there is lower in udf library, but i'v never used i thought i've checked this for my firebird too the lower is used for loading messages i'll check my firebird again, just a sec btw, hi siesel :) hm, right ... there's no function lower it's in ib_udf what's ib_udf ? but i don't know how to use it an external lib shipped with interbase/firebird how can one use this lib ? this is the question :) ah, got it ... sing the isql utility, execute the ib_udf.sql script on your database: ./isql /path/to/yourdb/yourdb.gdb -i /opt/interbase/examples/ib_udf.sql but, how to use this through kinterbasedb ... hmm, no such file (or similair) in any deb-package ... so it looks like we have no support for 'lower' and 'upper' in interbase/firebird atm i think you can use any valid SQL statement with exec() in kinterbasdb this means i need another change of appserver btami, can you find out if it's possible to use some kind of 'lower' function with ib/firebird ? trying... bbl *** reinhard has quit IRC hi siesel johannesV: just did an execute() with DECLARE EXTERNAL FUNCTION lower CSTRING(255) RETURNS CSTRING(255) FREE_IT ENTRY_POINT 'IB_UDF_lower' MODULE_NAME 'ib_udf'; in about 4 weeks i am leaving bonn and it worked btami, ok, but you need that ib_udf library then ... without ; at the end sure hi SachaS haven't been close to Bonn yet. it's an official part of interbase/firebird were do you're leaving to? *** SachaS_ has joined #gnuenterprise siesel not much time left to meet hmm, the above code doesn't work for me ... johannesV: i have it in my UHU-Linux distro in /usr/lib/firebird/Udf/ib_udf.so what do you get with dpkg -L firebird-bla-bla ? /usr/lib/firebird2/UDF/fbudf.so so it's called fbudf there is 2 .so files, fbudf.so and ib_udf.so fbudf.so is a minor addition lower is in original ib_udf.so ah, ok so this must be in another package then ... anyhow, after adding lower to gnue.fdb i get this error Traceback (most recent call last): File "", line 8, in show File "c:\python23\Lib\site-packages\gnue\appserver\language\Session.py", line 389, in message raise MessageNotFoundError, self.qualify (messageName) MessageNotFoundError: 'address_nameis' üzenet nem található will try the code again (maybe i need to write it in a single line .... do you have sample-C.gld imported ? don't think so well, so you do not have that message defined, do you ? you can double-check if you do a 'select gnue_ name from gnue_message' ok, added it, and now it works the problem was python gnue-readgld --connection=gnue sample-*.gld in setup-cvs-db.bat it doesn't works, so i changed it to use sample-C.gld only sigh hmm, that's strange ... since sample-*.gld should work fine c:\python23\scripts>python gnue-readgld --connection=gnue sample-*.gld gnue-readgld: Nem lehet megnyitni a [Errno 2] No such file or directory: 'sample-*.gld' bemeneti fßjlt. ?! so your shell has a problem ... doesn't sample-*.gld get's replaced by the shell ... ? *** SachaS has quit IRC isit ok on any of your win32 box ? i haven't one up and running ... :) who's using win32 ? *lol* but i can try this tomorrow ... just my kids for playing AOE ok, have to go, bye *** btami has quit IRC off for today *** johannesV has quit IRC *** mnemoc has joined #gnuenterprise *** kilo has joined #gnuenterprise *** mnemoc has quit IRC *** reinhard has joined #gnuenterprise *** reinhar1 has joined #gnuenterprise *** reinhar1 has left #gnuenterprise *** reinhard has quit IRC *** reinhard has joined #gnuenterprise *** mnemoc has joined #gnuenterprise reinhard your still working? kinda i wish i had your stuamina reinhard is a bot *** jamest has left #gnuenterprise *** mnemoc has quit IRC who can stop reinhard? :) *** tiredbones has joined #gnuenterprise *** kilo has quit IRC *** jcater_ has joined #gnuenterprise *** jcater_ has quit IRC *** jcater has quit IRC *** mnemoc has joined #gnuenterprise * SachaS_ thinks reinhard and johannes are on steroids * SachaS_ wants some as well ;) night *** SachaS_ has quit IRC *** tiredbones has quit IRC night all *** reinhard has quit IRC *** sjc has quit IRC *** seb_ has joined #gnuenterprise hello.anybodu at home? *** sebastian has left #gnuenterprise *** kraut has joined #gnuenterprise anyone here? *** kraut has quit IRC *** dimas has quit IRC *** Nineth has joined #gnuenterprise *** Nineth has left #gnuenterprise *** ajmitch has quit IRC *** ajmitch has joined #gnuenterprise