[web2py] Re: uWSGI Permission denied

2020-11-04 Thread Carlos A
You are not using the default directories, please run those commands into 
your CLI:

wget 
https://raw.githubusercontent.com/web2py/web2py/master/scripts/setup-web2py-nginx-uwsgi-ubuntu.sh
chmod a+x  setup-web2py-nginx-uwsgi-ubuntu.sh 
./setup-web2py-nginx-uwsgi-ubuntu.sh   

Then you can use the next commands:

systemctl stop emperor.uwsgi.service  
systemctl start emperor.uwsgi.service   

The scripts are a little bit outdated, if this doesn't works, maybe we need 
to fix it.

Best regards.
El miércoles, 4 de noviembre de 2020 a las 6:10:52 UTC-7, 
ermolaev...@gmail.com escribió:

>
> Please help:
> https://gitlab.com/d.ermolaev/7pay_in/-/issues/41
>
>

-- 
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/f84496b4-7685-45ab-ae91-003f0a66b672n%40googlegroups.com.


Re: [web2py] Re: Displaying content based on the id attribute

2020-11-04 Thread Jim Steil
Can you remove the _onclick from that element and add that function call to
the end of your listener defined in document ready?

-Jim


On Wed, Nov 4, 2020 at 8:29 PM mostwanted  wrote:

> _onclick="updatelivesearch(jQuery('#res%s').html())" % c.service_name
>
> This is a function that displays suggested names through ajax
> auto-completion everytime a user types something on the search-textfield.
> When they type, a suggestion-div appears below the search-field with
> suggested names as links ofcourse and when the users identifies the name
> they were looking for & clicks on it this function populates the
> search-textfield with the clicked name & causes the suggestion-div with
> names to disappear.
>
> function updatelivesearch(value){
> jQuery("#livesearch").val(value);
> jQuery("#livesearchresults").hide();
> }
>
> Thanks alot for your input Jim i'll keep working on it, one way or the
> other i'll figure it out.
> Gratitude.
>
>
> On Wednesday, November 4, 2020 at 7:34:44 PM UTC+2 Jim S wrote:
>
>> What is the
>>
>> _onclick="updatelivesearch(jQuery('#res%s').html())" % c.service_name
>>
>> on your anchor tag inside your span?
>>
>> Can you try removing that?
>>
>> Since you have a listener for the click of that element already, I'm not
>> sure how it behaves if you have the onclick attribute set as well.  Maybe
>> there are some stronger javascript people that can jump in.
>>
>> -Jim
>>
>>
>> On Wednesday, November 4, 2020 at 11:23:45 AM UTC-6, mostwanted wrote:
>>>
>>>
>>> *" Are you trying to show the span when the link is clicked 'while' the
>>> page is loaded?  ":  *Yes sir
>>>
>>> *" I'm guessing you are clicking the link after the page is loaded ": *Yes
>>> sir
>>>
>>> *"Also, where in your javascript did you add the console.log()?":  *I
>>> added it inside the click function just before initialization of the id
>>> variable
>>>
>>> **$(document).ready(function(){
>>> $('.service').click(function(e) {
>>> *console.log( "Hello world!" );*
>>> const id = $(this).data('id');
>>> $('#' + id).fadeIn();
>>> e.preventDefault();
>>>
>>> });
>>> });
>>> **
>>> On Wednesday, November 4, 2020 at 4:09:12 PM UTC+2 Jim S wrote:
>>>
 Ok, trying to better understand your intent.

 You said:

 I have a hidden span that i want displayed when a link is clisked
 while waiting for the page to load but this is not working! I dont
 know where I am going wrong but thought I had it right, please assist me.

 Are you trying to show the span when the link is clicked 'while' the
 page is loaded?  I'm guessing you are clicking the link after the page is
 loaded.  Can you confirm?

 Also, where in your javascript did you add the console.log()?

 -Jim


 On Wednesday, November 4, 2020 at 12:34:02 AM UTC-6, mostwanted wrote:
>
> I threw in  console.log("Hello world!");  but its not printing
> anything on the console! The link events are not being handled!
>
>
> On Tuesday, November 3, 2020 at 11:35:19 PM UTC+2 Jim S wrote:
>
>> Can you put some console.log() statements in your javascript inside
>> your function to see what is/isn't working?
>>
>> -Jim
>>
>>
>> On Tuesday, November 3, 2020 at 12:10:06 PM UTC-6, mostwanted wrote:
>>>
>>> Hey Jim, I have but it shows no errors!
>>>
>>> On Tuesday, November 3, 2020 at 6:02:50 PM UTC+2 Jim S wrote:
>>>
 Have you checked your browser console to see if you have any
 javascript errors?

 -Jim


 On Tuesday, November 3, 2020 at 3:36:22 AM UTC-6, mostwanted wrote:
