Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #102635

Handling Print Events

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Malik Brahimi <mbrahimi02@gmail.com>
Newsgroups comp.lang.python
Subject Handling Print Events
Date Sun, 7 Feb 2016 15:45:07 -0500
Lines 21
Message-ID <mailman.78.1454878676.2317.python-list@python.org> (permalink)
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace news.uni-berlin.de S5x5etYl4u80CvgxFSeajAgWMbO1dz6/FvPajUZZrQIQ==
Return-Path <mbrahimi02@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.007
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'file)': 0.07; 'callback': 0.09; 'sfxlen:2': 0.10; 'anyway': 0.11; 'server,': 0.15; 'created.': 0.16; 'guys,': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:Print': 0.16; 'network,': 0.18; 'python?': 0.18; 'to:2**1': 0.21; 'thanks,': 0.24; 'not.': 0.27; 'to:no real name:2**1': 0.27; 'message-id:@mail.gmail.com': 0.27; 'reaches': 0.27; 'function': 0.28; 'print': 0.30; 'initially': 0.30; 'regardless': 0.31; 'handle': 0.34; 'server': 0.34; 'received:google.com': 0.35; 'there': 0.36; 'received:209.85': 0.36; 'event.': 0.36; 'volume': 0.36; 'to:addr:python-list': 0.36; 'received:209.85.213': 0.37; 'to:addr:python-win32': 0.37; 'received:209': 0.38; 'to:addr:python.org': 0.40; 'high': 0.60; 'soon': 0.65
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=VllCw0KmPPcTyP9omEi1tw4Q0g6jhnVRpq0FQk7zUtM=; b=I3zXwhL6gCgMfTWQ5sp2QAk5rj0eMwoU1RGMfLHgPcttINMnr6SHu81g5mnzLnpI0o Nwv9m07YOqgaF2K23Dq672z6lvTzpIfXE0XTQAECDHt4GlGNdWNeD/3rBA0p/MOf47A5 1TAUdvaPB9FW8460v4vF9WHZvq4zjsoiZslKNaybjgukdWQCM6ZQS4MnTsUy3hBbRyiX 6TaXzR4Vsu07hJPyW7tLSyB6aoKQ25uRP7GdhHQwr289YzDO2ZDlZAMf4AIekc88OhMd cVZMFZwMxzXCzSgTuiJwPuToP3TckEpIiCG9hvsxn5jzgcp0FB95qWPD4NEZlofcixK6 QJqQ==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=VllCw0KmPPcTyP9omEi1tw4Q0g6jhnVRpq0FQk7zUtM=; b=WSLEyU/nc2GHnGA9YX0v4CT2xBY/CKwFjDHP5Lx7QmPTmGZ4rMLbIqqcAx3Fq+q5+Q 2GhehefNFhZyko0Muo42efGmEkGMuBjGxkExglxRfuICaC42OuFytMx5cFiZ44JSJL8W KkVlKdBLXBTZ0spUOW9lS+4m2+bf/vaj/9lSAruYg5HHRih4SCr4ujR/+UVC+ASFAvSd 9tiV8haGANrCCwYyTzmCfMw+nExIpmzV5OERJHCWQ4/ZVLUc4V/kRUwNaiOGQEjn3PqR RvpKKWmZjF6oSh0fMpc2SuYoieT3sHPHWDYHhgWuL8giEcRGbHph/gTFVNqviJAolv6h v/Lw==
X-Gm-Message-State AG10YOQSG9Xku6X6yLBkfRHTVA0Dqwls8LHuZyHzIG4Ve+a/d3uXgYibyDgBZuFBe3kj6ronGUSSnYie1+LeQw==
X-Received by 10.31.150.215 with SMTP id y206mr17236334vkd.63.1454877907896; Sun, 07 Feb 2016 12:45:07 -0800 (PST)
X-Mailman-Approved-At Sun, 07 Feb 2016 15:57:55 -0500
X-Content-Filtered-By Mailman/MimeDel 2.1.21rc2
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.21rc2
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:102635

Show key headers only | View raw


Hello guys,

So basically, a print job (.SPL file) is generated during local spooling as
soon as a document is requested to print. I do NOT want to handle this
event.

I want to trigger a callback function as soon as a print job reaches a
print server regardless of whether it begins to immediately print there or
not. Essentially, even on a high volume network, I want to catch the even
in which the print job reaches the print server, not the event in which the
print job is initially created.

Is there anyway to do that with Python? I would also like to get the JobId
of said print job as this event is caught.

http://stackoverflow.com/questions/35228080/print-servers-and-triggering-callbacks
http://stackoverflow.com/questions/34519642/received-print-job-python

Thanks,

Malik

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Handling Print Events Malik Brahimi <mbrahimi02@gmail.com> - 2016-02-07 15:45 -0500

csiph-web