Re: [web2py] Re: login_bare needs a password ?

2019-09-18 Thread António Ramos
Is something like this??? It returns not authorized!

auth.add_permission(db.auth_group(role="PORTEIRO")["id"],
"impersonate",db.auth_user)
auth.impersonate(4)# user 4 is included in the PORTEIRO group

Em sex, 16 de ago de 2019 às 20:05, Dave S  escreveu:

>
>
> On Friday, August 16, 2019 at 11:22:33 AM UTC-7, Ramos wrote:
>>
>> hello the the login bare function
>> auth.login_bare(user,pwd)
>> needs a password !!
>> Why ?
>> I dont know the users passwords but need to impersonate some users to
>> create records on behalf of them
>>
>> Am i reading it right ?
>>
>> Regards
>> António
>>
>
> Well, sure, it's a login method, right?
>
> What you need to look at is the impersonate method, which is described in
> the long first section of
>  http://web2py.com/books/default/chapter/29/09/access-control#Authentication
> >
>
> (Speed-read:  click instead on
>  http://web2py.com/books/default/chapter/29/09/access-control#Restrictions-on-registration
> >
> and scroll up)
>
>
> /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/73d3afa6-27b0-4a14-978a-82107713b3d6%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/CAEM0BxMVNyfTzUzMrJ9%3DSDYatam7dKF5d61ZB3-KvsX3%3D9h5Ng%40mail.gmail.com.


Re: [web2py] Re: login_bare needs a password ?

2019-09-18 Thread António Ramos
apparently i need to be logged in first.

solved!

Em qua, 18 de set de 2019 às 17:38, António Ramos 
escreveu:

> Is something like this??? It returns not authorized!
>
> auth.add_permission(db.auth_group(role="PORTEIRO")["id"],
> "impersonate",db.auth_user)
> auth.impersonate(4)# user 4 is included in the PORTEIRO group
>
> Em sex, 16 de ago de 2019 às 20:05, Dave S 
> escreveu:
>
>>
>>
>> On Friday, August 16, 2019 at 11:22:33 AM UTC-7, Ramos wrote:
>>>
>>> hello the the login bare function
>>> auth.login_bare(user,pwd)
>>> needs a password !!
>>> Why ?
>>> I dont know the users passwords but need to impersonate some users to
>>> create records on behalf of them
>>>
>>> Am i reading it right ?
>>>
>>> Regards
>>> António
>>>
>>
>> Well, sure, it's a login method, right?
>>
>> What you need to look at is the impersonate method, which is described in
>> the long first section of
>> > http://web2py.com/books/default/chapter/29/09/access-control#Authentication
>> >
>>
>> (Speed-read:  click instead on
>> > http://web2py.com/books/default/chapter/29/09/access-control#Restrictions-on-registration
>> >
>> and scroll up)
>>
>>
>> /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/73d3afa6-27b0-4a14-978a-82107713b3d6%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/CAEM0BxPzMxMbArXtP%2B1oqemtHTAe5WctUeQ-Fu1SOSpEwxp52w%40mail.gmail.com.


Re: [web2py] Re: login_bare needs a password ?

2019-09-18 Thread António Ramos
or maybe not
I tried to impersonate other user that has membership PORTEIRO and i get
"Forbidden"

Em qua, 18 de set de 2019 às 18:09, António Ramos 
escreveu:

> apparently i need to be logged in first.
>
> solved!
>
> Em qua, 18 de set de 2019 às 17:38, António Ramos 
> escreveu:
>
>> Is something like this??? It returns not authorized!
>>
>> auth.add_permission(db.auth_group(role="PORTEIRO")["id"],
>> "impersonate",db.auth_user)
>> auth.impersonate(4)# user 4 is included in the PORTEIRO group
>>
>> Em sex, 16 de ago de 2019 às 20:05, Dave S 
>> escreveu:
>>
>>>
>>>
>>> On Friday, August 16, 2019 at 11:22:33 AM UTC-7, Ramos wrote:

 hello the the login bare function
 auth.login_bare(user,pwd)
 needs a password !!
 Why ?
 I dont know the users passwords but need to impersonate some users to
 create records on behalf of them

 Am i reading it right ?

 Regards
 António

