On Tuesday 19 January 2010 17:28:03 Kevin Horn wrote:
> On Tue, Jan 19, 2010 at 9:36 AM, Michael Pedersen <[email protected]> wrote:
> > I don't know of any such layer. Then again, I don't know of any such
> > layer in any language/framework. If you can provide an example, we can
> > try to get such done using TG.
> >
> > On Fri, Jan 15, 2010 at 12:05 AM, Neal <[email protected]> wrote:
> >> I'm new to TurboGears and starting to read the book now.
> >>
> >> We are leaning toward a cloud-based database such as Google's
> >> BigTable, AmazonDB or other.
> >>
> >> Instead of connecting to an SQL database via SQLObject or SQLAlchemy,
> >> is there a technique to connect or map to RESTful web services?  In
> >> other words, TurboGears could be the GUI layer, and web services
> >> running on Google AppEngine or Amazon could provide the data layer for
> >> a more cloud-like approach.
> >>
> >> Thanks,
> >> Neal Walters
>
> Such a layer usually isn't really needed when dealing with something as
> (relatively) simple as REST services.  If I was doing soemthing like this
> though, I would probably write a wrapper (probably just a convenience
> function) around urllib or whatever http client library I was planning on
> using.  Writing a truly generic interface might be pretty tricky, but
> writing one specific to your application should be pretty simple, I think.

You can take a look at what I did for the soundcloud API.

http://github.com/soundcloud/python-api-wrapper

It's pretty generic, albeit JSON-centric. It might be a starting-point.

Diez
-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en.


Reply via email to