Révision 4c755abe
Ajouté par Jérôme Schneider il y a plus de 9 ans
mandaye/backends/default.py | ||
---|---|---|
1 | 1 |
|
2 |
from datetime import datetime |
|
2 | 3 |
from importlib import import_module |
3 | 4 |
|
4 | 5 |
from mandaye import config |
... | ... | |
68 | 69 |
pass |
69 | 70 |
|
70 | 71 |
@staticmethod |
71 |
def update_or_create(sp_name, sp_login, sp_post_values, idp_unique_id, idp_name): |
|
72 |
def update_or_create(sp_name, sp_login, sp_post_values, idp_unique_id, |
|
73 |
idp_name='default', creation_date=None, last_connection_date=None): |
|
72 | 74 |
""" update or create an associtaion which match the following values |
75 |
creation_date and last_connection_date: by default datetime.utcnow() |
|
73 | 76 |
return the association id |
74 | 77 |
""" |
75 | 78 |
pass |
Formats disponibles : Unified diff
backends: add last_connection_date and creation_date to update_or_create
Closes #5542