Skip to content

Commit d96963a

Browse files
committed
Update guides to use type over item_type for 2.4.3
1 parent 7871ef6 commit d96963a

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

samples/03_org_administrators/clone_a_group.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@
328328
" target_item_properties = ItemProperties(title=item.title,\n",
329329
" tags=item.tags,\n",
330330
" text=item.get_data(try_json=True),\n",
331-
" item_type=item.type,\n",
331+
" type=item.type,\n",
332332
" snippet=item.snippet,\n",
333333
" description=item.description,\n",
334334
" thumbnail=thumbnail_file) \n",

samples/03_org_administrators/validate_user_profiles.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@
283283
"source": [
284284
"item_props = ItemProperties(\n",
285285
" title = out_file,\n",
286-
" item_type = ItemTypeEnum.CSV,\n",
286+
" type = ItemTypeEnum.CSV,\n",
287287
" tags = \"user_profile_report\",\n",
288288
" snippet = \"Report on user profile data from Python API\"\n",
289289
")\n",

samples/04_gis_analysts_data_scientists/determining_site_suitability_for_oil_palm_plantation.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@
239239
"#Defining item properties\n",
240240
"item_props = ItemProperties(\n",
241241
" title = \"PalmOilSuitability\",\n",
242-
" item_type = ItemTypeEnum.RASTER_FUNCTION_TEMPLATE,\n",
242+
" type = ItemTypeEnum.RASTER_FUNCTION_TEMPLATE,\n",
243243
" tags = \"PalmOilSuitability_UsingFiveFactors\"\n",
244244
")"
245245
]

samples/05_content_publishers/html_table_to_pandas_data_frame_to_portal_item.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@
742742
"outputs": [],
743743
"source": [
744744
"iprops = ItemProperties(title=\"Worldwide Firearms Ownership Folder stream\",\n",
745-
" item_type=ItemTypeEnum.FEATURE_COLLECTION,\n",
745+
" type=ItemTypeEnum.FEATURE_COLLECTION,\n",
746746
" tags=[\"guns,violence\"],\n",
747747
" snippet = \"GSR Worldwide firearms ownership\",\n",
748748
" description = \"test description\",\n",

0 commit comments

Comments
 (0)