CRUD with no database?

16 views
Skip to first unread message

AFO

unread,
Nov 19, 2009, 1:51:33 PM11/19/09
to TurboGears
Hello,

What toolkits/modules should I be looking at if I want to use TG2 to
build a CRUD UI to an in-house system.

The in-house system is not a database but the functionality
requirements for the UI are very CRUD-like. I already have a python
module that supplies such methods as get/set/list/create/delete for
the various entities.

Basically, I'm looking for CRUD toolkit that will allow me to supply
my own get/set/list/create/delete methods, and it turn spit out basic
tables/forms.

(I am came across Sprox, and posted a similar message to their group,
but it's pretty low traffic and has not passed moderation yet...)

-- AF

Mark Ramm

unread,
Nov 19, 2009, 8:52:53 PM11/19/09
to turbo...@googlegroups.com
Well you can use http://turbogears.org/2.0/docs/main/RestControllers.html

Or you can extend Sprox with another data provider if you want to wire
it all up to some kind of introspection engine for your in house data
thing. I don't have a doc for that... But you can look at the code
for the existing one ;)
> --
>
> You received this message because you are subscribed to the Google Groups "TurboGears" group.
> To post to this group, send email to turbo...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/turbogears?hl=.
>
>
>



--
Mark Ramm-Christensen
email: mark at compoundthinking dot com
blog: www.compoundthinking.com/blog

AFO

unread,
Nov 20, 2009, 2:30:58 PM11/20/09
to TurboGears
Thank you.

Couple of questions:

1) For a normal web-based UI app, what advantage does RestController
give in comparison to the standard TG2 Controller?

2) Are there any tutorials for ToscaWidgets used without SQLAlchemy?

3) What is the "tmpl_context" variable I see floating around in the
tutorials?

4) Can Sprox and/or ToscaWidgets generate a "view-only record details"
page? (That is, a display of the details laid out like the
traditional "edit" page, but not using form fields to display the
values.)

Thank you,
:)


On Nov 19, 8:52 pm, Mark Ramm <mark.mchristen...@gmail.com> wrote:
> Well you can usehttp://turbogears.org/2.0/docs/main/RestControllers.html
>
> Or you can extend Sprox with another data provider if you want to wire
> it all up to some kind of introspection engine for your in house data
> thing.  I don't have a doc for that...  But you can look at the code
> for the existing one ;)
>
>
>
> On Thu, Nov 19, 2009 at 1:51 PM, AFO <allen.fow...@yahoo.com> wrote:
> > Hello,
>
> > What toolkits/modules should I be looking at if I want to use TG2 to
> > build a CRUD UI to an in-house system.
>
> > The in-house system is not a database but the functionality
> > requirements for the UI are very CRUD-like.  I already have a python
> > module that supplies such methods as get/set/list/create/delete for
> > the various entities.
>
> > Basically, I'm looking for CRUD toolkit that will allow me to supply
> > my own get/set/list/create/delete methods, and it turn spit out basic
> > tables/forms.
>
> > (I am came across Sprox, and posted a similar message to their group,
> > but it's pretty low traffic and has not passed moderation yet...)
>
> > -- AF
>
> > --
>
> > You received this message because you are subscribed to the Google Groups "TurboGears" group.
> > To post to this group, send email to turbo...@googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/turbogears?hl=.

AFO

unread,
Nov 22, 2009, 4:34:36 PM11/22/09
to TurboGears
To answer my own questions..

:)


>
> 1) For a normal web-based UI app, what advantage does RestController
> give in comparison to the standard TG2 Controller?
>

It looks like it will call certain named methods (that you must write)
for certain URL formats.

See: http://turbogears.org/2.1/docs/modules/tgcontroller.html#tg.controllers.RestController

Where is the source code for RestController?

I looked at:
http://trac.turbogears.org/browser/trunk/tg/controllers.py

However, the definition "class RestController(DecoratedController)"
seems a bit sparse.

Where is the real definition?


> 2) Are there any tutorials for ToscaWidgets used without SQLAlchemy?
>

Still not found. But it's really sprox that's so tightly bound to SA.


> 3) What is the "tmpl_context" variable I see floating around in the
> tutorials?
>

Still not sure.


>
> 4) Can Sprox and/or ToscaWidgets generate a "view-only record details"
> page?  (That is, a display of the details laid out like the
> traditional "edit" page, but not using form fields to display the
> values.)
>


ToscaWidgets: No.
Sprox: Still not sure.

Reply all
Reply to author
Forward
0 new messages