Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
ldapalchemy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
uffd
ldapalchemy
Compare revisions
34cdfca289eb4bcb79c4580135ba971c7a2437d4 to 7a232d305fda3e261b6f8d3c0958a16f4c2e8d8b
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
uffd/ldapalchemy
Select target project
No results found
7a232d305fda3e261b6f8d3c0958a16f4c2e8d8b
Select Git revision
Branches
master
tests
2 results
Swap
Target
uffd/ldapalchemy
Select target project
uffd/ldapalchemy
1 result
34cdfca289eb4bcb79c4580135ba971c7a2437d4
Select Git revision
Branches
master
tests
2 results
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (1)
model.Session: Only run ldap_add_hooks for new objects
· 7a232d30
Julian Rother
authored
4 years ago
7a232d30
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ldapalchemy/model.py
+3
-2
3 additions, 2 deletions
ldapalchemy/model.py
with
3 additions
and
2 deletions
ldapalchemy/model.py
View file @
7a232d30
...
...
@@ -18,8 +18,9 @@ except ImportError:
from
.
import
core
def
add_to_session
(
obj
,
session
):
for
func
in
obj
.
ldap_add_hooks
:
func
(
obj
)
if
obj
.
ldap_object
.
session
is
None
:
for
func
in
obj
.
ldap_add_hooks
:
func
(
obj
)
session
.
add
(
obj
.
ldap_object
,
obj
.
dn
,
obj
.
ldap_object_classes
)
class
Session
:
...
...
This diff is collapsed.
Click to expand it.