.. FCSVRClient Class Definition fcsxml.FCSVRClient ========================================== .. autoclass:: fcsxml.FCSVRClient :members: Example Code ========================================== The following section illustrates some example uses of FCSVRClient. Import the fcsxml module and instantiate an asset at entity path /asset/22: :: >>> import fcsxml >>> myFCSVRAsset = fcsxml.FCSVRClient(id=22,entityType='asset') Tell the asset to restore: :: >>> myFCSVRAsset.restore() Set the value of field ``Export to FM`` to True: :: ## Generate our field object. >>> myField = fcsxml.FCSXMLField(name='Export to FM',value=True,dataType='bool') ## Associate the new field object to our asset >>> myFCSVRAsset.setField(myField) ## Commit the field to FCS >>> myFCSVRAsset.setMD() Instantiate a production object for entity path /project/12: :: >>> myFCSVRProd = fcsxml.FCSVRCLient(id=12,entityType='project') Add our previously created asset as a member to our production: :: >>> myFCSVRProd.addMemberToProduction(member=myFCSVRAsset) Archive all members of our production (as well as nested productions): >>> myFCSVRProd.archive(recurseProductions=True) Mass modify assets in our production (as well as nested productions): :: >>> myAssets = myFCSVRProd.assetsFromProduction(recurse=True) >>> myField = fcsxml.FCSXMLField(name="Owner",value="Monica") >>> for asset in myAssets: >>> asset.setField(myField) >>> asset.setMD() Please refer to the `fcsxml.FCSVRClient`_ API reference for more usage information.