[ckan-dev] Shared access to the database

Richard Gomes rgomes.info at gmail.com
Tue Sep 17 21:33:15 UTC 2013


Hi Ian,

Yes. I've confused things.

Thanks a lot :)

Richard Gomes
http://rgomes.info
http://www.linkedin.com/in/rgomes
mobile: +44(77)9955-6813
inum <http://www.inum.net/>: +883(5100)0800-9804

On 17/09/13 19:14, Ian Ward wrote:
>
> It is "ckanapi" that supports calling actions directly from an 
> extension, not "ckanclient".
>
> On Sep 17, 2013 1:22 PM, "Richard Gomes" <rgomes.info at gmail.com 
> <mailto:rgomes.info at gmail.com>> wrote:
> >
> > Hi Sean,
> >
> > Thanks a lot for directions and advices.
> >
> > I will review CkanClient. I'm already using it, or code derived from 
> it, to be more precise, but I'm performing calls over the network.
> > I will try to call directly, as you had pointed out.
> >
> > Cheers :)
> >
> >
> > Richard Gomes
> > http://rgomes.info
> > http://www.linkedin.com/in/rgomes
> > mobile: +44(77)9955-6813
> > inum: +883(5100)0800-9804
> >
> > On 17/09/13 16:24, Sean Hammond wrote:
> >>>
> >>> Also, performing a service call over the network costs obviously
> >>> more than calling SQLAlchemy functions directly.
> >>> Performance would not be a problem initially, but it would impact
> >>> scalability later. And I wouldn't like to redesign the application
> >>> later.
> >>
> >> Just to say that this CKAN client can call CKAN action functions
> >> directly when your Python code is running on the same server as 
> CKAN is,
> >> instead of making HTTP requests:
> >>
> >> https://github.com/open-data/ckanapi
> >>
> >> I'm not sure how well tested this is, it's possible that some CKAN
> >> action functions may fail if they're called without an HTTP 
> request, but
> >> worth a try.
> >>
> >> It's really much better to call CKAN's action functions, having your
> >> code access CKAN's model directly is likely to create problems.
> >>
> >> _______________________________________________
> >> ckan-dev mailing list
> >> ckan-dev at lists.okfn.org <mailto:ckan-dev at lists.okfn.org>
> >> http://lists.okfn.org/mailman/listinfo/ckan-dev
> >> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
> >>
> >
> >
> > _______________________________________________
> > ckan-dev mailing list
> > ckan-dev at lists.okfn.org <mailto:ckan-dev at lists.okfn.org>
> > http://lists.okfn.org/mailman/listinfo/ckan-dev
> > Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
> >
>
>
>
> _______________________________________________
> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130917/a6d8a1b0/attachment-0001.html>


More information about the ckan-dev mailing list