Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Odoo scripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
XCG
Odoo scripts
Commits
3f6e8f544116
Commit
3f6e8f544116
authored
2 years ago
by
Vincent Hatakeyama
Browse files
Options
Downloads
Patches
Plain Diff
fix redner uris
parent
78e9b8824fc4
No related branches found
No related tags found
1 merge request
!132
16.7.2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
NEWS.rst
+5
-0
5 additions, 0 deletions
NEWS.rst
odoo_scripts/docker_rednerd.py
+8
-8
8 additions, 8 deletions
odoo_scripts/docker_rednerd.py
with
13 additions
and
8 deletions
NEWS.rst
+
5
−
0
View file @
3f6e8f54
...
...
@@ -2,6 +2,11 @@
History
=======
16.7.2
------
docker_dev_start: Fix --start-redner
16.7.1
------
...
...
This diff is collapsed.
Click to expand it.
odoo_scripts/docker_rednerd.py
+
8
−
8
View file @
3f6e8f54
...
...
@@ -25,5 +25,5 @@
_logger
=
logging
.
getLogger
(
__name__
)
__version__
=
"
1.1.
0
"
__version__
=
"
1.1.
1
"
__date__
=
"
2021-01-14
"
...
...
@@ -29,5 +29,5 @@
__date__
=
"
2021-01-14
"
__updated__
=
"
2022-0
8-25
"
__updated__
=
"
2022-0
9-12
"
MIGRATE
=
"
migrate
"
ADMIN_PASSWORD
=
"
admin-password
"
...
...
@@ -240,7 +240,7 @@
_logger
.
info
(
"
Log in as admin
"
)
# auth
request
=
session
.
post
(
f
"
{
base_url
}
/v1/auth/authenticate
"
,
f
"
{
base_url
}
/
api/
v1/auth/authenticate
"
,
json
=
{
"
username
"
:
"
admin
"
,
"
password
"
:
self
.
redner_admin_password
,
...
...
@@ -251,7 +251,7 @@
cookie_jar
=
request
.
cookies
# check if user exists
request
=
session
.
get
(
f
"
{
base_url
}
/v1/user/
"
,
f
"
{
base_url
}
/
api/
v1/user/
"
,
# json={"username": self.redner_user},
cookies
=
cookie_jar
,
)
...
...
@@ -264,7 +264,7 @@
if
user_missing
:
_logger
.
info
(
"
Creating user %s
"
,
self
.
redner_user
)
request
=
session
.
post
(
f
"
{
base_url
}
/v1/user
"
,
f
"
{
base_url
}
/
api/
v1/user
"
,
json
=
{
"
username
"
:
self
.
redner_user
,
"
is-admin
"
:
False
},
cookies
=
cookie_jar
,
)
...
...
@@ -272,10 +272,10 @@
# change user password
_logger
.
info
(
"
Creating %s password
"
,
self
.
redner_user
)
request
=
session
.
post
(
f
"
{
base_url
}
/v1/user/
{
self
.
redner_user
}
/password
"
,
f
"
{
base_url
}
/
api/
v1/user/
{
self
.
redner_user
}
/password
"
,
json
=
{
"
password
"
:
self
.
redner_password
},
cookies
=
cookie_jar
,
)
request
.
raise_for_status
()
_logger
.
info
(
"
Grabbing API key for %s
"
,
self
.
redner_user
)
request
=
session
.
get
(
...
...
@@ -276,10 +276,10 @@
json
=
{
"
password
"
:
self
.
redner_password
},
cookies
=
cookie_jar
,
)
request
.
raise_for_status
()
_logger
.
info
(
"
Grabbing API key for %s
"
,
self
.
redner_user
)
request
=
session
.
get
(
f
"
{
base_url
}
/v1/user/
{
self
.
redner_user
}
/apikey
"
,
f
"
{
base_url
}
/
api/
v1/user/
{
self
.
redner_user
}
/apikey
"
,
json
=
{},
cookies
=
cookie_jar
,
)
...
...
@@ -291,7 +291,7 @@
_logger
.
info
(
"
No API key found, creating one
"
)
# create a new token otherwise
request
=
session
.
post
(
f
"
{
base_url
}
/v1/user/
{
self
.
redner_user
}
/apikey
"
,
f
"
{
base_url
}
/
api/
v1/user/
{
self
.
redner_user
}
/apikey
"
,
json
=
{
"
name
"
:
"
docker_rednerd
"
,
"
description
"
:
"
Odoo scripts created API KEY
"
,
...
...
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