chrome/installer/mac/signing/model.py
def to_config(self, base_config):
        """Produces a derived |config.CodeSignConfig| for the Distribution.

        Args:
            base_config: The base CodeSignConfig to derive.

        Returns:
            A new CodeSignConfig instance that uses information in the
            Distribution to alter various properties of the |base_config|.
        """
        this = self

        class DistributionCodeSignConfig(base_config.__class__):

            @property
            def base_config(self):
                return base_config

            @property
            def distribution(self):
                return this

            @property
            def app_product(self):
                if this.channel_customize:
                    return '{} {}'.format(base_config.app_product,
                                          this.app_name_fragment)
                return base_config.app_product

            @property
            def base_bundle_id(self):
                base_bundle_id = base_config.base_bundle_id
                if this.channel_customize:
                    return base_bundle_id + '.' + this.channel
                return base_bundle_id

            @property
            def provisioning_profile_basename(self):
                profile = base_config.provisioning_profile_basename
                if profile and this.channel_customize:
                    return '{}_{}'.format(profile, this.app_name_fragment)
                return profile

            @property
            def packaging_basename(self):
                if this.packaging_name_fragment:
                    return '{}-{}-{}'.format(
                        self.app_product.replace(' ', ''), self.version,
                        this.packaging_name_fragment)
                return super(DistributionCodeSignConfig,
                             self).packaging_basename

        return DistributionCodeSignConfig(base_config.identity,
                                          base_config.installer_identity,
                                          base_config.notary_user,
                                          base_config.notary_password,
                                          base_config.notary_asc_provider)
Produces a derived |config.CodeSignConfig| for the Distribution.

        Args:
            base_config: The base CodeSignConfig to derive.

        Returns:
            A new CodeSignConfig instance that uses information in the
            Distribution to alter various properties of the |base_config|.
        
Produces a derived |config.CodeSignConfig| for the Distribution.
Produces a derived |config . CodeSignConfig| for the Distribution .
def to_config(self, base_config):
        this = self
        class DistributionCodeSignConfig(base_config.__class__):
            @property
            def base_config(self):
                return base_config
            @property
            def distribution(self):
                return this
            @property
            def app_product(self):
                if this.channel_customize:
                    return '{} {}'.format(base_config.app_product,
                                          this.app_name_fragment)
                return base_config.app_product
            @property
            def base_bundle_id(self):
                base_bundle_id = base_config.base_bundle_id
                if this.channel_customize:
                    return base_bundle_id + '.' + this.channel
                return base_bundle_id
            @property
            def provisioning_profile_basename(self):
                profile = base_config.provisioning_profile_basename
                if profile and this.channel_customize:
                    return '{}_{}'.format(profile, this.app_name_fragment)
                return profile
            @property
            def packaging_basename(self):
                if this.packaging_name_fragment:
                    return '{}-{}-{}'.format(
                        self.app_product.replace(' ', ''), self.version,
                        this.packaging_name_fragment)
                return super(DistributionCodeSignConfig,
                             self).packaging_basename
        return DistributionCodeSignConfig(base_config.identity,
                                          base_config.installer_identity,
                                          base_config.notary_user,
                                          base_config.notary_password,
                                          base_config.notary_asc_provider)
def to_config ( self , base_config ) : this = self class DistributionCodeSignConfig ( base_config . __class__ ) : @ property def base_config ( self ) : return base_config @ property def distribution ( self ) : return this @ property def app_product ( self ) : if this . channel_customize : return '{} {}' . format ( base_config . app_product , this . app_name_fragment ) return base_config . app_product @ property def base_bundle_id ( self ) : base_bundle_id = base_config . base_bundle_id if this . channel_customize : return base_bundle_id + '.' + this . channel return base_bundle_id @ property def provisioning_profile_basename ( self ) : profile = base_config . provisioning_profile_basename if profile and this . channel_customize : return '{}_{}' . format ( profile , this . app_name_fragment ) return profile @ property def packaging_basename ( self ) : if this . packaging_name_fragment : return '{}-{}-{}' . format ( self . app_product . replace ( ' ' , '' ) , self . version , this . packaging_name_fragment ) return super ( DistributionCodeSignConfig , self ) . packaging_basename return DistributionCodeSignConfig ( base_config . identity , base_config . installer_identity , base_config . notary_user , base_config . notary_password , base_config . notary_asc_provider )
Produces a derived |config.CodeSignConfig| for the Distribution.
Produces a derived |config . CodeSignConfig| for the Distribution .
"""Produces a derived |config.CodeSignConfig| for the Distribution.

        Args:
            base_config: The base CodeSignConfig to derive.

        Returns:
            A new CodeSignConfig instance that uses information in the
            Distribution to alter various properties of the |base_config|.
        """
A new CodeSignConfig instance that uses information in the
Distribution to alter various properties of the |base_config|.
A new CodeSignConfig instance that uses information in the Distribution to alter various properties of the |base_config| .
self
base_config
The base CodeSignConfig to derive.
The base CodeSignConfig to derive .