*** SachaS has joined #gnuenterprise *** reinhard has joined #gnuenterprise *** btami has joined #gnuenterprise good morning hi btami and all *** SachaS has quit IRC *** kilo has joined #gnuenterprise *** johnix has quit IRC *** btami has quit IRC *** dimas has quit IRC *** docelic has quit IRC *** dcmwai has quit IRC *** rynik has quit IRC *** btami has joined #gnuenterprise *** dimas has joined #gnuenterprise *** dcmwai has joined #gnuenterprise *** rynik has joined #gnuenterprise *** docelic has joined #gnuenterprise *** johannesV has joined #gnuenterprise *** johnix has joined #gnuenterprise *** sjc has joined #gnuenterprise *** dimas has quit IRC *** johannesV_ has joined #gnuenterprise *** johannesV has quit IRC *** d99rynik has joined #gnuenterprise *** rynik has quit IRC *** dimas has joined #gnuenterprise *** kilo has quit IRC *** kilo has joined #gnuenterprise *** holycow has joined #gnuenterprise *** dcmwai has quit IRC *** yure has joined #gnuenterprise *** dimas has quit IRC *** dimas has joined #gnuenterprise *** btami has quit IRC *** d99rynik has quit IRC *** sjc has quit IRC *** kilo has left #gnuenterprise *** holycow has quit IRC *** jamest has joined #gnuenterprise *** jcater has joined #gnuenterprise *** johannesV__ has joined #gnuenterprise what is a good choice of trigger type on checkbox? *** johannesV_ has quit IRC Hello, hi johnix I'm confused about the gnue_createuser property, because it implies that gnue has "users", and I haven't seen them. ie where they are defined there are no users really yet that's the reason why this property is always empty :) but we are planning on that ok there is a "provisoric" user maintenance now, but I'd better not even explain it, as it's not very useful and will be replaced reinhard : I've been through the appserver devguide as you suggested And I was wondering : is there any object similar in concept to a PHP "session"? I don't know PHP :) a token that allows to track a given client eg someone logs in, then goes to the next screen. I need to know that it's the same person. no well actually yes there is a session id aaah. don't know off hand if you can access it I was already having a heart attack;) session.getSessionId () well, the reason I'm going gnue and not access (or OOo Base) is to make sure only certain users can modify certain data hmmm ok I would regard getSessionId as an "undocumented" feature that might break in future versions I'm still not sure if you would really need it well, maybe you can point to me a better way or maybe it's already been done, and I would need to read some code... I'm not sure I understand what you are trying to achieve 1st screen : login. I have a class "users" with different permission levels 2nd screen : modifiable data. The data can be modified only by certain users oh This means that somewhere in my code (eg in onValidate) I need to know the identity of the user. well there you're heading exactly to the missing user support in appserver ... well, that's something is there a way to work around it? eg with session.getSessionId()? no way the second form would be a new session anyway only chance I see is you actually *use* the provisoric user management until security is implemented in appserver maybe somebody else has time to set it up with you unfortunately I'm about to leave for the long weekend and will be afk until sunday Ok. the key point is auth.gcd in the samples directory and setting "authentication = 1" in connections.conf for the appserver connection is it running yet? and I'm quite sure there is a way to access the current user or is it still in early development? but I don't know off hand how what? what is running yet? user support some people use it but I'm very unhappy with it as it's not a "concept" but rather a "quick hack" and we want to replace it by something with a concept gnue is definately not ready to run in a hostile environment Ok. So I'm wondering if I should develop my app using gnue, or if I should find another framework. *** sjc has joined #gnuenterprise *** jcater has quit IRC *** jcater has joined #gnuenterprise off now for real cu all and have a nice weekend *** reinhard has quit IRC Can somebody give me a hint? The app server dies when I start it with a .gcd file in the modulepath *** yure has quit IRC johnix: you should load gcd before starting appserver *** dcmwai has joined #gnuenterprise dimas, gnue-loadgcd fails with a traceback too... what traceback? what gcd are you loading? dimas, I pasted it from http://www.gnuenterprise.org/tools/appserver/docs/manual/devguide/Basic-DB-Features.html#Basic-DB-Features ok, I added a trailing newline and gnue-loadgcd worked... oh but then gnue-forms doesn't work as stated in the tutorial... should work, what error now? DB000: Error in sys.excepthook: DB000: Traceback (most recent call last): DB000: File "/usr/lib/gnue/python/gnue/common/apps/GBaseApp.py", line 600, in excepthook DB000: self._showException (*errors.getException (None, etype, value, traceback)) with a full page of traceback and last lines? DB000: Original exception was: DB000: Traceback (most recent call last): DB000: File "/usr/bin/gnue-forms", line 34, in ? DB000: client.run () DB000: File "/usr/lib/gnue/python/gnue/forms/GFClient.py", line 185, in run DB000: instance.activate () and then DB000: File "/usr/lib/gnue/python/gnue/forms/uidrivers/qt/ToolBar.py", line 54, in addAction DB000: icon.setPixmap(QPixmap(grayloc), QIconSet.Normal, QIconSet.Disabled) DB000: TypeError: argument 2 of QIconSet.setPixmap() has an invalid type could you try another UI driver? like wx or gtk2 ok, it works with wx good *** dsmith has joined #gnuenterprise ok, and if fails when I put a "_" or a "-" in my class or property names. Is there another separator character I can use? CamelCase ? *** dcmwai has quit IRC ok, the following gcd file causes gnue-loadgcd to fail with DB000: InternalError: (3, "Error writing file './GNUE/pointages_TypePersonnel.frm' (Errcode: 28)") v number should be with defined length and strings too? number(5,2) *** btami has joined #gnuenterprise either string defs would not fail ok then what about : seems ok, not? it still fails in the same way what db are you using? MySQL mysql Ver 12.22 Distrib 4.0.24, for pc-linux-gnu (i386) *** jamest has left #gnuenterprise any idea? *** md-afk has joined #gnuenterprise *** btami has quit IRC johnix: loaded into postgresql without error simplify for now with number(5) and then without CamelCase chillywilly: Hey. hey still the same anybody uses mysql here? chillywilly: Got an phone interview tonight for that vxitech job. cool ok, I'm setting up postgre *** PhUrl has quit IRC *** johannesV__ has quit IRC *** btami has joined #gnuenterprise How on earth am I supposed to force gnue-setupdb into using a given username? johnix: to manage connections.conf file ? what username would you want? create postgresql user with your login name, then do all things w/o specifying a user no can do the script won't create a db if I'm not user postgres, and fails if the db already exists ? so I tried everything as user postgres but it still fails with : DB000: ProgrammingError: ERREUR: ERRORDATA_STACK_SIZE exceeded DB000: DB000: CREATE TABLE gnue_module (gnue_comment varchar (70), gnue_id varchar (32) NOT NULL, gnue_name varchar (35) NOT NULL, CONSTRAINT pk_gnue_module PRIMARY KEY (gnue_id)); I'm getting tired of it all I'd be wasting less time if I was writing my app in plain old CGI... every single step ends up in endless workarounds. I'm not ready for gnue (or the other way around) gnue would require a lot of time but at this point your problem is not gnue related yet create postgresql user with something like su - postgres -s /bin/sh -c 'crateuser ' no use 'crateuser ' err I've su'ed to "postgres", who has all administrative rights to the DB createuser and I still get the above error then what no use for create new postgresql user? if it doesn't work with user postgres, it's no use trying with a different user it just gives you one more level for error to come from exactly ok, have fun with gnue and thanks for your help bye *** johnix has left #gnuenterprise np *** jamest_ has joined #gnuenterprise *** kilo_ has joined #gnuenterprise *** dsmith has left #gnuenterprise *** btami has quit IRC *** mnemoc has quit IRC *** mnemoc has joined #gnuenterprise *** rynik has joined #gnuenterprise jamest_, Hi, when you wrote the common dev-guide, did you generate the Schema Definition Elements? How? i believe there is a script in common that does that common/utils/doc-xml-attrs-openoffice.py if you're looking at what I think you're looking at :) I was looking att Appendix A I'm working on a manual for common with your dev-guide as a starting point. But I'm not sure What to do with the Schema definition elements. There is a lot of 'No description provided' in there. rynik: it is the py file jamest has mentioned it looks for each element's decstiption in GParser or GFParser etc so if there is a description provided in the GParser, it will take it but if it is empty, then it will give 'No description provided' Yes, I understand. Im looking at the output from the script now. it outputs an xml file now comes magic you create a fake swx file with OOo it is compresses as you surely know uncompress it somewhere I was wondering if one should start documenting something in the code to replace the 'No description provided' and replace the content.xml with the newly generated xml file and compress it back and OOo will read that now all you have to do is paste it to do appropriate place well if you want to document anything, GParser.py GFParser.py GRParser.py or GDataSources.py is your friend yes or any .py file that has a getXMLelements function in it in those files are dictionaries that setup the parsers usually there is a description key iirc that script builds those using those description keys usually there is an empty description key :D:D:D right :) yes, i've used this script recently I think I found the placeholders for the descriptions. xmlElements has some yes in GSParser.py that huge arse dictionary defines a markup language so GFParser.py contains the markup for a gfd file items in common can contain their own like datasources as they are the same in forms and reports again in gnue-forms/src/GFParser.py if you go to the bottom of the file (search for Add DataSource Elements) you can see where we are merging in the elements for common's datasources and triggers *** yure has joined #gnuenterprise *** sjc has quit IRC kilo_, I have a problem with this: 'it is compresses as you surely know' No I didn't know. uncompress it somewhere How? the swx file is a simple gzipped(?) file *** jamest_ has left #gnuenterprise mv contents.swx contents.gz uncompress contents.gz uncompress: contents.gz has more than one entry -- unchanged Ah, unzip did the trick. glad, i was puzzled... Description Tags description No description provided There is not a single description provided! where In the swx the script made which tool did you choose forms? common? rpoerts? schema ah I'll try whith another tool. try with forms OK *** yure has quit IRC *** kilo_ has quit IRC *** jamest has joined #gnuenterprise *** jamest has left #gnuenterprise *** jcater has quit IRC *** JeffAMcGee has joined #gnuenterprise *** JeffAMcGee has left #gnuenterprise