[web2py] accessing auth_user username

2016-10-13 Thread Jaimee S
Hello All, 

Im new to web2py and I can't seem to figure out how to access the usernames of 
the registered users. I added username to the default login and it renders just 
fine. In my controller I've tried various methods such as:


def xx():
 item = db(db.auth_user).select(db.auth_user.username.ALL)
 return locals()

def...:
 item = db().select(db.auth_user.username.ALL)
 return...

def...:
 item = # both previous func with periods instead of _
 
@auth.requires_login()
def...:
 item = # prev logic

In html I've tried:

{{=item}}

{{for ite in item:}}
{{=ite}}
{{pass}}

{{for...:}}
{{=ite.username}}
{{pass}}

# also tried same methods with table tags


My ticket error:
Name 'html_variable' is not defined

My plan is as follows:
Display all users on page as ul or td
Create css flex box and display each user by username
Display each user by image
Etc

Thanks for reading!

Also, this was posted from my phone which is why I used pseud code 

-- 
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: accessing auth_user username

2016-10-14 Thread Jaimee S
Oh I see, I misunderstood how to access Auth. You're right, I'll need to read 
more of the documentation. BTW your answer worked, 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.
For more options, visit https://groups.google.com/d/optout.


[web2py] Display uploaded file

2016-10-15 Thread Jaimee S
Hello all,

I've been trying relentlessly to display a photo that is connected to a user. 
I've tried the download function a thousand ways and am slowly running out of 
Google search terms. Here is what I've tried:



auth.settings.extra_fields[auth.settings.table_user_name]=
 [Field('picture','upload')] #success, no hiccups



def get_file():
 row = db(db.auth_user.id==request.args(0)).select().first()
 return locals() #success, no hiccups

 row =db(db.auth_user.id)...

def download() 
 return response.download(request,db)



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: Display uploaded file

2016-10-15 Thread Jaimee S
Thanks for replying,


I should probably clarify more. The dots are just my shorthand way of 
indicating that the code is the same in that spot and the only thing that 
changed was what I typed out the following time.

The b in the for loop is just a variable that indicates the same value as your 
"user" 
Typed out it would be:
{{for b in row:}}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: Display uploaded file

2016-10-15 Thread Jaimee S
You're a genius, man. Thanks. Is there any way to bypass the download function? 
It slows down my site if I'm downloading each picture of each user

BTW, I appreciate your efforts! I see you on every board. 

-- 
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: Display uploaded file

2016-10-18 Thread Jaimee S
Your code worked! Thanks a lot. How do I make the image smaller?

-- 
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: Display uploaded file

2016-10-18 Thread Jaimee S
I didn't figure exactly what I wanted, but I just added a require in the model 
that limits the width and height

-- 
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: Display uploaded file

2016-10-18 Thread Jaimee S
Sweet, noted.

I'm on my laptop now trying the jsfiddle code. Nothing is happening. I suspect 
it may be the link I created. What do you think?

Link in html:


I created a static named style.css an it appears at the bottom of the static 
file.

Css:

.container{
display:flex;
justify-content:center;
flex-wrap:wrap;
align-items:center;
}
img{
width:100%;
max-width:200px;
}

Let me know if there's anything else you need!

-- 
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: Display uploaded file

2016-10-18 Thread Jaimee S
roger that i'll try all that and let you know what the problem was when i 
find it 

On Saturday, October 15, 2016 at 2:20:41 AM UTC-5, Jaimee S wrote:
>
> Hello all,
>
> I've been trying relentlessly to display a photo that is connected to a 
> user. I've tried the download function a thousand ways and am slowly 
> running out of Google search terms. Here is what I've tried:
>
>
> 
> auth.settings.extra_fields[auth.settings.table_user_name]=
>  [Field('picture','upload')] #success, no hiccups
> 
>
> 
> def get_file():
>  row = db(db.auth_user.id==request.args(0)).select().first()
>  return locals() #success, no hiccups
>
>  row =db(db.auth_user.id)...
>
> def download() 
>  return response.download(request,db)
> 
>
> 
> 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: Display uploaded file

