[1305] | 1 | # $Id$ |
---|
| 2 | |
---|
| 3 | PyKota - Print Quota for CUPS |
---|
| 4 | |
---|
| 5 | (c) 2003-2004 Jerome Alet <alet@librelogiciel.com> |
---|
| 6 | This program is free software; you can redistribute it and/or modify |
---|
| 7 | it under the terms of the GNU General Public License as published by |
---|
| 8 | the Free Software Foundation; either version 2 of the License, or |
---|
| 9 | (at your option) any later version. |
---|
| 10 | |
---|
| 11 | This program is distributed in the hope that it will be useful, |
---|
| 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 14 | GNU General Public License for more details. |
---|
| 15 | |
---|
| 16 | You should have received a copy of the GNU General Public License |
---|
| 17 | along with this program; if not, write to the Free Software |
---|
| 18 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. |
---|
| 19 | |
---|
| 20 | ==================================================================== |
---|
| 21 | |
---|
| 22 | This directory contains some screenshots of direct access to PyKota's |
---|
| 23 | database through OpenOffice.org |
---|
| 24 | |
---|
| 25 | Since it works but I don't know OpenOffice enough to do something nice |
---|
| 26 | with it, I've added these screenshots and here's a small howto : |
---|
| 27 | |
---|
| 28 | - Install and configure : |
---|
| 29 | |
---|
| 30 | godbcconfig |
---|
| 31 | gtkodbcconfig0 |
---|
| 32 | iodbc |
---|
| 33 | libiodbc2 |
---|
| 34 | odbc-postgresql |
---|
| 35 | odbcinst1 |
---|
| 36 | unixodbc |
---|
| 37 | |
---|
| 38 | - Within gODBCConfig, add the PostgreSQL driver by |
---|
| 39 | filling the Configure Driver form : |
---|
| 40 | |
---|
| 41 | Name : PostgreSQL |
---|
| 42 | Description : PostgreSQL |
---|
| 43 | Driver : /usr/lib/postgresql/psqlodbc.so |
---|
| 44 | Setup : /usr/lib/odbc/libodbcpsqlS.so |
---|
| 45 | FileUsage : 1 |
---|
| 46 | |
---|
| 47 | See gODBCConfig1.png |
---|
| 48 | |
---|
| 49 | Then create a system DSN (only the more important fields |
---|
| 50 | are listed below) : |
---|
| 51 | |
---|
| 52 | DSN : PyKota |
---|
| 53 | Description : PostgreSQL access to PyKota |
---|
| 54 | Driver : PostgreSQL |
---|
| 55 | Database : pykota |
---|
| 56 | Servername : your.postgresql.server.here |
---|
| 57 | Username : pykotauser |
---|
| 58 | Password : pykotauser's password |
---|
| 59 | Port : 5432 |
---|
| 60 | |
---|
| 61 | See gODBCConfig2.png |
---|
| 62 | |
---|
| 63 | - Then in OpenOffice.org add a new data source, selecting |
---|
| 64 | ODBC in the Database Type field. By clicking on the URL |
---|
| 65 | field's continuation dots, the PyKota DSN should appear. |
---|
| 66 | Just select it and you're done. |
---|
| 67 | |
---|
| 68 | See ooo1.png |
---|
| 69 | |
---|
| 70 | - You can now create your own queries to the PyKota database, |
---|
| 71 | and create any report you want. |
---|
| 72 | |
---|
| 73 | See ooo2.png |
---|
| 74 | |
---|
| 75 | - When you've got something nice, please contribute it back |
---|
| 76 | so we can learn from your experience. |
---|
| 77 | |
---|
[1306] | 78 | WARNING : |
---|
| 79 | |
---|
| 80 | The above procedure doesn't work if you use the OpenLDAP backend |
---|
| 81 | to store PyKota's datas. A similar procedure is probably possible |
---|
| 82 | but last time I checked, the LDAP attributes accessible from |
---|
| 83 | OpenOffice.org were limited to what one usually finds in |
---|
| 84 | address books, unfortunately. |
---|
[1305] | 85 | ==================================================================== |
---|