[web2py] web2py logout element not interactable

2021-01-31 Thread 黄祥
*objective*
test logout on web2py app

*tried* 
using selenium, splinter, behave and robot (Maximize Browser Window) 

*result return an error*
element not interactable

*xpath of **logout on **default web2py welcome app*
/html/body/nav/div/div[2]/ul[1]/li/ul/li[4]/a

*question*
how to achieve it objective above ?

best regards,
stifan

-- 
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/dcebee9c-43d7-4f18-b316-31516079c826n%40googlegroups.com.


[web2py] Re: fake_migration issues

2021-01-31 Thread Dave S
On Saturday, January 30, 2021 at 3:32:13 PM UTC-8 valq...@gmail.com wrote:

> try to compare db.py from  "fresh" welcome-app with your app. I have had a 
> migration problem due to imports changes 
>
>
Thanks!  This wasn't the issue, but you got me looking in the right place 
... I had missed migrate_enabled.

There's some followup details for when I have time at the keyboard.

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/f45054c1-5233-4106-a85b-25556b2e9255n%40googlegroups.com.


Re: [web2py] Custom information page after registration and hide field

2021-01-31 Thread 'brushek' via web2py-users


niedziela, 31 stycznia 2021 o 18:02:41 UTC+1 mauri...@gmail.com napisał(a):

> If its about QR codes, these are what I mean't:
> http://www.web2pyslices.com/slice/show/1462/qr-code-builder-with-web2py
> https://github.com/minlaxz/python-qr
> https://github.com/laconic75/QR-Inventory
>

OK, thank You, but I will use this one for this purpose:

https://github.com/christiancoleman/gooQR

and regarding form: It was very long time I wasn't using web2py (but I have 
still systems working on it - very old version... :/), so I didn't go with 
simple solution...:

def register():

response.view = 'register.html' 
form=auth.register()
if form.accepts(request,session):
   response.flash="form accepted"
   redirect(URL('qrcode'))
return dict(form=form)

def qrcode():
 response.view = 'qrcode.html' 
 response.flash = 'you clicked on register'
 return dict(message="you clicked on register")

I have a question about response.view - when I comment this out, I get in 
browser:

invalid view (default/register.html)

why view isn't pick based on controller's function name now ?

Regards
brushek

-- 
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/5604dd46-dec8-4a6e-9c9f-b03b87ff5b6an%40googlegroups.com.


Re: [web2py] Re: fake_migration issues

2021-01-31 Thread Nico Zanferrari
You are right, I'd completely forgotten these issues...

I've closed them all, because the zip files in the official repository
http://www.web2py.com/init/default/download are fine.
Also, you can easily update the web2py program (and/or pydal) by manually
substituting the source files inside.

Cheers,
Nico

Il giorno dom 31 gen 2021 alle ore 00:17 valq...@gmail.com <
valq7...@gmail.com> ha scritto:

> I dont know, try to ask Nico, since issue is still open
>
> воскресенье, 31 января 2021 г. в 01:45:28 UTC+3, snide...@gmail.com:
>
>> On Saturday, January 30, 2021 at 2:33:37 PM UTC-8 valq...@gmail.com
>> wrote:
>>
>>> Do you use windows binaries? i.e web2py.exe?
>>> https://github.com/web2py/web2py/issues/2300
>>>
>>>
>> That issue is from April , and the exe I'm using is from November.  Are
>> the official ones still broken?
>>
>> /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/1ba5a3aa-3393-450d-8b30-a8f552f44452n%40googlegroups.com
> 
> .
>

-- 
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/CAAE8D_DEtG4SiDkxjhvfuUm5JS-A%2BpwUxpYnU8w3m4dQbPk_nw%40mail.gmail.com.


Re: [web2py] Custom information page after registration and hide field

2021-01-31 Thread Maurice Waka
If its about QR codes, these are what I mean't:
http://www.web2pyslices.com/slice/show/1462/qr-code-builder-with-web2py
https://github.com/minlaxz/python-qr
https://github.com/laconic75/QR-Inventory


On Sun, Jan 31, 2021 at 4:50 PM 'brushek' via web2py-users <
web2py@googlegroups.com> wrote:

