Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 158130 Details for
Bug 246102
MonitorDB contains several entries for the same MonitorId
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
a script for simple checking of MonitorsDB
CheckMonitorsDB.py (text/plain), 1.18 KB, created by
Sergey Scobich
on 2007-06-28 15:07:39 UTC
(
hide
)
Description:
a script for simple checking of MonitorsDB
Filename:
MIME Type:
Creator:
Sergey Scobich
Created:
2007-06-28 15:07:39 UTC
Size:
1.18 KB
patch
obsolete
>f = open("MonitorsDB", "r") >out = open("MonitorsDBOut", "w") > >monIds = dict() > >for line in f.readlines(): > if len(line.strip()) and not line.strip().startswith('#'): > values = map(lambda x: x.strip(), line.split(';')) > if len(values) < 5: > print "This line contains two few values\n%s" % line > manufacturer = values[0] > model = values[1] > monId = values[2] > vGh = values[3] > hGh = values[4] > if len(manufacturer) == 0: > print "This line doesn't contain Manufacturer\t%s" % line > continue > if len(model) == 0: > print "This line contains empty model\t%s" % line > continue > if len(monId) == 0 or monId == "0": > print "This line contains empty monitor Id\n%s" % line > continue > if len(vGh) == 0 or len(hGh) == 0: > print "This line contains wrong Gh\t%s" % line > continue > if monIds.has_key(monId): > print "Two line have the same monitor Ids\n%s%s" % (monIds[monId], line) > continue > else: > monIds[monId] = line > out.write(line) >f.close() >out.close()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 246102
:
158129
| 158130