edk2toollib/uefi/edk2/variable_policy.py
def csv_row(self, guid_xref: dict = None):
        """
        returns a list containing the elements of this structure (in the same order as the csv_header)
        ready to be written to a csv file

        guid_xref - a dictionary of GUID/name substitutions where the key is a uuid object
                    and the value is a string
        """
        if guid_xref is None:
            guid_xref = {}

        result = [guid_xref.get(self.Namespace, self.Namespace),
                  self.Name, VariablePolicyEntry.LOCK_POLICY_STRING_MAP[self.LockPolicyType]]

        if self.LockPolicyType in (VariablePolicyEntry.TYPE_NO_LOCK,
                                   VariablePolicyEntry.TYPE_LOCK_NOW,
                                   VariablePolicyEntry.TYPE_LOCK_ON_CREATE):
            result += ['N/A', 'N/A', 'N/A']
        elif self.LockPolicyType is VariablePolicyEntry.TYPE_LOCK_ON_VAR_STATE:
            result += [guid_xref.get(self.LockPolicy.Namespace, self.LockPolicy.Namespace),
                       self.LockPolicy.Name, self.LockPolicy.Value]

        result += ["0x%08X" % self.MinSize,
                   "0x%08X" % self.MaxSize,
                   str(EfiVariableAttributes(self.AttributesMustHave)),
                   str(EfiVariableAttributes(self.AttributesCantHave))]

        return result

        returns a list containing the elements of this structure (in the same order as the csv_header)
        ready to be written to a csv file

        guid_xref - a dictionary of GUID/name substitutions where the key is a uuid object
                    and the value is a string
        
returns a list containing the elements of this structure (in the same order as the csv_header)
ready to be written to a csv file

a dictionary of GUID/name substitutions where the key is a uuid object
and the value is a string
returns a list containing the elements of this structure ( in the same order as the csv_header ) ready to be written to a csv file a dictionary of GUID / name substitutions where the key is a uuid object and the value is a string
def csv_row(self, guid_xref: dict = None):
        if guid_xref is None:
            guid_xref = {}
        result = [guid_xref.get(self.Namespace, self.Namespace),
                  self.Name, VariablePolicyEntry.LOCK_POLICY_STRING_MAP[self.LockPolicyType]]
        if self.LockPolicyType in (VariablePolicyEntry.TYPE_NO_LOCK,
                                   VariablePolicyEntry.TYPE_LOCK_NOW,
                                   VariablePolicyEntry.TYPE_LOCK_ON_CREATE):
            result += ['N/A', 'N/A', 'N/A']
        elif self.LockPolicyType is VariablePolicyEntry.TYPE_LOCK_ON_VAR_STATE:
            result += [guid_xref.get(self.LockPolicy.Namespace, self.LockPolicy.Namespace),
                       self.LockPolicy.Name, self.LockPolicy.Value]
        result += ["0x%08X" % self.MinSize,
                   "0x%08X" % self.MaxSize,
                   str(EfiVariableAttributes(self.AttributesMustHave)),
                   str(EfiVariableAttributes(self.AttributesCantHave))]
        return result
def csv_row ( self , guid_xref : dict = None ) : if guid_xref is None : guid_xref = { } result = [ guid_xref . get ( self . Namespace , self . Namespace ) , self . Name , VariablePolicyEntry . LOCK_POLICY_STRING_MAP [ self . LockPolicyType ] ] if self . LockPolicyType in ( VariablePolicyEntry . TYPE_NO_LOCK , VariablePolicyEntry . TYPE_LOCK_NOW , VariablePolicyEntry . TYPE_LOCK_ON_CREATE ) : result += [ 'N/A' , 'N/A' , 'N/A' ] elif self . LockPolicyType is VariablePolicyEntry . TYPE_LOCK_ON_VAR_STATE : result += [ guid_xref . get ( self . LockPolicy . Namespace , self . LockPolicy . Namespace ) , self . LockPolicy . Name , self . LockPolicy . Value ] result += [ "0x%08X" % self . MinSize , "0x%08X" % self . MaxSize , str ( EfiVariableAttributes ( self . AttributesMustHave ) ) , str ( EfiVariableAttributes ( self . AttributesCantHave ) ) ] return result
returns a list containing the elements of this structure (in the same order as the csv_header)
ready to be written to a csv file
returns a list containing the elements of this structure ( in the same order as the csv_header ) ready to be written to a csv file
"""
        returns a list containing the elements of this structure (in the same order as the csv_header)
        ready to be written to a csv file

        guid_xref - a dictionary of GUID/name substitutions where the key is a uuid object
                    and the value is a string
        """
self
guid_xref
dict