[ckan-dev] ckan-dev Digest, Vol 30, Issue 71

天龙出云 dragoniszhang at gmail.com
Sun Apr 28 01:12:56 UTC 2013


Thanks for answering my question. The reason why it could not step to the
breakpoint in datastore_create is that I used a wrong curl command, I am
really sorry for that. And I deeply appreciate the mail that told me about
the structure of the tables in datastore. Thanks again for all your help.


2013/4/27 <ckan-dev-request at lists.okfn.org>

> Send ckan-dev mailing list submissions to
>         ckan-dev at lists.okfn.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://lists.okfn.org/mailman/listinfo/ckan-dev
> or, via email, send a message with subject or body 'help' to
>         ckan-dev-request at lists.okfn.org
>
> You can reach the person managing the list at
>         ckan-dev-owner at lists.okfn.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ckan-dev digest..."
>
>
> Today's Topics:
>
>    1. questions about datastore_create and datastore_search (????)
>    2. Question about the ID assigned to tables of the datastore (????)
>    3. Re: questions about datastore_create and datastore_search
>       (Dominik Moritz)
>    4. can you recommend some detailed and deep document about CKAN
>       code architecture and CKAN database table column design? (bupt bupt)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 27 Apr 2013 15:23:27 +0800
> From: ???? <dragoniszhang at gmail.com>
> Subject: [ckan-dev] questions about datastore_create and
>         datastore_search
> To: ckan-dev at lists.okfn.org
> Message-ID:
>         <
> CAMf83paW0Nr0zYuELbwiWVR9YhO5DTknS+3c2bEARBVR+m9msg at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> When I use curl command in shell to create a datastore, I cannot step to
> the breakpoint that I placed in the function ckanext/datastore/logic/
> action.py/datastore_create(), could anybody tell me about the reason,
> thanks very much!
> Another question is that I do not want to use the id that datastorer
> generates automatically to be the name of the table in postgres, instead I
> want to use my own more comprehensible name such as a city name or some
> words meaningful. I feel the id too hard to use in datastore_search
> function.
> Thank you very much for helping me!
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.okfn.org/pipermail/ckan-dev/attachments/20130427/e2dbdf95/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 2
> Date: Sat, 27 Apr 2013 16:16:27 +0800
> From: ???? <dragoniszhang at gmail.com>
> Subject: [ckan-dev] Question about the ID assigned to tables of the
>         datastore
> To: ckan-dev at lists.okfn.org
> Message-ID:
>         <
> CAMf83pbDO6aK_v6qM5+DxRvAvw-KVtvgLGNHCaHuJsmEquo1YQ at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> I want to know how CKAN generates an ID to be the name of a table in
> datastore db when creating a dataset through uploading a csv/xml file.(Is
> the ID generated by sqlalchemy?)
> Thank you very much.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.okfn.org/pipermail/ckan-dev/attachments/20130427/2e27d9b3/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 3
> Date: Sat, 27 Apr 2013 11:01:40 +0200
> From: Dominik Moritz <dominik.moritz at okfn.org>
> Subject: Re: [ckan-dev] questions about datastore_create and
>         datastore_search
> To: CKAN Development Discussions <ckan-dev at lists.okfn.org>
> Message-ID: <4D0F83F2-6481-4EBA-B3FB-6B4104BAD1FA at okfn.org>
> Content-Type: text/plain; charset=utf-8
>
> Hi,
>
> The name of the datastore tables is exactly the id of the CKAN resource
> that the datastore table belongs to. A datastore table cannot exist on its
> own. Yes, the names are ugly which is why we added aliases. You can add an
> arbitrary number of aliases to a table using the `resource_create` [1]
> action (you can also edit existing tables with this action). There is a
> section in the docs about aliases at [2].
>
> Does this also answer your question from the other email? I don't know why
> you do not reach the breakpoint.
>
> Best wishes and have fun with the datastore.
> Dominik
>
> [1]
> http://docs.ckan.org/en/latest/datastore-api.html#ckanext.datastore.logic.action.datastore_create
> [2] http://docs.ckan.org/en/latest/datastore-api.html#resource-aliases
>
> On 27 Apr 2013, at 09:23, ???? <dragoniszhang at gmail.com> wrote:
>
> > When I use curl command in shell to create a datastore, I cannot step to
> > the breakpoint that I placed in the function ckanext/datastore/logic/
> > action.py/datastore_create(), could anybody tell me about the reason,
> > thanks very much!
> > Another question is that I do not want to use the id that datastorer
> > generates automatically to be the name of the table in postgres, instead
> I
> > want to use my own more comprehensible name such as a city name or some
> > words meaningful. I feel the id too hard to use in datastore_search
> > function.
> > Thank you very much for helping me!
> > _______________________________________________
> > ckan-dev mailing list
> > ckan-dev at lists.okfn.org
> > http://lists.okfn.org/mailman/listinfo/ckan-dev
> > Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
>
>
>
>
> ------------------------------
>
> Message: 4
> Date: Sat, 27 Apr 2013 18:24:36 +0800
> From: bupt bupt <buptloveandroid at gmail.com>
> Subject: [ckan-dev] can you recommend some detailed and deep document
>         about CKAN code architecture and CKAN database table column design?
> To: CKAN Development Discussions <ckan-dev at lists.okfn.org>,
>         ckan-dev-bounces at lists.okfn.org
> Message-ID:
>         <
> CAL-OO0mDt8AAH5s-s9P61jTYvmU0BsvGX0RGNmaocuh0G823CQ at mail.gmail.com>
> Content-Type: text/plain; charset="gb2312"
>
> hello everyone,
>       now I can learn sth about CKAN architecture from "
> https://gist.github.com/seanh/3414107" and "
> http://docs.ckan.org/en/latest/architecture.html" . But I want to research
> CKAN code and database tables more deeply and detailed.
>      can you give me more detailed materials which deeply introduced CKAN
> code and database tables design, where can I find database table design
> document, including what's the purpose of designing every table and view?
>     thank you very much~~
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.okfn.org/pipermail/ckan-dev/attachments/20130427/095b8143/attachment-0001.htm
> >
>
> ------------------------------
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: http://lists.okfn.org/mailman/optionss/ckan-dev
>
>
> End of ckan-dev Digest, Vol 30, Issue 71
> ****************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130428/3ae2d223/attachment.html>


More information about the ckan-dev mailing list