parameters: (self, obj)
docstring: Execute code when the document is restored.
  
          Check if new properties are present after the object is restored
          in order to migrate older objects.
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.
  
          Check if new properties are present after the object is restored
          in order to migrate older objects.
          """
          if hasattr(obj, "ViewObject") and obj.ViewObject:
              vobj = obj.ViewObject
              self.add_missing_properties_0v19(obj, vobj)
function_tokens: def onDocumentRestored ( self , obj ) : if hasattr ( obj , "ViewObject" ) and obj . ViewObject : vobj = obj . ViewObject self . add_missing_properties_0v19 ( obj , vobj )