[web2py] Re: Total Newb Question

2018-03-26 Thread Alby Cartner
Thank you.  problem fixed.

The line in the guide I followed to set up nginx 
ttps://www.digitalocean.com/community/tutorials/how-to-deploy-web2py-python-applications-with-uwsgi-and-nginx-on-ubuntu-14-04

in particular

location ~* /(\w+)/static/ {
root /home/user/myapp/applications/;
}

Was wrong.
This is discussed in 
https://stackoverflow.com/questions/36720259/web2py-nginx-do-i-have-to-set-up-static-folder

The first sentence in the answer is the clue.  That line bypasses web2py.

Thank you both for the help.  This was driving me nuts.



On Tuesday, March 27, 2018 at 8:06:22 AM UTC+13, Leonel Câmara wrote:
>
> Probably a wrong nginx config not serving the admin's static files 
> correctly.
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: I was thinking about python2 clock

2018-03-26 Thread Ty oc
I see, and in fact, yes, I was surprised to see that it run OK on first try 
on python3.

Thought this is a little pulling it off, it would be nice if I could run 
the pycharm check code for webpy modules and get 0 warnings or errors.


SO, I wonder, if you have a setup that "allow" this? 



El jueves, 22 de marzo de 2018, 16:53:19 (UTC-6), Anthony escribió:
>
> On Thursday, March 22, 2018 at 3:26:31 PM UTC-4, Richard wrote:
>>
>> Take care if you run your app under python 3... It a no way back because 
>> pickled object format change and you can't cleanly revert this change 
>> back... Try it with a copy of your app.
>>
>
> Of course it is a good idea to back up your app before making any changes, 
> but I wouldn't say there is "no way back." Files that contain pickled 
> objects are the *.table database migration files, session files, and error 
> tickets. It is easy to generate a new set of *.table files by setting 
> fake_migrate_all=True, and session files and error tickets are generally 
> ephemeral anyway.
>
> Anthony
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: how to keepvalues in SQLform.grid search form after submission

2018-03-26 Thread Anthony
On Monday, March 26, 2018 at 4:26:52 PM UTC-4, Shrabya Timsina wrote:
>
> Thank you Anthony. Yes, I did experiment with that argument, but there is 
> no example of how to use it online.
>

It's just a dictionary of arguments you would normally pass to SQLFORM.

 I tried the following:
> formargs=dict("keepvalues"=True)


When using dict(), the keys doe not go in quotes:

formargs=dict(keepvalues=True)

or:

formargs={'keepvalues': True}

Anthony

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[web2py] conditional coloring of table rows

2018-03-26 Thread Lee Carmichael
I have a question regarding conditionally setting the color of a table row. 
What I'm trying to do is similar to this post:

https://groups.google.com/forum/#!topic/web2py/gy01S0TwF70

I guess my lack of experience is keeping me from making the leap from that 
scenario to my own.

My situation is that I have a JSON object that's returned from a REST API 
call, rather than a db query. That object that has a field called 
"entry_type" and "entry_color". I'm trying to use that to format the table 
in my view but i can't figure out if i should edit the CSS to set the color 
based on the "entry_type" or maybe simply do something in the view to pull 
the color form the JSON. 

It feels like this should be a CSS thing but I'm not sure where and how to 
edit the web2py CSS files appropriately. 

Thanks for any tips!

lsc

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: how to keepvalues in SQLform.grid search form after submission

2018-03-26 Thread Shrabya Timsina
Thank you Anthony. Yes, I did experiment with that argument, but there is 
no example of how to use it online. I tried the following:
formargs=dict("keepvalues"=True)

but that did not work. Could you let me know how to use this argument? This 
post  asks for 
an example of formargs but never gets a proper response.

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: track email delivery

2018-03-26 Thread Leonel Câmara
You can include a pixel in the email and then track its downloads.  
  
I simply integrated with sparkpost which tracks this stuff for you.
https://github.com/leonelcamara/web2py_sparkpost

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Total Newb Question

2018-03-26 Thread Leonel Câmara
Probably a wrong nginx config not serving the admin's static files 
correctly.

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: POST method not found ?!

2018-03-26 Thread António Ramos
Great to know that :)
Thank you
António

2018-03-26 16:35 GMT+01:00 Anthony :

> uploadBCP returns a string but should instead return a dictionary with the
> HTTP method names and associated functions as the keys and values,
> respectively (an easy way to return the required dictionary is just to
> return locals()).
>
> Anthony
>
> On Monday, March 26, 2018 at 9:54:50 AM UTC-4, Ramos wrote:
>>
>> this is my POST
>>
>>
>> --
> 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.
> 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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Total Newb Question

2018-03-26 Thread António Ramos
Open the web console and check the error loading css and js files

IT should help you a bit

2018-03-26 8:51 GMT+01:00 Alby Cartner :

