Changeset 859 for pykota/trunk
- Timestamp:
- 03/22/03 14:11:33 (22 years ago)
- Location:
- pykota/trunk
- Files:
-
- 6 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/conf/pykota.conf.sample
r853 r859 23 23 # Ldap, MySQL, Berkeley are planned 24 24 storagebackend: postgresql 25 26 # Quota Storage Server hostname (and port) 27 # e.g. db.mydomain.com:5432 25 28 storageserver: localhost 29 30 # 31 # name of the Quota Storage Database 26 32 storagename: pykota 33 34 # Quota Storage administrator's and normal user's names and passwords 27 35 storageadmin: pykotaadmin 28 36 storageuser: pykotauser -
pykota/trunk/docs/installation.sgml
r858 r859 20 20 21 21 <para> 22 Now we will see what has to be done on all those servers.22 Now we will see what has to be done on these servers. 23 23 <note> 24 24 <title>Note</title> … … 92 92 <para> 93 93 The TCP/IP network port used by PostgreSQL may be different. When in doubt, ask your 94 <glossaryterm>System Administrator</glossaryterm> for the correct value. Actually 95 <application>PyKota</application> does not work if the port used is not the default one, 96 but this limitation will be removed in a future version. 94 <glossaryterm>System Administrator</glossaryterm> for the correct value. 97 95 </para> 98 96 </tip> … … 154 152 155 153 $Log$ 154 Revision 1.5 2003/03/22 13:11:33 jalet 155 The port on which the Quota Storage Sever is listening can now 156 be set in the configuration file (see sample). 157 Better error handling if PygreSQL is not installed. 158 Improved documentation. 159 Version number changed to 1.02alpha 160 156 161 Revision 1.4 2003/03/22 07:20:38 jalet 157 162 More information wrt PostgreSQL tcp/ip configuration. -
pykota/trunk/NEWS
r855 r859 16 16 PyKota NEWS : 17 17 18 - 1.02alpha : 19 20 - Improved documentation. 21 22 - You can now set the tcp/ip port on which the Quota Storage 23 Server is listening, see sample configuration file for details. 24 25 - Better error handling if PygreSQL is not installed or not 26 available. 27 18 28 - 1.01 : 19 29 -
pykota/trunk/pykota/storages/postgresql.py
r800 r859 15 15 # 16 16 # $Log$ 17 # Revision 1.5 2003/03/22 13:11:33 jalet 18 # The port on which the Quota Storage Sever is listening can now 19 # be set in the configuration file (see sample). 20 # Better error handling if PygreSQL is not installed. 21 # Improved documentation. 22 # Version number changed to 1.02alpha 23 # 17 24 # Revision 1.4 2003/02/17 22:05:50 jalet 18 25 # Storage backend now supports admin and user passwords (untested) … … 30 37 # 31 38 32 import pg 39 try : 40 import pg 41 except ImportError : 42 import sys 43 sys.stderr.write("This python version (%s) doesn't seem to have the PygreSQL module installed correctly.\n" % sys.version.split()[0]) 44 raise 33 45 34 46 from pykota.storage import PyKotaStorageError … … 40 52 self.closed = 1 41 53 try : 42 self.database = pg.connect(host=host, dbname=dbname, user=user, passwd=passwd) 54 (host, port) = host.split(":") 55 port = int(port) 56 except ValueError : 57 port = -1 # Use PostgreSQL's default tcp/ip port (5432). 58 59 try : 60 self.database = pg.connect(host=host, port=port, dbname=dbname, user=user, passwd=passwd) 43 61 self.closed = 0 44 62 except pg.error, msg : -
pykota/trunk/pykota/version.py
r850 r859 15 15 # 16 16 17 __version__ = "1.0 1-unofficial"17 __version__ = "1.02alpha-unofficial" 18 18 19 19 __doc__ = """PyKota : a complete Printing Quota Solution for CUPS.""" -
pykota/trunk/README
r851 r859 92 92 network printer capable of outputing its lifetime printed pages 93 93 number. 94 95 If your printers don't support SNMP, then making them work with 96 PyKota is up to you. Some sample scripts which can query non-SNMP 97 printers for their lifetime page counter are included in the 98 ./untested directory. You'll have to test and adapt them though, and 99 define them as external requesters in the PyKota configuration file. 94 100 95 101 ============================================================ … … 213 219 You should ensure that only the print quota administrator 214 220 can run the edpykota command, but this is actually not 215 enforced in the program. Any user could modify his/her216 or other people's print quota.221 enforced in the program. Otherwise, any user could modify 222 his/her or other people's print quota. 217 223 218 224 launching : chmod 750 /usr/bin/warnpykota /usr/bin/edpykota