BUG: appadmin cannot save to db

122 views
Skip to first unread message

lyn2py

unread,
Oct 25, 2012, 11:01:32 AM10/25/12
to web...@googlegroups.com
I'm on Version 2.2.1 (2012-10-22 18:50:13) stable

This is specific to database admin in appadmin.
I needed to change some data, but appadmin will not save the items, although on response.flash / session.flash it says "done!"


Richard Vézina

unread,
Oct 25, 2012, 11:45:55 AM10/25/12
to web...@googlegroups.com
Did you use appdamin with a new app or you use the appadmin of your own app?

If you use your own app appadmin did you think to replace it with the appadmin of the welcome?

Richard



--
 
 
 

lyn2py

unread,
Oct 25, 2012, 12:25:46 PM10/25/12
to web...@googlegroups.com
Good point. I will update and try it later. I need to replace appadmin.py only?

Thanks Richard.

Richard Vézina

unread,
Oct 25, 2012, 12:33:21 PM10/25/12
to web...@googlegroups.com
appadmin.html to

And by the way you should update :

All files from static/

all generic files form views/

Make sure you backup you app before, so you can revert if you brake something.

If you have modify layout.html you will have to compare what change in the new layout.html and replace the element in your own layout.html

Richard

On Thu, Oct 25, 2012 at 12:25 PM, lyn2py <lyn...@gmail.com> wrote:
Good point. I will update and try it later. I need to replace appadmin.py only?

Thanks Richard.

--




Richard Vézina

unread,
Oct 25, 2012, 12:57:32 PM10/25/12
to web...@googlegroups.com
view/

appadmin.html
generic.ics
generic.load
generic.rss
layout.html
generic.json   
generic.map   
generic.xml  
web2py_ajax.html
generic.html   
generic.jsonp  
generic.pdf

controller/
appadmin.py

static/
css/*
images/*
js/*

You can do this like that :

From web2py/applications

cp -R welcome/static/* YOURAPP/static/
cp welcome/controllers/appadmin.py  YOURAPP/controllers/
cp welcome/views/* test_copy_file/views/

Watch out the last command will override the layout.html...

Richard

Massimo Di Pierro

unread,
Oct 27, 2012, 1:23:48 AM10/27/12
to web...@googlegroups.com
Is this issue still open? If so, please open a ticket.

lyn2py

unread,
Oct 27, 2012, 11:37:32 AM10/27/12
to web...@googlegroups.com
Hi Massimo, it worked when I replaced the appadmin.py. Thanks!
Reply all
Reply to author
Forward
0 new messages