Requesting Feedback for Web2py Instant Admin

148 views
Skip to first unread message

Ramana

unread,
Aug 1, 2011, 2:09:23 AM8/1/11
to web...@googlegroups.com
Dear Web2py users,

I just launched the beta version of Web2py Instant Admin, a (supposedly) django-like admin interface for Web2py applications. The demo is here, documentation is here and source code is here. Since this is my first Web2py project, I don't know how good/bad the quality is. Your feedback will be very valuable for me. Thanks for your time. 

Thanks & Regards,
Ramana.

pbreit

unread,
Aug 1, 2011, 2:57:59 AM8/1/11
to web...@googlegroups.com
It looks pretty interesting. Is the idea that it would complement or replace appadmin?

Massimo Di Pierro

unread,
Aug 1, 2011, 4:08:17 AM8/1/11
to web2py-users
This is fantastic! I also see it is already packaged as a plugin.

I only took a quick look at the source code. It is well written. I
noticed you use the has_permission decorator everywhere therefore this
is more suitable to be an admin to be exposed to users than an admin
for the administrator. We could make some minor changes in those
requirements and give all permissions to user logged in as "admin" and
use this code to replace appadmin:

I see some pros and some significative differences (not really any
cons):

Pros:
- looks better
- can be exposed to users with permissions

Differences:
- current appadmin allows arbitrary queries, we would have to add that
option for the administrator
- current appadmin allows export/import in csv
- current appadmin inherits layout from the app, this one does not
- it would make the welcome app heavier (how much?)

I think everybody should try this and we should discuss it.

Congratulations Ramana!

Massimo








On Aug 1, 1:09 am, Ramana <srama...@gmail.com> wrote:
> Dear Web2py users,
>
> I just launched the beta version of Web2py Instant
> Admin<http://sramana.in/web2py-instant-admin>,
> a (supposedly) django-like admin interface for Web2py applications.
> The demo<http://w2padmin.appspot.com/>is here, documentation is
> here <http://readthedocs.org/docs/web2py-instant-admin> and source code is
> here <http://github.com/sramana/web2py-instant-admin>. Since this is my

weheh

unread,
Aug 1, 2011, 4:29:18 AM8/1/11
to web2py-users
Ramana, looks really really nice. Congrats!

On Aug 1, 2:09 am, Ramana <srama...@gmail.com> wrote:
> Dear Web2py users,
>
> I just launched the beta version of Web2py Instant
> Admin<http://sramana.in/web2py-instant-admin>,
> a (supposedly) django-like admin interface for Web2py applications.
> The demo<http://w2padmin.appspot.com/>is here, documentation is
> here <http://readthedocs.org/docs/web2py-instant-admin> and source code is
> here <http://github.com/sramana/web2py-instant-admin>. Since this is my

Massimo Di Pierro

unread,
Aug 1, 2011, 4:51:51 AM8/1/11
to web2py-users
A proposal....

1) we change

auth.requires_permission(....) with auth.requires(is_admin or
has_permission(...))

2) we move everything that is not under */plugin_instant_admin under
plugins/plugin_instant_admin

3) we rename instant_admin into iadmin

4) we include it into welcome app

5) we expose iadmin and old appadmin, default to iadmin, allow
administrator to switch back to old appadmin (using session to keep
state)?

I would take a patch in this direction but I would like to hear more
opinions.
It would be great if the the edit for and the pagination table where
to expose as components to be embedded in regular pages.

Massimo

On Aug 1, 1:09 am, Ramana <srama...@gmail.com> wrote:
> Dear Web2py users,
>
> I just launched the beta version of Web2py Instant
> Admin<http://sramana.in/web2py-instant-admin>,
> a (supposedly) django-like admin interface for Web2py applications.
> The demo<http://w2padmin.appspot.com/>is here, documentation is
> here <http://readthedocs.org/docs/web2py-instant-admin> and source code is
> here <http://github.com/sramana/web2py-instant-admin>. Since this is my

Massimo Di Pierro

unread,
Aug 1, 2011, 5:01:33 AM8/1/11
to web2py-users
Hope you do not mind ;-)

http://www.reddit.com/r/Python/comments/j5jhw/new_web2py_admin_plugin/