2016-10-18 Thread Jaimee S
The css file was not in 'css/style.css' It was in 'style.css'.
That fixed the problem and now my flexbox works too. Again, many 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.
For more options, visit https://groups.google.com/d/optout.


[web2py] temporary storage

2016-10-19 Thread Jaimee S
Hello all, 

I have a list of users on my page. I'm trying to click one user and add that 
user to a list. After that, I'm trying to loop though each and display their 
username in html. I can't seem to get the code one hundred percent right. Any 
help would be appreciated!

Here is my code:


def to_del():
arg=request.args(0)
guy=db(db.auth_user==arg).select(db.auth_user.username)
people=[]
for person in guy:
people.append(guy)
return locals()




selected: # for loop with people

Any ideas?

-- 
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] temporary storage

2016-10-19 Thread Jaimee S
Also, I plan on emptying the list after I cycle through by the way

-- 
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: temporary storage

2016-10-20 Thread Jaimee S
Thanks! That fixed an error. However the big problem is capturing multiple args 
and storing them in a list so I can access them with a for loop. Is this 
possible?

-- 
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: temporary storage

2016-10-20 Thread Jaimee S
That is exactly the piece of code I needed! I'll let you know how it goes when 
I try it out. Is there any way to limit the number of vars entered?

-- 
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: temporary storage

2016-10-20 Thread Jaimee S
Yes, that's along the lines of what I'm looking for; however, I'll need it to 
be in the database due to the fact that I'm going to loop through that list of 
requests with a for-loop and call a function on each one. 

The function adds that value to a field in the db.when I tried to require it in 
the db, I got a dropdown instead of just an input. Is there any way to remove 
that dropdown action?

-- 
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] Stripe Info

2016-10-23 Thread Jaimee S
Hi,

I've read through the stripe documents and i had a few questions. 

I see how it's possible to integrate stripe into web2py, but i don't see 
how you can have an open amount which would allow the user to pay however 
much they choose. For instance, i would like the users to pay whatever 
amount they choose and display the top five paid users on my account. Every 
thirty days i would like to reset their accounts and set them all to zero 
so they can compete again. How can i track the amount that the users pay on 
my website? How do i reset their amounts every thirty days? How can i have 
the amount set to an open value so that the users can pay whatever amount 
they choose(with a minimum of course)? How can i sort the users based off 
of the amount that they have paid over a thirty day period?


Also, my second thought was to just have everyone pay a flat rate. The 
problem with that is that i don't know how to track if they paid or not. 
How can i track the amount that a user pays?

Any help would be appreciated!

-- 
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: Stripe Info

2016-10-23 Thread Jaimee S
Thanks for the great responses guys. 

Could you provide a bit of pseudo code relating to adding the users payment 
amount to the table. I'm not sure about a few things. For instance, what if 
they click the buy button then presses back once the widget fires 

-- 
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] https and stripe

2016-10-25 Thread Jaimee S
Recently I've been working on integrating stripe. I've been unable do to the 
fact that it requires an https connection. I've looked into obtaining one, but 
I'm not exactly sure how to. Does web2py not offer ssl support? 

-- 
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: https and stripe

2016-10-25 Thread Jaimee S
Thanks for the tips!

That leads me to more questions


I found this on web2py from your link:
'''
All these steps are performed automatically by the provided scripts:

1
2
scripts/setup-web2py-nginx-uwsgi-on-centos.sh
scripts/setup-web2py-nginx-uwsgi-ubuntu.sh'''

Does this mean that once I complete these steps then I'll have successfully 
deployed to nginx and that I'm able to access the website from online?

Here is some information that I found online just now:
'''
PythonAnywhere is an online Integrated Development Environment (IDE) and Web 
hosting service based on the Python programming language. '''

