Re: [web2py] Module error

2020-12-07 Thread Warwick JC
I had the same issue with pygal. After putting the pygal moduIe in the
modules folder all was sorted.

On Mon, Dec 7, 2020, 18:43 Gaël Princivalle 
wrote:

> That's crazy for sure.
> The modules are in the modules folder .
> I don't understand why they don't appear in the modules list and why
> they're not found by my application.
> Il giorno lunedì 7 dicembre 2020 alle 15:36:28 UTC+1 lbjc...@gmail.com ha
> scritto:
>
>> Easier and crazy way I do is install the requests module in modules
>> folder or site packages.
>>
>> On Mon, Dec 7, 2020, 16:51 Gaël Princivalle  wrote:
>>
>>>
>>> Hello.
>>>
>>> Moving an app to another server I've this error:
>>>  No module named
>>> applications.myapp.modules.requests
>>>
>>> Of course I've the modules in my app.
>>> The previous Web2py version was 2.14.16.
>>> Now I use 2.20.4.
>>>
>>> Someone knows what's the problem?
>>>
>>> Thanks.
>>>
>>> --
>>> 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/70c43a4c-6698-4068-8f7e-9b322a647e1dn%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/2a412953-7ec1-41df-ae9e-a872baf47371n%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/CAAcHJF9pS85-U5-5ODSasKqqT0sw0kJKJ6Qn-033vgPZ11xOSA%40mail.gmail.com.


Re: [web2py] Module error

2020-12-07 Thread Warwick JC
Easier and crazy way I do is install the requests module in modules folder
or site packages.

On Mon, Dec 7, 2020, 16:51 Gaël Princivalle 
wrote:

>
> Hello.
>
> Moving an app to another server I've this error:
>  No module named
> applications.myapp.modules.requests
>
> Of course I've the modules in my app.
> The previous Web2py version was 2.14.16.
> Now I use 2.20.4.
>
> Someone knows what's the problem?
>
> Thanks.
>
> --
> 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/70c43a4c-6698-4068-8f7e-9b322a647e1dn%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/CAAcHJF9zwCEb%3DvEJTW7%3Dmi%2B5JXU_K1EOpqwwACU8hnG7LAv6VA%40mail.gmail.com.


[web2py] How to customize email settings.

2020-12-02 Thread Warwick JC
I recently successfully used the configured email settings as follows:

mail = auth.settings.mailer
mail.settings.server = 'smtp.gmail.com:587'
mail.settings.sender = 'usern...@gmail.com'
auth.settings.registration_requires_verification = True

I noted that the email arrived with the sender name in lower caps and using 
the email names (e.g. if usern...@gmail.com the name appears as username 
and not user name).
I would like it to appear like: 'User Name' and not 'username'.
Kind regards.

-- 
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/c0c4bd5a-f446-47e5-8acd-6f6fd3dca8d9n%40googlegroups.com.


Re: [web2py] web2py 2.21.1 is OUT

2020-11-28 Thread Warwick JC
Thank you for your great product.
Regards

On Sat, Nov 28, 2020, 07:22 Massimo Di Pierro 
wrote:

>
> Hello everybody,
>
> first of all my apologies to you all. I have been absent from this list
> for some time, mostly because busy with py4web.
>
> I made a new release (2.21.1) of web2py which includes mostly small bug
> fixes but no new features. Please report any problem.
>
> At this point web2py has been stable for long time so we are not planning
> to add features.
>
> py4web on the other side is growing fast. It now has Auth,
> internationalization, Form, Grid and it is 20x faster than wb2py. pyDAL
> woks the in the same way as in web2py. I insist you should check it out and
> consider moving you code. It is easy and we will help.
>
> Massimo
>
>
> --
> 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/3db686af-90dc-4864-891a-fe7050cf40c7n%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/CAAcHJF9L50_9Pdms3mkA7XnRXJ9UM_haAaWhAMUxva_880StWw%40mail.gmail.com.


[web2py] Hide multiple controller names and functions.

2020-11-23 Thread Warwick JC
Following on this , 
is there a way one can do the same with multiple controllers and thier 
functions?
For me it only works for one controller.
Regards

-- 
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/2ce7ba6c-9a2d-4628-89d0-db20dff1eb1cn%40googlegroups.com.


Re: [web2py] Anyone in or near Barcelona?

2020-10-16 Thread Warwick JC
I once had a project with: nick.d.kreiss...@gmail.com
Then he was in Barcelona

On Thu, Oct 15, 2020, 15:43 i.r...@appichar.com.au 
wrote:

> Hi - I'm looking for someone based in or around Barcelona with
> Python/web2py experience who might be able to help with a couple of
> projects I've built / will be building in web2py (or maybe web3py).
>
> If you know of of anyone please feel free to forward.
>
> Thanks
> Ian
>
> --
> 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/a0a8a9fe-c8e8-4fac-b659-f0432969a4f1n%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/CAAcHJF-z35uoXZwnERdCYCcY%2BD5wZndfxhBt_qTFxxz%2BAhFH7A%40mail.gmail.com.


