Beispiel #1
0
 def export_saveView( self, viewName, viewDescriptionStub ):
   """
   Saves a view
   """
   if len( viewName ) == 0:
     return S_OK( "View name not valid" )
   viewDescription, _stubLength = DEncode.decode( viewDescriptionStub )
   if not 'definition' in viewDescription:
     return S_ERROR( "No plot definition given" )
   defDict = viewDescription[ 'definition' ]
   defDict[ 'sources.setup' ] = self.serviceInfoDict[ 'clientSetup' ]
   return gServiceInterface.saveView( viewName, viewDescription )
Beispiel #2
0
 def export_saveView(self, viewName, viewDescriptionStub):
     """
     Saves a view
     """
     if not viewName:
         return S_OK("View name not valid")
     viewDescription, _stubLength = DEncode.decode(viewDescriptionStub)
     if "definition" not in viewDescription:
         return S_ERROR("No plot definition given")
     defDict = viewDescription["definition"]
     defDict["sources.setup"] = self.serviceInfoDict["clientSetup"]
     return gServiceInterface.saveView(viewName, viewDescription)