Admin Backend for Pyramid

1,047 views
Skip to first unread message

Martin Winkler

unread,
May 23, 2012, 4:01:01 AM5/23/12
to pylons-...@googlegroups.com
Hi all,

Short introduction of me: I worked with Zope2 for a couple of years and also have a little bit of experience with Zope3. I am a huge Django fan, having created about two dozen projects with it. But right now I'm in the process of looking at other python web frameworks.
To me Pyramid seems like a framework where some really smart people created something having great potential.

But my real question is: Since I love Django (and the automatic super-configurable admin backend), is there something similar already available (or in progress) for Pyramid? I took a quick look at formalchemy which I don't really like from a users perspective (doubleclicking on list items, no many2many relations, strange users/groups front end interface etc), and did not find anything else on the web yet.

If there is no such thing (or do you think that it's not necessary at all)? How do *you* guys implement sensible CRUD interfaces for administrators of a web site?

I'd love to read some ideas from you.

Martin

Alexis Métaireau

unread,
May 23, 2012, 5:45:39 AM5/23/12
to pylons-...@googlegroups.com, Martin Winkler
Le mer. 23 mai 2012 10:01:01 CEST, Martin Winkler a écrit :
> But my real question is: Since I love Django (and the automatic
> super-configurable admin backend), is there something similar already
> available (or in progress) for Pyramid? I took a quick look at
> formalchemy which I don't really like from a users perspective
> (doubleclicking on list items, no many2many relations, strange
> users/groups front end interface etc), and did not find anything else
> on the web yet.

Hi Martin,

Seems that's something somehow tackled by FormAlchemy, see
https://github.com/FormAlchemy/formalchemy

-- Alexis

Stefano Fontanelli

unread,
May 23, 2012, 6:50:24 AM5/23/12
to pylons-...@googlegroups.com
Il 23/05/12 10.01, Martin Winkler ha scritto:
> Hi all,

Hi Martin,

> But my real question is: Since I love Django (and the automatic
> super-configurable admin backend), is there something similar already
> available (or in progress) for Pyramid? I took a quick look at
> formalchemy which I don't really like from a users perspective
> (doubleclicking on list items, no many2many relations, strange
> users/groups front end interface etc), and did not find anything else
> on the web yet.
>
> If there is no such thing (or do you think that it's not necessary at
> all)? How do *you* guys implement sensible CRUD interfaces for
> administrators of a web site?

I'm working on a library to generate CRUD interfaces based on ExtJS from
SQLAlchemy data models.
It is based on my experience in writing ExtJS UI application for data
administration, for that reason I hope to mitigate problems you
highlight about formalchemy.

I hope to send updates soon on this list.

Stefano.

--
Stefano Fontanelli
Asidev S.r.l.
Viale Rinaldo Piaggio, 32 - 56025 Pontedera (Pisa)
Tel. (+39) 333 36 53 294
Fax. (+39) 0587 97 01 20
E-mail: s.font...@asidev.com
Skype: stefanofontanelli
Twitter: @stefontanelli
LinkedIn: http://it.linkedin.com/in/stefanofontanelli

Jonathan Vanasco

unread,
May 23, 2012, 12:15:07 PM5/23/12
to pylons-discuss
There are a few projects that have been working in the CRUD space on
pyramid. There was a pyramid-crud sprint a while back too.

Personally, I build out the CRUD interfaces myself. The types of Apps
I've built / want-to-build on Pyramid are impossible if not utterly
painful to implement on frameworks like Django/Rails. If I'm going to
work on something simple, I'll sometimes handle it on a 'full service'
framework - but, more often than not, I want the control of logic and
data modeling that really complicates or precludes a CRUD.

I think the CRUD stuff is largely overrated. Depending on what you
want to do, building the admin/edit console you want from scratch is
often just about as much effort as customizing a framework's CRUD to
your specifications.

Mike Orr

unread,
May 23, 2012, 2:40:42 PM5/23/12
to pylons-...@googlegroups.com
On Wed, May 23, 2012 at 1:01 AM, Martin Winkler <abe...@gmail.com> wrote:
> But my real question is: Since I love Django (and the automatic
> super-configurable admin backend), is there something similar already
> available (or in progress) for Pyramid?

You can also look at Ptah. It's a higher-level framework built on
Pyramid that's supposed to have more in the way of admin screens and
Django-like features. There are also a few other higher-level
frameworks which may have something interesting.


--
Mike Orr <slugg...@gmail.com>

Alan Runyan

unread,
May 23, 2012, 3:51:45 PM5/23/12
to pylons-...@googlegroups.com
> You can also look at Ptah. It's a higher-level framework built on
> Pyramid that's supposed to have more in the way of admin screens and
> Django-like features. There are also a few other higher-level
> frameworks which may have something interesting.

https://github.com/ptahproject/ptah

some people hanging out on #ptahproject on freenode

just wrapping up heroku/dotcloud instructions for a 'more
sophisticated' demo app for ptah.

https://github.com/ptahproject/heroku-ptah

--
Alan Runyan

Skype/Twitter:: runyaga
Office:: 713.942.2377 ext 111
http://ploud.com/  Plone site in less than 10 seconds

Mengu

unread,
Aug 20, 2012, 7:06:19 AM8/20/12
to pylons-...@googlegroups.com
hi martin,

you can easily use toscawidgets2 with pyramid. you can read more at http://tw2core.readthedocs.org/en/latest/pyramid/

enjoy! :)

