Custom Datasource accessing RESTFUL service/8.5.x

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Custom Datasource accessing RESTFUL service/8.5.x

Peter D Bethke
Hello all,

I know that Fletcher published the custom datasource for RSS some years back. Has anyone else attempted to create a custom datasource that accesses a RESTful service (lets say for example a google API)?

I’ve written a custom type that accesses a restful source and it works just fine, but I’d also like to have the flexibility of using the rows /rows and field: syntax to allow me to replace existing code that accesses a standard inline (with mysql datasource) and replace it with a custom datasource inline.

Best,

Peter Bethke
#############################################################
Attend the Lasso Developer Conference 2014!
October 1-3, 2014 at Treefrog HQ, Newmarket, Ontario, Canada
http://www.lassosoft.com/LDC-newmarket-2014

#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Custom Datasource accessing RESTFUL service/8.5.x

Peter D Bethke
Barring any response on my initial question - I’m wondering if one of the obstacles to developing a custom datasource is that you need to load it in lasso startup first to properly test it. This would make developing one really annoying.

I know that knop has some tricks for manipulating namespaces - are there any tricks to developing custom types that need to be pre-loaded in lasso startup that avoid having to actually restart lasso to test changes?

Peter

On Jul 23, 2014, at 11:49 AM, Peter D Bethke <[hidden email]> wrote:

> Hello all,
>
> I know that Fletcher published the custom datasource for RSS some years back. Has anyone else attempted to create a custom datasource that accesses a RESTful service (lets say for example a google API)?
>
> I’ve written a custom type that accesses a restful source and it works just fine, but I’d also like to have the flexibility of using the rows /rows and field: syntax to allow me to replace existing code that accesses a standard inline (with mysql datasource) and replace it with a custom datasource inline.
>
> Best,
>
> Peter Bethke
> #############################################################
> Attend the Lasso Developer Conference 2014!
> October 1-3, 2014 at Treefrog HQ, Newmarket, Ontario, Canada
> http://www.lassosoft.com/LDC-newmarket-2014
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

#############################################################
Attend the Lasso Developer Conference 2014!
October 1-3, 2014 at Treefrog HQ, Newmarket, Ontario, Canada
http://www.lassosoft.com/LDC-newmarket-2014

#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Custom Datasource accessing RESTFUL service/8.5.x

Tim Taplin
there are a series of namespace tags that allow for loading tags into a range of namespaces, including the global namespace.

you can include your tag or type definitions inside a namespace request to load them into memory.

I'm not sure what limitations of a custom datasource may cause this to not work, but its worth looking into. If the documentation is not clear, I can provide  some very simple examples. There are also some more polished loader tags on tagswap which manage things in an even slicker way.

Tim Taplin

On Jul 23, 2014, at 1:20 PM, Peter D Bethke <[hidden email]> wrote:

> Barring any response on my initial question - I’m wondering if one of the obstacles to developing a custom datasource is that you need to load it in lasso startup first to properly test it. This would make developing one really annoying.
>
> I know that knop has some tricks for manipulating namespaces - are there any tricks to developing custom types that need to be pre-loaded in lasso startup that avoid having to actually restart lasso to test changes?
>
> Peter
>
> On Jul 23, 2014, at 11:49 AM, Peter D Bethke <[hidden email]> wrote:
>
>> Hello all,
>>
>> I know that Fletcher published the custom datasource for RSS some years back. Has anyone else attempted to create a custom datasource that accesses a RESTful service (lets say for example a google API)?
>>
>> I’ve written a custom type that accesses a restful source and it works just fine, but I’d also like to have the flexibility of using the rows /rows and field: syntax to allow me to replace existing code that accesses a standard inline (with mysql datasource) and replace it with a custom datasource inline.
>>
>> Best,
>>
>> Peter Bethke
>> #############################################################
>> Attend the Lasso Developer Conference 2014!
>> October 1-3, 2014 at Treefrog HQ, Newmarket, Ontario, Canada
>> http://www.lassosoft.com/LDC-newmarket-2014
>>
>> #############################################################
>>
>> This message is sent to you because you are subscribed to
>> the mailing list Lasso [hidden email]
>> Official list archives available at http://www.lassotalk.com
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>
> #############################################################
> Attend the Lasso Developer Conference 2014!
> October 1-3, 2014 at Treefrog HQ, Newmarket, Ontario, Canada
> http://www.lassosoft.com/LDC-newmarket-2014
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

#############################################################
Attend the Lasso Developer Conference 2014!
October 1-3, 2014 at Treefrog HQ, Newmarket, Ontario, Canada
http://www.lassosoft.com/LDC-newmarket-2014

#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Custom Datasource accessing RESTFUL service/8.5.x

Peter D Bethke
Thanks Tim, thats what I recalled re: namespaces. I’ll look into the tag swap resources.

I’m hoping the elusive Fletcher might have some insight into how he developed his RSS DS for the TOTW back in the day.

Peter

On Jul 23, 2014, at 3:30 PM, Tim Taplin <[hidden email]> wrote:

