*** Morphous has joined #gnuenterprise *** johannesV has joined #gnuenterprise *** Amorphous has quit IRC *** ogger has quit IRC *** kilo has joined #gnuenterprise *** SachaS has joined #gnuenterprise *** reinhard has joined #gnuenterprise morning all hi kilo good morning all I've noticed florin has translated romanian po using ascii coding shouldnt we all use utf8? kilo: gettext will handle tat that will it? then ok yes * kilo doesnt want to work more than needed or more precisely ugettext() - which is what we use - does handle that just because on the gnome translation list there is a notice right now that using iso-88xxxxxx isnt good, all should be done using utf-8 i don't know, but the reason could be that if somebody else wants to work on a translation you started he has to use the same encoding as you did and the more we look in the future the more people will probably use utf-8 (that's just a guess, though) i see good morning good morning SachaS objects are not allowed as return values from procedures although i think we would need a much better error message in case somebody tries good morning folx good morning johannesV hi johannesV reinhard: ok. reinhard: do you know where to find how libwxgtk2.4-python was compiled (with what options)? johannesV: good morning hi SachaS, hi kilo kilo: no off to customer johannesV, a quick question: what are you currently working on? :) *** kilo has quit IRC nothing in gnue what? ;) SachaS: i'm not working at gnue at the moment do you know "how" you will implement a) calculated properties, b) list properties and c) bound proecedures? *** kilo has joined #gnuenterprise those will be the next neat features :) have to go to doctor :( (feel very sick today) *** kilo has quit IRC Sacha_away: calculated properties would be a special form of procedures (i think) *** kilo has joined #gnuenterprise *** btami has joined #gnuenterprise *** rm-away has quit IRC *** dneighbo has joined #gnuenterprise *** derek has quit IRC johannesV ok. *** lekma has joined #gnuenterprise *** dcmwai has quit IRC *** tophe has joined #gnuenterprise *** reinhard has joined #gnuenterprise *** reinhard_ has joined #gnuenterprise *** reinhard has quit IRC *** kilo has quit IRC *** holycow has quit IRC *** reinhard has quit IRC *** reinhard has joined #gnuenterprise ------------------------ win32 setup.exe for pre1 uploaded ! --------------------------- btami: great *** _florin_ has joined #gnuenterprise hello _florin_! did my announcement of the prereleases actually get through? anybody has seen it on the list? * reinhard isn't sure if he has seen it or not reinhard: yes I saw it me too ok thanks <_florin_> hello reinhard! <_florin_> there was an announcement on the ML today, yes <_florin_> does anybody know how to make variables/properties of an object available in a forms-trigger? <_florin_> (i'm sure somebody knows, but would they tell it to me? :-) _florin_: what kind of object? you mean an object as in "customer", "inventory" etc or an object as in "block", "entry" etc? SachaS: you have procedures with return values, correct? <_florin_> forms objects (block, entry, ... tree :-) you can access them with their name at least the blocks <_florin_> i think so... i managed to have "functions" in my tree (that is i can call a function that does some print "foo") <_florin_> yep, return values work. <_florin_> so does that mean i should do all data access through self-defined get/set procedures? i can't answer that <_florin_> ok :-) i'm not enough into forms strategy :) *** kilo has joined #gnuenterprise reinhard: what do you mean? yeah i have procedures which return values. _florin_ I used the global call() function/procedure in the form. my_datatsource_name.call("my_class.procedure_name","") SachaS: there is a rule that wasn't tested before which i found out as you tried to pass an object as return value <_florin_> ? i'm confused. are you talking about triggers? i use to return a dict. example: return {'returnValue': True, 'msg': "DaDa'} <_florin_> (SachaS) _florin_ yes caling a procedure from a forms trigger _florin_: can you explain your need in other words? SachaS: i think _florin_ isn't talking about appserver procedures <_florin_> I'm talking about forms-procedures :-) SachaS: if you want your function to return a value, you have to define a parameter with the name "result" <_florin_> no appserver hmmm SachaS: however i'm not sure if we really want that rule as that means that you can't return dicts or lists <_florin_> functions are no problem so far: just define the functions i need in _triggerFunctions. <_florin_> that works yes in a class procedure just return whatever you want. <_florin_> i returned strings with 'return'. i assume for complex objects that would work similar... yeah just return a dict if you l ike. <_florin_> but i wanted to know whether there is a way of accessing variables of the GF-object ok scratch that all what i said reinhard: you dont need to define anything as return value, just return whatever you want. i have to think about it _florin_ you want to access a business object in your gnue form? <_florin_> no. i want to access some data from a widget object. <_florin_> (need to do some processing on tree columns, like adding values, building averages... :-) hi all iam searching the gnue-schema oh ok. but dont find it in the svn repository ! where it is ? tophe: hello tophe: see the topic of this channel tophe: did you download a tarball (preview/snapshot) or did you check out from svn? svn co svn://svn.gnuenterprise.org/var/svn/gnue/trunk gnue ah :) _florin_: AFAIK it is not recommended to access widget data from the form <_florin_> but i need to read/set that data, my widget depends on it :-) <_florin_> i'll do the access through functions i guess... i recommend talking about that to james, the form master... I use the svn dont fing gnue-schema or gsscvs <_florin_> try gnue/gnue-common/scripts/gsscvs tophe: you have to run setup-cvs.py in the gnue-common directory ... oh I see it will install the scripts in ~/bin into a bin directory of your home directory i am on win xp, i run setup.py then you have to add that bin dir to your $PATH environment. win xp ohhh. then i dont know. tophe: oh, win xp hmm tophe: there is a windows install howto on the wiki, follow that <_florin_> if you want to run gnue from svn/cvs download, i guess you have to run setup-cvs.py instead of setup.py (at least on linux... right?) ok thanks sacha i just find it *** lekma has quit IRC reinhard: did you see my comment, that when you update data by the psql tool and you request data from the appserver with a forms client it delievers "old" data? SachaS: no i didn't see that ok. so, here it is ;) did you commit in psql before you do the search in the form? commit, i just used update sql command in psql let me try again. postgres doesn't let other connections see changes until they are committed *** kilo has quit IRC which is actually correct ok. did not commit ;) let me check. *** btami has quit IRC in psql it says babyerpP=# commit ; WARNING: there is no transaction in progress COMMIT after I update babyerpP=# update masterdata_inventory SET masterdata_quantity = 20 where masterdata_itemid = 5172; if you open a second psql session do you see the changes there? yes i do ok if i do a new query in forms, its still the old value in there. then you should also see it in forms i think this is the same bug nope. in forms i see the old value. same bug? that makes you have to restart appserver when you change a procedure this might be a good bug for today evening ;-) yeah :) and it might be also the one, where i create object 1, comitt, create object 2 and set reference to object 2 and get a key violation. saying that there is no object 1 maybe *** lekma has joined #gnuenterprise *** dsmith has joined #gnuenterprise just a remark on win xp instalation, in fact all the scripts are copied to /python/scripts so we just have to had that dir to the path to use them c:\sourcesafe\python\gnue\gnue-contrib\babyerp\schema\ggcvs-generate-gsd-from-database>gnue-schema - vendor=postgresql babyerp-generated.gsd Loading gsd file 'babyerp-generated.gsd' ... DB000: Traceback (most recent call last): DB000: File "c:\python22\scripts\gnue-schema", line 32, in ? DB000: Scripter ().run () DB000: File "C:\Python22\Lib\site-packages\gnue\common\schema\scripter\Scripter.py", line 118, in run DB000: self.__runProcessor (vendor) DB000: File "C:\Python22\Lib\site-packages\gnue\common\schema\scripter\Scripter.py", line 210, in __runProcessor DB000: filename = "%s.sql" % self.__getProcessorName (vendor) DB000: File "C:\Python22\Lib\site-packages\gnue\common\schema\scripter\Scripter.py", line 201, in __getProcessorName DB000: return dyn_import (self._PROC_PATH % processor).name DB000: File "C:\Python22\Lib\site-packages\gnue\common\utils\FileUtils.py", line 42, in dyn_import DB000: mod = __import__(name) DB000: ImportError: No module named endor=postgresql small bug ? oh i find it when i use gnue-schema for babyerp i have python code with the sql ! tophe: you have to use --vendor not -vendor and i think you have to use --vendor postgresql not --vendor=postgresql ok i trie (not sure if this is a bug in the documentation) ok i try what ? ;) gnue-schema -vendor=postgresql should be gnue-schema --vendor postgresql two - and no = * reinhard hasn't looked what *is* in the doc tophe: do you have postgresql database installed? then go into babyerp/schema/ggcvs-generated- directory thats babyerp/schema/ggcvs-generate-gsd-from-database directory then you can do what is in the setup-pgsl.sh file : createuser --createdb --adduser gnue dropdb babyerpP createdb babyerpP psql babyerpP < PostgreSQL.sql *** PeterD has joined #gnuenterprise hi all hello PeterD * reinhard hides in shame didn't get around to installing mandrake yet :( hi reinhard cd's are here on my desk installed fresh prerelease I try mandrake 10 but impossible to install gnue-common !! I didn't got any problems, everything took less than 5min *** tophe has quit IRC but classrepository.gfd still misbehave ;) tophe tried to post something ;) tophe: did you install all dependencies *** jamest has joined #gnuenterprise * dsmith starts the apt-get updrade that brings in X 4.3 *** lekma has quit IRC <_florin_> any locale-expert present to tell me how to start gnue-forms in another language? (german or romanian) <_florin_> i tried $ LC_ALL="de_DE" gfcvs form.gfd <_florin_> and i get something like: Gdk-WARNING **: locale not supported by C library <_florin_> same for "ro_RO" *** PeterD has quit IRC *** jcater has joined #gnuenterprise anyone: i have linux filename and paths in the gnue-navigator .gpd file. shouldn't the navigator, when reading the paths to the file, make changes so it is also working for windows? <_florin_> doesn't the win32-api also accept '/' as a directory separator? <_florin_> (i remember trying that back then, when i used to do win-programming -- but i don't remember whether it actually worked... :-/ ) yeah there is a ./forms/dadidadida well tophe finds out. *** tophe has joined #gnuenterprise i would be surprised if it was not handled properly (correclty) yeah my fold symlinks seem to not get svn added/comitted. will change that. *** tophe has quit IRC *** tophe has joined #gnuenterprise *** johannesV_ has joined #gnuenterprise SachaS: it should convert properly (except for the c:\ crap) jamest: yeah it is working i had symlinks in my working dir seems when i did svn commit those symlinks did not get ... uploaded *** tophe has quit IRC ah jamest: an exception for you: loginToConnectionDB000: connection.connect(loginData)DB000: File "C:\Python22\Lib\site-packages\gnue\common\datasources\drivers\appserver\appserver\Connection.py", line 72, in connectDB000: self._server = client.attach (connectData ['rpctype'], params)DB000: File "C:\Python22\Lib\site-packages\gnue\common\rpc\client.py", line 38, in attachDB000: return driver.ClientAdapter (params)DB000: File "C:\Python22\Lib\site-packages\gnue\comm on\rpc\drivers\xmlrpc\pw_xmlrpc\ClientAdapter.py", line 86, in __init__DB000: allow_none=allow_none)DB000: TypeError: __init__() got an unexpected keyword argument 'allow_none' jamest: do you know where this excpetion is thrown? it happens straight after the login. on windows with postgresql ? it's happening in the appserver driver not sure why that would happen if you are using postgresql driver tophe has this problem trying out babyerp tophe: which release of GNUe tools are you using? svn? *** wendall911 has joined #gnuenterprise SachaS: he seems to use python 2.2 he should use python 2.3 tophe your here? ok. i tell tophe. reinhard: are the tools not supported on python 2.2? *** PolarisSE has joined #gnuenterprise hi PolarisSE (tophe) PolarisSE: ah tophe reinhard in the main channel said: you are using python 2.2 but you should use python 2.3 :| that true reinhard SachaS: he seems to use python 2.2 he should use python 2.3 I will try, but i must reinstall all my stuff we're requiring python 2.3 now? ? *** johannesV has quit IRC i don't think so but there might be a bug in the python version he uses or another incompatibility i will check PolarisSE: please wait with reinstalling i will look if i can fix for 2.2 u want the exception ? i got it *** tophe has joined #gnuenterprise PolarisSE: i fixed it in svn can you update? i am now tophe *** PolarisSE has quit IRC I will try fucking polaris ! that better client side :Error: Unable to login to datasource. server side : Dispatching: Session.open ({'password': 'secret', 'user': 'hacker'},) DB000: localhost - - [08/Apr/2004 15:58:52] "POST / HTTP/1.0" 500 - did you start gnue-navigator? or gnue-forms forms which form? masterdata_customer.gfd ? yes maybe when you start to run gnue-forms with "gnue-forms --debug-level 5 masterdata_customer.gfd" you see some more info gf --debug-level=5 masterdata_customer.gfd Error: No Forms Definition File Specified. is it possible define debug level in gnue.conf do you provide the full path to the .gfd file? dunno if you can set the debug level in gnue.conf :| yes i provide also the full path DB001: [C:\Python22\Lib\site-packages\gnue\common\apps\GBaseApp:264] Python 2.2.3 (#42, May 30 2003, 18:12:08) [MSC 32 bit (Intel)] DB001: [C:\Python22\Lib\site-packages\gnue\common\apps\GBaseApp:265] Run Options: [('--debug-level', '5')] DB001: [C:\Python22\Lib\site-packages\gnue\common\apps\GBaseApp:266] Run Arguments: [] DB001: [C:\Python22\Lib\site-packages\gnue\common\apps\GConfig:72] Reading configuration info from g nue.conf section forms DB001: [C:\Python22\Lib\site-packages\gnue\common\apps\GConfig:105] Configuration files were read in this order: ['C:\\Python22\\etc\\gnue.conf', 'C:\\Documents and Settings\\Tophe.NTMAIN\\.gnue\\gnu e.conf', 'C:\\Python22\\etc\\gnue.conf.fixed'] DB001: [C:\Python22\Lib\site-packages\gnue\common\apps\GBaseApp:318] Connection Definition: "C:\Pyth on22\etc\connections.conf" DB001: [C:\Python22\Lib\site-packages\gnue\common\datasources\GConnections:91] Conn File: "C:\Python 22\etc\connections.conf" GNUe Forms Version 0.5.3.99 GNUe Common Version 0.5.3.99 Error: No Forms Definition File Specified. flooding boy ! Error: No Forms Definition File Specified. seems like it cannot find/read that file are the permissions right? on that file? can you open the file in your editor? yes are you executing gnue-forms in the same directory as the file is? yes it run without the debug-level option and break after login with a protocol error oh ok. with debug-option do do even the login *** dsmith has quit IRC perhaps parsing argument dont work on win32 i could not imagine, that not working. your using svn, right? yes *** dsmith has joined #gnuenterprise if you have enough time ;) you might want to install python 2.3, the lastest postregsql driver for python 2.3 and try the windows pre-release.exe file from http://www.gnuenterprise.org/downloads/prereleases.php or format harddrive of windows and install debian gnu/linux, while you are at it ;) i have a mandrake 10 too and debian but only for database server i cant install gnue-common on mandrake Protocol Error, dont know why that occurs. i also have a ProtocolError, but that occured when returning a business object from a procedure. Dispatching: Session.open ({'password': 'secret', 'user': 'hacker'},) DB001: [C:\Python22\Lib\site-packages\gnue\common\rpc\drivers\xmlrpc\pw_xmlrpc\ServerAdapter:450] Un expected Exception in XML-RPC code: exceptions.TypeError:isinstance() arg 2 must be a class, type, o r tuple of classes and types DB000: localhost - - [08/Apr/2004 16:21:48] "POST / HTTP/1.0" 500 - just after login this is server side? yes btami is the windows maintainer, i dont know if its an issue with windows, or your python 2.2 version ... i am not a developer so I dont understand the code which throws these exceptions. or i dont know the code which throws these exceptions. ok sachas thank's for our help tophe: i suggest you try the sample in gnue-appserver it might be that babyerp is somewhat ?? whack have you tried the gnue-appserver/samples ? not yet good. you might try them first if you have the same problems there, then its most likely somthing with your gnue setting/installation. gnue/python setting/installation ok i have the same error ok. so i suggest to test the .exe pre-release version and python 2.3 is that too much work for you? i will try, if i can do it today thats what i would suggest :) unless someone else can help you. some deprecation have been made with wxpython 2.5.1 I don't recommend anyone using 2.5.1 yet until the developers have had a chance to test (though it may work fine) just installed seems to work tophe, can you run the sample in gnue-appserver/samples ? some problem with splash screen and icons sashas i can run babyerp now !!! :) wow! be gentle with babyerp ;) there isn't wx 2.4 anymore on the web site ! i must go with 2.5 ! * SachaS thinks tophe is the first person trying babyerp *** dsmith has quit IRC *** dsmith has joined #gnuenterprise tophe: you can report any bugs to gnue-dev@gnu.org *** johannesV_ has quit IRC tophe: so you got appserver running now? you have any idea what caused your previous problems? <_florin_> there was an announcement on the ML today, yes/ *** dcmwai has joined #gnuenterprise reinhard: it must have been a combination of gnue svn, python2.2, wxpython on windows xp <_florin_> bugs in babyerp? so it it's not bugfree?! ;-) hehe tophe, if you are using the prerelease you might be able to use MySQL instead of postgresql *** dcmwai has quit IRC yes I have babyerp running now . i update to active python 2.3 and it run ! i must go now sigh that means gnue rpc is broken for python 2.2 *** sjc has joined #gnuenterprise reinhard: i do like your response to Neil :) i am about ready too ;) well see you later again anyone know if postgres lets you put spaces and weird shit in table names? Seems it does not like the backticks around table names chillywilly: it doesn't let you postgres wants [A-Za-z0-9_] AFAICT hmmmm I just wrote a db driver for this ORM but they are backticking all table name (very mysql centric) that was the reason for us to use the _ as a separator of module name and table/field name and not some werid shit ;-) well personally I wouldn't do it but I am trying to think of the proper change to this code...I could just get rid of them if I wanted but I don't suppose that would be rolled back into upstream then again that is probably mysql specific anyway wouldn't* *** reinhard has quit IRC *** reinhard has joined #gnuenterprise <_florin_> bye for now, bbl *** _florin_ has left #gnuenterprise *** dwho has joined #gnuenterprise *** kilo has joined #gnuenterprise reinhard: what do you think of appserver and the next view days? reinhard: btami just completed an appserver test midday running appserver on an xp and conecting to it from another xp and it worked like charm kilo: excellen, this is great SachaS: I don't think that there will be much over the easter days easter is mostly family time kilo: tophe had a test with postgresql on linux and appserver on windows xp, and it worked for him too (dont know how good though) reinhard: yeah i see. and between prerelease and release not much going either wow, these appserver guys must know something... what do you mean kilo ? *** dwho has quit IRC about programming 8-)) *** tophe has quit IRC *** tophe_ has joined #gnuenterprise kilo: well, at least we can pretend to ;-) reinhard, the great pretender... 8-) night all *** reinhard has quit IRC *** kilo has quit IRC *** wendall911 has quit IRC *** wendall911 has joined #gnuenterprise *** dsmith has quit IRC *** jcater has quit IRC *** _florin_ has joined #gnuenterprise *** bamse has joined #gnuenterprise *** jamest has quit IRC *** wendall911 has quit IRC *** sjc has quit IRC *** SachaS has quit IRC *** SachaS has joined #gnuenterprise *** wendall911 has joined #gnuenterprise *** _florin_ has quit IRC *** jcater has joined #gnuenterprise *** jamest has joined #gnuenterprise hello there hi hum, I am reading gnue module guide proposal just seens that its quite outdated is it still worth reading it, or should I change to somthing else ? it's been so long since I read them I don't know :) i imagine you're better off asking in here ok, so I'll start with my basic question is there any global doc for gnue I mean, some document explaining the whole system with not too much detail sigh, only those old ones docs are on the todo as the people on the maillist vented here a while back (for good reason) sounds nice, where can I see the todo ? about the lack of docs the to do list it's kinda floating out there the roadmaps are the closest to a real to do I've seen on the website that you guys use dcl to manage the project but the site seems to be down now yes we suck it broke during a postgresql upgrade argl however the current site is all new you mean gnuenterprise.org ? and designed to automate a major amount of the documentation yes yep, rather neat, I have to say it generates directly from our code base great ! so we are working on making things better but we can only get so many hours of labor out of jcater before he gets tired I see one more question, I am installing gnue common, things seem to go pretty well (debian rules!) but I am thinking about sacha's shots you told me about yesterday :) is there any way to install your mini erp yeah there is I hope this could give me a better understanding of how all this works first you'll need a dead squirel and a large wisconsin trout damn, I am no hunter ok, I have to forget about helping here ;o( http://www.gnuenterprise.org/tools/appserver/docs/ there is a howto guide this is basically a documentation of what i learned while implementing this babyerp system then you can download it via: svn co svn://www.gnuenterprise.org/var/svn/gnue-contrib there will be the babyerp directory and in that directory is a INSTALL file *** wendall911 has quit IRC ok, looks quite straightforward I'll try this out ok. well, I got a nice error message while trying to setup postgresql things are starting pretty well, like that :) whats your error message? I think its python related, I'll just try and install the dev packages, I think it will do otherwise, I come back to you ;) ok. well, debian appears to have lots of dependancy problems these times bamse, are you trying with the debian gnue packages? if yes, they, in particular the gnue-appserver, is quite outdated. nope I have pulled out the svn code but I was trying to install python modules as described in the wiki ok. so you should be on the good side there. ok. yep, but debian dependancies suck sometimes with which package are you having issues? python-xmlrpc I have python2.3 installed and it yells for going back to 2.2 i think you dont need python-xmlrpc while the others... ok, I'll kick him off :) *** dcmwai has joined #gnuenterprise night all together *** SachaS has left #gnuenterprise *** bamse has quit IRC *** jamest has quit IRC