[web2py] How to shorten URL name for web2py with multiple controllers

2020-08-06 Thread Warwick JC
Hello.
I only note that this works only for the index page.

routers = dict(
# base router
BASE=dict(
default_application='init',
),
# app specific router
rivelar=dict(
default_controller='default',
default_function='index'
)


)

I would also like to shorten the names for other pages as well, especially 
if you have multiple controllers. How can I dpo this?
Regards

-- 
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/655dae50-cc2e-4442-bd8d-ba1e52235eafo%40googlegroups.com.


[web2py] making url shorter in web2py and google appengine

2020-08-06 Thread Warwick JC
Hello, I followed this 
example
 
on URL shortening.
I wonder how can I do with multiple controllers in the app.
Will the example below be pythonic?

routers = dict(
BASE = dict(
default_application = 'myapp',
default_controller = 'default',
default_function = 'index',
),
BASE = dict(
default_application = 'myapp',
default_controller = 'default2',
default_function = 'page_other',
),
BASE = dict(
default_application = 'myapp',
default_controller = 'default3',
default_function = 'page_others',
),


)

-- 
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/5ca5bbb8-a3ad-4824-bdb0-b69e6949b53ao%40googlegroups.com.


Re: [web2py] Re: How do I prevent going back to previous page after user is logged out?

2020-08-03 Thread Warwick JC
Thanks guys.
They both work well.
Regards

On Mon, Aug 3, 2020, 21:01 Rahul  wrote:

> Another simple way is  --
> To pop out session variables like in code below for all the login session
> variables and redirect the user wherer-ever you want them to be.
> This way since no valid session exists the user would be redirected to
> page where you intend them to be.
>
> def sign_out():
> session.pop('user_name', None)
> redirect(URL(r=request, f='login'))
> return dict()
>
> Regards,
>
> Rahul Dhakate
>
> On Sunday, August 2, 2020 at 3:29:25 PM UTC+5:30 lbjc...@gmail.com wrote:
>
>> Hi
>> Thanks for this.
>> I put these functions in the model.py, I hope its correct.
>>
>> def __on_login():
>> redirect(URL('index'))
>> return None
>>
>> def __on_logout():
>> redirect(URL('index'))
>> return None
>>
>> On Fri, 31 Jul 2020 at 11:49, 'Annet' via web2py-users <
>> web...@googlegroups.com> wrote:
>>
>>> What about the following?
>>>
>>> auth.settings.login_onaccept = lambda form: __on_login()
>>> auth.settings.logout_onlogout = lambda user: __on_logout()
>>>
>>>
>>> def __on_login():
>>> # whatever you want to do
>>> return None
>>>
>>>
>>> def __on_logout():
>>> # whatever you want to do
>>> return None
>>>
>>> To solve your problem use the request object to redirect
>>>
>>>
>>> HTH,
>>>
>>> Annet
>>>
>>> --
>>> 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/e80c749a-cc2e-496f-89bd-7de4c0f1ef2fo%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/32df90f2-a489-47de-9b5f-b4a7fcacd804n%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/CAAcHJF-Mcg-qKOc7g2UCuOBbidaHSBojwPtZaPbG2GSMWfDSNw%40mail.gmail.com.


Re: [web2py] Re: How do I prevent going back to previous page after user is logged out?

2020-08-02 Thread Warwick JC
Hi
Thanks for this.
I put these functions in the model.py, I hope its correct.

def __on_login():
redirect(URL('index'))
return None

def __on_logout():
redirect(URL('index'))
return None

On Fri, 31 Jul 2020 at 11:49, 'Annet' via web2py-users <
web2py@googlegroups.com> wrote:

> What about the following?
>
> auth.settings.login_onaccept = lambda form: __on_login()
> auth.settings.logout_onlogout = lambda user: __on_logout()
>
>
> def __on_login():
> # whatever you want to do
> return None
>
>
> def __on_logout():
> # whatever you want to do
> return None
>
> To solve your problem use the request object to redirect
>
>
> HTH,
>
> Annet
>
> --
> 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/e80c749a-cc2e-496f-89bd-7de4c0f1ef2fo%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/CAAcHJF_2DY272c-K%3DJ4LDWX%2BHfe4QzgBBP52Bb%3D%3DmeOvzc9fCg%40mail.gmail.com.


Re: [web2py] Re: login expiration time

2020-07-28 Thread Warwick JC
Thanks. I appreciate it.

On Mon, Jul 27, 2020, 19:22 villas  wrote:

