garfield.printer_aficio2060 Package

garfield.printer_aficio2060.process_account(sess, acct)

Update the garfield printer account based on the current counter value of the Aficio 2060 printer account.

@param sess: Garfield database session. @param acct: Aficio 2060 printer account.

garfield.printer_aficio2060.sync_accounts(sess, um)

Synchronise the printer account counters.

@param sess: Garfield database session. @param um: Aficio 2060 user management session.

garfield.printer_aficio2060.sync_and_reset_accounts(sess, um)

Synchronise and reset the printer account counters. The counters are synchonised between the Garfield database and the Aficio 2060 printer. Afterwards, the Aficio 2060 printer account counters are reset to zero.

To prevent inconsistencies, before syncing and resetting, the printer accounts are locked and later unlocked again.

@param sess: Garfield database session. @param um: Aficio 2060 user management session.