<?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 python client: newly created workspace not showing in Admin UI in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/python-client-newly-created-workspace-not-showing-in-admin-ui/m-p/316016#M3017</link>
    <description>&lt;P&gt;Hello folks,&lt;/P&gt;
&lt;P&gt;I'm using the python nuxeo client library to create a workspace as follows:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;adminClient = nuxeo.Nuxeo(
  base_url=URL,
  auth={
    'username': 'Administrator',
    'password': 'Administrator'
  })

repository = adminClient.repository()
wsRoot = '/default-domain/workspaces'
ws = {
    'name': "china",
    'type': 'Workspace',
    'properties': {'dc:title': "China"}
    }
res = repository.create(wsRoot, ws)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The call succeeds..  however, I don't see the change reflected in the
Admin UI (with a simple refresh to list the workspaces). But if I create another
workspace via the UI, the "china" workspace then appears. So it looks like I'm
missing a 'flush' call to make the UI sync w/the data. Can someone help?&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;</description>
    <pubDate>Mon, 06 Mar 2017 18:59:30 GMT</pubDate>
    <dc:creator>Roy_Mathew</dc:creator>
    <dc:date>2017-03-06T18:59:30Z</dc:date>
    <item>
      <title>python client: newly created workspace not showing in Admin UI</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/python-client-newly-created-workspace-not-showing-in-admin-ui/m-p/316016#M3017</link>
      <description>&lt;P&gt;Hello folks,&lt;/P&gt;
&lt;P&gt;I'm using the python nuxeo client library to create a workspace as follows:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;adminClient = nuxeo.Nuxeo(
  base_url=URL,
  auth={
    'username': 'Administrator',
    'password': 'Administrator'
  })

repository = adminClient.repository()
wsRoot = '/default-domain/workspaces'
ws = {
    'name': "china",
    'type': 'Workspace',
    'properties': {'dc:title': "China"}
    }
res = repository.create(wsRoot, ws)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The call succeeds..  however, I don't see the change reflected in the
Admin UI (with a simple refresh to list the workspaces). But if I create another
workspace via the UI, the "china" workspace then appears. So it looks like I'm
missing a 'flush' call to make the UI sync w/the data. Can someone help?&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2017 18:59:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/python-client-newly-created-workspace-not-showing-in-admin-ui/m-p/316016#M3017</guid>
      <dc:creator>Roy_Mathew</dc:creator>
      <dc:date>2017-03-06T18:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: python client: newly created workspace not showing in Admin UI</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/python-client-newly-created-workspace-not-showing-in-admin-ui/m-p/316017#M3018</link>
      <description>&lt;P&gt;Quick update:&lt;/P&gt;
&lt;P&gt;If I add a doc.save() at the end, it seems to fix the issue. Can someone comment on whether this is really necessary, and the recommended approach?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;ws = {
    'name': "china",
    'type': 'Workspace',
    'properties': {'dc:title': "China"}
doc = repository.create(wsRoot, ws)
doc.save()
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 06 Mar 2017 19:18:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/python-client-newly-created-workspace-not-showing-in-admin-ui/m-p/316017#M3018</guid>
      <dc:creator>Roy_Mathew</dc:creator>
      <dc:date>2017-03-06T19:18:33Z</dc:date>
    </item>
  </channel>
</rss>

