<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Two issues of Cell [22] in Clone Portal sample notebook in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/two-issues-of-cell-22-in-clone-portal-sample/m-p/855010#M3980</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe you've found more bugs in this sample.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) It should be&amp;nbsp;&lt;/P&gt;&lt;PRE style="color: #4c4c4c; background-color: #f7f7f7; border: none; font-size: 17px;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 17px;"&gt;target&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666666; border: 0px; font-weight: inherit; font-size: 17px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 17px;"&gt;content&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666666; border: 0px; font-weight: inherit; font-size: 17px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 17px;"&gt;create_folder&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 17px;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 17px;"&gt;folder, user&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 17px;"&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;2) folder is a dict and not an object with a title property - so you'd need to replace folder.title with folder['title']&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We'll be fixing these in the sample - thanks for reporting the issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rohit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jan 2017 18:05:48 GMT</pubDate>
    <dc:creator>RohitSingh2</dc:creator>
    <dc:date>2017-01-17T18:05:48Z</dc:date>
    <item>
      <title>Two issues of Cell [22] in Clone Portal sample notebook</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/two-issues-of-cell-22-in-clone-portal-sample/m-p/855009#M3979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I seems find another two issue in Cell [22] in Clone Portal sample notebook.&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/python/sample-notebooks/clone-portal-users-groups-and-content/" title="https://developers.arcgis.com/python/sample-notebooks/clone-portal-users-groups-and-content/"&gt;clone portal users groups and content | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the screen shot of code that may have issue.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Code" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/301143_Code.png" style="width: 620px; height: 298px;" /&gt;&lt;/P&gt;&lt;P&gt;Issue 1: In this line,&lt;/P&gt;&lt;PRE style="color: #4c4c4c; background-color: #f7f7f7; border: none; font-size: 17px;"&gt;&lt;SPAN class=""&gt;target&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666666;"&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;content&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666666;"&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;create_folder&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;user&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;folder&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;I checked API of create_folder() method, it writes&lt;/P&gt;&lt;P&gt;&lt;CODE class="" style="color: #000000; background: transparent; border: none; font-weight: bold;"&gt;&lt;SPAN class="" style="background: #f1c40f; font-weight: bold; padding: 0px 6px;"&gt;create_folder&lt;/SPAN&gt;&lt;/CODE&gt;&lt;SPAN class="" style="color: #555555; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;EM style="color: #555555; font-weight: bold;"&gt;folder&lt;/EM&gt;&lt;SPAN style="color: #555555; background-color: #f0f0f0; font-weight: bold;"&gt;, &lt;/SPAN&gt;&lt;EM style="color: #555555; font-weight: bold;"&gt;owner=None&lt;/EM&gt;&lt;SPAN class="" style="color: #555555; font-weight: bold;"&gt;), we have folder first, then the owner&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But in the sample notebook code, the order is opposite.&lt;/P&gt;&lt;P&gt;Shouldn't we use, target.content.create_folder(folder, user) instead?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Issue 2:&lt;/P&gt;&lt;P&gt;I got another error when I access the folder title using folder.title. It returns following error message. For testing I create a test script.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/301144_Error.png" style="width: 620px; height: 344px;" /&gt;&lt;/P&gt;&lt;P&gt;The folder does have the key title, but for some reason we can't access it using folder.title in API. It causes problem in this sample notebook, since it uses folder.title to access the folder title.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2017 21:06:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/two-issues-of-cell-22-in-clone-portal-sample/m-p/855009#M3979</guid>
      <dc:creator>XuehanJing</dc:creator>
      <dc:date>2017-01-13T21:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Two issues of Cell [22] in Clone Portal sample notebook</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/two-issues-of-cell-22-in-clone-portal-sample/m-p/855010#M3980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe you've found more bugs in this sample.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) It should be&amp;nbsp;&lt;/P&gt;&lt;PRE style="color: #4c4c4c; background-color: #f7f7f7; border: none; font-size: 17px;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 17px;"&gt;target&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666666; border: 0px; font-weight: inherit; font-size: 17px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 17px;"&gt;content&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666666; border: 0px; font-weight: inherit; font-size: 17px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 17px;"&gt;create_folder&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 17px;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 17px;"&gt;folder, user&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 17px;"&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;2) folder is a dict and not an object with a title property - so you'd need to replace folder.title with folder['title']&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We'll be fixing these in the sample - thanks for reporting the issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rohit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 18:05:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/two-issues-of-cell-22-in-clone-portal-sample/m-p/855010#M3980</guid>
      <dc:creator>RohitSingh2</dc:creator>
      <dc:date>2017-01-17T18:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Two issues of Cell [22] in Clone Portal sample notebook</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/two-issues-of-cell-22-in-clone-portal-sample/m-p/855011#M3981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for clarification.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 18:53:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/two-issues-of-cell-22-in-clone-portal-sample/m-p/855011#M3981</guid>
      <dc:creator>XuehanJing</dc:creator>
      <dc:date>2017-01-17T18:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Two issues of Cell [22] in Clone Portal sample notebook</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/two-issues-of-cell-22-in-clone-portal-sample/m-p/855012#M3982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rohit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found one more issue in cell [22] in this sample notebook.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is at #Copy the related items for this user (if specified)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Code2" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/305308_Code2.png" style="width: 620px; height: 164px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this line,&lt;/P&gt;&lt;P&gt;folderitems = usercontent[folder], I got error, because usercontent here is a list.&lt;/P&gt;&lt;P&gt;I think we should use folderitems = user.items(folder['title']) instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking forward to your comment on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 17:44:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/two-issues-of-cell-22-in-clone-portal-sample/m-p/855012#M3982</guid>
      <dc:creator>XuehanJing</dc:creator>
      <dc:date>2017-01-19T17:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Two issues of Cell [22] in Clone Portal sample notebook</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/two-issues-of-cell-22-in-clone-portal-sample/m-p/855013#M3983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xuehan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reporting this as well.&amp;nbsp;Your fix is correct. We will be including this fix in the update to the sample within the next week, as part of the 1.0.1 update to the API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rohit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 17:50:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/two-issues-of-cell-22-in-clone-portal-sample/m-p/855013#M3983</guid>
      <dc:creator>RohitSingh2</dc:creator>
      <dc:date>2017-01-25T17:50:54Z</dc:date>
    </item>
  </channel>
</rss>

