Thanks, Nicholas. I actually did reset my password before posting,
just to be on the safe side, and got the same results. I'm on the
"create a namespace" portion of the cookbook.
Here is what I receive as the anonymous user:
>>> headers, response = fluidinfo.call('POST', '/namespaces/test', {'name':'childNamespace', 'description':'This is an example.'})
>>> headers
{'status': '401', 'x-fluiddb-path': 'create', 'transfer-encoding':
'chunked', 'content-type': 'text/html', 'x-fluiddb-request-id':
'vnpfrhtkroudaebi', 'server': 'nginx/0.7.65', 'x-fluiddb-action':
'namespaces', 'connection': 'keep-alive', 'date': 'Wed, 06 Jul 2011
15:51:40 GMT', 'x-fluiddb-error-class': 'TPathPermissionDenied', 'x-
fluiddb-category': 'test'}
>>> response
''
And here is what I receive logged in:
>>> fluidinfo.login('matthew', XXXXX)
>>> headers, response = fluidinfo.call('POST', '/namespaces/test', {'name':'childNamespace', 'description':'This is an example.'})
>>> headers
{'status': '401', 'x-fluiddb-path': 'create', 'transfer-encoding':
'chunked', 'content-type': 'text/html', 'x-fluiddb-request-id':
'fvgkleyateyzbjxt', 'server': 'nginx/0.7.65', 'x-fluiddb-action':
'namespaces', 'connection': 'keep-alive', 'date': 'Wed, 06 Jul 2011
15:54:23 GMT', 'x-fluiddb-error-class': 'TPathPermissionDenied', 'x-
fluiddb-category': 'test'}
>>> response
''
I also tried for my own name as the namespace. This worked in Prod,
but no in the Sandbox.
Prod:
>>> headers, response = fluidinfo.call('POST', '/namespaces/matthew', {'name':'childNamespace', 'description':'This is an example.'})
>>> headers
{'status': '201', 'content-length': '120', 'server': 'nginx/0.7.65',
'connection': 'keep-alive', 'location': 'https://fluiddb.fluidinfo.com/
namespaces/matthew/childNamespace', 'cache-control': 'no-cache',
'date': 'Wed, 06 Jul 2011 15:56:41 GMT', 'content-type': 'application/
json'}
>>> response
{u'id': u'2ec5e4bf-2c30-4232-89d2-10726bf40cae', u'URI': u'https://
fluiddb.fluidinfo.com/namespaces/matthew/childNamespace'}
Sandbox:
>>> headers, response = fluidinfo.call('POST', '/namespaces/matthew', {'name':'childNamespace', 'description':'This is an example.'})
>>> headers
{'status': '401', 'content-length': '12', 'server': 'nginx/0.7.65','connection': 'keep-alive', 'date': 'Wed, 06 Jul 2011 15:57:41 GMT',
>>> response
'Unauthorized'
>>>
I would love to be able to play in the Sandbox first (of course :)
while I learn before adding too many objects, etc. to my Prod
environment.
Let me know if you need any more details.
Thanks,
Matthew
John
Right. I think the other point at the moment is that once an object
has been instantiated, there is either an association between its ID
and its about tag (if it has one) or an establishment that this ID is
not associated with an about tag. Since that relationship is
supposed to be immutable, the object serves as a useful record of the
association (or non-association).
If/when about tags and IDs become unified, this will no longer be an
issue.
Regards
Nick Radcliffe