On Aug 1, 1:09 am, Ramana <srama...@gmail.com> wrote:
> Dear Web2py users,
>
> I just launched the beta version of Web2py Instant
> Admin<http://sramana.in/web2py-instant-admin>,
> a (supposedly) django-like admin interface for Web2py applications.
> The demo<http://w2padmin.appspot.com/>is here, documentation is
> here <http://readthedocs.org/docs/web2py-instant-admin> and source code is
> here <http://github.com/sramana/web2py-instant-admin>. Since this is my

Martín Mulone

unread,
Aug 1, 2011, 6:00:58 AM8/1/11
to web...@googlegroups.com
superb. Ramana, silently, you made a great job, also with docs!. Congrats!.

2011/8/1 Massimo Di Pierro <massimo....@gmail.com>



--

Message has been deleted

Anthony

unread,
Aug 1, 2011, 9:16:04 AM8/1/11
to web...@googlegroups.com
Looks very promising, but I cannot log into the demo (I've tried all the provided demo logins, but they all result in "Invalid login").

Furqan Rauf

unread,
Aug 1, 2011, 2:58:32 PM8/1/11
to web...@googlegroups.com
me likey!!! web2py gets better every moment :) thanks all

On Mon, Aug 1, 2011 at 1:42 PM, Francisco Costa <ma...@franciscocosta.com> wrote:
Looks very good, but I can't login with superuser credentials
(usearname = a, password = a)
I get this message: "We're sorry. Please enter a password with at
least six characters."


On Aug 1, 2:16 pm, Anthony <abasta...@gmail.com> wrote:
> Looks very promising, but I cannot log into the demo (I've tried all the
> provided demo logins, but they all result in "Invalid login").
>
>
>
>
>
>
>
> On Monday, August 1, 2011 2:09:23 AM UTC-4, Ramana wrote:
> > Dear Web2py users,
>
> > I just launched the beta version of Web2py Instant Admin<http://sramana.in/web2py-instant-admin>,

> > a (supposedly) django-like admin interface for Web2py applications. The
> > Since this is my first Web2py project, I don't know how good/bad the quality
> > is. Your feedback will be very valuable for me. Thanks for your time.  
>
> > Thanks & Regards,
> > Ramana.



--
-Furqan Rauf
Do you love your creator? Love your fellow-beings first. -Prophet Muhammad

Francisco Costa

unread,
Aug 1, 2011, 2:42:45 PM8/1/11
to web2py-users
Looks very good, but I can't login with superuser credentials
(usearname = a, password = a)
I get this message: "We're sorry. Please enter a password with at
least six characters."

On Aug 1, 2:16 pm, Anthony <abasta...@gmail.com> wrote:
> Looks very promising, but I cannot log into the demo (I've tried all the
> provided demo logins, but they all result in "Invalid login").
>
>
>
>
>
>
>
> On Monday, August 1, 2011 2:09:23 AM UTC-4, Ramana wrote:
> > Dear Web2py users,
>
> > I just launched the beta version of Web2py Instant Admin<http://sramana.in/web2py-instant-admin>,
> > a (supposedly) django-like admin interface for Web2py applications. The

pbreit

unread,
Aug 1, 2011, 7:28:30 PM8/1/11
to web...@googlegroups.com
I had trouble logging in but was finally successful by granting an existing auth_user superuser membership. I ran into the same "password must be 6 chars" error.

One thing I noticed is that it did not seem to pick up my auth_user table (I don't see it listed in the right side nav). I am using a custom auth_user table.

Then was not able to access any table records with this error:

Traceback (most recent call last):
File "/Users/pbreit/web2py/gluon/restricted.py", line 192, in restricted
exec ccode in environment
File "/Users/pbreit/web2py/applications/init/views/plugin_instant_admin/list.html", line 65, in <module>
if request.vars.get('sort_reverse') == 'false':
File "/Users/pbreit/web2py/gluon/html.py", line 287, in URL
args, other, scheme, host, port)
File "/Users/pbreit/web2py/gluon/rewrite.py", line 112, in url_out
acf = map_url_out(request, env, application, controller, function, args, other, scheme, host, port)
File "/Users/pbreit/web2py/gluon/rewrite.py", line 1177, in map_url_out
return map.acf()
File "/Users/pbreit/web2py/gluon/rewrite.py", line 1115, in acf
self.omit_acf() # try to omit a/c/f
File "/Users/pbreit/web2py/gluon/rewrite.py", line 1067, in omit_acf
if self.args[0] in self.functions or self.args[0] in self.controllers or self.args[0] in self.applications:
TypeError: unhashable type: 'Table'

