parameters: (self)
docstring: Refresh the folder contents
docstring_summary: Refresh the folder contents
docstring_tokens: Refresh the folder contents
function: def IRefreshImagerFolder(self):
          "Refresh the folder contents"
          global ImagerContents
          global CurrentContentIdx
          ageVault = ptAgeVault()
          folder = ageVault.getDeviceInbox(ImagerName.value)
          if folder is not None:
              prevsize = len(ImagerContents)
              ImagerContents = folder.getChildNodeRefList()
              # check to make sure we are not over budget... but only on the master
              if ImagerObject.sceneobject.isLocallyOwned():
                  if len(ImagerContents) > ImagerMax.value:
                      # time to get rid of one... find oldest
                      # for now... just get rid of the first one in the list
                      relem = ImagerContents[0].getChild()
                      PtDebugPrint("xSimpleImager[%s]: removing element %d" % (ImagerName.value,relem.getID()),level=kDebugDumpLevel)
                      folder.removeNode(relem)
              # if we went from none to some, then display one now
              if prevsize == 0 and len(ImagerContents):
                  self.IChangeCurrentContent()
          else:
              # there is no folders
              #~ PtDebugPrint("simpleImager: folder(%s) had nothing in it!" % (ImagerName.value))
              ImagerContents = []
function_tokens: def IRefreshImagerFolder ( self ) : global ImagerContents global CurrentContentIdx ageVault = ptAgeVault ( ) folder = ageVault . getDeviceInbox ( ImagerName . value ) if folder is not None : prevsize = len ( ImagerContents ) ImagerContents = folder . getChildNodeRefList ( ) # check to make sure we are not over budget... but only on the master if ImagerObject . sceneobject . isLocallyOwned ( ) : if len ( ImagerContents ) > ImagerMax . value : # time to get rid of one... find oldest # for now... just get rid of the first one in the list relem = ImagerContents [ 0 ] . getChild ( ) PtDebugPrint ( "xSimpleImager[%s]: removing element %d" % ( ImagerName . value , relem . getID ( ) ) , level = kDebugDumpLevel ) folder . removeNode ( relem ) # if we went from none to some, then display one now if prevsize == 0 and len ( ImagerContents ) : self . IChangeCurrentContent ( ) else : # there is no folders #~ PtDebugPrint("simpleImager: folder(%s) had nothing in it!" % (ImagerName.value)) ImagerContents = [ ]