>
> I have a hidden span that i want displayed when a link is clisked
> while waiting for the page to load but this is not working! I dont 
> know
> where I am going wrong but thought I had it right, please assist me.
>
> *CSS:*
> .link_loader
> {
> display: none;
> }
>
> *CONTROLLER*
> *#The yellow line is the hidden span that has the loader I want to
> display*
> def ajaxlivesearch():
> keywords = request.vars.keywords
> print "Keywords: " + str(keywords)
>
> if keywords:
> query = reduce(lambda
> a,b:a,[db.services.service_name.contains(k) for k in 
> keywords.split()])
> services = db(query).select()
> items = []
>
> if services:
> for c in services:
> items.append(DIV*(SPAN("loading ...", SPAN(_class="fa
> fa-spinner fa-spin"), _class="link_loader",
> data={'id':"res%s"%c.service_name})*, A(c.service_name,
> _class="service", _style="font-weight: bold;", _href=URL('companies', 
> args=
> c.id), _id="res%s"%c.service_name,
> 

[web2py] Re: Displaying content based on the id attribute

2020-11-04 Thread mostwanted
 _onclick="updatelivesearch(jQuery('#res%s').html())" % c.service_name

This is a function that displays suggested names through ajax 
auto-completion everytime a user types something on the search-textfield. 
When they type, a suggestion-div appears below the search-field with 
suggested names as links ofcourse and when the users identifies the name 
they were looking for & clicks on it this function populates the 
search-textfield with the clicked name & causes the suggestion-div with 
names to disappear.

function updatelivesearch(value){
jQuery("#livesearch").val(value);
jQuery("#livesearchresults").hide();
}

Thanks alot for your input Jim i'll keep working on it, one way or the 
other i'll figure it out.
Gratitude.


On Wednesday, November 4, 2020 at 7:34:44 PM UTC+2 Jim S wrote:

> What is the 
>
> _onclick="updatelivesearch(jQuery('#res%s').html())" % c.service_name
>
> on your anchor tag inside your span?
>
> Can you try removing that?
>
> Since you have a listener for the click of that element already, I'm not 
> sure how it behaves if you have the onclick attribute set as well.  Maybe 
> there are some stronger javascript people that can jump in.
>
> -Jim
>
>
> On Wednesday, November 4, 2020 at 11:23:45 AM UTC-6, mostwanted wrote:
>>
>>
>> *" Are you trying to show the span when the link is clicked 'while' the 
>> page is loaded?  ":  *Yes sir
>>
>> *" I'm guessing you are clicking the link after the page is loaded ": *Yes 
>> sir
>>
>> *"Also, where in your javascript did you add the console.log()?":  *I 
>> added it inside the click function just before initialization of the id 
>> variable
>>
>> **$(document).ready(function(){
>> $('.service').click(function(e) {
>> *console.log( "Hello world!" );*
>> const id = $(this).data('id'); 
>> $('#' + id).fadeIn(); 
>> e.preventDefault();
>>
>> });
>> });
>> ** 
>> On Wednesday, November 4, 2020 at 4:09:12 PM UTC+2 Jim S wrote:
>>
>>> Ok, trying to better understand your intent.
>>>
>>> You said:
>>>
>>> I have a hidden span that i want displayed when a link is clisked while 
>>> waiting for the page to load but this is not working! I dont know where 
>>> I am going wrong but thought I had it right, please assist me.
>>>
>>> Are you trying to show the span when the link is clicked 'while' the 
>>> page is loaded?  I'm guessing you are clicking the link after the page is 
>>> loaded.  Can you confirm?
>>>
>>> Also, where in your javascript did you add the console.log()?
>>>
>>> -Jim
>>>
>>>
>>> On Wednesday, November 4, 2020 at 12:34:02 AM UTC-6, mostwanted wrote:

 I threw in  console.log("Hello world!");  but its not printing anything 
 on the console! The link events are not being handled!


 On Tuesday, November 3, 2020 at 11:35:19 PM UTC+2 Jim S wrote:

> Can you put some console.log() statements in your javascript inside 
> your function to see what is/isn't working?
>
> -Jim
>
>
> On Tuesday, November 3, 2020 at 12:10:06 PM UTC-6, mostwanted wrote:
>>
>> Hey Jim, I have but it shows no errors!
>>
>> On Tuesday, November 3, 2020 at 6:02:50 PM UTC+2 Jim S wrote:
>>
>>> Have you checked your browser console to see if you have any 
>>> javascript errors?
>>>
>>> -Jim
>>>
>>>
>>> On Tuesday, November 3, 2020 at 3:36:22 AM UTC-6, mostwanted wrote:

 I have a hidden span that i want displayed when a link is clisked 
 while waiting for the page to load but this is not working! I dont 
 know 
 where I am going wrong but thought I had it right, please assist me.

 *CSS:*
 .link_loader
 {
 display: none;
 }

 *CONTROLLER*
 *#The yellow line is the hidden span that has the loader I want to 
 display*
 def ajaxlivesearch():
 keywords = request.vars.keywords
 print "Keywords: " + str(keywords)

 if keywords:
 query = reduce(lambda 
 a,b:a,[db.services.service_name.contains(k) for k in 
 keywords.split()])
 services = db(query).select()
 items = []

 if services:
 for c in services: 
 items.append(DIV*(SPAN("loading ...", SPAN(_class="fa 
 fa-spinner fa-spin"), _class="link_loader", 
 data={'id':"res%s"%c.service_name})*, A(c.service_name, 
 _class="service", _style="font-weight: bold;", _href=URL('companies', 
 args=
 c.id), _id="res%s"%c.service_name, 
 _onclick="updatelivesearch(jQuery('#res%s').html())" % 
 c.service_name)))

 *VIEW*
 *#This jQuery script attempts to display the hidden span*

 **$(document).ready(function(){
 $('.service').click(function(e) {
 const id = 

[web2py] Re: Displaying content based on the id attribute

2020-11-04 Thread mostwanted
 _onclick="updatelivesearch(jQuery('#res%s').html())" % c.service_name

this is a function that displays suggested names through ajax 
auto-completion evrytime the user types something on the textfield.
Thanks alot for your input Jim i'll keep working on it, one way or the 
other i'll figure it out.
Gratitude.

On Wednesday, November 4, 2020 at 7:34:44 PM UTC+2 Jim S wrote:

> What is the 
>
> _onclick="updatelivesearch(jQuery('#res%s').html())" % c.service_name
>
> on your anchor tag inside your span?
>
> Can you try removing that?
>
> Since you have a listener for the click of that element already, I'm not 
> sure how it behaves if you have the onclick attribute set as well.  Maybe 
> there are some stronger javascript people that can jump in.
>
> -Jim
>
>
> On Wednesday, November 4, 2020 at 11:23:45 AM UTC-6, mostwanted wrote:
>>
>>
>> *" Are you trying to show the span when the link is clicked 'while' the 
>> page is loaded?  ":  *Yes sir
>>
>> *" I'm guessing you are clicking the link after the page is loaded ": *Yes 
>> sir
>>
>> *"Also, where in your javascript did you add the console.log()?":  *I 
>> added it inside the click function just before initialization of the id 
>> variable
>>
>> **$(document).ready(function(){
>> $('.service').click(function(e) {
>> *console.log( "Hello world!" );*
>> const id = $(this).data('id'); 
>> $('#' + id).fadeIn(); 
>> e.preventDefault();
>>
>> });
>> });
>> ** 
>> On Wednesday, November 4, 2020 at 4:09:12 PM UTC+2 Jim S wrote:
>>
>>> Ok, trying to better understand your intent.
>>>
>>> You said:
>>>
>>> I have a hidden span that i want displayed when a link is clisked while 
>>> waiting for the page to load but this is not working! I dont know where 
>>> I am going wrong but thought I had it right, please assist me.
>>>
>>> Are you trying to show the span when the link is clicked 'while' the 
>>> page is loaded?  I'm guessing you are clicking the link after the page is 
>>> loaded.  Can you confirm?
>>>
>>> Also, where in your javascript did you add the console.log()?
>>>
>>> -Jim
>>>
>>>
>>> On Wednesday, November 4, 2020 at 12:34:02 AM UTC-6, mostwanted wrote:

 I threw in  console.log("Hello world!");  but its not printing anything 
 on the console! The link events are not being handled!


 On Tuesday, November 3, 2020 at 11:35:19 PM UTC+2 Jim S wrote:

> Can you put some console.log() statements in your javascript inside 
> your function to see what is/isn't working?
>
> -Jim
>
>
> On Tuesday, November 3, 2020 at 12:10:06 PM UTC-6, mostwanted wrote:
>>
>> Hey Jim, I have but it shows no errors!
>>
>> On Tuesday, November 3, 2020 at 6:02:50 PM UTC+2 Jim S wrote:
>>
>>> Have you checked your browser console to see if you have any 
>>> javascript errors?
>>>
>>> -Jim
>>>
>>>
>>> On Tuesday, November 3, 2020 at 3:36:22 AM UTC-6, mostwanted wrote:

 I have a hidden span that i want displayed when a link is clisked 
 while waiting for the page to load but this is not working! I dont 
 know 
 where I am going wrong but thought I had it right, please assist me.

 *CSS:*
 .link_loader
 {
 display: none;
 }

 *CONTROLLER*
 *#The yellow line is the hidden span that has the loader I want to 
 display*
 def ajaxlivesearch():
 keywords = request.vars.keywords
 print "Keywords: " + str(keywords)

 if keywords:
 query = reduce(lambda 
 a,b:a,[db.services.service_name.contains(k) for k in 
 keywords.split()])
 services = db(query).select()
 items = []

 if services:
 for c in services: 
 items.append(DIV*(SPAN("loading ...", SPAN(_class="fa 
 fa-spinner fa-spin"), _class="link_loader", 
 data={'id':"res%s"%c.service_name})*, A(c.service_name, 
 _class="service", _style="font-weight: bold;", _href=URL('companies', 
 args=
 c.id), _id="res%s"%c.service_name, 
 _onclick="updatelivesearch(jQuery('#res%s').html())" % 
 c.service_name)))

 *VIEW*
 *#This jQuery script attempts to display the hidden span*

 **$(document).ready(function(){
 $('.service').click(function(e) {
 const id = $(this).data('id'); 
 $('#' + id).fadeIn(); 
 e.preventDefault();

 });
 });

 **

 Regards;

 Mostwanted

>>>

-- 
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 

[web2py] Re: Displaying content based on the id attribute

2020-11-04 Thread Jim S
What is the 

_onclick="updatelivesearch(jQuery('#res%s').html())" % c.service_name

on your anchor tag inside your span?

Can you try removing that?

Since you have a listener for the click of that element already, I'm not 
sure how it behaves if you have the onclick attribute set as well.  Maybe 
there are some stronger javascript people that can jump in.

-Jim


On Wednesday, November 4, 2020 at 11:23:45 AM UTC-6, mostwanted wrote:
>
>
> *" Are you trying to show the span when the link is clicked 'while' the 
> page is loaded?  ":  *Yes sir
>
> *" I'm guessing you are clicking the link after the page is loaded ": *Yes 
> sir
>
> *"Also, where in your javascript did you add the console.log()?":  *I 
> added it inside the click function just before initialization of the id 
> variable
>
> **$(document).ready(function(){
> $('.service').click(function(e) {
> *console.log( "Hello world!" );*
> const id = $(this).data('id'); 
> $('#' + id).fadeIn(); 
> e.preventDefault();
>
> });
> });
> ** 
> On Wednesday, November 4, 2020 at 4:09:12 PM UTC+2 Jim S wrote:
>
>> Ok, trying to better understand your intent.
>>
>> You said:
>>
>> I have a hidden span that i want displayed when a link is clisked while 
>> waiting for the page to load but this is not working! I dont know where 
>> I am going wrong but thought I had it right, please assist me.
>>
>> Are you trying to show the span when the link is clicked 'while' the page 
>> is loaded?  I'm guessing you are clicking the link after the page is 
>> loaded.  Can you confirm?
>>
>> Also, where in your javascript did you add the console.log()?
>>
>> -Jim
>>
>>
>> On Wednesday, November 4, 2020 at 12:34:02 AM UTC-6, mostwanted wrote:
>>>
>>> I threw in  console.log("Hello world!");  but its not printing anything 
>>> on the console! The link events are not being handled!
>>>
>>>
>>> On Tuesday, November 3, 2020 at 11:35:19 PM UTC+2 Jim S wrote:
>>>
 Can you put some console.log() statements in your javascript inside 
 your function to see what is/isn't working?

 -Jim


 On Tuesday, November 3, 2020 at 12:10:06 PM UTC-6, mostwanted wrote:
>
> Hey Jim, I have but it shows no errors!
>
> On Tuesday, November 3, 2020 at 6:02:50 PM UTC+2 Jim S wrote:
>
>> Have you checked your browser console to see if you have any 
>> javascript errors?
>>
>> -Jim
>>
>>
>> On Tuesday, November 3, 2020 at 3:36:22 AM UTC-6, mostwanted wrote:
>>>
>>> I have a hidden span that i want displayed when a link is clisked 
>>> while waiting for the page to load but this is not working! I dont know 
>>> where I am going wrong but thought I had it right, please assist me.
>>>
>>> *CSS:*
>>> .link_loader
>>> {
>>> display: none;
>>> }
>>>
>>> *CONTROLLER*
>>> *#The yellow line is the hidden span that has the loader I want to 
>>> display*
>>> def ajaxlivesearch():
>>> keywords = request.vars.keywords
>>> print "Keywords: " + str(keywords)
>>>
>>> if keywords:
>>> query = reduce(lambda 
>>> a,b:a,[db.services.service_name.contains(k) for k in 
>>> keywords.split()])
>>> services = db(query).select()
>>> items = []
>>>
>>> if services:
>>> for c in services: 
>>> items.append(DIV*(SPAN("loading ...", SPAN(_class="fa 
>>> fa-spinner fa-spin"), _class="link_loader", 
>>> data={'id':"res%s"%c.service_name})*, A(c.service_name, 
>>> _class="service", _style="font-weight: bold;", _href=URL('companies', 
>>> args=
>>> c.id), _id="res%s"%c.service_name, 
>>> _onclick="updatelivesearch(jQuery('#res%s').html())" % c.service_name)))
>>>
>>> *VIEW*
>>> *#This jQuery script attempts to display the hidden span*
>>>
>>> **$(document).ready(function(){
>>> $('.service').click(function(e) {
>>> const id = $(this).data('id'); 
>>> $('#' + id).fadeIn(); 
>>> e.preventDefault();
>>>
>>> });
>>> });
>>>
>>> **
>>>
>>> Regards;
>>>
>>> Mostwanted
>>>
>>

-- 
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/15391475-c018-4707-82f5-128744d75387o%40googlegroups.com.


Re: [web2py] Re: uWSGI Permission denied

2020-11-04 Thread Roberto Perdomo
Try adding this to "[Service]":

User=root
Group=www-data

I think is not a good idea have your app running as root user, you can
change the user,  first move your .ini (don't forget change this path
in your uwsgi.service file) to your app path and do a recursive chown
to define user and group, something like:

chown your_user:www-data -R /var/www/html/your_app

On Wed, Nov 4, 2020 at 1:33 PM Clemens
 wrote:
>
> Is your Python version compatible with you uWSGI lib?
> https://groups.google.com/g/web2py/c/cr2HmXYNieg/m/2YYHFmr_BAAJ
>
> Have a look to "my personal step-by-step deployment guide for web2py and 
> Nginx" (mainly inspired by the shell script setup-web2py-nginx-uwsgi-ubuntu). 
> This configuration works well.
> https://groups.google.com/g/web2py/c/BFvo2tn9IAI/m/GsIBbiVkAwAJ
>
> Or you can even use the Ansible Playbook provided by Jim:
> https://groups.google.com/g/web2py/c/BFvo2tn9IAI/m/nQMgO7HRBAAJ
>
> Hope, this helps!
>
> Best regards
> Clemens
>
>
> On Wednesday, November 4, 2020 at 2:10:52 PM UTC+1 ermolaev...@gmail.com 
> wrote:
>>
>>
>> Please help:
>> https://gitlab.com/d.ermolaev/7pay_in/-/issues/41
>>
> --
> 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/7861350d-7b69-4d6d-af7c-a36bb79cc788n%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/CALfVey9ana3663qHR3awJ%3Dzr5M6UKL6_AiTnu9oijefjVHwi4g%40mail.gmail.com.


[web2py] Re: Displaying content based on the id attribute

2020-11-04 Thread mostwanted

*" Are you trying to show the span when the link is clicked 'while' the 
page is loaded?  ":  *Yes sir

*" I'm guessing you are clicking the link after the page is loaded ": *Yes 
sir

*"Also, where in your javascript did you add the console.log()?":  *I added 
it inside the click function just before initialization of the id variable

**$(document).ready(function(){
$('.service').click(function(e) {
*console.log( "Hello world!" );*
const id = $(this).data('id'); 
$('#' + id).fadeIn(); 
e.preventDefault();

});
});
** 
On Wednesday, November 4, 2020 at 4:09:12 PM UTC+2 Jim S wrote:

> Ok, trying to better understand your intent.
>
> You said:
>
> I have a hidden span that i want displayed when a link is clisked while 
> waiting for the page to load but this is not working! I dont know where I 
> am going wrong but thought I had it right, please assist me.
>
> Are you trying to show the span when the link is clicked 'while' the page 
> is loaded?  I'm guessing you are clicking the link after the page is 
> loaded.  Can you confirm?
>
> Also, where in your javascript did you add the console.log()?
>
> -Jim
>
>
> On Wednesday, November 4, 2020 at 12:34:02 AM UTC-6, mostwanted wrote:
>>
>> I threw in  console.log("Hello world!");  but its not printing anything 
>> on the console! The link events are not being handled!
>>
>>
>> On Tuesday, November 3, 2020 at 11:35:19 PM UTC+2 Jim S wrote:
>>
>>> Can you put some console.log() statements in your javascript inside your 
>>> function to see what is/isn't working?
>>>
>>> -Jim
>>>
>>>
>>> On Tuesday, November 3, 2020 at 12:10:06 PM UTC-6, mostwanted wrote:

 Hey Jim, I have but it shows no errors!

 On Tuesday, November 3, 2020 at 6:02:50 PM UTC+2 Jim S wrote:

> Have you checked your browser console to see if you have any 
> javascript errors?
>
> -Jim
>
>
> On Tuesday, November 3, 2020 at 3:36:22 AM UTC-6, mostwanted wrote:
>>
>> I have a hidden span that i want displayed when a link is clisked 
>> while waiting for the page to load but this is not working! I dont know 
>> where I am going wrong but thought I had it right, please assist me.
>>
>> *CSS:*
>> .link_loader
>> {
>> display: none;
>> }
>>
>> *CONTROLLER*
>> *#The yellow line is the hidden span that has the loader I want to 
>> display*
>> def ajaxlivesearch():
>> keywords = request.vars.keywords
>> print "Keywords: " + str(keywords)
>>
>> if keywords:
>> query = reduce(lambda 
>> a,b:a,[db.services.service_name.contains(k) for k in keywords.split()])
>> services = db(query).select()
>> items = []
>>
>> if services:
>> for c in services: 
>> items.append(DIV*(SPAN("loading ...", SPAN(_class="fa 
>> fa-spinner fa-spin"), _class="link_loader", 
>> data={'id':"res%s"%c.service_name})*, A(c.service_name, 
>> _class="service", _style="font-weight: bold;", _href=URL('companies', 
>> args=
>> c.id), _id="res%s"%c.service_name, 
>> _onclick="updatelivesearch(jQuery('#res%s').html())" % c.service_name)))
>>
>> *VIEW*
>> *#This jQuery script attempts to display the hidden span*
>>
>> **$(document).ready(function(){
>> $('.service').click(function(e) {
>> const id = $(this).data('id'); 
>> $('#' + id).fadeIn(); 
>> e.preventDefault();
>>
>> });
>> });
>>
>> **
>>
>> Regards;
>>
>> Mostwanted
>>
>

-- 
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/5a8ef760-5106-4bdc-b1bc-c9feb44177f6n%40googlegroups.com.


[web2py] Re: Displaying content based on the id attribute

2020-11-04 Thread Jim S
Ok, trying to better understand your intent.

You said:

I have a hidden span that i want displayed when a link is clisked while 
waiting for the page to load but this is not working! I dont know where I 
am going wrong but thought I had it right, please assist me.

Are you trying to show the span when the link is clicked 'while' the page 
is loaded?  I'm guessing you are clicking the link after the page is 
loaded.  Can you confirm?

Also, where in your javascript did you add the console.log()?

-Jim


On Wednesday, November 4, 2020 at 12:34:02 AM UTC-6, mostwanted wrote:
>
> I threw in  console.log("Hello world!");  but its not printing anything on 
> the console! The link events are not being handled!
>
>
> On Tuesday, November 3, 2020 at 11:35:19 PM UTC+2 Jim S wrote:
>
>> Can you put some console.log() statements in your javascript inside your 
>> function to see what is/isn't working?
>>
>> -Jim
>>
>>
>> On Tuesday, November 3, 2020 at 12:10:06 PM UTC-6, mostwanted wrote:
>>>
>>> Hey Jim, I have but it shows no errors!
>>>
>>> On Tuesday, November 3, 2020 at 6:02:50 PM UTC+2 Jim S wrote:
>>>
 Have you checked your browser console to see if you have any javascript 
 errors?

 -Jim


 On Tuesday, November 3, 2020 at 3:36:22 AM UTC-6, mostwanted wrote:
>
> I have a hidden span that i want displayed when a link is clisked 
> while waiting for the page to load but this is not working! I dont know 
> where I am going wrong but thought I had it right, please assist me.
>
> *CSS:*
> .link_loader
> {
> display: none;
> }
>
> *CONTROLLER*
> *#The yellow line is the hidden span that has the loader I want to 
> display*
> def ajaxlivesearch():
> keywords = request.vars.keywords
> print "Keywords: " + str(keywords)
>
> if keywords:
> query = reduce(lambda 
> a,b:a,[db.services.service_name.contains(k) for k in keywords.split()])
> services = db(query).select()
> items = []
>
> if services:
> for c in services: 
> items.append(DIV*(SPAN("loading ...", SPAN(_class="fa 
> fa-spinner fa-spin"), _class="link_loader", 
> data={'id':"res%s"%c.service_name})*, A(c.service_name, 
> _class="service", _style="font-weight: bold;", _href=URL('companies', 
> args=
> c.id), _id="res%s"%c.service_name, 
> _onclick="updatelivesearch(jQuery('#res%s').html())" % c.service_name)))
>
> *VIEW*
> *#This jQuery script attempts to display the hidden span*
>
> **$(document).ready(function(){
> $('.service').click(function(e) {
> const id = $(this).data('id'); 
> $('#' + id).fadeIn(); 
> e.preventDefault();
>
> });
> });
>
> **
>
> Regards;
>
> Mostwanted
>


-- 
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/95265768-81b7-4a61-a3fa-26fb9f8b0067o%40googlegroups.com.


[web2py] Re: uWSGI Permission denied

2020-11-04 Thread Clemens
Is your Python version compatible with you uWSGI lib?
https://groups.google.com/g/web2py/c/cr2HmXYNieg/m/2YYHFmr_BAAJ

Have a look to "my personal step-by-step deployment guide for web2py and 
Nginx" (mainly inspired by the shell script 
setup-web2py-nginx-uwsgi-ubuntu). This configuration works well.
https://groups.google.com/g/web2py/c/BFvo2tn9IAI/m/GsIBbiVkAwAJ

Or you can even use the Ansible Playbook provided by Jim:
https://groups.google.com/g/web2py/c/BFvo2tn9IAI/m/nQMgO7HRBAAJ

Hope, this helps!

Best regards
Clemens


On Wednesday, November 4, 2020 at 2:10:52 PM UTC+1 ermolaev...@gmail.com 
wrote:

>
> Please help:
> https://gitlab.com/d.ermolaev/7pay_in/-/issues/41
>
>

-- 
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/7861350d-7b69-4d6d-af7c-a36bb79cc788n%40googlegroups.com.


[web2py] uWSGI Permission denied

2020-11-04 Thread Dmitrii Ermolaev
Please help:
https://gitlab.com/d.ermolaev/7pay_in/-/issues/41

-- 
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/e4e94e03-ae26-465e-bf38-fa8ea444f452n%40googlegroups.com.


[web2py] uWSGI Permission denied

2020-11-04 Thread Dmitrii Ermolaev
Please help:
https://gitlab.com/d.ermolaev/7pay_in/-/issues/41

-- 
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/CADCTob4M5xQDGdTY1PUnzc6WKRPOOb2kb5ZHyQqoD-ZMc0Ke%3DA%40mail.gmail.com.


[web2py] Re: uWSGI Permission denied - Failed on EXEC step

2020-11-04 Thread Dmitrii Ermolaev


среда, 4 ноября 2020 г. в 15:56:36 UTC+3, Dmitrii Ermolaev: 

>
>
>
>

-- 
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/843387b2-f1f5-49fb-b69e-d2961afa2833n%40googlegroups.com.


[web2py] Re: Mysqld connection 255 MySQL Server 5.7

2020-11-04 Thread lcham...@gmail.com
forget it : solved  using  
python3 -m pip install PyMySQL  
Sorry for disturbing

Le mercredi 4 novembre 2020 à 11:51:10 UTC+1, lcham...@gmail.com a écrit :

> I moved an app/db to a new server. This apps connects perfectly, i am sure 
> the credentials are good, the auth method is  mysql_native_password as 
> before.
> I tried to change the drivers method .. i cannot connect, what ca i do, i 
> search in the forum, no response, thank you very much, i am in the ...
>
> Version
>
> 2.20.4-stable+timestamp.2020.05.03.05.18.50
> (Running on nginx/1.14.2, Python 2.7.16)
>

-- 
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/b4118c9d-7ea8-415f-a1a6-0a4678713189n%40googlegroups.com.


[web2py] Mysqld connection 255 MySQL Server 5.7

2020-11-04 Thread lcham...@gmail.com
I moved an app/db to a new server. This apps connects perfectly, i am sure 
the credentials are good, the auth method is  mysql_native_password as 
before.
I tried to change the drivers method .. i cannot connect, what ca i do, i 
search in the forum, no response, thank you very much, i am in the ...

Version

2.20.4-stable+timestamp.2020.05.03.05.18.50
(Running on nginx/1.14.2, Python 2.7.16)

-- 
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/bdf00884-ff2c-4e9b-bcdb-5daf2db1f677n%40googlegroups.com.


[web2py] Re: 255

2020-11-04 Thread lcham...@gmail.com
Did you find  a solution ?
thanks

Le dimanche 29 mars 2020 à 17:13:14 UTC+2, and...@gmail.com a écrit :

> I have this problem using web2py 2.18 with pyrhon 3.8 and mysql.
> When I log in int the app it happens this error:
>  255
>
> I don't know id it's an error regarding mysql
> Versione
> web2py™ Version 2.19.1-stable+timestamp.2020.03.21.21.49.28
> Python Python 3.8.2: C:\Python38\python.exe (prefix: C:\Python38)Traceback
>
> 1.
> 2.
> 3.
> 4.
> 5.
> 6.
> 7.
> 8.
> 9.
> 10.
> 11.
> 12.
> 13.
> 14.
> 15.
> 16.
> 17.
> 18.
> 19.
> 20.
> 21.
> 22.
> 23.
> 24.
> 25.
> 26.
> 27.
> 28.
> 29.
> 30.
> 31.
> 32.
> 33.
> 34.
> 35.
> 36.
> 37.
> 38.
> 39.
> 40.
> 41.
> 42.
>
> Traceback (most recent call last):
>   File "C:\web2py\gluon\restricted.py", line 219, in restricted
> exec(ccode, environment)
>   File "C:\web2py\applications\gaweb\controllers/default.py", line 1720, in 
> 
>   File "C:\web2py\gluon\globals.py", line 422, in 
> self._caller = lambda f: f()
>   File "C:\web2py\applications\gaweb\controllers/default.py", line 1701, in 
> user
> return dict(form=auth())
>   File "C:\web2py\gluon\tools.py", line 1801, in __call__
> return getattr(self, args[0])()
>   File "C:\web2py\gluon\tools.py", line 2586, in login
> user = table_user(**{username: entered_username})
>   File "C:\web2py\gluon\packages\dal\pydal\objects.py", line 718, in __call__
> self._db(query)
>   File "C:\web2py\gluon\packages\dal\pydal\objects.py", line 2634, in select
> return adapter.select(self.query, fields, attributes)
>   File "C:\web2py\gluon\packages\dal\pydal\adapters\base.py", line 878, in 
> select
> return self._select_aux(sql, fields, attributes, colnames)
>   File "C:\web2py\gluon\packages\dal\pydal\adapters\base.py", line 835, in 
> _select_aux
> rows = self._select_aux_execute(sql)
>   File "C:\web2py\gluon\packages\dal\pydal\adapters\base.py", line 829, in 
> _select_aux_execute
> self.execute(sql)
>   File "C:\web2py\gluon\packages\dal\pydal\adapters\__init__.py", line 65, in 
> wrap
> if not args[0].connection:
>   File "C:\web2py\gluon\packages\dal\pydal\connection.py", line 32, in 
> connection
> return self.get_connection()
>   File "C:\web2py\gluon\packages\dal\pydal\connection.py", line 65, in 
> get_connection
> connection = self.connector()
>   File "C:\web2py\gluon\packages\dal\pydal\adapters\mysql.py", line 61, in 
> connector
> conn = self.driver.connect(**self.driver_args)
>   File "C:\web2py\gluon\contrib\pymysql\__init__.py", line 90, in Connect
> return Connection(*args, **kwargs)
>   File "C:\web2py\gluon\contrib\pymysql\connections.py", line 688, in __init__
> self.connect()
>   File "C:\web2py\gluon\contrib\pymysql\connections.py", line 905, in connect
> self._get_server_information()
>   File "C:\web2py\gluon\contrib\pymysql\connections.py", line 1231, in 
> _get_server_information
> self.server_charset = charset_by_id(lang).name
>   File "C:\web2py\gluon\contrib\pymysql\charset.py", line 38, in by_id
> return self._by_id[id]
> KeyError: 255
>
>

-- 
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/65f0545e-24ac-447d-acd3-1550a27bdd31n%40googlegroups.com.