*** btami has joined #gnuenterprise *** johannesV has joined #gnuenterprise good morning *** reinhard has joined #gnuenterprise good morning all good morning good morning good morning again ... :) *** kilo has joined #gnuenterprise good morning *** ajmitch_ has quit IRC *** johannesV has quit IRC *** johannesV has joined #gnuenterprise *** johannesV has quit IRC *** johannesV has joined #gnuenterprise reinhard: if i have a GCD file, with python code snippets scattered all around in procedures, how can i define global variables (constants) or globally usable exceptions? pass it via self.session._someSessionGlobal erm.. how? :) hm, well ... do we create a new session instance per call ? have to check ... ah, right, that won't work as the session is a new instance per call kilo, i fear you can't use globals in that contet erm context :( i woul dlike to set up exceptions usable in the whole module actually the plan would be to use abort() for exceptions in gcd files and is it still a plan? yes :) i see ;) thx I'm not sure if there is much use in specific exception classes, as the detail information about the exception won't make it very well to the front end, anyway so you would use abort() with a error text defined in the gld I think sample.gcd has an example for that with # of children yes found it and what does abort do exactly? raise an exception with the text given as parameter in a way that the current transaction is aborted and the text is displayed to the user i.e. if you call it in, say, OnValidate, it means that the validation fails and the commit isn't done off to lunch thx *** siesel has joined #gnuenterprise good evening *** yure has joined #gnuenterprise back reinhard: did you see lekma lately? !seen lekma @seen lekma kilo: lekma was last seen in # 5 days, 23 hours, 49 minutes, and 30 seconds ago saying: you mean explicitely close the session, don't you? kilo: lekma was last seen here 5 days, 23 hours, 50 minutes, and 37 seconds ago saying: you mean explicitely close the session, don't you? *** dimas has quit IRC hmm was this bug reported before? in zipcode sample, states form one edits a state name, saves it, then moves one by one downwards and after 10 steps the form crashes hmm maybe not 10, but 15 surely does it File "/home/tamas/svn/gnue/.cvsdevelbase/gnue/common/datasources/drivers/Base/ResultSet.py", line 830, in __cacheNextRecord row = self.__generator.next () File "/home/tamas/svn/gnue/.cvsdevelbase/gnue/common/datasources/drivers/DBSIG2/ResultSet.py", line 183, in _fetch_ rows = self.__cursor.fetchmany (cachesize) File "/usr/lib/python2.3/site-packages/kinterbasdb/__init__.py", line 1706, in fetchmany return self._fetchmany(size, self._fetch) File "/usr/lib/python2.3/site-packages/kinterbasdb/__init__.py", line 1664, in _fetchmany row = fetchMethod() File "/usr/lib/python2.3/site-packages/kinterbasdb/__init__.py", line 1632, in _fetch row = _k.fetch(self._C_cursor) ProgrammingError: (-504, 'fetch.isc_dsql_fetch: Dynamic SQL Error. SQL error code = -504. Cursor unknown. ') can't remember that I've seen this error before and I can't reproduce (with postgres) * btami hopes johannesV can reproduce with hes firebird install btw. it was reported by our employee using our inhouse contact app johannesV is at a customer at the moment but he will surely read the logs ok kilo: thx yw *** jamest has joined #gnuenterprise *** btami has quit IRC *** kilo has left #gnuenterprise *** derek has quit IRC *** derek has joined #gnuenterprise *** dimas has joined #gnuenterprise *** siesel has quit IRC *** jcater has joined #gnuenterprise *** klasstek has joined #gnuenterprise *** yure has quit IRC *** jcater has quit IRC *** johannesV_ has joined #gnuenterprise *** jcater has joined #gnuenterprise *** johannesV has quit IRC *** johannesV_ has quit IRC *** lekma has joined #gnuenterprise hi reinhard: the following code: sessobj = server.open({"_username": "hacker", "_password": "secret", "_language": "en"}) listobj = server._call(sessobj , "request", "address_person", [], ["address_zip"], ["address_name", "address_street", "address_city", "address_country.address_code", "address_country.address_name"]) print server._call(listobj , "count") server._call(listobj , "close") print server._call(listobj , "count") produce the following output: 4 0 is that normal? ie shouldn't an error be raised instead of returning 0 ? after closing the list *** derek has quit IRC *** derek has joined #gnuenterprise lekma: good question I'm not sure, but I would tend more towards error, too well... i don't know either it just seems more natural to shout: THE LISt IS DEAD instead of sending back 0 do you have a login in our bug tracker already? we have a bug tracker!! let me check that that is brand new, isn't it? * derek reminds reinhard that if you dont tell people about the bug tracker then they cant file bugs which means you can claim bug free code :) well two or three months IIRC http://www.gnuenterprise.org/roundup/gnue/ woot i filed my first bug!! \0/ we have a bug reporting system? :) *** sandroid has joined #gnuenterprise *** sandroid has left #gnuenterprise *** lekma has quit IRC *** ajmitch_ has joined #gnuenterprise *** ajmitch_ is now known as ajmitch *** jamest has left #gnuenterprise *** reinhard has quit IRC *** sjc has joined #gnuenterprise *** klasstek has quit IRC *** jamest has joined #gnuenterprise *** jcater has quit IRC *** derek has quit IRC *** derek has joined #gnuenterprise *** sjc has quit IRC