This website works better with JavaScript.
Home
Help
Sign In
LILiK
/
ca_manager
Watch
5
Star
0
Fork
0
Code
Issues
0
Pull Requests
2
Releases
0
Wiki
Activity
Browse Source
make CALookup iterable
failed_true
Edoardo Putti
8 years ago
parent
6a6a70416f
commit
a546e8bf44
1 changed files
with
5 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-0
ca_manager.py
+ 5
- 0
ca_manager.py
View File
@ -185,6 +185,11 @@ class CALookup(object):
self
.
ssl_ca_dir
=
ssl_ca_dir
def
__iter__
(
self
)
:
c
=
self
.
conn
.
cursor
(
)
c
.
execute
(
"""
SELECT id, name, type FROM cas
"""
)
return
iter
(
c
.
fetchall
(
)
)
def
__delitem__
(
self
,
ca_id
)
:
"""
Write
Preview
Loading…
Cancel
Save