|
Lines 1802-1808
def _object_mapping(self, key, old_object, object_type='con'):
Link Here
|
| 1802 |
for attribute, values in object['attributes'].items(): |
1802 |
for attribute, values in object['attributes'].items(): |
| 1803 |
if self.property[key].attributes: |
1803 |
if self.property[key].attributes: |
| 1804 |
for attr_key in self.property[key].attributes.keys(): |
1804 |
for attr_key in self.property[key].attributes.keys(): |
| 1805 |
if attribute == self.property[key].attributes[attr_key].ldap_attribute: |
1805 |
if attribute.lower() == self.property[key].attributes[attr_key].ldap_attribute.lower(): |
| 1806 |
# mapping function |
1806 |
# mapping function |
| 1807 |
if hasattr(self.property[key].attributes[attr_key], 'mapping'): |
1807 |
if hasattr(self.property[key].attributes[attr_key], 'mapping'): |
| 1808 |
if self.property[key].attributes[attr_key].mapping[0]: |
1808 |
if self.property[key].attributes[attr_key].mapping[0]: |
|
Lines 1830-1836
def _object_mapping(self, key, old_object, object_type='con'):
Link Here
|
| 1830 |
|
1830 |
|
| 1831 |
if hasattr(self.property[key], 'post_attributes') and self.property[key].post_attributes is not None: |
1831 |
if hasattr(self.property[key], 'post_attributes') and self.property[key].post_attributes is not None: |
| 1832 |
for attr_key in self.property[key].post_attributes.keys(): |
1832 |
for attr_key in self.property[key].post_attributes.keys(): |
| 1833 |
if attribute == self.property[key].post_attributes[attr_key].ldap_attribute: |
1833 |
if attribute.lower() == self.property[key].post_attributes[attr_key].ldap_attribute.lower(): |
| 1834 |
if hasattr(self.property[key].post_attributes[attr_key], 'mapping'): |
1834 |
if hasattr(self.property[key].post_attributes[attr_key], 'mapping'): |
| 1835 |
if self.property[key].post_attributes[attr_key].mapping[0]: |
1835 |
if self.property[key].post_attributes[attr_key].mapping[0]: |
| 1836 |
object_out['attributes'][self.property[key].post_attributes[attr_key].con_attribute] = self.property[key].post_attributes[attr_key].mapping[0](self, key, object) |
1836 |
object_out['attributes'][self.property[key].post_attributes[attr_key].con_attribute] = self.property[key].post_attributes[attr_key].mapping[0](self, key, object) |
|
Lines 1848-1854
def _object_mapping(self, key, old_object, object_type='con'):
Link Here
|
| 1848 |
for attribute, values in object['attributes'].items(): |
1848 |
for attribute, values in object['attributes'].items(): |
| 1849 |
if self.property[key].attributes: |
1849 |
if self.property[key].attributes: |
| 1850 |
for attr_key in self.property[key].attributes.keys(): |
1850 |
for attr_key in self.property[key].attributes.keys(): |
| 1851 |
if attribute == self.property[key].attributes[attr_key].con_attribute: |
1851 |
if attribute.lower() == self.property[key].attributes[attr_key].con_attribute.lower(): |
| 1852 |
# mapping function |
1852 |
# mapping function |
| 1853 |
if hasattr(self.property[key].attributes[attr_key], 'mapping'): |
1853 |
if hasattr(self.property[key].attributes[attr_key], 'mapping'): |
| 1854 |
# direct mapping |
1854 |
# direct mapping |
|
Lines 1876-1882
def _object_mapping(self, key, old_object, object_type='con'):
Link Here
|
| 1876 |
|
1876 |
|
| 1877 |
if hasattr(self.property[key], 'post_attributes') and self.property[key].post_attributes is not None: |
1877 |
if hasattr(self.property[key], 'post_attributes') and self.property[key].post_attributes is not None: |
| 1878 |
for attr_key in self.property[key].post_attributes.keys(): |
1878 |
for attr_key in self.property[key].post_attributes.keys(): |
| 1879 |
if attribute == self.property[key].post_attributes[attr_key].con_attribute: |
1879 |
if attribute.lower() == self.property[key].post_attributes[attr_key].con_attribute.lower(): |
| 1880 |
if hasattr(self.property[key].post_attributes[attr_key], 'mapping'): |
1880 |
if hasattr(self.property[key].post_attributes[attr_key], 'mapping'): |
| 1881 |
if self.property[key].post_attributes[attr_key].mapping[1]: |
1881 |
if self.property[key].post_attributes[attr_key].mapping[1]: |
| 1882 |
object_out['attributes'][self.property[key].post_attributes[attr_key].ldap_attribute] = self.property[key].post_attributes[attr_key].mapping[1](self, key, object) |
1882 |
object_out['attributes'][self.property[key].post_attributes[attr_key].ldap_attribute] = self.property[key].post_attributes[attr_key].mapping[1](self, key, object) |