*** johannesV has joined #gnuenterprise *** btami has joined #gnuenterprise *** sjc has joined #gnuenterprise *** reinhard has joined #gnuenterprise *** dimas_ has joined #gnuenterprise *** dimas has quit IRC *** kilo has joined #gnuenterprise good morning *** reinhard has quit IRC *** dimas has joined #gnuenterprise *** dimas_ has quit IRC *** reinhard has joined #gnuenterprise reinhard/johannesV: do you feel like it is the best time to debug a little bit? things like ProtocolError... and such protocolError sounds much like xmlrpc and/or python version mismatch (at first sight) it only happens if i define a filter looking at the message log i found something like self._filters = self._sm.getFilters (self.parameters.get ('_language', 'C')) should i have a gld that defines things for language "C"? in my exports i have LANG="hu_HU" and in the gld too C is the fallback if the current language is not found and in any case this shouldn't result in a protocol error Traceback (most recent call last): File "/home/gabor/SVN/gnue/gnue-forms/scripts/gnue-forms", line 34, in ? client.run () File "/home/gabor/SVN/gnue/.cvsdevelbase/gnue/forms/GFClient.py", line 172, in run instance.activate () File "/home/gabor/SVN/gnue/.cvsdevelbase/gnue/forms/GFInstance.py", line 298, in activate formObject.phaseInit () File "/home/gabor/SVN/gnue/.cvsdevelbase/gnue/common/definitions/GObjects.py", line 119, in phaseInit protocol error can also occur on some encoding-probs self._phaseInit(phase) File "/home/gabor/SVN/gnue/.cvsdevelbase/gnue/common/definitions/GObjects.py", line 146, in _phaseInit initter(phase) File "/home/gabor/SVN/gnue/.cvsdevelbase/gnue/common/definitions/GObjects.py", line 139, in _phaseInit inits[phase]() File "/home/gabor/SVN/gnue/.cvsdevelbase/gnue/common/datasources/GDataSource.py", line 399, in primaryInit self.connect() File "/home/gabor/SVN/gnue/.cvsdevelbase/gnue/common/datasources/GDataSource.py", line 319, in connect self._connections.requestConnection(self._dataObject) File "/home/gabor/SVN/gnue/.cvsdevelbase/gnue/common/datasources/GConnections.py", line 330, in requestConnection self.loginToConnection(dataObject._connection) File "/home/gabor/SVN/gnue/.cvsdevelbase/gnue/common/datasources/GConnections.py", line 394, in loginToConnection checkFields = connection.getLoginFields () File "/home/gabor/SVN/gnue/.cvsdevelbase/gnue/common/datasources/drivers/appserver/appserver/Connection.py", line 78, in getLoginFields self._filters = self._sm.getFilters (self.parameters.get ('_language', 'C')) File "/home/gabor/SVN/gnue/.cvsdevelbase/gnue/common/rpc/drivers/Base.py", line 232, in __call__ return self._adapter._runMethod (self._methodname, *args, **params) File "/home/gabor/SVN/gnue/.cvsdevelbase/gnue/common/rpc/drivers/xmlrpc/pw_xmlrpc/ClientAdapter.py", line 95, in _runMethod result = to_call (*__args, **params) File "/usr/lib/python2.3/xmlrpclib.py", line 1029, in __call__ return self.__send(self.__name, args) File "/usr/lib/python2.3/xmlrpclib.py", line 1316, in __request verbose=self.__verbose File "/usr/lib/python2.3/xmlrpclib.py", line 1070, in request headers ProtocolError: that is the whole log reinhard, using -condition seems to work fine :) any thoughts? what can get wrong? i've just followed johannesV's instructions on defining a filter hmmm at the line self._sm.getFilters... I would be curious what self.parameters.get ('_language', 'C') yields *** ncjp has joined #gnuenterprise *** kilo_ has joined #gnuenterprise *** kilo has quit IRC *** ncjp_ has quit IRC it yields hu_HU hmmm maybe in getFilters an exception is raised with 8bit strings or so ??? could you test whether getFilters server side raises an exceptoion and if not, what result it yields? how shuould i check that? in appserver source, getFilter method do something like try: except: print "yay, got an exception" print result return result (exchanging the "return" in the original code with a "result =") there would even be a function to print the exception on server side but I don't remember exactly (would be a python standard function) hmm, no exception occurs aha so i suspect the result of the function is a string instead of unicode result gets value like this result.append (((classdef.fullName, classLabel), labels, master, data)) in fact i put a print 'aaaaa' at the beginning of the function getFilter. and it does not show either oh so i guess it doesnt get called just to make sure: you restart appserver after changes, and you look at *appserver* terminal? yes yes weird really weird *sigh* must run now, will be away for ~24 hours I hope johannesV will be able to help you after lunch) -24??? you will get back yesterday? 8-))) anyway, thx sorry ~24 not -24 circa 24 hours :) l8r all bye *** reinhard has left #gnuenterprise *** sjc has quit IRC *** btami has quit IRC kilo_, i've tried using filters with locale set to hu_HU it's working fine, so there must be something else we've to find out hmmm. where should we start *** Morphous has joined #gnuenterprise *** Amorphous has quit IRC *** Morphous has quit IRC *** Amorphous has joined #gnuenterprise ok can you give me short picture about the filters you've defined ? sooorrry, got to run now maybe tomorrow ok maybe you can send me the gcd's and gld's via mail so i can have a look at it till tomorrow you want to read hungarian names again... *** Amorphous has quit IRC yeah :) in fact i need only those having the "filter" attribute and the filter-classes (with gld) ok, will send it in the evening ok thx. bye bye *** kilo_ has quit IRC *** dimas has quit IRC *** Amorphous has joined #gnuenterprise *** tiredbonds has joined #gnuenterprise *** Amorphous has quit IRC does anyone here know if signals are available on win* ? i mean, is it possible to catch a SIGHUP on win* by a python script ? *** jamest has joined #gnuenterprise jamest, do you know a mechanism like 'sending a SIGHUP to a running process' which will work on win* ? i do not know of anything like that hmm, so do i so to reload the appserver's configuration and class-repository on win* the user has to shut down and restart the server-process while users on a posix-system can just send a HUP signal :) the fix is obvious then! install a real OS! * jamest runs yeah, it's not me who runs a win* box :) anyway, i think your fix is really the only one :) aren't signals part of posix though? and doesn't windows have a posix layer? well, i've imported signal on my win2k notebook and printed it's dir to see which signals it supports and, well, it lacks SIGHUP *** mmealling has quit IRC *** johannesV_ has joined #gnuenterprise *** jcater has joined #gnuenterprise *** Amorphous has joined #gnuenterprise *** johannesV has quit IRC *** titopbs has joined #gnuenterprise *** chillywilly has quit IRC *** chillywilly has joined #gnuenterprise *** titopbs has quit IRC *** kilo has joined #gnuenterprise *** chillywilly has quit IRC *** chillywilly has joined #gnuenterprise *** jamest has left #gnuenterprise *** mnemoc_ has joined #gnuenterprise *** mnemoc has quit IRC *** titopbs has joined #gnuenterprise *** jamest has joined #gnuenterprise *** dcmwai has quit IRC *** psu has joined #gnuenterprise hi jamest, Johannes_V consesnus from a quick google is that SIGHUP on win32 is not possible, in python or otherwise :( http://www.ravenbrook.com/project/p4dti/issue/job000046/ may be relevant or indeed any of the results I got from googling for "python windows sighup" * psu wonders if the equivalent for win32 should be sigh-up as in, you sigh (with relief? frustration?) when it's up ;-) lol *** yangoon has joined #gnuenterprise anyway, I'd better go and get checked in for my flight * psu loves airport wifi bbl *** psu has quit IRC *** sjc has joined #gnuenterprise *** psu has joined #gnuenterprise kilo, are you there ? i've built the db using your gcds and glds starting right away it looks fine at least i get prompted with a login-dialog giving me a single field "Nev:" kilo: it is working fine here, and i am using locale hu_HU i did the following: in schema directory: gcdcvs *.gcd; gldcvs *.gld then i started appserver and added some instances to the filter class CEG_Ceg using gfcvs appserver://appserver/form/CEG_Ceg after restarting appserver (since we've added new filter-instances) i called the form szerzodo.gfd and using different filter-values (specified by Nev) works ok maybe we can debug this tomorrow then *** johannesV_ has quit IRC *** SachaS has joined #gnuenterprise *** psu has quit IRC *** titopbs has quit IRC *** yangoon has left #gnuenterprise *** SachaS_ has joined #gnuenterprise *** SachaS has quit IRC *** holycow has joined #gnuenterprise *** holycow has quit IRC *** holycow has joined #gnuenterprise *** SachaS_ has quit IRC *** titopbs has joined #gnuenterprise *** kilo has quit IRC *** agile has quit IRC *** ccfiel has joined #gnuenterprise *** jamest has left #gnuenterprise *** jcater has quit IRC *** siesel has joined #gnuenterprise *** siesel has quit IRC *** ccfiel has quit IRC *** titopbs has quit IRC *** holycow has quit IRC *** dcmwai has joined #gnuenterprise *** titopbs has joined #gnuenterprise *** wendall911 has joined #gnuenterprise *** sjc has quit IRC *** wendall911 has quit IRC *** tiredbonds has quit IRC *** dcmwai has quit IRC *** Amorphous has quit IRC *** dimas has joined #gnuenterprise