Skip to content

Commit

Permalink
sipify
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Aug 12, 2024
1 parent 2ff28c7 commit ed7845a
Show file tree
Hide file tree
Showing 12 changed files with 14,028 additions and 13,701 deletions.
178 changes: 89 additions & 89 deletions python/3d/class_map.yaml

Large diffs are not rendered by default.

178 changes: 89 additions & 89 deletions python/PyQt6/3d/class_map.yaml

Large diffs are not rendered by default.

178 changes: 89 additions & 89 deletions python/PyQt6/analysis/class_map.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ Set the storage enabled status to ``enabled``.
virtual void setReadOnly( bool readOnly );
%Docstring
Utility method to unset all editing capabilities.

.. note::

This method does not alter existing capabilities, make sure subclasses recompute capabilities if needed.
%End

virtual bool isReadOnly() const;
Expand Down
10,839 changes: 5,499 additions & 5,340 deletions python/PyQt6/core/class_map.yaml

Large diffs are not rendered by default.

2,544 changes: 1,275 additions & 1,269 deletions python/PyQt6/gui/class_map.yaml

Large diffs are not rendered by default.

118 changes: 59 additions & 59 deletions python/PyQt6/server/class_map.yaml

Large diffs are not rendered by default.

178 changes: 89 additions & 89 deletions python/analysis/class_map.yaml

Large diffs are not rendered by default.

10,839 changes: 5,499 additions & 5,340 deletions python/core/class_map.yaml

Large diffs are not rendered by default.

2,544 changes: 1,275 additions & 1,269 deletions python/gui/class_map.yaml

Large diffs are not rendered by default.

118 changes: 59 additions & 59 deletions python/server/class_map.yaml

Large diffs are not rendered by default.

11 changes: 2 additions & 9 deletions src/core/auth/qgsauthmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3681,13 +3681,10 @@ bool QgsAuthManager::reencryptAuthenticationConfig( const QString &authcfg, cons
// Loop through all storages with capability ReadConfiguration and reencrypt the config
const QList<QgsAuthConfigurationStorage *> storages { authConfigurationStorageRegistry()->readyStoragesWithCapability( Qgis::AuthConfigurationStorageCapability::ReadConfiguration ) };

bool found { false };

for ( QgsAuthConfigurationStorage *storage : std::as_const( storages ) )
{
if ( storage->methodConfigExists( authcfg ) )
{
found = true;
if ( ! storage->isEncrypted() )
{
return true;
Expand Down Expand Up @@ -3723,8 +3720,7 @@ bool QgsAuthManager::reencryptAuthenticationConfig( const QString &authcfg, cons
{
emit messageLog( tr( "Could not connect to any default storage." ), authManTag(), Qgis::MessageLevel::Critical );
}

if ( ! found )
else
{
emit messageLog( tr( "Reencrypt FAILED, could not find config (id: %1)" ).arg( authcfg ), authManTag(), Qgis::MessageLevel::Critical );
}
Expand Down Expand Up @@ -3851,13 +3847,11 @@ bool QgsAuthManager::reencryptAuthenticationIdentity(
// Loop through all storages with capability ReadCertificateIdentity and reencrypt the identity
const QList<QgsAuthConfigurationStorage *> storages { authConfigurationStorageRegistry()->readyStoragesWithCapability( Qgis::AuthConfigurationStorageCapability::ReadCertificateIdentity ) };

bool found { false };

for ( QgsAuthConfigurationStorage *storage : std::as_const( storages ) )
{
if ( storage->certIdentityExists( identid ) )
{
found = true;
if ( ! storage->isEncrypted() )
{
return true;
Expand All @@ -3880,8 +3874,7 @@ bool QgsAuthManager::reencryptAuthenticationIdentity(
{
emit messageLog( tr( "Could not connect to any default storage." ), authManTag(), Qgis::MessageLevel::Critical );
}

if ( ! found )
else
{
emit messageLog( tr( "Reencrypt FAILED, could not find identity (id: %1)" ).arg( identid ), authManTag(), Qgis::MessageLevel::Critical );
}
Expand Down

0 comments on commit ed7845a

Please sign in to comment.