mirror of
https://github.com/bringout/oca-ocb-security.git
synced 2026-04-23 02:12:04 +02:00
Initial commit: Security packages
This commit is contained in:
commit
bb469e4763
1399 changed files with 278378 additions and 0 deletions
|
|
@ -0,0 +1,10 @@
|
|||
IDS_SEPARATOR = ':'
|
||||
|
||||
def combine_ids(ms_id, ms_uid):
|
||||
if not ms_id:
|
||||
return False
|
||||
return ms_id + IDS_SEPARATOR + (ms_uid if ms_uid else '')
|
||||
|
||||
def split_ids(value):
|
||||
ids = value.split(IDS_SEPARATOR)
|
||||
return tuple(ids) if len(ids) > 1 and ids[1] else (ids[0], False)
|
||||
Loading…
Add table
Add a link
Reference in a new issue