> there are a series of namespace tags that allow for loading tags into a range of namespaces, including the global namespace.
>
> you can include your tag or type definitions inside a namespace request to load them into memory.
>
> I'm not sure what limitations of a custom datasource may cause this to not work, but its worth looking into. If the documentation is not clear, I can provide  some very simple examples. There are also some more polished loader tags on tagswap which manage things in an even slicker way.
>
> Tim Taplin
>
> On Jul 23, 2014, at 1:20 PM, Peter D Bethke <[hidden email]> wrote:
>
>> Barring any response on my initial question - I’m wondering if one of the obstacles to developing a custom datasource is that you need to load it in lasso startup first to properly test it. This would make developing one really annoying.
>>
>> I know that knop has some tricks for manipulating namespaces - are there any tricks to developing custom types that need to be pre-loaded in lasso startup that avoid having to actually restart lasso to test changes?
>>
>> Peter
>>
>> On Jul 23, 2014, at 11:49 AM, Peter D Bethke <[hidden email]> wrote:
>>
>>> Hello all,
>>>
>>> I know that Fletcher published the custom datasource for RSS some years back. Has anyone else attempted to create a custom datasource that accesses a RESTful service (lets say for example a google API)?
>>>
>>> I’ve written a custom type that accesses a restful source and it works just fine, but I’d also like to have the flexibility of using the rows /rows and field: syntax to allow me to replace existing code that accesses a standard inline (with mysql datasource) and replace it with a custom datasource inline.
>>>
>>> Best,
>>>
>>> Peter Bethke
>>> #############################################################
>>> Attend the Lasso Developer Conference 2014!
>>> October 1-3, 2014 at Treefrog HQ, Newmarket, Ontario, Canada
>>> http://www.lassosoft.com/LDC-newmarket-2014
>>>
>>> #############################################################
>>>
>>> This message is sent to you because you are subscribed to
>>> the mailing list Lasso [hidden email]
>>> Official list archives available at http://www.lassotalk.com
>>> To unsubscribe, E-mail to: <[hidden email]>
>>> Send administrative queries to  <[hidden email]>
>>
>> #############################################################
>> Attend the Lasso Developer Conference 2014!
>> October 1-3, 2014 at Treefrog HQ, Newmarket, Ontario, Canada
>> http://www.lassosoft.com/LDC-newmarket-2014
>>
>> #############################################################
>>
>> This message is sent to you because you are subscribed to
>> the mailing list Lasso [hidden email]
>> Official list archives available at http://www.lassotalk.com
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>
> #############################################################
> Attend the Lasso Developer Conference 2014!
> October 1-3, 2014 at Treefrog HQ, Newmarket, Ontario, Canada
> http://www.lassosoft.com/LDC-newmarket-2014
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

#############################################################
Attend the Lasso Developer Conference 2014!
October 1-3, 2014 at Treefrog HQ, Newmarket, Ontario, Canada
http://www.lassosoft.com/LDC-newmarket-2014

#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Custom Datasource accessing RESTFUL service/8.5.x

stevepiercy
In reply to this post by Peter D Bethke
I just added a feature to the Knop demo for Lasso 8 that does
what you would like.  It takes a couple of seconds to unload and
load the knop_ namespace.
https://github.com/knop-project/knop/blob/master/knop8/demo/_config/cfg__global.inc#L6

I also created a reloader for 8, based on Jolle's work for 9.
https://github.com/knop-project/knop/blob/master/knop8/source/buildnamespace.lasso
https://github.com/knop-project/knop/tree/master/knop9/knoplibs

--steve


On 7/23/14 at 3:20 PM, [hidden email] (Peter D Bethke) pronounced:

>Barring any response on my initial question - I’m wondering
>if one of the obstacles to developing a custom datasource is
>that you need to load it in lasso startup first to properly
>test it. This would make developing one really annoying.
>
>I know that knop has some tricks for manipulating namespaces -
>are there any tricks to developing custom types that need to be
>pre-loaded in lasso startup that avoid having to actually
>restart lasso to test changes?
>
>Peter
>
>On Jul 23, 2014, at 11:49 AM, Peter D Bethke <[hidden email]> wrote:
>
>>Hello all,
>>
>>I know that Fletcher published the custom datasource for RSS some years back. Has
>anyone else attempted to create a custom datasource that
>accesses a RESTful service (lets say for example a google API)?
>>
>>I’ve written a custom type that accesses a restful source and it works just fine,
>but I’d also like to have the flexibility of using the rows
>/rows and field: syntax to allow me to replace existing code
>that accesses a standard inline (with mysql datasource) and
>replace it with a custom datasource inline.
>>
>>Best,
>>
>>Peter Bethke
>>#############################################################
>>Attend the Lasso Developer Conference 2014!
>>October 1-3, 2014 at Treefrog HQ, Newmarket, Ontario, Canada
>>http://www.lassosoft.com/LDC-newmarket-2014
>>
>>#############################################################
>>
>>This message is sent to you because you are subscribed to
>>the mailing list Lasso [hidden email]
>>Official list archives available at http://www.lassotalk.com
>>To unsubscribe, E-mail to: <[hidden email]>
>>Send administrative queries to  <[hidden email]>
>
>#############################################################
>Attend the Lasso Developer Conference 2014!
>October 1-3, 2014 at Treefrog HQ, Newmarket, Ontario, Canada
>http://www.lassosoft.com/LDC-newmarket-2014
>
>#############################################################
>
>This message is sent to you because you are subscribed to
>the mailing list Lasso [hidden email]
>Official list archives available at http://www.lassotalk.com
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Steve Piercy              Website Builder              Soquel, CA
<[hidden email]>               <http://www.StevePiercy.com/>

#############################################################
Attend the Lasso Developer Conference 2014!
October 1-3, 2014 at Treefrog HQ, Newmarket, Ontario, Canada
http://www.lassosoft.com/LDC-newmarket-2014

#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>