Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vmj-qt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
vmj-qt
Commits
9b463bef
Commit
9b463bef
authored
Dec 31, 2015
by
Dan Pascu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use defaultweakobjectmap from python-application
parent
2b48bb56
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
9 deletions
+1
-9
sessions.py
blink/sessions.py
+1
-9
No files found.
blink/sessions.py
View file @
9b463bef
...
...
@@ -26,7 +26,7 @@ from PyQt4.QtGui import QStyle, QStyledItemDelegate, QStyleOption
from
application.notification
import
IObserver
,
NotificationCenter
,
NotificationData
,
ObserverWeakrefProxy
from
application.python
import
Null
,
limit
from
application.python.types
import
MarkerType
,
Singleton
from
application.python.weakref
import
weakobjectmap
from
application.python.weakref
import
weakobjectmap
,
defaultweakobjectmap
from
eventlib.proc
import
spawn
from
zope.interface
import
implements
...
...
@@ -355,14 +355,6 @@ class StreamContainer(StreamContainerView):
self
.
remove
(
stream
)
class
defaultweakobjectmap
(
weakobjectmap
):
def
__init__
(
self
,
factory
,
*
args
,
**
kw
):
self
.
default_factory
=
factory
super
(
defaultweakobjectmap
,
self
)
.
__init__
(
*
args
,
**
kw
)
def
__missing__
(
self
,
key
):
return
self
.
setdefault
(
key
.
object
,
self
.
default_factory
())
class
StreamListDescriptor
(
object
):
def
__init__
(
self
):
self
.
values
=
defaultweakobjectmap
(
StreamMap
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment