db(db.loc_data.school_id ==
auth.user_id).update(end_time=request.utcnow+datetime.timedelta(0,19800)
).last()
this doesn't tend to work.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py
nesday, May 11, 2016 at 1:15:45 PM UTC+2, Steve Joe wrote:
>>
>> db(db.loc_data.school_id ==
>> auth.user_id).update(end_time=request.utcnow+datetime.timedelta(0,19800)
>> ).last()
>>
>> this doesn't tend to work.
>>
>
--
Resources:
- http://w
syntax for the same?
--
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-us
can u write syntax for the same?
--
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
how?
--
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 u
cally
> escape all content inserted in views.
>
> Anthony
>
> On Thursday, May 12, 2016 at 4:14:00 PM UTC-4, Steve Joe wrote:
>>
>> how?
>
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
-
I tried the following but it didn't work.
in controller:
def rough():
import os
file = open(os.path.join(request.folder, 'static','index.html'))
return locals()
in view:
{{extend 'layout.html'}}
{{=file}}
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
-
Saw it. Have a last doubt. Does web2py avoid file inclusion vulnerability?
How?
On Friday, May 13, 2016 at 8:31:49 PM UTC+5:30, Anthony wrote:
>
> Have a look here:
> http://web2py.com/books/default/chapter/29/01/introduction#Security
>
> On Friday, May 13, 2016 at 10:20:29 AM U
how to write a scheduler function that will send me a message with subject
"hello" every night at 12 am?
--
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)
---
ow what you have tried so far, and explain what happened.
>
> On Saturday, May 14, 2016 at 5:38:57 AM UTC-4, Steve Joe wrote:
>>
>> how to write a scheduler function that will send me an email with subject
>> "hello" every night at 12 am?
>>
>
--
Resour
Anthony wrote:
>
> Always helps to show what you have tried so far, and explain what happened.
>
> On Saturday, May 14, 2016 at 5:38:57 AM UTC-4, Steve Joe wrote:
>>
>> how to write a scheduler function that will send me an email with subject
>> "hello" ev
No it didn't add anything to the db checker. I made a few edits.
I am not sure how they are working but they still don't work.
scheduler.queue_task(adder, start_time=request.now, #datetime
stop_time = None, #datetime
timeout = 60, #seconds
prevent_drift=False,
period=60, #seconds
immediate=F
I used to use gmail. Had a lot of struggle and one fine day it started
working. Now again it doesn't work. I get no emails!
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (R
I see everyone wants php
--
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
"web2p
I am designing the main website. Meanwhile I created the Facebook page for
it. Have a look here and please give me some tips based on my posts.
https://www.facebook.com/techavocado/
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Sour
--
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 unsub
rides=db(db.carpools.start_time >
request.utcnow+datetime.timedelta(0,19800) and
db.carpools.starter!=auth.user_id).select()
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list
any stepwise procedure?
--
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
Apart from 'welcome' how many web apps can you hostel to a domain name say,
mystyle.com, at max?
--
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 rece
How do I change the admin such that it doesn't redirect to welcome by
default but to some other 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
in .load file:
{{for i in range(0,3):}}
{{for j in range(0,3):}}
{{idd=str(i+1)+str(j+1)}}
{{=l[i][j]}}
{{pass}}
{{pass}}
function change(id)
{
ajax('{{=URL('default','deciser')}}'+'?at='+id,[],id);
}
def deciser():
return request.vars.at
def
; In the browser network tab, what's happening with the Ajax requests? Are
> they being sent as expected, and if so, what response is returned?
>
> On Friday, June 10, 2016 at 8:14:55 AM UTC-4, Steve Joe wrote:
>>
>> in .load file:
>> {{for i in range(0,3):}}
>&
Please look at my code and let me know why I am getting emails in such a
way:
db.define_table('pokes',
Field('name',requires=IS_NOT_EMPTY(error_message="Please
enter your name")),
Field('email_id',requires=IS_EMAIL()),
Field('msg','text', label='M
27;,'deciser')}}' + '?at=' + id, [], id.toString())
>>
>> Anthony
>>
>> On Saturday, June 11, 2016 at 11:41:40 AM UTC-4, Steve Joe wrote:
>>>
>>> It does nothing.
>>> However in
>>> function change(id)
>>&
How do I code it?
--
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
exact syntax?
--
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" gr
def index():
skills=db(db.skills.id>0).select()
pro_lang=[]
fake=[]
for skill in skills:
if skill.skilltype=="Programming Languages":
pro_lang.append(skill)
else:
fake.append(skill)
# how do i sort both the arrays as per the field skill.co
> Il 17/06/16 08:20, Steve Joe ha scritto:
> > exact syntax?
>
> Have you looked for it in the doc?
>
>
> http://www.web2py.com/books/default/chapter/29/04/the-core?#HTTP-and-redirect
>
> http://www.web2py.com/books/default/chapter/29/04/the-core#URL
>
&g
Do I have to change it anywhere else too?
--
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 Goog
--
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 unsub
anyone there?
On Tuesday, August 16, 2016 at 9:58:34 AM UTC+5:30, Steve Joe wrote:
>
>
>
--
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
Please look at the attached image above. I want to go to page you/index
upon clicking "Profile'.
On Wednesday, August 17, 2016 at 6:26:16 PM UTC+5:30, Ron Chatterjee wrote:
>
> Can you elaborate the problem better? What exactly u trying to solve. Give
> a url structure of before n after u want t
What is the exact snippet for the same?
--
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
db((db.user_interests.user_id == auth.user_id) and
(db.user_interests.interest == nosubscription.category)).select()
--
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 I
How would you do it?
--
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-us
Thank you Annet. What should I do for pdf?
On Saturday, August 20, 2016 at 5:53:18 PM UTC+5:30, Annet wrote:
>
> Use the IS_IMAGE() validator
>
> http://web2py.com/books/default/chapter/29/07/forms-and-validators#IS_IMAGE
>
>
> requires = IS_IMAGE(extensions=('jpg', 'png'))
>
>
>
>
> Kind regards,
def index():
display=SQLFORM(db.dp ,point.id, showid=False, submit_button="Update"
).process()
if display.accepted:
redirect(URL('you','resizedp', args=auth.user_id))
return locals()
def resizedp():
display=db(db.dp.user_id == auth.user_id).select().first()
from PIL im
IN PHONEGAP:
https://#someurl#.pythonanywhere.com/welcome/phonegap/login";>
username:
Password:
IN WEB2PY:
def login():
k="false"
if db(db.auth_user.username == request.vars.username and
db.auth_user.password == request.vars.password).select():
k="true"
ext on web2py :D You
> need to apply CRYPT() before comparing. Read more about that on the book.
>
> On Friday, August 26, 2016 at 3:31:54 PM UTC+2, Steve Joe wrote:
>>
>> IN PHONEGAP:
>>
>> https://#someurl#.pythonanywhere.com/welcome/phonegap/log
Anyone there? Anthony?
On Friday, August 26, 2016 at 7:38:40 PM UTC+5:30, Steve Joe wrote:
>
> *db(db.auth_user.username == request.vars.username and
> db.auth_user.password == CRYPT(request.vars.password)).select()*
>
>
> *if db(db.auth_user.username == request
and
> values returned, at runtime.
>
>
> Kiran Subbaramanhttp://subbaraman.wordpress.com/about/
>
> On Sat, 27-08-2016 2:50 PM, Steve Joe wrote:
>
> Anyone there? Anthony?
>
> On Friday, August 26, 2016 at 7:38:40 PM UTC+5:30, Steve Joe wrote:
>>
>> *db(
document.getElementById("search")
.addEventListener("keyup", function(event) {
event.preventDefault();
if (event.keyCode == 13) {
document.getElementById("searchbutton").click();
}
});
I see that neither enter works nor search.text is correct at thi
in view:
{{if not (authdetails.id==auth.user_id):}}
{{if db((db.friends.friend1==auth.user_id) &
(db.friends.friend2==authdetails.id)).select() or
db((db.friends.friend2==auth.user_id) &
(db.friends.friend1==authdetails.id)).select():}}
YOU BOTH ARE FRIENDS.
{{elif db((db.friend_requests.
rror? If so, let's see the traceback. Otherwise,
> what do you expect, and what do you observe instead? It would probably also
> help to show the controller code of the main page, and possibly relevant
> parts of your models.
>
> Anthony
>
> On Friday, Septem
I am seeing that Django, RoR all are on GSOC. Maybe web2py too should be
there.
--
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
I need to use my app from fresh. Will it have any disadvantage?
--
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
What's the syntax?
--
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-user
so here when one gives some value, it will be displayed in the div
id=target. However this is a chat room, so one has to see what others have
too to say. So how do I invoke the ajax process to refresh the div
id=target?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Document
window.setInterval(function(){ajax('{{=URL('data')}}',['q'],'target');}, 5000);
--
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 m
I am trying to show the user the recent 6 db entries at every 5 secs. But
it doesn't seem to work!
What am I doin wrong here?
view:
--
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 unsub
def data():
if auth.user_id==0:
redirect("http://google.com";)
rows=0
if request.vars.q:
db.chats.insert(shouter=auth.user and auth.user.first_name,
msg=request.vars.q)
size=len(db(db.chats.id>0).select())
lower=size-8
if size-8<=0:
l
what's the syntax?
--
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-user
if auth.user_id <1:
redirect(URL('default','index'), client_side=True)
Why this isn't working?
On Sunday, April 17, 2016 at 3:37:31 PM UTC+5:30, Leonel Câmara wrote:
>
> add client_side=True to the redirect calls
>
> redirect("http://google.com";, client_side=True)
>
--
Resources:
- http
example?
--
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.
suppose I have two datetime as following. Now how do I compare between both
and return true if time gap between both is 4 seconds or not. I am confused
because they are none type objects so how to compare them?
2016-04-19 01:25:09.9090
2016-04-19 01:25:09.8765
--
Resources:
- http://web2py.com
db.define_table('person',
Field('name'),
Field('dob','datetime'),
Field('username') #has to be unique
)
how to ensure that the field username is unique?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- ht
in db,py
auth.settings.extra_fields['auth_user']= [Field('last_active',
default=request.utcnow+datetime.timedelta(0,19800), readable=False,
writable=False), Field('last_seen',
default=request.utcnow+datetime.timedelta(0,19800), readable=False,
writable=False)]
in controller
for person in peop
in db.py:
auth.settings.extra_fields['auth_user']= [Field('last_active',
default=request.utcnow+datetime.timedelta(0,19800), readable=False,
writable=False), Field('last_seen',
default=request.utcnow+datetime.timedelta(0,19800), readable=False,
writable=False)]
in controller
person=db
username field is also unique
--
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
"
ajax('{{=URL("default","data")}}',[],'target');
where target is id of a div
and
ajax('{{=URL("default","data")}}',[],':eval);
How do their functionality differ?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https
o:
>
> auth.define_tables(username=True)
>
> or alternatively:
>
> auth.settings.use_username = True
> auth.define_tables()
>
> If that case, the registration and login forms will automatically include
> the username field.
>
> Anthony
>
> On Tuesday, April 1
auth = Auth(db)
auth.user_email.readable=False
auth.user_email.writable=False
--
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 be
But the code for stripe is only for credit cards. What about debit cards and
net banking?
--
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 th
I want toggle navigation button when opened from mobile and not like this.
My code in index.html:
{{if response.menu:}}
{{=response.logo or ''}}
{{=MENU(response.menu, _class='nav
navbar-nav',li_class='dropdown',ul_class='dropdown-menu')}}
how much does it cost?
--
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-
66 matches
Mail list logo