>>>
>>> Well, sure, it's a login method, right?
>>>
>>> What you need to look at is the impersonate method, which is described
>>> in the long first section of
>>> >> http://web2py.com/books/default/chapter/29/09/access-control#Authentication
>>> >
>>>
>>> (Speed-read:  click instead on
>>> >> http://web2py.com/books/default/chapter/29/09/access-control#Restrictions-on-registration
>>> >
>>> and scroll up)
>>>
>>>
>>> /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/73d3afa6-27b0-4a14-978a-82107713b3d6%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/CAEM0BxMM8WnMAWC7c5uQGi1RfiCNXHD8EFsYXZN_pJNEoDxMjg%40mail.gmail.com.


Re: [web2py] Not Anable To Start Web2py to Access Admin & IDE Site

2019-09-18 Thread Georges Bengo
Hi Nico,
Thank for having taken the time to review my request for help and reply to
it.
It seems i can't run python 2.7 nor python 3.0 on my pc, getting an error
message that tells these version of python can't run on my machine. Is
there another i can proceed?

Thanks

On Wed, Sep 18, 2019, 2:35 AM Nico Zanferrari  wrote:

> Hi,
>
> the error you're getting is because you've installed python 2.7 without
> adding it to the system's path - and so Windows cannot find it. See here
>  or the second step here
> 
>  in
> order to fix it.
>
> Also, (if you don't have any specific reason) for newbie I suggest to go
> directly with Python 3 because Python 2.x is on its end of life ;-)
>
> Cheers,
> Nico
>
> Il giorno mer 18 set 2019 alle ore 05:05 dangeo 
> ha scritto:
>
>> Hello, I'm new to Web2py and just getting started with it. I downloaded
>> python 2.7 and also Web2py from gighub and extracted the files. Using
>> windows command line i tried launching Web2py with the following line:
>> C:\Users\xxx> python27\web2py web2py.py but i get this message: The system
>> cannot find the path specified.
>> Please, would someone help me understand what i am doing wrong and what
>> would be the best way to do it that the admin and IDE site launches. I
>> greatly appreciate your help.
>>
>> --
>> 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/8accc219-a4fc-46b5-9c47-673443546623%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_DAyS2d2RixoTLgjmALLs%2BfNf9Otk6QDeFAVwL0amko%2BQ%40mail.gmail.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/CAMxSoEJQBYx1wEt_%3D19mEbUXxp6ECs06FMLuO48U%3DzTvFAGpow%40mail.gmail.com.


[web2py] Odd MySQL connection problem

2019-09-18 Thread backseat
I'm getting:

...
File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 50, in 
defaulterrorhandler
raise errorvalue
OperationalError: (1045, "Access denied for user 'pytrack2'@'localhost' (using 
password: YES)")


The password, user and database are accessible from the command line.

How can I debug this?

What output can I show here to help?

Thanks,
Keith

-- 
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/9636cf4b-bbbe-4b8f-b4fc-72c10127a1f6%40googlegroups.com.


Re: [web2py] Not Anable To Start Web2py to Access Admin & IDE Site

2019-09-18 Thread Nico Zanferrari
Hi Georges,

this is quite strange. What version of Windows are you using? Is it 32 or
64 bit  ?
Anyhow, you can download the "frozen web2py" from the official site
 or  my
repo  . Then run a CMD the
command, goto the unzipped folder and run  "web2py -M -S test" in order to
have the python prompt with the web2py modules loaded.
This should skip all the installation problem, except if you have a 32 bit
OS.

Nico

Il giorno mer 18 set 2019 alle ore 20:45 Georges Bengo <
georgesbe...@gmail.com> ha scritto:

