Admin app error when removing a plugin file

17 views
Skip to first unread message

Alan Etkin

unread,
Aug 19, 2012, 2:09:55 PM8/19/12
to web...@googlegroups.com
I updated web2py from mercurial repository. This is a very small issue, not sure if open a ticket for this.

An error ticket is created after removing a plugin view file with the admin app.

Traceback (most recent call last):
 
File "/home/spametki/web2py/web2py-hg/gluon/restricted.py", line 205, in restricted
 
exec ccode in environment
 
File "/home/spametki/web2py/web2py-hg/applications/admin/controllers/default.py", line 1717, in <module>
 
File "/home/spametki/web2py/web2py-hg/gluon/globals.py", line 182, in <lambda>
 
self._caller = lambda f: f()
 
File "/home/spametki/web2py/web2py-hg/applications/admin/controllers/default.py", line 1108, in plugin
 models
=filter_plugins(models),
 
File "/home/spametki/web2py/web2py-hg/applications/admin/controllers/default.py", line 1104, in filter_plugins
 regex
=re.compile('^plugin_'+plugin+'(/.*|\..*)?$')
TypeError: cannot concatenate 'str' and 'NoneType' objects



127.0.0.1.2012-08-19.14-56-05.f23a0f27-9447-42ae-ad3c-eae400f73df1

Massimo Di Pierro

unread,
Aug 19, 2012, 2:53:45 PM8/19/12
to web...@googlegroups.com
Should be fixed in trunk

Alan Etkin

unread,
Aug 19, 2012, 4:04:34 PM8/19/12
to web...@googlegroups.com
I updated my local web2py hg repo, but the problem persists.

Solved it although by changing an admin view function parameter. Attached is the view diff
admin_views_default_plugin.html.diff

Massimo Di Pierro

unread,
Aug 19, 2012, 4:11:23 PM8/19/12
to web...@googlegroups.com
posting your solution.
Reply all
Reply to author
Forward
0 new messages