> It isn't really 'wrong' as such,  but it is usually not the best or most
> flexible way of displaying your own html content.
>
> Iframes are normally used to embed and isolate third-party content into
> your website, e.g. advertisements.
>
> The iframe allows a method of ceding control of a portion of your screen
> to be taken over and used by 'someone else' e.g.  perhaps a credit card
> payment gateway,  a PDF viewer,  or simply pages from other websites.
>
>
> On Friday, 24 July 2020 21:21:03 UTC+1, Warwick JC wrote:
>>
>> Thanks.
>> Is it wrong to have iframe pages from the same app?
>> Regards
>>
>> On Fri, 24 Jul 2020 at 15:20, villas  wrote:
>>
>>> If you are using an iframe to display a page from the same app,  I have
>>> the impression that your design might be wrong. You will probably find a
>>> better way after you give this a little more thought. Sorry if this answer
>>> does not seem so helpful.
>>>
>>> --
>>> 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 web...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/web2py/36155787-351a-479c-8534-3c0c58e333dfo%40googlegroups.com
>>> <https://groups.google.com/d/msgid/web2py/36155787-351a-479c-8534-3c0c58e333dfo%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> 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/fa3134f2-75d9-4e71-8315-02e5289713f2o%40googlegroups.com
> <https://groups.google.com/d/msgid/web2py/fa3134f2-75d9-4e71-8315-02e5289713f2o%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAAcHJF9JDc5z93n6Q74Q%2BrwXYPELXDrGF-Dpye5X71VrAxrSGA%40mail.gmail.com.


[web2py] How do I prevent going back to previous page after user is logged out?

2020-07-27 Thread Warwick JC
I have a page that when logging in from a previous logout, the login page 
redirects back to the same page. 

I want to have a default redirect to the index page instead.

Using 
auth.settings.login_next = URL('default','index')

does not help.


   1. Is there a better way out in js or some form of settings.
   2. Is there a way of restricting this feature to specific pages only? 
   such as if a user is in natgeo.html, gets logged out after expiration time, 
   should be redirected to index.html and not back to natgeo.html.

-- 
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/b4e94118-a0bc-4dd1-8b12-acf410c8a26fo%40googlegroups.com.


Re: [web2py] Re: login expiration time

2020-07-25 Thread Warwick JC
Actually I got kind of a workaround.
In my iframe, a redirect to the login page was distorting the page since 
the user.html was not resized.
So I did this to escape the iframe and go full-page:


this.top.location !== this.location && (this.top.location = this.location);



On Friday, 24 July 2020 23:21:03 UTC+3, Warwick JC wrote:
>
> Thanks.
> Is it wrong to have iframe pages from the same app?
> Regards
>
> On Fri, 24 Jul 2020 at 15:20, villas  wrote:
>
>> If you are using an iframe to display a page from the same app,  I have 
>> the impression that your design might be wrong. You will probably find a 
>> better way after you give this a little more thought. Sorry if this answer 
>> does not seem so helpful.
>>
>> -- 
>> 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/36155787-351a-479c-8534-3c0c58e333dfo%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/web2py/36155787-351a-479c-8534-3c0c58e333dfo%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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/f08c85f0-6cf7-49f0-8033-92ab50380449o%40googlegroups.com.


Re: [web2py] Re: login expiration time

2020-07-24 Thread Warwick JC
Thanks.
Is it wrong to have iframe pages from the same app?
Regards

On Fri, 24 Jul 2020 at 15:20, villas  wrote:

> If you are using an iframe to display a page from the same app,  I have
> the impression that your design might be wrong. You will probably find a
> better way after you give this a little more thought. Sorry if this answer
> does not seem so helpful.
>
> --
> 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/36155787-351a-479c-8534-3c0c58e333dfo%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/CAAcHJF81t6XNMu69TapOOSHCXe%2BrjbrFGe9FRaDi6uinfMZOzw%40mail.gmail.com.


[web2py] login expiration time

2020-07-23 Thread Warwick JC
Hello.

I have a web2py html page (e.g. idex.html)  that has another page in iframe 
within the app. After session timeout, I get redirected back to the login 
page which works at the iframe page and not the main page.

I used this in the model.py: 

auth.settings.expiration = 1800


The problem is that I cant get the redirection done from the index.html 
page but happens at the iframe page.

How can I achieve this? Is there another place that I can place the 
'auth.settings.expiration'

Regards

-- 
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/6b299808-652e-419b-99e4-5b1e73fa4195o%40googlegroups.com.


Re: [web2py] Any alternative to installing web2py on laptop

2020-07-19 Thread Warwick JC
I also just use a local folder to run Web2py. You can still use the laptop
by downloading the source file and unpacking it to a local folder.
Regards

On Mon, Jul 20, 2020, 08:32 AGRogers  wrote:

> Sure. pythonanywhere.com is where I started.
>
> Maybe it can run from a USB stick? I think it is pretty portable - but i
> have never done that and you would be better listening to someone else.
>
> On Mon, 20 Jul 2020 at 15:24, Nishant Bansal 
> wrote:
>
>> Hi,
>> I have a company provided laptop and I cannot install any external
>> software on it. Is there any way to being able to work using web2py without
>> installing it,  for e.g - there are online versions of Jupyter notebook
>> available for writing python code.
>>
>> Thanks,
>> Nishant
>>
>> --
>> 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/1b736e62-05e7-4382-a71f-5c936bd96a3eo%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/CACWMBMNCupHAjxiuAL3d8xbX5BwVUFc6%2BWqS%2BCrKPVXf6vAG6A%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/CAAcHJF_S69euMgaO3ezZ7hcVFH0JeFO1RpBemcvCb0bwgj5sGw%40mail.gmail.com.


