|
25 | 25 | "cell_type": "markdown",
|
26 | 26 | "metadata": {},
|
27 | 27 | "source": [
|
28 |
| - "Manager class for manipulating GIS content. This class is not created by users directly. An instance of this class, called ‘content’, is available as a property of the Gis object. Users call methods on this ‘content’ object to manipulate (create, get, search...) items." |
| 28 | + "Manager class for manipulating GIS content. This class is not created by users directly. An instance of this class, called ‘content’, is available as a property of the GIS object. Users call methods on this ‘content’ object to manipulate (create, get, search...) items." |
29 | 29 | ]
|
30 | 30 | },
|
31 | 31 | {
|
|
184 | 184 | "cell_type": "markdown",
|
185 | 185 | "metadata": {},
|
186 | 186 | "source": [
|
187 |
| - "### create_folder(<i>owner, title</i>)" |
| 187 | + "### create_folder(<i>owner, folder</i>)" |
188 | 188 | ]
|
189 | 189 | },
|
190 | 190 | {
|
191 | 191 | "cell_type": "markdown",
|
192 | 192 | "metadata": {},
|
193 | 193 | "source": [
|
194 |
| - "Creates a folder for the given user with the given title." |
| 194 | + "Creates a folder for the given user with the given folder name. Does nothing if the folder already exists." |
195 | 195 | ]
|
196 | 196 | },
|
197 | 197 | {
|
|
211 | 211 | "<tr class=\"row-even\"><td>owner</td>\n",
|
212 | 212 | "<td>required string, the name of the user</td>\n",
|
213 | 213 | "</tr>\n",
|
214 |
| - "<tr class=\"row-even\"><td>title</td>\n", |
| 214 | + "<tr class=\"row-even\"><td>folder</td>\n", |
215 | 215 | "<td>required string, the name of the folder to create for the owner</td>\n",
|
216 | 216 | "</tr>\n",
|
217 | 217 | "</tbody>\n",
|
218 | 218 | "</table>\n",
|
219 | 219 | "\n",
|
220 |
| - "**Returns:**\ta python dict like the following: {“username” : “portaladmin”,”id” : “bff13218991c4485a62c81db3512396f”,”title” : “testcreate”}" |
| 220 | + "**Returns:**\ta python dict like the following: {“username” : “portaladmin”,”id” : “bff13218991c4485a62c81db3512396f”,”title” : “testcreate”} if the folder was created, None otherwise." |
221 | 221 | ]
|
222 | 222 | },
|
223 | 223 | {
|
|
255 | 255 | "cell_type": "markdown",
|
256 | 256 | "metadata": {},
|
257 | 257 | "source": [
|
258 |
| - "### get(<i>itemid</i>)" |
| 258 | + "### delete_folder(<i>owner, folder</i>)" |
259 | 259 | ]
|
260 | 260 | },
|
261 | 261 | {
|
262 | 262 | "cell_type": "markdown",
|
263 | 263 | "metadata": {},
|
264 | 264 | "source": [
|
265 |
| - "Returns the item object for the specified itemid." |
| 265 | + "Deletes a folder for the given user with the given folder name." |
266 | 266 | ]
|
267 | 267 | },
|
268 | 268 | {
|
|
279 | 279 | "<tr class=\"row-odd\"><td><strong>Argument</strong></td>\n",
|
280 | 280 | "<td><strong>Description</strong></td>\n",
|
281 | 281 | "</tr>\n",
|
282 |
| - "<tr class=\"row-even\"><td>itemid</td>\n", |
283 |
| - "<td> required string, the item identifier</td>\n", |
| 282 | + "<tr class=\"row-even\"><td>owner</td>\n", |
| 283 | + "<td>required string, the name of the user</td>\n", |
| 284 | + "</tr>\n", |
| 285 | + "<tr class=\"row-even\"><td>folder</td>\n", |
| 286 | + "<td>required string, the name of the folder to delete</td>\n", |
284 | 287 | "</tr>\n",
|
285 | 288 | "</tbody>\n",
|
286 | 289 | "</table>\n",
|
287 | 290 | "\n",
|
288 |
| - "**Returns:**\tNone if the item is not found and returns an item object if the item is found" |
| 291 | + "**Returns:**\tTrue if succeeded, False otherwise" |
289 | 292 | ]
|
290 | 293 | },
|
291 | 294 | {
|
292 | 295 | "cell_type": "markdown",
|
293 |
| - "metadata": { |
294 |
| - "collapsed": false |
295 |
| - }, |
| 296 | + "metadata": {}, |
296 | 297 | "source": [
|
297 |
| - "<hr>" |
| 298 | + "<hr/>" |
298 | 299 | ]
|
299 | 300 | },
|
300 | 301 | {
|
301 | 302 | "cell_type": "markdown",
|
302 | 303 | "metadata": {},
|
303 | 304 | "source": [
|
304 |
| - "### get_folder_id(<i>owner, folder_name</i>)" |
| 305 | + "### get(<i>itemid</i>)" |
| 306 | + ] |
| 307 | + }, |
| 308 | + { |
| 309 | + "cell_type": "markdown", |
| 310 | + "metadata": {}, |
| 311 | + "source": [ |
| 312 | + "Returns the item object for the specified itemid." |
305 | 313 | ]
|
306 | 314 | },
|
307 | 315 | {
|
308 | 316 | "cell_type": "markdown",
|
309 | 317 | "metadata": {},
|
310 | 318 | "source": [
|
311 |
| - "Finds the folder for a particular owner and returns its id.\n", |
312 |
| - "\n", |
313 | 319 | "**Arguments:**\n",
|
314 | 320 | "<table border=\"1\" class=\"docutils\">\n",
|
315 | 321 | "<colgroup>\n",
|
|
320 | 326 | "<tr class=\"row-odd\"><td><strong>Argument</strong></td>\n",
|
321 | 327 | "<td><strong>Description</strong></td>\n",
|
322 | 328 | "</tr>\n",
|
323 |
| - "<tr class=\"row-even\"><td>owner</td>\n", |
324 |
| - "<td>required string, the name of the user</td>\n", |
325 |
| - "</tr>\n", |
326 |
| - "<tr class=\"row-even\"><td>folder_name</td>\n", |
327 |
| - "<td>required string, the name of the folder to search for</td>\n", |
| 329 | + "<tr class=\"row-even\"><td>itemid</td>\n", |
| 330 | + "<td> required string, the item identifier</td>\n", |
328 | 331 | "</tr>\n",
|
329 | 332 | "</tbody>\n",
|
330 | 333 | "</table>\n",
|
331 | 334 | "\n",
|
332 |
| - "**Returns:**\n", |
333 |
| - "the folder id, if the folder is found" |
| 335 | + "**Returns:**\tNone if the item is not found and returns an item object if the item is found" |
334 | 336 | ]
|
335 | 337 | },
|
336 | 338 | {
|
337 | 339 | "cell_type": "markdown",
|
338 |
| - "metadata": {}, |
| 340 | + "metadata": { |
| 341 | + "collapsed": false |
| 342 | + }, |
339 | 343 | "source": [
|
340 | 344 | "<hr>"
|
341 | 345 | ]
|
|
491 | 495 | "name": "python",
|
492 | 496 | "nbconvert_exporter": "python",
|
493 | 497 | "pygments_lexer": "ipython3",
|
494 |
| - "version": "3.5.1" |
| 498 | + "version": "3.4.4" |
495 | 499 | },
|
496 | 500 | "widgets": {
|
497 | 501 | "state": {},
|
|
0 commit comments