Univention Bugzilla – Attachment 8254 Details for
Bug 43051
italc 3.0 segfault in screenshot()
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Reproducer
italc_screenshot.py (text/x-python), 1.20 KB, created by
Florian Best
on 2016-11-29 17:01 CET
(
hide
)
Description:
Reproducer
Filename:
MIME Type:
Creator:
Florian Best
Created:
2016-11-29 17:01 CET
Size:
1.20 KB
patch
obsolete
>#!/usr/bin/python2.7 >import italc >import notifier >import PyQt4.Qt as qt >import sys >import sip >from PyQt4.QtCore import pyqtSlot > > >qApp = qt.QCoreApplication(sys.argv) >notifier.init(notifier.QT) > >italc.ItalcCore.init() > >italc.ItalcCore.config.setLogLevel(italc.Logger.LogLevelDebug) >italc.ItalcCore.config.setLogToStdErr(True) >italc.ItalcCore.config.setLogFileDirectory('/var/log/univention/') >italc.Logger('ucs-school-umc-computerroom') >italc.ItalcCore.config.setLogonAuthenticationEnabled(False) > >italc.ItalcCore.setRole(italc.ItalcCore.RoleTeacher) >italc.ItalcCore.initAuthentication(italc.AuthenticationCredentials.PrivateKey) > > >class Computer(object): > > def __init__(self, ip='10.200.27.151'): > vnc = italc.ItalcVncConnection() > sip.transferto(vnc, None) > vnc.setPort(11100) > vnc.setHost('10.200.27.151') > vnc.setQuality(italc.ItalcVncConnection.ThumbnailQuality) > vnc.start() > self.vnc = vnc > self.vnc.stateChanged.connect(self.state_changed) > self.core = italc.ItalcCoreConnection(self.vnc) > > @pyqtSlot(int) > def state_changed(self, state): > print 'state changed', state > > >def dispatcher(): > c.vnc.image().save('/tmp/foo.jpg', 'JPG') > return True > > >c = Computer() >notifier.dispatcher_add(dispatcher) >notifier.loop()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
Attachments on
bug 43051
:
8242
| 8254