> Hi Nico,
> Thank for having taken the time to review my request for help and reply to
> it.
> It seems i can't run python 2.7 nor python 3.0 on my pc, getting an error
> message that tells these version of python can't run on my machine. Is
> there another i can proceed?
>
> Thanks
>
> On Wed, Sep 18, 2019, 2:35 AM Nico Zanferrari  wrote:
>
>> Hi,
>>
>> the error you're getting is because you've installed python 2.7 without
>> adding it to the system's path - and so Windows cannot find it. See here
>>  or the second step here
>> 
>>  in
>> order to fix it.
>>
>> Also, (if you don't have any specific reason) for newbie I suggest to go
>> directly with Python 3 because Python 2.x is on its end of life ;-)
>>
>> Cheers,
>> Nico
>>
>> Il giorno mer 18 set 2019 alle ore 05:05 dangeo 
>> ha scritto:
>>
>>> Hello, I'm new to Web2py and just getting started with it. I downloaded
>>> python 2.7 and also Web2py from gighub and extracted the files. Using
>>> windows command line i tried launching Web2py with the following line:
>>> C:\Users\xxx> python27\web2py web2py.py but i get this message: The system
>>> cannot find the path specified.
>>> Please, would someone help me understand what i am doing wrong and what
>>> would be the best way to do it that the admin and IDE site launches. I
>>> greatly appreciate your help.
>>>
>>> --
>>> 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/8accc219-a4fc-46b5-9c47-673443546623%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_DAyS2d2RixoTLgjmALLs%2BfNf9Otk6QDeFAVwL0amko%2BQ%40mail.gmail.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/CAMxSoEJQBYx1wEt_%3D19mEbUXxp6ECs06FMLuO48U%3DzTvFAGpow%40mail.gmail.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_Ayk4063s3sEuKm-BD93JX-O5E1rtfvWt0QeqBnW2YqmQ%40mail.gmail.com.


Re: [web2py] Not Anable To Start Web2py to Access Admin & IDE Site

2019-09-18 Thread Georges Bengo
Hi Nico,

Your lastly presented solution does work, it allows me to go straight to
the web2py admin and ide site. Thank you so much!

Regards,

Georges

On Wed, Sep 18, 2019 at 3:46 PM Nico Zanferrari  wrote:

> Hi Georges,
>
> this is quite strange. What version of Windows are you using? Is it 32 or
> 64 bit  ?
> Anyhow, you can download the "frozen web2py" from the official site
>  or  my
> repo  . Then run a CMD
> the command, goto the unzipped folder and run  "web2py -M -S test" in order
> to have the python prompt with the web2py modules loaded.
> This should skip all the installation problem, except if you have a 32 bit
> OS.
>
> Nico
>
> Il giorno mer 18 set 2019 alle ore 20:45 Georges Bengo <
> georgesbe...@gmail.com> ha scritto:
>
>> Hi Nico,
>> Thank for having taken the time to review my request for help and reply
>> to it.
>> It seems i can't run python 2.7 nor python 3.0 on my pc, getting an error
>> message that tells these version of python can't run on my machine. Is
>> there another i can proceed?
>>
>> Thanks
>>
>> On Wed, Sep 18, 2019, 2:35 AM Nico Zanferrari  wrote:
>>
>>> Hi,
>>>
>>> the error you're getting is because you've installed python 2.7 without
>>> adding it to the system's path - and so Windows cannot find it. See here
>>>  or the second step here
>>> 
>>>  in
>>> order to fix it.
>>>
>>> Also, (if you don't have any specific reason) for newbie I suggest to go
>>> directly with Python 3 because Python 2.x is on its end of life ;-)
>>>
>>> Cheers,
>>> Nico
>>>
>>> Il giorno mer 18 set 2019 alle ore 05:05 dangeo 
>>> ha scritto:
>>>
 Hello, I'm new to Web2py and just getting started with it. I downloaded
 python 2.7 and also Web2py from gighub and extracted the files. Using
 windows command line i tried launching Web2py with the following line:
 C:\Users\xxx> python27\web2py web2py.py but i get this message: The system
 cannot find the path specified.
 Please, would someone help me understand what i am doing wrong and what
 would be the best way to do it that the admin and IDE site launches. I
 greatly appreciate your help.

 --
 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/8accc219-a4fc-46b5-9c47-673443546623%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_DAyS2d2RixoTLgjmALLs%2BfNf9Otk6QDeFAVwL0amko%2BQ%40mail.gmail.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/CAMxSoEJQBYx1wEt_%3D19mEbUXxp6ECs06FMLuO48U%3DzTvFAGpow%40mail.gmail.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] Re: How to hide address/tool bar when going mobile

2019-09-18 Thread Massimo Di Pierro
https://forum.playcanvas.com/t/hiding-address-bar-in-mobile/5310

