I send a PR to web2py book to include the Gist in Upgrading section...

On Tue, Aug 15, 2017 at 12:49 PM, Richard Vézina <
[email protected]> wrote:

> Here :
>
> https://gist.github.com/BuhtigithuB/7d2f50203145542e0bdedb731be8a152
>
> On Tue, Aug 15, 2017 at 12:18 PM, Richard Vézina <
> [email protected]> wrote:
>
>> Yes all these files from welcome should be updated... Before you must
>> make a backup of your app just to make sure it don't break anything...
>>
>> Richard
>>
>> On Tue, Aug 15, 2017 at 11:24 AM, Martin Weissenboeck <[email protected]
>> > wrote:
>>
>>> Did you mean ... ?
>>>
>>> Those files includes :
>>>
>>> view*s*/
>>>
>>> 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 *-R* welcome/views/* *YOURAPP*/views/
>>>
>>> ------------------------------------------------------------------
>>>
>>> 2017-08-15 16:55 GMT+02:00 Richard Vézina <[email protected]>:
>>>
>>>> There is mention of it in the book :
>>>>
>>>> http://web2py.com/books/default/chapter/29/14/other-recipes?
>>>> search=upgrade#Upgrading
>>>>
>>>> On Tue, Aug 15, 2017 at 10:54 AM, Richard Vézina <
>>>> [email protected]> wrote:
>>>>
>>>>> Yes, I consider creating a gist too...
>>>>>
>>>>> Richard
>>>>>
>>>>> On Tue, Aug 15, 2017 at 10:52 AM, Martin Weissenboeck <
>>>>> [email protected]> wrote:
>>>>>
>>>>>> Thank you - should be mentioned in the book.
>>>>>>
>>>>>> 2017-08-15 16:44 GMT+02:00 Richard Vézina <
>>>>>> [email protected]>:
>>>>>>
>>>>>>> Always the same issue... I would remove this update button to me...
>>>>>>> Whe you update web2py you need to update many web2py reserved files in 
>>>>>>> your
>>>>>>> app that the web2py update don't do for you...
>>>>>>>
>>>>>>> Those files includes :
>>>>>>>
>>>>>>> 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...
>>>>>>>
>>>>>>>
>>>>>>> This listing above is a copy/paste from one of my older post, so it
>>>>>>> may not be 100% accurate
>>>>>>>
>>>>>>> Richard
>>>>>>>
>>>>>>>
>>>>>>> On Tue, Aug 15, 2017 at 4:09 AM, Martin Weissenboeck <
>>>>>>> [email protected]> wrote:
>>>>>>>
>>>>>>>> I have tried to use the automatic update to 2.15.3
>>>>>>>> The following problem occurs:
>>>>>>>>
>>>>>>>> Internal error ... Ticked issued:...
>>>>>>>>
>>>>>>>>
>>>>>>>> But appadmin is corrupted, so it is not possible to read the ticket
>>>>>>>> in a simple way.
>>>>>>>> *A restart of web2py solves the problem.*
>>>>>>>> *Maybe there should be an extra hint to restart web2py after an
>>>>>>>> error message?*
>>>>>>>>
>>>>>>>> I looked for some details:
>>>>>>>>
>>>>>>>> The error message is:
>>>>>>>>
>>>>>>>> type 'exceptions.NameError'> name 'iteritems' is not defined"
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> In application/admin/controllers/appadmin.py:
>>>>>>>>
>>>>>>>> line 14:
>>>>>>>>
>>>>>>>> from gluon._compat import iteritems
>>>>>>>>
>>>>>>>>
>>>>>>>> line 453:
>>>>>>>>
>>>>>>>> for key, value in iteritems(cache.ram.storage):
>>>>>>>>
>>>>>>>>
>>>>>>>> I suppose that without a restart web2py does not find gluon._compat
>>>>>>>>
>>>>>>>>
>>>>>>>> Regards, Martin
>>>>>>>>
>>>>>>>> --
>>>>>>>> Resources:
>>>>>>>> - http://web2py.com
>>>>>>>> - http://web2py.com/book (Documentation)
>>>>>>>> - http://github.com/web2py/web2py (Source code)
>>>>>>>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>>>>>>>> ---
>>>>>>>> You received this message because you are subscribed to the Google
>>>>>>>> Groups "web2py-users" group.
>>>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>>>> send an email to [email protected].
>>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Resources:
>>>>>>> - http://web2py.com
>>>>>>> - http://web2py.com/book (Documentation)
>>>>>>> - http://github.com/web2py/web2py (Source code)
>>>>>>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>>>>>>> ---
>>>>>>> You received this message because you are subscribed to the Google
>>>>>>> Groups "web2py-users" group.
>>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>>> send an email to [email protected].
>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Resources:
>>>>>> - http://web2py.com
>>>>>> - http://web2py.com/book (Documentation)
>>>>>> - http://github.com/web2py/web2py (Source code)
>>>>>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>>>>>> ---
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "web2py-users" group.
>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>> send an email to [email protected].
>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>>
>>>>>
>>>> --
>>>> Resources:
>>>> - http://web2py.com
>>>> - http://web2py.com/book (Documentation)
>>>> - http://github.com/web2py/web2py (Source code)
>>>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>>>> ---
>>>> You received this message because you are subscribed to the Google
>>>> Groups "web2py-users" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>
>>>
>>>
>>> --
>>> Resources:
>>> - http://web2py.com
>>> - http://web2py.com/book (Documentation)
>>> - http://github.com/web2py/web2py (Source code)
>>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "web2py-users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to