add stub sync methods and isChildOf helper method
This commit is contained in:
parent
f5d3e26a0b
commit
ad679b9ae6
1 changed files with 16 additions and 0 deletions
|
@ -27,6 +27,16 @@ class BaseObject:
|
||||||
|
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
def isChildOf(self, parent):
|
||||||
|
p = self.feature
|
||||||
|
|
||||||
|
while p:
|
||||||
|
if p == parent:
|
||||||
|
return True
|
||||||
|
p = p.getParent()
|
||||||
|
|
||||||
|
return False
|
||||||
|
|
||||||
def onBeforeChange(self, feature, prop):
|
def onBeforeChange(self, feature, prop):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@ -44,5 +54,11 @@ class BaseObject:
|
||||||
def setup_properties(self, feature):
|
def setup_properties(self, feature):
|
||||||
feature.addProperty('App::PropertyString', 'Type', 'KiConnect', 'Internatl KiConnect Type', read_only=True, hidden=True)
|
feature.addProperty('App::PropertyString', 'Type', 'KiConnect', 'Internatl KiConnect Type', read_only=True, hidden=True)
|
||||||
|
|
||||||
|
def sync_from(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def sync_to(self):
|
||||||
|
pass
|
||||||
|
|
||||||
def __getstate__(self):
|
def __getstate__(self):
|
||||||
return None
|
return None
|
||||||
|
|
Loading…
Add table
Reference in a new issue