Re: [web2py] Re: I broke something

2020-05-25 Thread Lovedie JC
I got several such errors in p3.
Changing to:
Except Exception as e:
Works for me.

On Tue, Jun 18, 2019, 19:19 Jim S  wrote:

> Isn't that an old except syntax that is not supported in Python 3?
>
> I'm thinking it should be:
>
> except Exception as e:
>
>
> ...but, I'm no expert in 2 to 3 changes.  Anyone else know more about this?
>
> -Jim
>
> On Tuesday, June 18, 2019 at 3:11:14 AM UTC-5, Константин Комков wrote:
>
>> Also I see that error:
>> Ticket ID
>>
>> 10.250.10.160.2019-06-18.11-10-10.65f5c525-97e7-4cf4-985b-eea6fd89e420
>> Версия
>> web2py™ Version 2.18.5-stable+timestamp.2019.04.08.04.22.03
>> Python Python 3.7.3: C:\Python\python.exe (prefix: C:\Python)Traceback
>>
>> 1.
>> 2.
>> 3.
>> 4.
>> 5.
>> 6.
>> 7.
>> 8.
>> 9.
>> 10.
>> 11.
>> 12.
>> 13.
>> 14.
>> 15.
>> 16.
>> 17.
>> 18.
>>
>> Traceback (most recent call last):
>>   File ".\gluon\main.py", line 444, in wsgibase
>> serve_controller(request, response, session)
>>   File ".\gluon\main.py", line 179, in serve_controller
>> page = run_controller_in(request.controller, request.function, 
>> environment)
>>   File ".\gluon\compileapp.py", line 657, in run_controller_in
>> ccode = getcfs(layer, filename, lambda: compile2(code, filename))
>>   File ".\gluon\cfs.py", line 50, in getcfs
>> data = filter()
>>   File ".\gluon\compileapp.py", line 657, in 
>> ccode = getcfs(layer, filename, lambda: compile2(code, filename))
>>   File ".\gluon\restricted.py", line 205, in compile2
>> return compile(code, layer, 'exec')
>>   File "C:\inetpub\wwwroot\applications\stud\controllers/appadmin.py", line 
>> 270
>> except Exception, e:
>> ^
>> SyntaxError: invalid syntax
>>
>> Error snapshot [image: help]
>> 
>>
>> SyntaxError(invalid syntax (controllers/appadmin.py, line 270))
>>
>> inspect attributes
>> Frames
>>
>>-
>>
>>*File C:\inetpub\wwwroot\gluon\main.py in wsgibase at line 444* код
>>аргументы переменные
>>-
>>
>>*File C:\inetpub\wwwroot\gluon\main.py in serve_controller at line
>>179* код аргументы переменные
>>-
>>
>>*File C:\inetpub\wwwroot\gluon\compileapp.py in run_controller_in at
>>line 657* код аргументы переменные
>>-
>>
>>*File C:\inetpub\wwwroot\gluon\cfs.py in getcfs at line 50* код
>>аргументы переменные
>>-
>>
>>*File C:\inetpub\wwwroot\gluon\compileapp.py in  at line 657*
>>код аргументы переменные
>>-
>>
>>*File C:\inetpub\wwwroot\gluon\restricted.py in compile2 at line 205*
>>код аргументы переменные
>>Function argument list
>>
>>(code='# -*- coding: utf-8 -*-\n\n# #...n
>>ul_main\n\nresponse._vars=response._caller(hooks)',
>>layer=r'C:\inetpub\wwwroot\applications\stud\controllers/appadmin.py')
>>Code listing
>>
>>200.
>>201.
>>202.
>>203.
>>204.
>>205.
>>206.
>>207.
>>208.
>>209.
>>
>>output = ""
>>return output
>>
>>
>>def compile2(code, layer):
>>return compile(code, layer, 'exec')
>>
>>
>>def restricted(ccode, environment=None, layer='Unknown', scode=None):
>>"""
>>
>>Variables
>>builtincompile 
>>code '# -*- coding: utf-8 -*-\n\n# #...n
>>ul_main\n\nresponse._vars=response._caller(hooks)'
>>layer r'C:\inetpub\wwwroot\applications\stud\controllers/appadmin.py'
>>
>>
>> --
> 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/7c359d91-336c-4166-8178-08707cc5f016%40googlegroups.com
> 
> .
> 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 web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/CAAcHJF-_feP0kjxKD%2BOrZuisBn42S7juF%2B3J-ZvoE17-zQHrrg%40mail.gmail.com.


Re: [web2py] Re: web2py and ubuntu 20lts

2020-05-01 Thread Lovedie JC
On system restart, the previous pyc files for python 2+ were deleted and it
works OK.
Let me observe for now.
Regards

On Fri, May 1, 2020, 11:26 Lovedie JC  wrote:

> Let me try
>
> On Fri, May 1, 2020, 11:00 Clemens 
> wrote:
>
>> Hi Maurice,
>>
>> obviously you're trying to execute  your pythone-2-compiled code with
>> python 3 (Ubuntu 20 default). Have a try recompiling it with python 3.x.
>>
>> Does this solve the problem?
>>
>> Regards
>> Clemens
>>
>> On Friday, May 1, 2020 at 7:24:34 AM UTC+2, Maurice Waka wrote:
>>>
>>> I recently moved to ubuntu 20LTS and on login to web2py I get this error:
>>>
>>> Traceback
>>>
>>> 1.
>>> 2.
>>> 3.
>>> 4.
>>> 5.
>>> 6.
>>> 7.
>>> 8.
>>> 9.
>>> 10.
>>> 11.
>>> 12.
>>> 13.
>>> 14.
>>> 15.
>>>  Traceback (most recent call last):
>>>  File "/home/maurice/web2py/gluon/main.py", line 440, in wsgibase
>>>  serve_controller(request, response, session)
>>>  File "/home/maurice/web2py/gluon/main.py", line 174, in
>>> serve_controller
>>>  run_models_in(environment)
>>>  File "/home/maurice/web2py/gluon/compileapp.py", line 562, in
>>> run_models_in
>>>  ccode = getcfs(model, model, f)
>>>  File "/home/maurice/web2py/gluon/cfs.py", line 50, in getcfs
>>>  data = filter()
>>>  File "/home/maurice/web2py/gluon/compileapp.py", line 559, in 
>>>  f = lambda: read_pyc(model)
>>>  File "/home/maurice/web2py/gluon/compileapp.py", line 427, in read_pyc
>>>  raise SystemError('compiled code is incompatible')
>>> SystemError: compiled code is incompatible
>>>
>>>
>>> --
>> 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/5e0165da-cac3-4398-93b2-ebc7c3a4c120%40googlegroups.com
>> <https://groups.google.com/d/msgid/web2py/5e0165da-cac3-4398-93b2-ebc7c3a4c120%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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/CAAcHJF-F8pei%2B9moXc-kz-iRn4kaiOkgbD-Tv_HyyxkXQc77%3DQ%40mail.gmail.com.


Re: [web2py] Re: web2py and ubuntu 20lts

2020-05-01 Thread Lovedie JC
Let me try

On Fri, May 1, 2020, 11:00 Clemens 
wrote:

> Hi Maurice,
>
> obviously you're trying to execute  your pythone-2-compiled code with
> python 3 (Ubuntu 20 default). Have a try recompiling it with python 3.x.
>
> Does this solve the problem?
>
> Regards
> Clemens
>
> On Friday, May 1, 2020 at 7:24:34 AM UTC+2, Maurice Waka wrote:
>>
>> I recently moved to ubuntu 20LTS and on login to web2py I get this error:
>>
>> Traceback
>>
>> 1.
>> 2.
>> 3.
>> 4.
>> 5.
>> 6.
>> 7.
>> 8.
>> 9.
>> 10.
>> 11.
>> 12.
>> 13.
>> 14.
>> 15.
>>  Traceback (most recent call last):
>>  File "/home/maurice/web2py/gluon/main.py", line 440, in wsgibase
>>  serve_controller(request, response, session)
>>  File "/home/maurice/web2py/gluon/main.py", line 174, in serve_controller
>>  run_models_in(environment)
>>  File "/home/maurice/web2py/gluon/compileapp.py", line 562, in
>> run_models_in
>>  ccode = getcfs(model, model, f)
>>  File "/home/maurice/web2py/gluon/cfs.py", line 50, in getcfs
>>  data = filter()
>>  File "/home/maurice/web2py/gluon/compileapp.py", line 559, in 
>>  f = lambda: read_pyc(model)
>>  File "/home/maurice/web2py/gluon/compileapp.py", line 427, in read_pyc
>>  raise SystemError('compiled code is incompatible')
>> SystemError: compiled code is incompatible
>>
>>
>> --
> 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/5e0165da-cac3-4398-93b2-ebc7c3a4c120%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/CAAcHJF8VAx92VT0roYUcyynhCXbvJSyAOLZMNYbjRdNO%3DnmePg%40mail.gmail.com.


Re: [web2py] Android and ios aops

2020-04-24 Thread Lovedie JC
Thanks. I had seen the SL4A some time ago but couldn't trace the
instructions on how to do it.
I'm more interested in a Google play store product though.
Regards

On Fri, Apr 24, 2020, 17:45 Christian Varas  wrote:

> Hi, i did this in android some years ago, you can run web2py using SL4A
> and installing the python package, then you have to move the web2py folder
> into the SL4A folder and run the web2py with no GUI.
> Other option could be Termux, is more easy, you can install packages with
> like “apt install python”, download web2py with wget or curl and then run
> web2py, (I haven’t tried this but i think it should  work)
> And you don’t need to be root for this.
> For making an apk, I don’t have idea 🤷‍♂️
>
> Cheers.
> Chris.
>
>
> El El vie, 24 de abr. de 2020 a la(s) 06:45, Maurice Waka <
> mauricew...@gmail.com> escribió:
>
>> Just following on this discussion :
>>
>>
>> "Can we use a web2py app on Android mobile? - Google Groups"
>> https://groups.google.com/forum/m/#!topic/web2py/1ZxFEB5j4XA
>>
>> Anyone who has latest information on creating a download able app?
>>
>> --
>> 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/c412427f-d694-4ba8-beca-98f2d5090464%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%2Bs%2BuJv87xbQB_HcR4n_g_grtHVO%3DTOVXFyLvHgFyesHYkPgFg%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/CAAcHJF-DtkzahwMGMNvM4h6PqqEFCdRNzty96iPjd7b3GqXSOw%40mail.gmail.com.


Re: [web2py] Re: Getting an error that ends in "No driver of supported ones %s is available" % str(self.drivers) RuntimeError: No driver of supported ones ('psycopg2',) is available

2020-04-18 Thread Lovedie JC
I once had the same error,
Updated Web2py then copied the psycopg2 in the modules folder.
It worked for me.
Regards

On Sat, Apr 18, 2020, 19:09 Valdeck Rowe  wrote:

> So I checked gluon/contrib and it wasn't there, so I moved it into
> gluon/contrib. Restarted nginx. Still getting the same error.
>
> On Thursday, April 16, 2020 at 3:57:53 PM UTC-5, Dave S wrote:
>>
>>
>>
>> On Wednesday, April 15, 2020 at 4:52:50 PM UTC-7, Valdeck Rowe wrote:
>>>
>>> I've copied the psycopg2 package over to the web2py/site-packages
>>> folder, added the packages folder to the path. Still nothing
>>>
>>>
>> My copy isn't in site-packages, it's in gluon/contrib.
>>
>>
>>> On Tuesday, April 14, 2020 at 12:58:14 PM UTC-5, Valdeck Rowe wrote:

 Greetings,

 Got this error on a production Centos 7 box (on an intranet) after
 running the centos setup script (setup-web2py-nginx-uwsgi-centos7.sh) to
 update web2py before updating the application.

 Full error message:
  Failure to connect, tried 5 times:
 Traceback (most recent call last): File
 "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/base.py", line 507, in
 __init__ self._adapter = adapter(**kwargs) File
 "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/postgres.py",
 line 28, in __call__ return AdapterMeta.__call__(cls, *args, **kwargs) File
 "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/__init__.py",
 line 41, in __call__ obj = super(AdapterMeta, cls).__call__(*args,
 **kwargs) File
 "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/postgres.py",
 line 67, in __init__ after_connection, File
 "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/base.py", line
 417, in __init__ super(SQLAdapter, self).__init__(*args, **kwargs) File
 "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/base.py", line
 85, in __init__ self.find_driver() File
 "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/base.py", line
 134, in find_driver "No driver of supported ones %s is available" %
 str(self.drivers) RuntimeError: No driver of supported ones ('psycopg2',)
 is available



 Pysocpg2 is already installed. The app was working before.

 Not sure why I'm getting this error when I'd been running fine before.

 Please help. The server has not been used in days and this is mission
 critical.

 Thanks in advance.
 Valdeck

>>> --
> 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/831c08af-7eaa-4963-ae3d-3b809b4fc863%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/CAAcHJF_zm0Vm4D1%2B5NaDmQPZ1LAtWV6aqasbQg7imNoiLXCxEQ%40mail.gmail.com.


Re: [web2py] Which 4 or 2?

2020-04-18 Thread Lovedie JC
Check out the video tutorials on vimeo as well.
They're great
Regards

On Sat, Apr 18, 2020, 11:11 David Swarbrick  wrote:

> Thank you for the encouragement, and the really useful resources
> identified.
>
> I think I have to work through the book, and where something really is not
> understandable (for me), keep going back a few pages and trying again.
>
>
> David Swarbrick da...@swarb.co.uk - dsw...@gmail.com - swarb.co.uk Tel
> 0795 457 9992 / +44(0)1484 380326
>
>
>
> On Sat, 18 Apr 2020 at 07:35, AGRogers  wrote:
>
>> Hi David
>>
>> I have spent that last month and a half trying to learn web2py and python
>> and javascript (and css and sqlite and html). I reckon the official web2py
>> book has everything in it that you need. However my trouble was that my
>> knowledge about everything was so minimal that i often couldn't connect the
>> dots. So i found other resources, especially Anthony's many posts on
>> stackoverflow, invaluable.
>>
>> Anyhow, i started collecting links to helpful web2py posts and sites and
>> noted them in this document:
>> https://docs.google.com/document/d/1H6oqWAE6jv0R1HuOEamJkP91f8dPfYURLiMHhuiQTWQ/edit?usp=sharing
>>
>> The document is ugly but it might be a good place to start when you are
>> looking for more info.
>>
>> I think the thing the official book lacks is sufficient examples. The
>> information in it is great and quite complete. But i wasnt smart enough to
>> work through my problems without more explicit examples.  For example, i
>> found this site recently and it has a pile of really helpful query
>> examples: https://web2py.wordpress.com/tag/subquery/
>>
>> Apart from this group, most of the stuff online for web2py is pretty old.
>> But dont be put off by that, it almost always works perfectly.
>>
>> On Sat, 18 Apr 2020 at 15:13, David Swarbrick  wrote:
>>
>>> Thank you. I will persist.
>>>
>>> I used to tell my staff that the only daft question was the one
>>> unasked.  I may be providing a constant supply of evidence to the contrary.
>>>
>>> On Friday, 17 April 2020 21:52:24 UTC+1, Christian Varas wrote:

 Hi,

 I think is better to start with *web2py*, is easy to learn and I
 believe that fit better to your site, py4web is really good and more
 faster, but in web2py you have more tools to do things.
 The transition after from web2py to py4web is not difficult.

 Cheers.
 Chris.

 El vie., 17 abr. 2020 a las 16:02, David Swarbrick ()
 escribió:

> I have a UK case law database presently viewable at swarb.co.uk. The
> output is via WordPress. In better times we have had over 30k page views 
> in
> a day. Presently I maintain it entirely using an ancient MS Access
> database.
> I need to move to a point where I have a sustainable and up to date
> editing. All that is local at the moment, and SQLite seems an appropriate
> starting point. W2P and P4W seem to offer ideal ways forward. I am a
> retired lawyer with some historic programming skills, not a developer. I
> tend to find modern programming documentation dense, and most of my time
> and attention has to go on content.
>
> Is P4W ready yet for a dumbo?  Is there an obvious transition from W2P
> to p4W?
>
> Where do I start?
>
> In any event, congratulations and thank yu.
>
>
>
> --
> 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 web...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/web2py/702249ab-643c-496c-8a91-2db2ae775ab6%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/2b81d34b-0038-4165-bcd8-4e458fcf16e6%40googlegroups.com
>>> 
>>> .
>>>
>> --
>> Resources:
>> - http://web2py.com
>> - http://web2py.com/book (Documentation)
>> - http://github.com/web2p

Re: [web2py] Re: jQuery not working with web2py

2020-04-02 Thread Lovedie JC
Yes
Thanks a lot
Regards

On Thu, Apr 2, 2020, 20:49 Jim Steil  wrote:

> Whoops, I read the wrong post.
>
> So, if you need the top navbar, then you'll need to rework this html
> file.  If you notice how the include works, your respecifying the html,
> head and body tags in your new html file.  They're already specified in
> your layout.html.
>
> If it were me, I'd put the jquery include in layout.html.  Then I'd remove
> the html, head and body tags from this html file and only add the necessary
> script and style tags.
>
> Make sense?
>
> -Jim
>
>
> On Thu, Apr 2, 2020 at 12:45 PM Jim Steil  wrote:
>
>> Same effects, yes, but what error messages are you seeing in the console?
>>
>> -Jim
>>
>> On Thu, Apr 2, 2020 at 9:55 AM Lovedie JC  wrote:
>>
>>> I did that, without the layout.html but still getting the same effects.
>>> Regards
>>>
>>> On Thu, Apr 2, 2020, 17:42 Jim S  wrote:
>>>
>>>> You are including layout.html at the top of your code snippet.
>>>>
>>>> I would suggest that you test this all by itself (remove the include of
>>>> layout.html) before trying to integrate with web2py.  Create one html file
>>>> with the code you need, get that working and then take what you learned
>>>> there and pull it in to your web2py application.
>>>>
>>>> Does that make sense?
>>>>
>>>> -Jim
>>>>
>>>> On Wednesday, April 1, 2020 at 10:26:27 PM UTC-5, Maurice Waka wrote:
>>>>>
>>>>> I don't have firefox but on opera & chrome it gives this:
>>>>>
>>>>> web2py-bootstrap3.js:2 Uncaught TypeError: Cannot set property
>>>>> 'ajax_fields' of undefined
>>>>> at web2py-bootstrap3.js:2
>>>>> at web2py-bootstrap3.js:82
>>>>>
>>>>> On Thursday, April 2, 2020 at 6:17:36 AM UTC+3, Jim S wrote:
>>>>>>
>>>>>> But have you looked at the browser JavaScript console to see what it
>>>>>> is telling you?
>>>>>>
>>>>>> In Firefox press F12 and then click on the console tab. That will
>>>>>> tell you what JavaScript errors are occurring in the browser.
>>>>>>
>>>>>> Jim
>>>>>>
>>>>>>
>>>>>> On Wed, Apr 1, 2020, 9:35 PM Maurice Waka  wrote:
>>>>>>
>>>>>>> On page reload it should ;
>>>>>>> ... Slide to testimonials then after 3 seconds
>>>>>>>  Slide to contact.
>>>>>>>
>>>>>>> In Web2py nothing happens.
>>>>>>> When I do it from the folder it works.
>>>>>>> Do the error is that it doesn't slide as normal
>>>>>>> Regards
>>>>>>>
>>>>>>> On Thu, Apr 2, 2020, 03:54 Jim S  wrote:
>>>>>>>
>>>>>>>> What errors are you seeing in your browser console?
>>>>>>>>
>>>>>>>> -Jim
>>>>>>>>
>>>>>>>>
>>>>>>>> On Wednesday, April 1, 2020 at 4:56:07 PM UTC-5, Maurice Waka wrote:
>>>>>>>>>
>>>>>>>>> Any help on this?
>>>>>>>>> I can't get the code to work with jQuery
>>>>>>>>>
>>>>>>>>> {{extend 'layout.html'}}
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> 
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> 
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>   
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>   
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>   
>>>>>>>>>   /*QuickReset*/
>>>>>>>>>  *{margin:0;box-sizing:border-box;} html,body{height:100%;font:
>>>>>>>>> 14px/1.4 sans-serif;}
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>  article {
>>>>>>>>>height: 150vh;
>>>>>>>>>  }
>>>>>>>>>   
>>>>>

Re: [web2py] Re: jQuery not working with web2py

2020-04-02 Thread Lovedie JC
I did that, without the layout.html but still getting the same effects.
Regards

On Thu, Apr 2, 2020, 17:42 Jim S  wrote:

> You are including layout.html at the top of your code snippet.
>
> I would suggest that you test this all by itself (remove the include of
> layout.html) before trying to integrate with web2py.  Create one html file
> with the code you need, get that working and then take what you learned
> there and pull it in to your web2py application.
>
> Does that make sense?
>
> -Jim
>
> On Wednesday, April 1, 2020 at 10:26:27 PM UTC-5, Maurice Waka wrote:
>>
>> I don't have firefox but on opera & chrome it gives this:
>>
>> web2py-bootstrap3.js:2 Uncaught TypeError: Cannot set property
>> 'ajax_fields' of undefined
>> at web2py-bootstrap3.js:2
>> at web2py-bootstrap3.js:82
>>
>> On Thursday, April 2, 2020 at 6:17:36 AM UTC+3, Jim S wrote:
>>>
>>> But have you looked at the browser JavaScript console to see what it is
>>> telling you?
>>>
>>> In Firefox press F12 and then click on the console tab. That will tell
>>> you what JavaScript errors are occurring in the browser.
>>>
>>> Jim
>>>
>>>
>>> On Wed, Apr 1, 2020, 9:35 PM Maurice Waka  wrote:
>>>
 On page reload it should ;
 ... Slide to testimonials then after 3 seconds
  Slide to contact.

 In Web2py nothing happens.
 When I do it from the folder it works.
 Do the error is that it doesn't slide as normal
 Regards

 On Thu, Apr 2, 2020, 03:54 Jim S  wrote:

> What errors are you seeing in your browser console?
>
> -Jim
>
>
> On Wednesday, April 1, 2020 at 4:56:07 PM UTC-5, Maurice Waka wrote:
>>
>> Any help on this?
>> I can't get the code to work with jQuery
>>
>> {{extend 'layout.html'}}
>>
>>
>> 
>>
>>
>> 
>>
>>
>>   > >
>>
>>
>>   
>>
>>
>>   
>>   /*QuickReset*/
>>  *{margin:0;box-sizing:border-box;} html,body{height:100%;font:14px/
>> 1.4 sans-serif;}
>>
>>
>>  article {
>>height: 150vh;
>>  }
>>   
>>
>>
>>
>>
>> 
>> WELCOME (wait 3 sec)> article>
>>  ABOUT
>>  OUR WORK
>>  TESTIMONIALS
>> Going to #contact in 3sec!
>>  
>>CONTACT TO TOP
>>  
>>
>>
>>   > "{{=URL('static','js/jquery-1.10.1.js')}}">
>>
>>
>>
>>
>>
>>
>>  function goTo(selector, timeout, cb) {
>>  var $el = $(selector);
>>  if (!$el[0]) return;
>>  var $par = $el.parent();
>>  if ($par.is("body")) $par = $("html, body");
>>  setTimeout(() => {
>>  $par.stop().animate({scrollTop: $el.offset().top}, 500, cb && cb.
>> call($el[0]));
>>  }, timeout || 0);
>>  }
>>
>>
>>  // USE LIKE:
>>  goTo("#testimonials", 3000, function() {
>>  // You can use `this` to reference #testimonials! yey
>>  $(this).append("
Going to #contact in 3sec!"); >> goTo("#contact", 3500); >> }); >> // Alternatively, without using callbacks you can do >> // goTo("#testimonials", 3000); >> // goTo("#contact", 6000); >> // Reuse function for elements click! >> $("[href^='#']").on("click", function(e) { >> e.preventDefault(); >> goTo($(this).attr("href")); >> }); >> >> >> >> >> >> >> >> >> >> >> >> >> On Wednesday, April 1, 2020 at 4:14:24 AM UTC+3, Maurice Waka wrote: >>> >>> I have this code below that works well on the demo site: >>> http://jsfiddle.net/Lhg914dc/ >>> >>> >>> {{extend 'layout.html'}} >>> >>> >>> >> script> >>> >>> >>> >>> >>> >>>
WELCOME (waits 3 sec)>> article> >>>
{{=me}}
>>>
{{=work}}
>>>
{{=love}}>> article> >>> >>> >>> >>> >>>