Michael Brickenstein

unread,
Aug 28, 2012, 1:06:01 PM8/28/12
to pylons-...@googlegroups.com
Hi!

There are a lot of frameworks.
RUM is a project by Alberto Valverde and me.

https://bitbucket.org/albertov/rum/wiki/Home

It might not be the simplest and not built on the latest tech., but it features
a lot of features and a lot of flexibility.

Cheers,
Michael

Chris McDonough

unread,
Aug 28, 2012, 1:14:20 PM8/28/12
to pylons-...@googlegroups.com
I sort of missed this thread way back when it first came up. I have
sort of a researchy question for you (and other folks), because I'm in
the process of developing an application on Pyramid that has that sort
of functionality. What about the Django admin interface do you find
most useful? How do you use it on your customer engagements? What does
it give you that helps you deliver software to them?

- C

Gael Pasgrimaud

unread,
Aug 29, 2012, 5:24:38 AM8/29/12
to pylons-...@googlegroups.com
Django admin ui is not very usefull. I've made a lot of Django sites and
the admin UI is reserved to... admins eg: developers or advanced users.
Except if you have a very simple app but we are not building blogs.

For me the important thing is the ability to build a form from a model
and to be able to:

- hiding/deleting some fields
- overriding a field widget for a field type or a specific field
- adding/inserting custom fields
- manage some fieldsets - splitting a model in 2 forms and/or combining
some forms
- overriding a form template easily to be able to set custom
labels/errors/fields position/tags. That's something I like in django
[1] Except that you can't override the behavior of label_tag.

Once you get that it's "easy" to build an admin UI. You can have a
default listing to show all records and filtering/sorting on some fields
values

That's all done in FormAlchemy/pyramid_formalchemy but.. unfortunately,
as the maintainer, I admit that the code is a bit ugly and I no longer
have some time to clean and maintain it... Mostly because my company
only use... Django.

My 2 cents

--
Gael

[1]
https://docs.djangoproject.com/en/dev/topics/forms/#customizing-the-form-template


> - C
>

Michael Jenny

unread,
Aug 29, 2012, 6:35:17 AM8/29/12
to pylons-...@googlegroups.com
Hi Gael,

please take the time to look into my Datashackle prototype (datashackle.net):



Django admin ui is not very usefull. I've made a lot of Django sites and the admin UI is reserved to... admins eg: developers or advanced users. Except if you have a very simple app but we are not building blogs.

For me the important thing is the ability to build a form from a model and to be able to:

You can create several forms for any given model and can choose from several widgets to represent the model's attributes (they correlate with table columns)
 

- hiding/deleting some fields

You can choose freely which fields are shown in the form.
 
- overriding a field widget for a field type or a specific field
 
- adding/inserting custom fields
- manage some fieldsets - splitting a model in 2 forms and/or combining some forms

Several forms per model is possible. You can also embed forms of another domain model  into an existing form. E.g. Visualize 1:n or m:n relations.
 
- overriding a form template easily to be able to set custom labels/errors/fields position/tags. That's something I like in django [1] Except that you can't override the behavior of label_tag.

Once you get that it's "easy" to build an admin UI. You can have a default listing to show all records and filtering/sorting on some fields values

 
That's all done in FormAlchemy/pyramid_formalchemy but.. unfortunately, as the maintainer, I admit that the code is a bit ugly and I no longer have some time to clean and maintain it... Mostly because my company only use... Django.

My 2 cents

--
Gael



Cheers,
Michael

Michael Jenny

unread,
Aug 29, 2012, 6:38:16 AM8/29/12
to pylons-...@googlegroups.com
Sorry, I missed the last scentence. It looks you're not actually looking for something else..
Reply all
Reply to author
Forward
0 new messages