First experience ins installing and setting up gnue

Kishan Bhat <[email protected]> Mon, 14 Feb 2011 18:22:33 +0530
Newsgroups gmane.comp.gnu.enterprise.general
Message-ID <[email protected]>
--===============0897524398==
Content-Type: multipart/alternative; boundary=20cf3054a4c37db551049c3d852e

--20cf3054a4c37db551049c3d852e
Content-Type: text/plain; charset=ISO-8859-1

Hello everyone,

First, thanks to you folks at gnue for making available such quality stuff.

I'm new to GNU Enterprise and I'm writing my experience in using gnue-forms
with a sqlite db on my LUbuntu 10.10

// Prerequisites modules:
# sudo apt-get install python-pysqlite python-egenix-mxdatetime
python-wxgtk2.6 python-wxgtk2.8
// Install bazaar to download the latest source
# sudo apt-get install bzr
# cd ~; bzr branch bzr://bzr.savannah.gnu.org/gnue
# ./bin/get_all.sh

// Installing from source
// You need to either rename existing "doc/manual" or make a directory
doc/man in each of the tools/<xyz> - else you will see errors
# cd tools/common; sudo python setup.py install
# cd tools/forms; sudo python setup.py install
# cd tools/forms; sudo python setup.py install
# cd tools/navigator; sudo python setup.py install
# cd tools/.reports; sudo python setup.py install

// Modifications to get around errors
// Edit
"/usr/local/lib/python2.6/dist-packages/gnue/designer/app/designer.py", line
#50, #from xml.sax import saxlib to:
from xml.sax import *

# Change from wx26 to wx. I not sure if making a copy of
/usr/local/lib/python2.6/dist-packages/gnue/forms/uidrivers/wx to wx26 will
also work.
// /usr/local/lib/python2.6/dist-packages/gnue/designer/app/designer.py ,
line #35
// /usr/local/lib/python2.6/dist-packages/gnue/designer/forms/debugger.py,
line #33
//
/usr/local/lib/python2.6/dist-packages/gnue/designer/forms/LayoutEditor/LayoutEditor.py",
line 36
// /usr/local/lib/python2.6/dist-packages/gnue/designer/ui/wx/base.py , line
#69

// Load wx.startup to avoid errors on gStartupStatus(). Edit
/usr/local/lib/python2.6/dist-packages/gnue/designer/app/designer.py, add:
from gnue.designer.ui.wx.startup import Startup
// and look for def init() in this same file, to add:
self.startup = Startup()

// Edit
"/usr/local/lib/python2.6/dist-packages/gnue/common/datasources/GConnections.py",
add after line #134, in def getAllConnectionParameters (self), add:
return result

//Make a new /etc/gnue/backends.conf (don't use the tilde[~] here - it will
not complete your home folder path!!):
[sample]
provider = sqlite3
dbname = /home/user/gnue/sandbox/sample

// Create a sample DB
gnue-schema --connection sample --createdb tools/sample/schema/item.gsd
// Now update this sample db:
gnue-schema --connection sample tools/sample/schema/invoice_item.gsd
gnue-schema --connection sample tools/sample/schema/customer.gsd
gnue-schema --connection sample tools/sample/schema/country.gsd

// Now, run forms:
gnue-forms tools/sample/forms/invoices.gfd

Now enter data using the forms!!

--20cf3054a4c37db551049c3d852e
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hello everyone,<br><br>First, thanks to you folks at gnue for making availa=
ble such quality stuff.<br><br>I&#39;m new to GNU Enterprise and I&#39;m wr=
iting my experience in using gnue-forms with a sqlite db on my LUbuntu 10.1=
0<br>
<br>// Prerequisites modules:<br># sudo apt-get install python-pysqlite pyt=
hon-egenix-mxdatetime python-wxgtk2.6 python-wxgtk2.8<br>// Install bazaar =
to download the latest source<br># sudo apt-get install bzr<br># cd ~; bzr =
branch bzr://<a href=3D"http://bzr.savannah.gnu.org/gnue">bzr.savannah.gnu.=
org/gnue</a><br>
# ./bin/get_all.sh<br><br>// Installing from source<br>// You need to eithe=
r rename existing &quot;doc/manual&quot; or make a directory doc/man in eac=
h of the tools/&lt;xyz&gt; - else you will see errors<br># cd tools/common;=
 sudo python setup.py install<br>
# cd tools/forms; sudo python setup.py install<br># cd tools/forms; sudo py=
thon setup.py install<br># cd tools/navigator; sudo python setup.py install=
<br># cd tools/.reports; sudo python setup.py install<br><br>// Modificatio=
ns to get around errors<br>
// Edit &quot;/usr/local/lib/python2.6/dist-packages/gnue/designer/app/desi=
gner.py&quot;, line #50, #from xml.sax import saxlib to:<br>from xml.sax im=
port *<br><br># Change from wx26 to wx. I not sure if making a copy of /usr=
/local/lib/python2.6/dist-packages/gnue/forms/uidrivers/wx to wx26 will als=
o work.<br>
// /usr/local/lib/python2.6/dist-packages/gnue/designer/app/designer.py , l=
ine #35<br>// /usr/local/lib/python2.6/dist-packages/gnue/designer/forms/de=
bugger.py, line #33<br>// /usr/local/lib/python2.6/dist-packages/gnue/desig=
ner/forms/LayoutEditor/LayoutEditor.py&quot;, line 36<br>
// /usr/local/lib/python2.6/dist-packages/gnue/designer/ui/wx/base.py , lin=
e #69<br><br>// Load wx.startup to avoid errors on gStartupStatus(). Edit /=
usr/local/lib/python2.6/dist-packages/gnue/designer/app/designer.py, add:<b=
r>
from gnue.designer.ui.wx.startup import Startup<br>// and look for def init=
() in this same file, to add:<br>self.startup =3D Startup()<br><br>// Edit =
&quot;/usr/local/lib/python2.6/dist-packages/gnue/common/datasources/GConne=
ctions.py&quot;, add after line #134, in def getAllConnectionParameters (se=
lf), add:<br>
return result<br><br>//Make a new /etc/gnue/backends.conf (don&#39;t use th=
e tilde[~] here - it will not complete your home folder path!!):<br>[sample=
]<br>provider =3D sqlite3<br>dbname =3D /home/user/gnue/sandbox/sample<br><=
br>
// Create a sample DB<br>gnue-schema --connection sample --createdb tools/s=
ample/schema/item.gsd<br>// Now update this sample db:<br>gnue-schema --con=
nection sample tools/sample/schema/invoice_item.gsd<br>gnue-schema --connec=
tion sample tools/sample/schema/customer.gsd<br>
gnue-schema --connection sample tools/sample/schema/country.gsd<br><br>// N=
ow, run forms:<br>gnue-forms tools/sample/forms/invoices.gfd<br><br>Now ent=
er data using the forms!!<br>

--20cf3054a4c37db551049c3d852e--


--===============0897524398==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnue

--===============0897524398==--