On Tuesday, 17 September 2019 23:40:21 UTC-7, Maurice Waka wrote:
>
> Hello
> I'm testing my app on mobile sites and noticed that the address bad messes 
> up the screen estate when going mobile.
> I'd like to auto-hide it as soon as a user logs in.
> Tried these below but noted that the address bar does not disappear form 
> the screen. I want the app to go full screen on mobile browser.
>
> 
>   html, body {margin: 0; height: 100%; overflow: hidden}
>
> 
> $(function() {
> $(window).scrollTo(0,1);
> }
>
>

-- 
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/f3fc9eb0-c651-4983-887a-dc0002f94d04%40googlegroups.com.


[web2py] Re: AWS Lambda Deployment Recipe

2019-09-18 Thread App Jar
Here is how I set up my db to work with RDS.
Note: res-combined-ca-bundle.pem is the public key for RDS found here: 
https://s3.amazonaws.com/rds-downloads/rds-combined-ca-bundle.pem.


driver_args = { 'ssl':{ 'ca': 
'applications/ads/private/ssl/rds-combined-ca-bundle.pem'} }
db_auth = 
'mysql://username:passw...@myinst-1.cluster-.us-east-1.rds.amazonaws.com:3306/mydbname'


if settings.aws_lambda:
 from gluon.dal import InDBMigrator
 adapter_args = dict(migrator=InDBMigrator)
 pool_size = 0
else:
 adapter_args = dict()
 pool_size = 8


db = DAL(db_auth,
 pool_size=pool_size,
 migrate_enabled=False,
 migrate = False,
 adapter_args=adapter_args,
 lazy_tables=True,
 driver_args = driver_args,
 fake_migrate=True )



On Tuesday, September 17, 2019 at 7:24:03 AM UTC-5, Jaime Sempere wrote:
>
> Hi Mike,
>
> I've been following your recipe, but I have an 'read-only file system 
> issue' (I think is due that I did not set up a database and web2py is 
> trying to create the datatables files)
>
>
> So, can you give me some clues about it? Also, how should i set up and 
> configure my rds to work with web2py? I have not noticed anything about it 
> on the recipe.
>
> Check my log error from Zappa:
>
> [1568721920013] [ERROR] 2019-09-17T12:05:20.12Z 
> 75fc21f1-e92e-4c80-ada1-a3e042112bf3 Traceback (most recent call last):
>   File "/var/task/gluon/restricted.py", line 219, in restricted
>   exec(ccode, environment)
>   File "/var/task/applications/zerca_maps/models/db.py", line 179, in 
> 
>   Field('registered', 'boolean', default=False),
>   File "/var/task/gluon/packages/dal/pydal/base.py", line 590, in 
> define_table
>   table = self.lazy_define_table(tablename, *fields, **kwargs)
>   File "/var/task/gluon/packages/dal/pydal/base.py", line 624, in 
> lazy_define_table
>   polymodel=polymodel)
>   File "/var/task/gluon/packages/dal/pydal/adapters/base.py", line 798, in 
> create_table
>   return self.migrator.create_table(*args, **kwargs)
>   File "/var/task/gluon/packages/dal/pydal/migrator.py", line 318, in 
> create_table
>   fake_migrate=fake_migrate
>   File "/var/task/gluon/packages/dal/pydal/migrator.py", line 463, in 
> migrate_table
>   self.save_dbt(table, sql_fields_current)
>   File "/var/task/gluon/packages/dal/pydal/migrator.py", line 472, in 
> save_dbt
>   tfile = self.file_open(table._dbt, 'wb')
>   File "/var/task/gluon/packages/dal/pydal/migrator.py", line 495, in 
> file_open
>   fileobj = portalocker.LockedFile(filename, mode)
>   File "/var/task/gluon/packages/dal/pydal/contrib/portalocker.py", line 
> 185, in __init__
>   self.file = open_file(filename, mode.replace('w', 'a'))
>   File "/var/task/gluon/packages/dal/pydal/contrib/portalocker.py", line 
> 170, in open_file
>   f = open(filename, mode)
> IOError: [Errno 30] Read-only file system: 
> '/var/task/applications/zerca_maps/databases/c
> *8b669d15150d7109e5f7ab36744a5b7_retailers.table*'
>
>

-- 
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/b59803be-a852-4588-be71-aae20de9d339%40googlegroups.com.


Re: [web2py] Re: Whats the best way to create an Android or iOS app for web2py project

2019-09-18 Thread Rahul Dhakate
Hi All,
Any clues anyone on the questions asked?