'''Nginx can be deployed to serve dynamic HTTP content on the network using 
FastCGI, SCGI handlers for scripts, WSGI application servers or Phusion 
Passenger modules, and it can serve as a software load balancer.[9]'''

Based off of the links you sent on nginx, I'm assuming that i'll need to switch 
from developing my site on my localhost to the nginx software. Why? 

I get a feeling that nginx provides some sort of encryption. An encryption that 
pythonanywhere doesn't. Am I wrong? Am I comparing apples and oranges because 
they aren't similar?

Ultimately, I plan on releasing my website when it's almost finished and 
tampering with it while it's live kind of like Kanye wests album release. 
Python anywhere seems to provide me with that ability. Will I need to switch my 
app from localhost to nginx an then deploy to pythonanywhere? 

I have a ton of questions and I don't want to pester you. What other links 
should I read into?

-- 
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: https and stripe

2016-10-26 Thread Jaimee S
interesting, so what you're saying is that once i deploy to python anywhere 
ill no longer have any problems with setting up Nginx. Great! Will the 
payment part of my website still be accessible, just not trusted, without 
an ssl certificate? 

On Wednesday, October 26, 2016 at 1:56:04 AM UTC-5, Anthony wrote:
>
>
> scripts/setup-web2py-nginx-uwsgi-on-centos.sh
>> scripts/setup-web2py-nginx-uwsgi-ubuntu.sh'''
>>
>> Does this mean that once I complete these steps then I'll have 
>> successfully deployed to nginx and that I'm able to access the website from 
>> online?
>>
>
> Yes, though you will need to take additional steps for access via a domain 
> name rather than just the IP address of your server (i.e., you need to 
> register a domain name and configure the nameservers so it points to your 
> domain). Also, the web2py scripts set up a self-signed certificate, which 
> is fine for development use or your personal access to admin, but it will 
> generate browser warnings for regular users, so you will want a certificate 
> from a certificate authority for production purposes.
>  
>
>> Here is some information that I found online just now:
>> '''
>> PythonAnywhere is an online Integrated Development Environment (IDE) and 
>> Web hosting service based on the Python programming language. '''
>>
>> '''Nginx can be deployed to serve dynamic HTTP content on the network 
>> using FastCGI, SCGI handlers for scripts, WSGI application servers or 
>> Phusion Passenger modules, and it can serve as a software load 
>> balancer.[9]'''
>>
>> Based off of the links you sent on nginx, I'm assuming that i'll need to 
>> switch from developing my site on my localhost to the nginx software. Why? 
>>
>
> localhost refers to the location of the server (your local machine), not 
> the software you use to serve HTTP requests. You can run Nginx on your 
> localhost if you want.
>
> In development, you might be using the web2py built-in Rocket server. This 
> server is a fairly basic web server written in Python -- it is not 
> recommended for production, as there are much faster (and likely more 
> reliable/stable) options, such as Nginx+uWSGI.
>  
>
>> I get a feeling that nginx provides some sort of encryption. An 
>> encryption that pythonanywhere doesn't. Am I wrong? Am I comparing apples 
>> and oranges because they aren't similar?
>>
>
> No, nothing to do with encryption.
>  
>
>> Ultimately, I plan on releasing my website when it's almost finished and 
>> tampering with it while it's live kind of like Kanye wests album release. 
>> Python anywhere seems to provide me with that ability. Will I need to 
>> switch my app from localhost to nginx an then deploy to pythonanywhere?
>>
>
> If you deploy to Pythonanywhere, they actually take care of setting up the 
> web server for you (that's part of the value of their service -- they make 
> deployment simple by handling the server administration). In fact, 
> Pythonanywhere will serve your app via Nginx+uWSGI (but you don't have to 
> bother with it at all).
>
> 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: https and stripe

2016-10-26 Thread Jaimee S
OK, that warning would definitely cost me customers. I'll get right on that ssl 
right away. Thanks for the big tips!

-- 
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] Push Notifications

2016-11-02 Thread Jaimee S
Hello, 

My website allows users to send messages to one another; however, the only way 
to see their new messages is to refresh the page. Is there any way to notify 
the user via any method? 

Thanks for your time

-- 
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: Push Notifications

2016-11-02 Thread Jaimee S
Thanks for the speedy reply! I've looked over the links you sent. the first 
two didn't work for me on my browser. I'm on a a mac and used the default 
browser. 

Will having a web socket open 24/7 slow down my website? My knowledge of 
web sockets is limited at the moment

On Wednesday, November 2, 2016 at 6:52:05 PM UTC-5, Dave S wrote:
>
>
>
> On Wednesday, November 2, 2016 at 3:32:54 PM UTC-7, Jaimee S wrote:
>>
>> Hello, 
>>
>> My website allows users to send messages to one another; however, the 
>> only way to see their new messages is to refresh the page. Is there any way 
>> to notify the user via any method? 
>>
>> Thanks for your time
>>
>
>
> There are 2 mechanism in HTML5, I believe, but I'm only going to point you 
> at one for the moment:  Web Workers.
>  http://www.htmlgoodies.com/html5/javascript/working-with-web-workers-in-html5-powered-web-pages.html
> >
>  http://www.htmlgoodies.com/HTML5/client/introduction-to-html5-web-workers-the-javascript-multi-threading-approach.html
> >
>  http://www.htmlgoodies.com/html5/other/html5-tech-shared-web-workers-help-spread-the-news.html
> >
>
> With this mechanism, you'd spawn a web worker  to do jquery/ajax to check 
> when it was time to replace the content.  A couple of the examples 
> calculate Pi, and paste the results into the main page.
>
> There is also web sockets in HTML5.
>  http://www.htmlgoodies.com/html5/tutorials/making-html5-websockets-work.html
> >
> Gluon/contrib has websocket_messaging.py.
>
> I thought I remembered an HTML5 server push mechanisms for notifications, 
> but if it's there I'm not looking in the right place.
>
> /dps
>
>

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


[web2py] Re: Push Notifications

2016-11-03 Thread Jaimee S
Thanks for such a thorough response, Anthony!

Long polling seems to be the way to go for my website. I've been reading up 
on the tornado web socket  all day. 

I'm nearing 100 users on my website and i believe that speed will be a 
problem eventually. I'm deployed to python anywhere like you suggested; 
however, i am using sqlite still. As of now, everything is working and i've 
received no complaints on performance. Will there be a problem with long 
polling while using sqlite?

On Wednesday, November 2, 2016 at 9:37:52 PM UTC-5, Anthony wrote:
>
> On Wednesday, November 2, 2016 at 7:52:05 PM UTC-4, Dave S wrote:
>>
>> There are 2 mechanism in HTML5, I believe, but I'm only going to point 
>> you at one for the moment:  Web Workers.
>> > http://www.htmlgoodies.com/html5/javascript/working-with-web-workers-in-html5-powered-web-pages.html
>> >
>> > http://www.htmlgoodies.com/HTML5/client/introduction-to-html5-web-workers-the-javascript-multi-threading-approach.html
>> >
>> > http://www.htmlgoodies.com/html5/other/html5-tech-shared-web-workers-help-spread-the-news.html
>> >
>>
>> With this mechanism, you'd spawn a web worker  to do jquery/ajax to check 
>> when it was time to replace the content.  A couple of the examples 
>> calculate Pi, and paste the results into the main page.
>>
>
> This approach is "short polling" (i.e., polling the server with quick 
> requests at some interval to check for updates). Note, there is no 
> particular reason this must be done with a web worker -- you can simply do 
> it from the main web page, as it has been done since long before web 
> workers existed. The idea is simply to keep making Ajax requests at regular 
> intervals (e.g., every second). This approach might be fine, though 
> depending on how many users are connected and how frequently they are 
> checking, the server could get overwhelmed with requests. To reduce the 
> load, you can decrease the request frequency, but then you increase the 
> average latency between when a message is sent and when the recipient 
> receives it.
>  
>
>> There is also web sockets in HTML5.
>> > http://www.htmlgoodies.com/html5/tutorials/making-html5-websockets-work.html
>> >
>> Gluon/contrib has websocket_messaging.py.
>>
>
> To handle the shortcomings of "short polling", you can instead use 
> websockets (or long-polling, which maintains a long-held HTTP connection 
> with the server until a new message is received). However, you need a web 
> server and application that can handle many long-held open connections. To 
> address this need, web2py includes websocket_messaging.py, as noted above 
> -- it makes use of the Tornado web server to handle the websocket 
> connections. You can also use various realtime messaging services (e.g., 
> Fanout ), or something like Pushpin 
>  (an open source proxy server used by Fanout), which 
> is probably a bit more robust and full-featured than websocket_messaging.py.
>
> 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.


Re: [web2py] Re: make your app name show first

2017-01-02 Thread Jaimee S
  I am interested in using the routes.py method. Do I create the file inside of init or do I create it inside of the actual web2py application?David ShaversFounder, Just Between Us jbthelpp...@gmail.comwww.jbtus.comFrom: Marlysson SilvaSent: Monday, January 2, 2017 5:52 AMTo: web2py-usersReply To: web2py@googlegroups.comSubject: [web2py] Re: make your app name show firstTry this:http://web2py.com/books/default/chapter/29/04/the-core#Application-initDefining a app how first..Em segunda-feira, 2 de janeiro de 2017 04:48:12 UTC-3, David Shavers  escreveu:Hi, I have an app and I had to name it 'init' because the 'welcome' app kept coming up first. How can I make it so that a different app (e.g. 'jbtus') comes before 'init?'



-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/gyyLcQzs24g/unsubscribe.
To unsubscribe from this group and all its topics, 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] Re: Open Sourced dating website

2017-02-26 Thread Jaimee S
  Yea, dude. There definitely aren't ‎many new ideas under the sun so its always best to find one and improve it a little.David ShaversFounder, Just Between Us jbthelpp...@gmail.comwww.jbtus.comFrom: Donald McClymontSent: Sunday, February 26, 2017 4:18 PMTo: web2py-usersReply To: web2py@googlegroups.comSubject: [web2py] Re: Open Sourced dating websiteThanks for sharing - I will take a look.  No plans to start a dating website for people - however currently quite enjoying reading "The evolution of everything" and this argues that human progress arises when ideas have sex - so perhaps it could be adapted to a dating site for ideas.DonaldOn Sunday, February 26, 2017 at 6:17:15 AM UTC, David Shavers wrote:Good Evening, I made a dating website when i was heavily into web2py. My original goal was to overthrow Plenty of Fish. Didn't happen lol. Currently I'm into android development and release new apps almost weekly. My dating website has over 300 users and it's still growing even though i don't advertise or put any effort into marketing. If you are interested/single/curious/looking for love/etc, it's http://www.jbtus.com About an hour ago, i open sourced it on github because i figured some other developer may be trying to overtake pof too and would need a jumpstart to help them get past all of the arbitraries. I'm also looking for employment! The website has many features such as: user to user messaging, a forum, a user feed similar to that of Facebook, bootstrap slideshow, jumbotrons, sorting based on gender/preference, stripe(payment) integration, featured users, user login page, and much more! This website is easily customizable and i did most of the hard work for you. Also, this app uses NO PLUGINS! Enjoy!https://github.com/frontEndDevv/dating_websitePS.. if you encounter any issues that you aren't able to fix, please contact me so i can try my best to help!  And if you are into android development, let me know and we can collaborate or swap ideas or something



-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/fKisIOIL1qE/unsubscribe.
To unsubscribe from this group and all its topics, 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.