Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
djangoldp-notification
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
djangoldp-packages
djangoldp-notification
Commits
e8881f3f
Commit
e8881f3f
authored
11 months ago
by
Benoit Alessandroni
Browse files
Options
Downloads
Plain Diff
Merge branch 'feature/change-subscriptions' into 'master'
fixing: the user subscription See merge request
!57
parents
bdb1aa96
895ea8d5
No related branches found
Branches containing commit
Tags
v3.1.3
Tags containing commit
1 merge request
!57
fixing: the user subscription
Pipeline
#17719
passed
11 months ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
djangoldp_notification/management/commands/create_subscriptions.py
+5
-7
5 additions, 7 deletions
..._notification/management/commands/create_subscriptions.py
with
5 additions
and
7 deletions
djangoldp_notification/management/commands/create_subscriptions.py
+
5
−
7
View file @
e8881f3f
...
@@ -35,16 +35,14 @@ class Command(BaseCommand):
...
@@ -35,16 +35,14 @@ class Command(BaseCommand):
pass
pass
# Allow us to manage general information about circles and projects like name, jabberIDs, description, etc.
# Allow us to manage general information about circles and projects like name, jabberIDs, description, etc.
Subscription
.
objects
.
get_or_create
(
object
=
host
+
"
/circles/
"
,
inbox
=
xmpp
+
"
/conference.
"
+
jabber_host
+
"
/startinblox_muc_admin
"
,
field
=
None
)
Subscription
.
objects
.
get_or_create
(
object
=
host
+
"
/circles/
"
,
inbox
=
xmpp
+
"
/conference.
"
+
jabber_host
+
"
/startinblox_
groups_
muc_admin
"
,
field
=
None
)
Subscription
.
objects
.
get_or_create
(
object
=
host
+
"
/projects/
"
,
inbox
=
xmpp
+
"
/conference.
"
+
jabber_host
+
"
/startinblox_muc_admin
"
,
field
=
None
)
Subscription
.
objects
.
get_or_create
(
object
=
host
+
"
/projects/
"
,
inbox
=
xmpp
+
"
/conference.
"
+
jabber_host
+
"
/startinblox_
groups_
muc_admin
"
,
field
=
None
)
# The management of circle and projets members now comes from management of groups
# The management of circle and projets members now comes from management of groups
Subscription
.
objects
.
get_or_create
(
object
=
host
+
"
/groups/
"
,
inbox
=
xmpp
+
"
/conference.
"
+
jabber_host
+
"
/startinblox_groups_muc_members_admin
"
,
field
=
None
)
Subscription
.
objects
.
get_or_create
(
object
=
host
+
"
/groups/
"
,
inbox
=
xmpp
+
"
/conference.
"
+
jabber_host
+
"
/startinblox_groups_muc_members_admin
"
,
field
=
None
)
# Allow us to manage general information about users, like their names, jabberID, avatars, etc.
# Allow us to manage general information about users, like their names, jabberID, avatars, etc.
Subscription
.
objects
.
get_or_create
(
object
=
host
+
"
/users/
"
,
inbox
=
xmpp
+
"
/
"
+
jabber_host
+
"
/happydev_user_admin
"
,
field
=
None
)
Subscription
.
objects
.
get_or_create
(
object
=
host
+
"
/users/
"
,
inbox
=
xmpp
+
"
/
"
+
jabber_host
+
"
/startinblox_groups_user_admin
"
,
field
=
None
)
Subscription
.
objects
.
get_or_create
(
object
=
host
+
"
/profiles/
"
,
inbox
=
xmpp
+
"
/
"
+
jabber_host
+
"
/happydev_user_admin
"
,
field
=
"
user
"
)
Subscription
.
objects
.
get_or_create
(
object
=
host
+
"
/chatprofiles/
"
,
inbox
=
xmpp
+
"
/
"
+
jabber_host
+
"
/happydev_user_admin
"
,
field
=
"
user
"
)
# When we change an information about the user (like avatar and so on) we want to notify prosody
Subscription
.
objects
.
get_or_create
(
object
=
host
+
"
/accounts/
"
,
inbox
=
xmpp
+
"
/
"
+
jabber_host
+
"
/happydev_user_admin
"
,
field
=
"
user
"
)
self
.
stdout
.
write
(
self
.
style
.
SUCCESS
(
"
Successfully created subscriptions
\n
host:
"
+
host
+
"
\n
xmpp server:
"
+
xmpp
+
"
\n
jabber host:
"
+
jabber_host
))
self
.
stdout
.
write
(
self
.
style
.
SUCCESS
(
"
Successfully created subscriptions
\n
host:
"
+
host
+
"
\n
xmpp server:
"
+
xmpp
+
"
\n
jabber host:
"
+
jabber_host
))
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment