parameters: (self, obj)
docstring: Execute code when the document is restored.
  
          Add properties that don't exist.
docstring_summary: Execute code when the document is restored.
docstring_tokens: Execute code when the document is restored .
function: def onDocumentRestored(self, obj):
          """Execute code when the document is restored.
  
          Add properties that don't exist.
          """
          self.set_properties(obj)
  
          if self.use_link:
              self.linkSetup(obj)
          else:
              obj.setPropertyStatus('Shape', '-Transient')
  
          if obj.Shape.isNull():
              if getattr(obj, 'PlacementList', None):
                  self.buildShape(obj, obj.Placement, obj.PlacementList)
              else:
                  self.execute(obj)
function_tokens: def onDocumentRestored ( self , obj ) : self . set_properties ( obj ) if self . use_link : self . linkSetup ( obj ) else : obj . setPropertyStatus ( 'Shape' , '-Transient' ) if obj . Shape . isNull ( ) : if getattr ( obj , 'PlacementList' , None ) : self . buildShape ( obj , obj . Placement , obj . PlacementList ) else : self . execute ( obj )