def _ValidateName(self):
    if not hasattr(self, '_plist'):
      raise PlistNotParsedError

    # verify the pkginfo "name" field does not contain any dashes, as they
    # conflict with Munki's manifest <pkginfo_name>-<version> selection feature.
    if self._plist.get('name', '').find('-') != -1:
      raise InvalidPlistError(
          '<key>name</key> cannot contain a dash: %s' % self._plist['name'])
Decorator ensuring that the user is not a read only user.
dataset/ETHPy150Open google/simian/src/simian/mac/munki/plist.py/MunkiPackageInfoPlist._ValidateName--crossover with--dataset/ETHPy150Open cloudera/hue/apps/metastore/src/metastore/views.py/check_has_write_access_permission