pbreit

unread,
Aug 1, 2011, 7:32:57 PM8/1/11
to web...@googlegroups.com
Variables:


self.applicationsset(['BASE', 'admin', 'error', 'examples', 'init', 'lab', ...])
self.functionsset([])
self<gluon.rewrite.MapUrlOut object>
self.args[<Table {'tax_state': <gluon.dal.Field object at ...rouping': <gluon.dal.Field object at 0x12dea10>}>]
self.controllersset(['appadmin', 'checkout', 'components', 'connect', 'cron', 'default', ...])

Christopher Steel

unread,
Aug 1, 2011, 9:32:29 PM8/1/11
to web...@googlegroups.com
Ramana,

Gorgeous plugin, I think we should make it part of the Web2py Welcome app as well. It is a great example of a plugin and if fills an important need for site administration.

I was able to find urls for all the requirements with the exception of path which obviously brings up a lot of unrelated google listings : )

Here are urls for the requirements I found,  are they correct?

web2py
http://www.web2py.com/examples/static/web2py_src.zip

web2py-utils
http://packages.python.org/web2py_utils/

WebTest
http://webtest.canoo.com/webtest/manual/WebTestHome.html

nose
http://readthedocs.org/docs/nose/en/latest/

path
???

Thanks for the awesome plugin!!!

Chris

Christopher Steel

unread,
Aug 1, 2011, 9:42:43 PM8/1/11
to web...@googlegroups.com
minor bug or one time glitch?

Not sure if this is a bug or a one time glitch not but after installing auth_group for the reader shows up with bars at both ends and none of the other auth_group showed this

    |plugin_instant_admin_reader|

rather than

    plugin_instant_admin_reader

This plugin rocks! thanks again

C.

Ramana

unread,
Aug 2, 2011, 2:31:01 AM8/2/11
to web...@googlegroups.com
Dear all,

I am overwhelmed by your positive response and kind words. Thank you very much.

I just want to clarify that the HTML theme is not my own. I copied it from Rails Admin, which in turn is based on Activo Theme, both are MIT licensed.

Regarding including this plugin in welcome app, I feel that it is still too early. There are no test cases. Widgets for Date Time fields, multi-select fields and many-to-many associations are still not there. But I am working on them. I released the plugin even before it is perfect/stable because I wanted some feedback from you. Now I can work more confidently and enthusiastically, thanks to your feedback.

Thanks & Regards,
Ramana.

Ramana

unread,
Aug 2, 2011, 2:36:31 AM8/2/11
to web...@googlegroups.com
Hi Chris,

The requirements are not necessary to use the plugin. They are only for developers for automating the dev/deploy/testing. 

Regarding path, it's my mistake. It should have been "path.py". It is at http://pypi.python.org/pypi/path.py. I fixed it now.

Ramana

unread,
Aug 2, 2011, 2:41:27 AM8/2/11
to web...@googlegroups.com
Hi, 

I just reset the password and verified that the login is working. Can you please try now?

Massimo Di Pierro

unread,
Aug 2, 2011, 4:02:26 AM8/2/11
to web2py-users
Let us know when you think it is ready.

Massimo

On Aug 2, 1:31 am, Ramana <srama...@gmail.com> wrote:
> Dear all,
>
> I am overwhelmed by your positive response and kind words. Thank you very
> much.
>
> I just want to clarify that the HTML theme is not my own. I copied it
> from Rails
> Admin <https://github.com/sferik/rails_admin>, which in turn is based on Activo
> Theme <https://github.com/dmfrancisco/activo>, both are MIT licensed.

Joseph Jude

unread,
Dec 4, 2011, 6:24:47 AM12/4/11
to web...@googlegroups.com
is there any progress in including it in admin?

I couldn't download the compiled plugin but downloaded and from the excellent docs, was able to include into my app. But making it part of admin will be great.

Joseph

Sanjeet Kumar

unread,
Feb 22, 2012, 12:19:51 AM2/22/12
to web...@googlegroups.com
Can I add the dropdown for searching in Plugin_instant_admin
Reply all
Reply to author
Forward
0 new messages