Beispiel #1
0
	def update_fpointer(self, identifier, mode=_ADD):
		if mode is _ADD:
			self.__fpointer.append(sanitize_id(identifier))
		elif mode is _DELETE:
			self.__fpointer.remove(sanitize_id(identifier))
		elif mode is _INSERT:
			self.__fpointer = [sanitize_id(identifier)]
Beispiel #2
0
 def update_fpointer(self, identifier, mode=_ADD):
     if mode is _ADD:
         self.__fpointer.append(sanitize_id(identifier))
     elif mode is _DELETE:
         self.__fpointer.remove(sanitize_id(identifier))
     elif mode is _INSERT:
         self.__fpointer = [sanitize_id(identifier)]
Beispiel #3
0
	def __init__(self, name, identifier=None, expanded=True, node_type=const.NODE_TYPE_DATA):
		self.__identifier = (str(uuid.uuid1()) if identifier is None else
				sanitize_id(str(identifier)))
		self.name = name
		self.expanded = expanded
		self.nodeType = node_type
		self.__bpointer = None		# identifier
		self.__fpointer = []		# identifier
Beispiel #4
0
 def __init__(self,
              name,
              identifier=None,
              expanded=True,
              node_type=const.NODE_TYPE_DATA):
     self.__identifier = (str(uuid.uuid1()) if identifier is None else
                          sanitize_id(str(identifier)))
     self.name = name
     self.expanded = expanded
     self.nodeType = node_type
     self.__bpointer = None  # identifier
     self.__fpointer = []  # identifier
Beispiel #5
0
 def bpointer(self, value):
     if value is not None:
         self.__bpointer = sanitize_id(value)
Beispiel #6
0
	def bpointer(self, value):
		if value is not None:
			self.__bpointer = sanitize_id(value)
Beispiel #7
0
 def __init__(self, name, identifier=None, expanded=True):
     self.__identifier = str(uuid.uuid1()) if identifier is None else sanitize_id(str(identifier))
     self.name = name
     self.expanded = expanded
     self.__bpointer = None  # identifier
     self.__fpointer = []  # identifier