[web2py] Re: App crushed during a web2py upgrade

2022-06-13 Thread Dave S
On Saturday, June 11, 2022 at 10:04:09 PM UTC-7 mostwanted wrote:

> It says 
> * cannot import name prevent_open_redirect*
>
> under code listing it highlighted the line in red
>
> import re
> from gluon.admin import *
> from gluon.fileutils import abspath, read_file, write_file
> from gluon.utils import web2py_uuid
> *from gluon.tools import Config, prevent_open_redirect*
> from gluon.compileapp import find_exposed_functions
> from glob import glob
> from gluon._compat import iteritems, PY2, pickle, xrange, urlopen, 
> to_bytes, StringIO, to_native, reload
> import gluon.rewrite
>

Hmmm, I can find that function in the 2.22.3   version, so It's still 
around.  It will take someone with a more intimate understanding of the 
subsystem to explain the problem.

I do use a load() call in my apps, but the one I use the most loads a 
form.  It is not set up as a callback.

Dave S
/dps

-- 
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 web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/9d3f35c0-6461-4ed2-a6f3-efcdea9184ecn%40googlegroups.com.


[web2py] Re: App crushed during a web2py upgrade

2022-06-11 Thread mostwanted
It says 
* cannot import name prevent_open_redirect*

under code listing it highlighted the line in red

import re
from gluon.admin import *
from gluon.fileutils import abspath, read_file, write_file
from gluon.utils import web2py_uuid
*from gluon.tools import Config, prevent_open_redirect*
from gluon.compileapp import find_exposed_functions
from glob import glob
from gluon._compat import iteritems, PY2, pickle, xrange, urlopen, to_bytes, 
StringIO, to_native, reload
import gluon.rewrite
On Sunday, June 12, 2022 at 3:02:55 AM UTC+2 snide...@gmail.com wrote:

> On Saturday, June 11, 2022 at 1:11:03 AM UTC-7 mostwanted wrote:
>
>> I was able to resolve the problem, I reloaded the app from my 
>> pythonanywhere account and i was able to access my admin but i still can 
>> not get my callback to work as expected. Can someone please help me! What 
>> am i doing wrong or what do i need to do?! 
>> It says my web2py is upgraded to 2.22.5-stable+timestamp
>>
>> {{=A(company.no_of_ppadb_codes, _href='#', 
>> callback=URL('ppadb_codes.load', args=company.id), target="content", 
>> _class="show_codes")}}
>> 
>>
>>
>
> So now that you can read tickets again, what is the ticket for this one?
>
> /dps
>  
>
>> Regards
>> On Saturday, June 11, 2022 at 9:53:55 AM UTC+2 mostwanted wrote:
>>
>>> I tried to upgrade my app to the latest version because the 
>>> callback{{=A(link, callback=URL())}} functionality kept redirecting instead 
>>> of calling the page to the current page div but it crushed
>>>
>>> When i open my admin gape i get (*Ticket issued: 
>>> admin/41.77.89.202.2022-06-11.07-43-03.e76169bb-1516-4236-ab3b-6ee56ffdda39 
>>> )
>>>  
>>> *which does not lead me anywhere, everytime i click on it it opens 
>>> another page in another tab with the same ticket message, what can i do, 
>>> please help me!!
>>>
>>

-- 
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 web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/323f74f8-c9b9-4b9a-b146-8799344dc905n%40googlegroups.com.


[web2py] Re: App crushed during a web2py upgrade

2022-06-11 Thread Dave S
On Saturday, June 11, 2022 at 1:11:03 AM UTC-7 mostwanted wrote:

> I was able to resolve the problem, I reloaded the app from my 
> pythonanywhere account and i was able to access my admin but i still can 
> not get my callback to work as expected. Can someone please help me! What 
> am i doing wrong or what do i need to do?! 
> It says my web2py is upgraded to 2.22.5-stable+timestamp
>
> {{=A(company.no_of_ppadb_codes, _href='#', 
> callback=URL('ppadb_codes.load', args=company.id), target="content", 
> _class="show_codes")}}
> 
>
>

So now that you can read tickets again, what is the ticket for this one?

/dps
 

> Regards
> On Saturday, June 11, 2022 at 9:53:55 AM UTC+2 mostwanted wrote:
>
>> I tried to upgrade my app to the latest version because the 
>> callback{{=A(link, callback=URL())}} functionality kept redirecting instead 
>> of calling the page to the current page div but it crushed
>>
>> When i open my admin gape i get (*Ticket issued: 
>> admin/41.77.89.202.2022-06-11.07-43-03.e76169bb-1516-4236-ab3b-6ee56ffdda39 
>> )
>>  
>> *which does not lead me anywhere, everytime i click on it it opens 
>> another page in another tab with the same ticket message, what can i do, 
>> please help me!!
>>
>

-- 
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 web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/0c5ff7f4-e7ed-495d-b68b-0cea0d60b306n%40googlegroups.com.


[web2py] Re: App crushed during a web2py upgrade

2022-06-11 Thread mostwanted
I was able to resolve the problem, I reloaded the app from my 
pythonanywhere account and i was able to access my admin but i still can 
not get my callback to work as expected. Can someone please help me! What 
am i doing wrong or what do i need to do?! 
It says my web2py is upgraded to 2.22.5-stable+timestamp

{{=A(company.no_of_ppadb_codes, _href='#', callback=URL('ppadb_codes.load', 
args=company.id), target="content", _class="show_codes")}}


Regards
On Saturday, June 11, 2022 at 9:53:55 AM UTC+2 mostwanted wrote:

> I tried to upgrade my app to the latest version because the 
> callback{{=A(link, callback=URL())}} functionality kept redirecting instead 
> of calling the page to the current page div but it crushed
>
> When i open my admin gape i get (*Ticket issued: 
> admin/41.77.89.202.2022-06-11.07-43-03.e76169bb-1516-4236-ab3b-6ee56ffdda39 
> )
>  
> *which does not lead me anywhere, everytime i click on it it opens 
> another page in another tab with the same ticket message, what can i do, 
> please help me!!
>

-- 
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 web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/4a632a51-0ae0-44c9-8e00-7adf980b12e6n%40googlegroups.com.