git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix for smooth federation between 4.2 and 4.3
[plcapi.git]
/
PLC
/
Methods
/
AddPersonToSite.py
diff --git
a/PLC/Methods/AddPersonToSite.py
b/PLC/Methods/AddPersonToSite.py
index
abc3a70
..
185fdc9
100644
(file)
--- a/
PLC/Methods/AddPersonToSite.py
+++ b/
PLC/Methods/AddPersonToSite.py
@@
-1,3
+1,4
@@
+# $Id$
from PLC.Faults import *
from PLC.Method import Method
from PLC.Parameter import Parameter, Mixed
from PLC.Faults import *
from PLC.Method import Method
from PLC.Parameter import Parameter, Mixed
@@
-47,10
+48,10
@@
class AddPersonToSite(Method):
if site['site_id'] not in person['site_ids']:
site.add_person(person)
if site['site_id'] not in person['site_ids']:
site.add_person(person)
- person.send_account_registered_email(site)
# Logging variables
# Logging variables
- self.object_ids = [site['site_id']]
+ self.event_objects = {'Site': [site['site_id']],
+ 'Person': [person['person_id']]}
self.message = 'Person %d added to site %d' % \
(person['person_id'], site['site_id'])
return 1
self.message = 'Person %d added to site %d' % \
(person['person_id'], site['site_id'])
return 1