summaryrefslogtreecommitdiff
path: root/python/__init__.py
diff options
context:
space:
mode:
authorRusty Wagner <rusty@vector35.com>2016-10-10 16:46:21 -0400
committerRusty Wagner <rusty@vector35.com>2016-10-10 16:46:21 -0400
commit70dd487931d7bcd75e10753a741fba3299488327 (patch)
tree3e8de08389e2a318656c157fa936720c7cd7128b /python/__init__.py
parent82ee81338df6e1439cd8a8a67c599523ed9d4df9 (diff)
Rename data to session_data, as this API is per-session and not stored in the db
Diffstat (limited to 'python/__init__.py')
-rw-r--r--python/__init__.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/python/__init__.py b/python/__init__.py
index f5a46798..bfd2358f 100644
--- a/python/__init__.py
+++ b/python/__init__.py
@@ -243,7 +243,7 @@ class FileMetadata(object):
del cls._associated_data[handle.value]
@classmethod
- def set_default_data(cls, name, value):
+ def set_default_session_data(cls, name, value):
_FileMetadataAssociatedDataStore.set_default(name, value)
@property
@@ -324,7 +324,7 @@ class FileMetadata(object):
self.nav = value
@property
- def data(self):
+ def session_data(self):
"""Dictionary object where plugins can store arbitrary data associated with the file"""
handle = ctypes.cast(self.handle, ctypes.c_void_p)
if handle.value not in FileMetadata._associated_data:
@@ -1096,7 +1096,7 @@ class BinaryView(object):
del cls._associated_data[handle.value]
@classmethod
- def set_default_data(cls, name, value):
+ def set_default_session_data(cls, name, value):
_BinaryViewAssociatedDataStore.set_default(name, value)
def __del__(self):
@@ -1311,7 +1311,7 @@ class BinaryView(object):
return result
@property
- def data(self):
+ def session_data(self):
"""Dictionary object where plugins can store arbitrary data associated with the view"""
handle = ctypes.cast(self.handle, ctypes.c_void_p)
if handle.value not in BinaryView._associated_data:
@@ -4589,7 +4589,7 @@ class Function(object):
del cls._associated_data[handle.value]
@classmethod
- def set_default_data(cls, name, value):
+ def set_default_session_data(cls, name, value):
_FunctionAssociatedDataStore.set_default(name, value)
@property
@@ -4717,7 +4717,7 @@ class Function(object):
return result
@property
- def data(self):
+ def session_data(self):
"""Dictionary object where plugins can store arbitrary data associated with the function"""
handle = ctypes.cast(self.handle, ctypes.c_void_p)
if handle.value not in Function._associated_data: