*** johannesV has joined #gnuenterprise good morning good morning *** kilo has joined #gnuenterprise *** reinhard has joined #gnuenterprise *** btami has joined #gnuenterprise *** johannesV has quit IRC *** johannesV has joined #gnuenterprise *** btami has quit IRC *** reinhard has quit IRC *** yure has joined #gnuenterprise *** yure has quit IRC *** reinhard has joined #gnuenterprise *** johannesV has quit IRC *** yure has joined #gnuenterprise *** yure has quit IRC *** kilo has quit IRC *** dneighbors has quit IRC *** btami has joined #gnuenterprise *** ninja has quit IRC *** yure has joined #gnuenterprise *** btami has quit IRC *** sjc has joined #gnuenterprise *** jcater has joined #gnuenterprise *** jamest has joined #gnuenterprise *** btami has joined #gnuenterprise *** btami has joined #gnuenterprise *** sjc_ has joined #gnuenterprise *** sjc has quit IRC *** sjc_ is now known as sjc *** ibr has joined #gnuenterprise Hi! hi ibr I'm still trying to get my first gnue app running. I installed postgres and gnue packages. I can open form.gfd from the examples dir. What should I do further? you have to create and edit your own connections.conf file (based on sample.connections.conf) then you can try forms using datasources the easyest way maybe using gnue-designer's wizards I copied sample.connections.conf to connections.conf. File -> New -> From Wizard There are 4 sections: gnue, devel, prod, appserver. Which one should I edit? are you installed any python driver for Postgresql? try gnue first most examples use this connection name Something like python2.4-pygresql? you have to install psycopg orpygresql or pypgsql yep Installing... then you can write provider = pygresql Ok. What is psycopg? same as pygresql but you needonly one So, I have the following: python-pg binding package [gnue] comment = GNUe Test Database; aliases = dcl test; provider = psycopg; host = localhost; dbname = gnue How should I test that this connections.conf is ok? you installed psycopg, right? Erm, I installed python2.4-pygresql, if that is the same. no then you have to use provider = pygresql Ah, these are kind of different postgres apis for python? they are different packages for the samefunctionality Ok, I see. BTW, I have also python2.4-psycopg. Is it better? dunno, some use one, one use another... Ok, trying pygresql... Ok, changed /etc/gnue/connections.conf. How can I test it? now you have to create your gnue database Let me check, I remember doing smth. like that... some examples contain scripts for doing this or gnue-appserver has a creation script too Aha, I've created the db but not the tables. How the sql script is called? forappserver there is a gnue-setupdb iirc and in the appserver docs dir there is a another script for creating sample data setup-db.sh but you don't have to use appserver first I have /usr/share/doc/gnue-appserver/examples/setup-db.sh, is that what I want? Aha. So what did I need connections.conf for? if you want to try appserver too then you have the [appserver] section too AFAICU, I need it if I want to create 3-tier apps, right? yep Great. And what is [gnue] for? gnue is the real backend database connection name used by appserver to store data and business rules but forms and reports use the appserver name as connection name Aha. So, I want to create a form and see it running. What should I do? if you succesfully run gnue-setupdb then setup-db.sh I started gnue-designer and put a label and a button. you have to start appserver first ah ok you have 2 coice you can try forms in 2-tier mode if you have a simple postgresql database with tables I think I can convert a 2-tier app to a 3-tier app later, no? or if you have an installed appserver you can a 3-tier app too yep Ok, I'll try the ui part first. I have a label and a button. Do I need to create the tables? yes ibr@medeu:~/tmp/h/gnue$ gnue-setupdb readgsd: Cannot load plugin 'pygresql' For help, type: readgsd --help These are some internal gnue tables, right? yep are your pygresql version same as your python's ? Let me check... 2.4 ? yust start python Hmm, python2.4-pygresql didn't require python2.4... Odd. Installed python2.4. Hmm, "python" is still 2.3. Installing python2.3-pygresql... in the python interpreter try import pgdb gnue-setupdb started, do I still need this? for 3-tier, yep What does this do? ibr@medeu:~/tmp/h/gnue$ python Python 2.3.5 (#2, Jun 19 2005, 13:28:00) [GCC 3.3.6 (Debian 1:3.3.6-6)] on linux2 Type "help", "copyright", "credits" or "license" for more information. itcreates basic "system" tables for gnue-appserver >>> import pgdb ok Umm, I meant, do I need "import pgdb"? pygesql is working :) sorry ,misunderstand :) so, gnue-setupdb was ok? Aha, removed python2.4-pygresql, import pgdb failed. Great. No, it wants to create the gnue db. And I have it already. But it is empty. aha delete it Ok. gnue-setupdb willcreate it with data for you It asks a password. Which user is it? the db admin ? Hmm, if I would remember it... :/ I can login to psql without a password. good night all *** reinhard has quit IRC sorry, but i'm not a pg expert, using firebird here... No problem, googling for postgres admin manual... have to sleep now, you on the way now, i think,so good night *** btami has quit IRC Thanks! Bye! *** ibr has quit IRC *** jamest has left #gnuenterprise *** ibr has joined #gnuenterprise Hi! Could anyone help me with gnue-setupdb? It says 'readgsd: FATAL: password authentication failed for user "gnue"' I have the following line in pg_hba.conf: local all all trust *** ibr has quit IRC *** jcater has quit IRC *** jcater has joined #gnuenterprise *** jcater has quit IRC *** jcater has joined #gnuenterprise *** jamest has joined #gnuenterprise *** jamest has quit IRC *** jcater has quit IRC *** sjc has quit IRC