Skip to content

Commit 81b6601

Browse files
authored
Merge pull request #29 from marklogic/feature/example-role-fix
Fixes for blog post
2 parents 5d28be7 + a6b3143 commit 81b6601

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/python-blog-post.ipynb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
" headers={\"Content-type\": \"application/json\"},\n",
4848
" data=json.dumps({\n",
4949
" \"role-name\":role_name, \n",
50-
" \"role\":[\"tde-admin\", \"rest-evaluator\", \"qconsole-user\"], \n",
50+
" \"role\":[\"tde-admin\", \"rest-writer\", \"qconsole-user\"], \n",
5151
" \"privilege\":[\n",
5252
" {\"privilege-name\":\"xdmp:document-get\", \"action\":\"http://marklogic.com/xdmp/privileges/xdmp-document-get\", \"kind\":\"execute\"}, \n",
5353
" {\"privilege-name\":\"unprotected-collections\", \"action\":\"http://marklogic.com/xdmp/privileges/unprotected-collections\", \"kind\":\"execute\"}, \n",
@@ -199,7 +199,7 @@
199199
" }\n",
200200
"}\n",
201201
"\n",
202-
"user_session.put(\n",
202+
"admin_session.put(\n",
203203
" f'{base_url}:8000/v1/documents',\n",
204204
" data=json.dumps(template),\n",
205205
" headers={'Content-Type': 'application/json'},\n",
@@ -243,6 +243,7 @@
243243
"source": [
244244
"# Retrieve employees as CSV data and create a pandas DataFrame.\n",
245245
"\n",
246+
"%pip install pandas\n",
246247
"import pandas as pd\n",
247248
"import io\n",
248249
"\n",

0 commit comments

Comments
 (0)