> I am currently on the 5th video (https://www.youtube.com/
> watch?v=TaUPvcoRDKM)  by Massimo Di Pierro.  I have not been so excited
> about learning a new language since I got my hands on the first edition of
> "The C Programming Language" in the early 80's.  My wife is sick of hearing
> me say "This is so cool"
>
> I have been running web2py on the laptop and working along with the
> examples.  This inspired me to get a VPS and set it up for Web2py on
> Ubuntu with Nginx, and uwsgi - This I got working.  I was still working
> through the video's with much pausing and rewinding while I typed in the
> code and made it work.
>
> Anyway - after much fun dusting off the rust - I was a Unix sysadmin in
> the 80's and 90's - I made the new VPS work and could get at the web2py
> apps and the admin interface - sort of-
>
> The apps work fine.  The trouble is the view for the admin pages seems to
> be broken - I have tried searching and comparing, and reinstalling web2py
> but so far it does not work.  I have stopped short of recursively changing
> the permissions to 777 as I am pretty sure its permissions or ownership or
> group but cannot find where I have missed anything.
> All the links seem to work if you click on them but they render in the
> same manner.
> I have uploaded and installed a packed application with it fine.
>
> This is what I am seeing - it will probably be blindingly obvious whats
> wrong. - please be gentle.
>
>
> 
>
> --
> 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.
> 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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] auth.settings.actions_disabled.append('register')

2018-03-26 Thread Alby Cartner
I am working on an app where it is not open for self registration.  I was 
getting the same error when I tried customising the Welcome app that was 
cloned.

I then retrieved the custom_Auth app from the examples, and uploaded that 
as my base and it works correctly just with 

## configure auth policy
auth.settings.actions_disabled = ['register']

in the db.py file

The menu choice is gone.

I am still very new to Web2py so have no idea why one works and the other 
didn't - hope this helps.

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[web2py] Total Newb Question

2018-03-26 Thread Alby Cartner
I am currently on the 5th video 
(https://www.youtube.com/watch?v=TaUPvcoRDKM)  by Massimo Di Pierro.  I 
have not been so excited about learning a new language since I got my hands 
on the first edition of "The C Programming Language" in the early 80's.  My 
wife is sick of hearing me say "This is so cool"

I have been running web2py on the laptop and working along with the 
examples.  This inspired me to get a VPS and set it up for Web2py on  
Ubuntu with Nginx, and uwsgi - This I got working.  I was still working 
through the video's with much pausing and rewinding while I typed in the 
code and made it work.

Anyway - after much fun dusting off the rust - I was a Unix sysadmin in the 
80's and 90's - I made the new VPS work and could get at the web2py apps 
and the admin interface - sort of-

The apps work fine.  The trouble is the view for the admin pages seems to 
be broken - I have tried searching and comparing, and reinstalling web2py 
but so far it does not work.  I have stopped short of recursively changing 
the permissions to 777 as I am pretty sure its permissions or ownership or 
group but cannot find where I have missed anything.
All the links seem to work if you click on them but they render in the same 
manner.
I have uploaded and installed a packed application with it fine.

This is what I am seeing - it will probably be blindingly obvious whats 
wrong. - please be gentle.



-- 
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.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: track email delivery

2018-03-26 Thread Anthony
Are you talking about verifying that an email was successfully received by 
its recipient? I don't think there is anything built in to handle that. 
Maybe check out https://pypi.python.org/pypi/pytracking/0.1.0 or use a 
third-party email delivery service that will provide tracking data for you.

Anthony

On Monday, March 26, 2018 at 8:21:03 AM UTC-4, yogeshwar khalkar wrote:
>
> Hi All,
>
> I want to track the email delivery, Is there any way to do it using web2py.
>
> Thanks for any help.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: POST method not found ?!

2018-03-26 Thread Anthony
uploadBCP returns a string but should instead return a dictionary with the 
HTTP method names and associated functions as the keys and values, 
respectively (an easy way to return the required dictionary is just to 
return locals()).

Anthony

On Monday, March 26, 2018 at 9:54:50 AM UTC-4, Ramos wrote:
>
> this is my POST
>
>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] track email delivery

2018-03-26 Thread António Ramos
https://www.youtube.com/watch?v=dHu8O1gZOl0

Somewhere along the tutorial Massimo explains about an email queue...  with
a flag to check if it was sent or not.



2018-03-26 13:21 GMT+01:00 yogeshwar khalkar :

> Hi All,
>
> I want to track the email delivery, Is there any way to do it using web2py.
>
> Thanks for any help.
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> 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.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: POST method not found ?!

2018-03-26 Thread António Ramos
this is my POST

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[web2py] POST method not found ?!

2018-03-26 Thread António Ramos
It was working but today my script that calls my app's POST  method returns
this error



What can it be?
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.
For more options, visit https://groups.google.com/d/optout.


[web2py] track email delivery

2018-03-26 Thread yogeshwar khalkar
Hi All,

I want to track the email delivery, Is there any way to do it using web2py.

Thanks for any help.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.