you’re getting an error, looks like getFullTagPath() (Apparently I need more coffee) isn’t a valid function.
Try:
if self.xfilter in str(tag.getFullPath()):
return True
return False
you’re getting an error, looks like getFullTagPath() (Apparently I need more coffee) isn’t a valid function.
Try:
if self.xfilter in str(tag.getFullPath()):
return True
return False
Code
print “**** HERE *****”
print type(self)
if self.xFilter in str(tag.getFullPath()):
return True
return False
You can insert three back ticks ``` before and after your code to preformat it, or there is a button </>
which will insert a block for you to put your code in.
What do you get if you do this:
print self.xfilter, str(tag.getFullPath())
if self.xfilter in str(tag.getFullPath()):
return True
return False
Okay, I understand now what is happening. getFullPath()
only returns the folder information.
Does this give expected results:
if self.xfilter in str(tag.getFullPath()) or self.xfilter in tag.name:
return True
return False