ipaserver.plugins.baseldap.entry_from_entry¶
- ipaserver.plugins.baseldap.entry_from_entry(entry, newentry)[source]¶
Python is more or less pass-by-value except for immutable objects. So if you pass in a dict to a function you are free to change members of that dict but you can’t create a new dict in the function and expect to replace what was passed in.
In some post-op plugins that is exactly what we want to do, so here is a clumsy way around the problem.