Show
Ignore:
Timestamp:
08/18/10 04:20:57 (14 years ago)
Author:
jerome
Message:

Removed support for the MaxJobSize? attribute for users group print quota
entries : I couldn't see a real use for this at the moment, and it would
complexify the code. This support might reappear later however. Added full
support for the MaxJobSize? attribute for user print quota entries,
editable with edpykota's new --maxjobsize command line switch. Changed
the internal handling of the MaxJobSize? attribute for printers :
internally 0 used to mean unlimited, it now allows one to forbid
printing onto a particular printer. The database upgrade script (only
for PostgreSQL) takes care of this.
IMPORTANT : the database schema changes. A database upgrade script is
provided for PostgreSQL only. The LDAP schema doesn't change to not
break any existing LDAP directory, so the pykotaMaxJobSize attribute is
still allowed on group print quota entries, but never used.
Seems to work as expected, for a change :-)
Fixes #15.

Location:
pykota/trunk/initscripts
Files:
1 added
4 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/initscripts/ldap/pykota.schema

    r3481 r3549  
    55# LDAP Schema for Pykota Quota System 
    66# 
    7 # (c) 2003-2009 Jerome Alet <alet@librelogiciel.com> 
     7# (c) 2003-2010 Jerome Alet <alet@librelogiciel.com> 
    88# This program is free software: you can redistribute it and/or modify 
    99# it under the terms of the GNU General Public License as published by 
     
    293293 
    294294# pykotaGroupPQuota 
     295# NB : we still allow pykotaMaxJobSize here but 
     296# only to not break existing LDAP directories. 
     297# This attribute is not supported for users groups. 
    295298objectclass ( 1.3.6.1.4.1.16868.1.2.5 NAME 'pykotaGroupPQuota' SUP top AUXILIARY 
    296299        DESC 'PyKota Group Quota on a Printer' 
  • pykota/trunk/initscripts/mysql/pykota-mysql.sql

    r3481 r3549  
    141141                         softlimit INT4, 
    142142                         hardlimit INT4, 
    143                          maxjobsize INT4, 
    144143                         datelimit DATETIME, 
    145144                         INDEX (groupid), 
  • pykota/trunk/initscripts/postgresql/pykota-postgresql.sql

    r3481 r3549  
    129129                         softlimit INT4, 
    130130                         hardlimit INT4, 
    131                          maxjobsize INT4, 
    132131                         datelimit TIMESTAMP); 
    133132CREATE INDEX grouppquota_g_id_ix ON grouppquota (groupid); 
  • pykota/trunk/initscripts/sqlite/pykota-sqlite.sql

    r3481 r3549  
    112112                         softlimit INT4, 
    113113                         hardlimit INT4, 
    114                          maxjobsize INT4, 
    115114                         datelimit TEXT); 
    116115CREATE INDEX grouppquota_g_id_ix ON grouppquota (groupid);