> OK, Your suggestion is to search in examples of web2py and github ?
>
> Regards
>
>
> niedziela, 31 stycznia 2021 o 03:48:08 UTC+1 mauri...@gmail.com
> napisał(a):
>
>> I thought I must have seen an example of the same from github or Web2py
>> examples.
>> Regards
>>
>> On Sun, Jan 31, 2021, 02:47 'brushek' via web2py-users <
>> web...@googlegroups.com> wrote:
>>
>>>
>>> Hello,
>>>
>>> I have two problems to solve, I think they are simple, but couldn't find
>>> proper solution in docs.
>>>
>>> I would like to show qrcode generated by qrcode module which will be
>>> used for Google Authenticator for every user after proper registration.
>>> This qrcode should be generated randomly and inserted into database. I
>>> don't wont (now) to allow edit this field by users in profile and in
>>> registration form.
>>> I added this field this way:
>>>
>>> #Before define tables, we add some extra field to auth_user
>>> auth.settings.extra_fields['auth_user'] = [
>>> Field('motp_secret', 'password', length=512, default='', label='MOTP
>>> Secret',requires =
>>> IS_STRONG(min=16,max=16,special=0,lower=0,number=3,upper=13)),
>>> ]
>>>
>>> but this way this field is seen by user  in registration form and
>>> profile editing. I would like to generate this secret and insert into
>>> database, but without possibility to edit this by user, and give him (only
>>> once) AFTER registration qrcode to scan with information, that he/she won't
>>> be allowed to login if doesn't scan qrcode and add it Google authenticator.
>>>
>>> So questions :)
>>> 1. How to redirect after proper registration to some page on which will
>>> be custom message with qrcode ?
>>> 2. How to add silently this motp_secret field to database during
>>> registration of new user without his interaction/knowing about it
>>>
>>> Regards
>>> brushek
>>>
>>>
>>> --
>>> 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+un...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/web2py/a22212bc-d6ef-4e97-907f-d7e2a7ff7b3dn%40googlegroups.com
>>> 
>>> .
>>>
>> --
> 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/23a3c3e7-8495-4c4b-8108-efd5a9f1ebd1n%40googlegroups.com
> 
> .
>

-- 
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/CALkNK54pLaAXX3mjfFLsBaZ5dQ-Y0yuLWh8SAPP%2BFtL%2BSY59WQ%40mail.gmail.com.


Re: [web2py] Custom information page after registration and hide field

2021-01-31 Thread 'brushek' via web2py-users
OK, Your suggestion is to search in examples of web2py and github ?

Regards


niedziela, 31 stycznia 2021 o 03:48:08 UTC+1 mauri...@gmail.com napisał(a):

> I thought I must have seen an example of the same from github or Web2py 
> examples.
> Regards 
>
> On Sun, Jan 31, 2021, 02:47 'brushek' via web2py-users <
> web...@googlegroups.com> wrote:
>
>>
>> Hello,
>>
>> I have two problems to solve, I think they are simple, but couldn't find 
>> proper solution in docs.
>>
>> I would like to show qrcode generated by qrcode module which will be used 
>> for Google Authenticator for every user after proper registration. This 
>> qrcode should be generated randomly and inserted into database. I don't 
>> wont (now) to allow edit this field by users in profile and in registration 
>> form.
>> I added this field this way:
>>
>> #Before define tables, we add some extra field to auth_user
>> auth.settings.extra_fields['auth_user'] = [
>> Field('motp_secret', 'password', length=512, default='', label='MOTP 
>> Secret',requires = 
>> IS_STRONG(min=16,max=16,special=0,lower=0,number=3,upper=13)),
>> ]
>>
>> but this way this field is seen by user  in registration form and profile 
>> editing. I would like to generate this secret and insert into database, but 
>> without possibility to edit this by user, and give him (only once) AFTER 
>> registration qrcode to scan with information, that he/she won't be allowed 
>> to login if doesn't scan qrcode and add it Google authenticator.
>>
>> So questions :)
>> 1. How to redirect after proper registration to some page on which will 
>> be custom message with qrcode ?
>> 2. How to add silently this motp_secret field to database during 
>> registration of new user without his interaction/knowing about it
>>
>> Regards
>> brushek
>>
>>
>> -- 
>> 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+un...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/web2py/a22212bc-d6ef-4e97-907f-d7e2a7ff7b3dn%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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/23a3c3e7-8495-4c4b-8108-efd5a9f1ebd1n%40googlegroups.com.