[ECODP-dev] Fwd: Ckan management scripts
Darwin Peltan
darwin.peltan at okfn.org
Wed Jan 9 14:46:15 UTC 2013
Hi Dimitrios,
This is documented in the meta-data spec.
Best,
Darwin
Darwin Peltan
Project Manager
The Open Knowledge Foundation
http://www.okfn.org
Skype: darwinp
Twitter: @darwin
On 9 January 2013 13:56, Dimitrios Mexis <dimitrios.mexis at tenforce.com>wrote:
> Hi Darwin,
>
> Very sorry, there is a misunderstanding from my side then, I can't trace
> where it is this documented, that these data can not be edited.
> The customer raises a "blocker" level on this issue. And I understood that
> with the management_scripts we had we should correct this.
>
> Dimitrios
>
>
> On 9/01/13 14:41, Darwin Peltan wrote:
>
> Hi Dimitrios,
>
> I don't really understand from your email what the issue is that they're
> experiencing, please can you clarify?
> Note that datasets that have been imported can't be edited via the web
> interface.
>
> Best,
>
> Darwin
>
> Darwin Peltan
> Project Manager
>
> The Open Knowledge Foundation
> http://www.okfn.org
>
> Skype: darwinp
> Twitter: @darwin
>
>
> On 9 January 2013 12:56, Dimitrios Mexis <dimitrios.mexis at tenforce.com>wrote:
>
>> Hello all,
>> I received the following output, and in continuation for the problem they
>> have that users can not edit imported datasets after the first installation,
>> do you see anything that is wrong on this list attributes ? Should any of
>> the user really be able to edit the attributes ?
>>
>> {"help": "Return the details of a group.\n\n :param id: the id or name
>> of the group\n :type id: string\n\n :rtype: dictionary\n\n ",
>> "success": true, "result": {"users": [{"openid": null, "about": null,
>> "capacity": "editor", "name": "PUBLusr", "created":
>> "2012-12-17T13:00:13.594271", "email_hash":
>> "d41d8cd98f00b204e9800998ecf8427e", "number_of_edits": 0,
>> "number_administered_packages": 0, "display_name": "PUBLusr", "fullname":
>> null, "id": "05f77cef-96e6-4a69-aa75-408e24625092"}, {"openid": null,
>> "about": "", "capacity": "editor", "name": "isoardol", "created":
>> "2012-12-13T09:08:04.846133", "email_hash":
>> "82b8037e8b4b1055f2bad20591a40c76", "number_of_edits": 5,
>> "number_administered_packages": 1, "display_name": "Olivier ISOARD",
>> "fullname": "Olivier ISOARD", "id":
>> "c9fa835c-772f-4abf-ad34-3ddb354d40be"}, {"openid": null, "about": null,
>> "capacity": "editor", "name": "trasys_user", "created":
>> "2013-01-09T10:35:12.823827", "email_hash":
>> "d41d8cd98f00b204e9800998ecf8427e", "number_of_edits": 0,
>> "number_administered_packages": 0, "display_name": "trasys_user",
>> "fullname": null, "id": "b46a9ca9-160d-4a6e-92de-b98d0ebe63a2"}],
>> "display_name": "Publications Office", "description": "", "title":
>> "Publications Office", "created": "2012-12-12T13:50:56.476905",
>> "approval_status": "approved", "state": "active", "extras": [],
>> "image_url": "", "groups": [], "revision_id":
>> "702713e9-905d-4061-9847-18d42c3d395d", "type": "organization", "id":
>> "f85e1721-1db8-4db7-84c4-fc798731ed18", "tags": [], "name": "publ"}}
>>
>> Regards,
>> Dimitrios
>>
>> On 18/12/12 17:26, John Glover wrote:
>>
>> Hi,
>>
>> Just to follow up on the Skype session about this that I had with
>> Dimitrios:
>>
>> - When we saw the CKAN output for the member_create API call we noticed
>> that the API key that Dimitrios had used in his example was invalid, so
>> CKAN was returning an authentication error.
>> - Running the script with a valid API key worked as expected.
>> - Dimitrios will now provide an updated version of the script so that we
>> can see if similar errors are happening on the production server.
>>
>> Thanks,
>> John
>>
>>
>> On 18 December 2012 16:17, John Glover <john.glover at okfn.org> wrote:
>>
>>> Hi Dimitrios,
>>>
>>> I have sent you a contact request on Skype, it might be easier to chat
>>> about this briefly if you have a minute.
>>>
>>> From your output above it does not look like you have changed the
>>> script to output the response from CKAN for the member_create API call,
>>> which is the important one for us to see. There will always be some
>>> response from CKAN (or at least the web server if something is
>>> misconfigured on the machine).
>>>
>>> Can you also confirm what that IP address refers to? It is not
>>> reachable for me. The test server that I can reach is at
>>> odp.tenforce.com.
>>>
>>> Thanks,
>>> John
>>>
>>>
>>> On 18 December 2012 15:43, Dimitrios Mexis <dimitrios.mexis at tenforce.com
>>> > wrote:
>>>
>>>> Just managed to replicate an issue with the datasets and usernames [
>>>> ODP-178 ]
>>>> I created a CNECTusr :
>>>> *[root at ecodp-perf4 management_scripts]# ./ckan_create_publ_user.sh
>>>> CNECTusr cnect 9efa49f6-f9d5-4a42-9274-d0ef1f5738f1 http://localhost
>>>> Password:
>>>> Confirm password:
>>>> Creating user: 'CNECTusr'
>>>> 2012-12-18 15:34:54,037 INFO [ckan.new_authz] Using auth profile at
>>>> ckan.logic.auth.publisher
>>>> {'about': None,
>>>> 'apikey': u'51373f10-02e1-465b-8f5f-01f7206a7170',
>>>> 'created': '2012-12-18T15:34:54.053627',
>>>> 'display_name': u'CNECTusr',
>>>> 'email': u'',
>>>> 'email_hash': 'd41d8cd98f00b204e9800998ecf8427e',
>>>> 'fullname': None,
>>>> 'id': u'391101b7-3646-4c00-9b6c-498696a3babc',
>>>> 'name': u'CNECTusr',
>>>> 'number_administered_packages': 0L,
>>>> 'number_of_edits': 0L,
>>>> 'openid': None,
>>>> 'reset_key': None}
>>>> % Total % Received % Xferd Average Speed Time Time Time
>>>> Current
>>>> Dload Upload Total Spent Left
>>>> Speed
>>>> 114 807 100 807 0 110 49864 6796 --:--:-- --:--:--
>>>> --:--:-- 46466*
>>>>
>>>> Then I opened the cnect dataset which is uploaded with as "manual
>>>> dataset", and really data can not be updated.
>>>>
>>>> From the script doesn't seem any error to be produced by the CKAN.
>>>>
>>>> BUT, if I add the user "kurt", in the dataset cnect, then this user*can "
>>>> *add dataset".
>>>> to the cnect.
>>>>
>>>> The relevant IP perhaps for help I remind, is the: 192.168.33.128,
>>>> there I have backend and frontend on the same machine.
>>>>
>>>> Regards,
>>>>
>>>> Dimitrios
>>>>
>>>> On 18/12/12 11:00, Darwin Peltan wrote:
>>>>
>>>>
>>>> Darwin Peltan
>>>> Project Manager
>>>>
>>>> The Open Knowledge Foundation
>>>> http://www.okfn.org
>>>>
>>>> Skype: darwinp
>>>> Twitter: @darwin
>>>>
>>>>
>>>>
>>>> ---------- Forwarded message ----------
>>>> From: Dimitrios Mexis <dimitrios.mexis at tenforce.com>
>>>> Date: 17 December 2012 16:06
>>>> Subject: Ckan management scripts
>>>> To: Darwin Peltan <darwin.peltan at okfn.org>
>>>> Cc: Bert Van Nuffelen <bert.van.nuffelen at tenforce.com>
>>>>
>>>>
>>>> Hello,
>>>>
>>>> this is the scripts about ckan management from terminal.
>>>>
>>>> Fyi as requested,
>>>>
>>>> Best regards,
>>>> Dimitrios
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Ecodp-dev mailing listEcodp-dev at lists.okfn.orghttp://lists.okfn.org/mailman/listinfo/ecodp-dev
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Ecodp-dev mailing list
>>>> Ecodp-dev at lists.okfn.org
>>>> http://lists.okfn.org/mailman/listinfo/ecodp-dev
>>>>
>>>>
>>>
>>
>>
>> _______________________________________________
>> Ecodp-dev mailing listEcodp-dev at lists.okfn.orghttp://lists.okfn.org/mailman/listinfo/ecodp-dev
>>
>>
>>
>> _______________________________________________
>> Ecodp-dev mailing list
>> Ecodp-dev at lists.okfn.org
>> http://lists.okfn.org/mailman/listinfo/ecodp-dev
>>
>>
>
>
> _______________________________________________
> Ecodp-dev mailing listEcodp-dev at lists.okfn.orghttp://lists.okfn.org/mailman/listinfo/ecodp-dev
>
>
>
> _______________________________________________
> Ecodp-dev mailing list
> Ecodp-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ecodp-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.okfn.org/mailman/private/ecodp-dev/attachments/20130109/6951525f/attachment.html>
More information about the ecodp-dev
mailing list