Revision 21e0fdad snf-astakos-app/astakos/im/models.py
b/snf-astakos-app/astakos/im/models.py | ||
---|---|---|
70 | 70 |
SITENAME, SERVICES, MODERATION_ENABLED, RESOURCES_PRESENTATION_DATA) |
71 | 71 |
from astakos.im import settings as astakos_settings |
72 | 72 |
from astakos.im.endpoints.qh import ( |
73 |
register_users, register_resources, qh_add_quota, QuotaLimits,
|
|
73 |
register_resources, qh_add_quota, QuotaLimits, |
|
74 | 74 |
qh_query_serials, qh_ack_serials) |
75 | 75 |
from astakos.im import auth_providers |
76 | 76 |
|
... | ... | |
1962 | 1962 |
post_save.connect(user_post_save, sender=User) |
1963 | 1963 |
|
1964 | 1964 |
def astakosuser_post_save(sender, instance, created, **kwargs): |
1965 |
if not created: |
|
1966 |
return |
|
1967 |
# TODO handle socket.error & IOError |
|
1968 |
register_users((instance,)) |
|
1965 |
pass |
|
1966 |
|
|
1969 | 1967 |
post_save.connect(astakosuser_post_save, sender=AstakosUser) |
1970 | 1968 |
|
1971 | 1969 |
def resource_post_save(sender, instance, created, **kwargs): |
Also available in: Unified diff