Regards,
*Rahul*

On Fri, 13 Sep 2019 at 12:53 PM, Rahul Dhakate 
wrote:

> Thanks! Dave and Pbop for getting back with the answers. Sorry about
> posting less details
>
> *@dave* - No, I do not intend to run web2py on mobile device. Web2py
> would serve my application on the web as it usually does.
>
> The idea is to write another simple iOS or Android application in some
> tool like say what *Pbop* mentioned.( Or Python if we can and if
> supported!)
>
>  I want to connect to my web2py web application  from the mobile or PDA
> app.
> So yes - I wanna do the following -
>
> *Do you want to access a [remote] web2py server from a native app on the
> portable device?*
> * YES sort of where I will only access postgres database of the
> application by passing web2py app. I was researching if python could come
> in handy for this..*
>
> My application already works on mobile device in responsive fashion
> however I would want a stripped down version with a few mobile specific
> features added for a great user experience.
>
> *So for —- *
> 2) How can we access a postgres database residing on linux server for a
> web2py application from such an application?
> *To Add *- Here The application and database reside on the same linux box.
>
>
> Let me know on these and a couple questions I posted below.
>
>
> Regards,
>
> *Rahul*
>
> On Wed, 11 Sep 2019 at 2:24 PM, Dave S  wrote:
>
>>
>> On Friday, September 6, 2019 at 4:28:30 AM UTC-7, Rahul wrote:
>>>
>>> Hey Everyone,
>>>  I have some interesting questions (It might have been asked before)
>>> I want to know -
>>>
>>> 1) Whats the best way to create an Android or iOS app for web2py project?
>>>
>>
>> What's the goal?  Do you want web2py running as a server on the portable
>> device?  Do you want to display on the portable device pages served by a
>> [remote] webserver?  Do you want to access a [remote] web2py server from a
>> native app on the portable device?
>>
>> Note that a remote web2py server using the view tools that come with it
>> produces pages that are mobile-friendly (er, "responsive") in the sense of
>> adapting to the screen size in various ways.
>>
>>
>>> 2) How can we access a postgres database residing on linux server for a
>>> web2py application from such an application?
>>>
>>
>> Can't answer this one without knowing more about what #1 means.  A quick
>> note that a remote web2py server could be running on the linux server with
>> the database, or on a separate server, just as for any "normal"  web2py
>> installation.
>>
>>
>>> 3) Can we use python to write such apps?
>>>
>>
>> See above.  I think I've seen mention of native python on mobile devices,
>> but perhaps not included in any of the development tools for the device.
>>
>>
>>> 4) Has anyone written any apps that do the above successfully?
>>>
>>>
>>> Rahul
>>>
>>
>>
>> Good luck!
>>
>> /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 a topic in the
>> Google Groups "web2py-users" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/web2py/33bOyQHDtfM/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> web2py+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/web2py/76f02897-1f23-4503-919e-3df81cfee1eb%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/CA%2B6uMjdd3S60t3DgdGh%3D-52PGoEpJcaL%3D8N6cuvZihWstZNkpA%40mail.gmail.com.


Re: [web2py] Re: How to hide address/tool bar when going mobile

2019-09-18 Thread Maurice Waka
wow.
Noted

On Thu, Sep 19, 2019 at 6:18 AM Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:

> https://forum.playcanvas.com/t/hiding-address-bar-in-mobile/5310
>
> On Tuesday, 17 September 2019 23:40:21 UTC-7, Maurice Waka wrote:
>>
>> Hello
>> I'm testing my app on mobile sites and noticed that the address bad
>> messes up the screen estate when going mobile.
>> I'd like to auto-hide it as soon as a user logs in.
>> Tried these below but noted that the address bar does not disappear form
>> the screen. I want the app to go full screen on mobile browser.
>>
>> 
>>   html, body {margin: 0; height: 100%; overflow: hidden}
>>
>> 
>> $(function() {
>> $(window).scrollTo(0,1);
>> }
>>
>> --
> 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 a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/web2py/xQOgZh9urrk/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> web2py+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/web2py/f3fc9eb0-c651-4983-887a-dc0002f94d04%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/CALkNK54MOzFs32809q%3DohxDB8ZzyzG9t4MQ9MHr6F1_YesY7FQ%40mail.gmail.com.