[web2py] Due to external css files my calendar now looks like this, how to edit css for calendar again to fix

2016-02-20 Thread aston . ribat
-- 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

[web2py] Re: What does this error want to say? what's wrong here?

2016-01-21 Thread aston . ribat
I found out that there was no auth_user in db administration. But why did it happen? It's new. And I erased no code On Thursday, January 21, 2016 at 2:53:02 PM UTC+5:30, aston...@gmail.com wrote: > > model: > db.define_table('pst', > Field('writeup','text'), auth.signature) > controller: > de

[web2py] Re: What does this error want to say? what's wrong here?

2016-01-21 Thread aston . ribat
'Cannot resolve reference auth_user in pst definition'On Thursday, January 21, 2016 at 2:53:02 PM UTC+5:30, aston...@gmail.com wrote: > > model: > db.define_table('pst', > Field('writeup','text'), auth.signature) > controller: > def authsign(): > form=SQLFORM(db.pst).process() > ret

[web2py] What does this error want to say? what's wrong here?

2016-01-21 Thread aston . ribat
model: db.define_table('pst', Field('writeup','text'), auth.signature) controller: def authsign(): form=SQLFORM(db.pst).process() return locals() view: {{extend 'layout.html'}} {{=form}} -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web

[web2py] Why are the fields not hiding when using ajax for the forms? Look below.

2016-01-20 Thread aston . ribat
Anthony I can sense your presence. Please help me asap. -- 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 subscrib

[web2py] Re: Why my snippet for new button from the controller not working?

2016-01-20 Thread aston . ribat
it takes me to default/index.load which is wrong. I should be going to default/index. :( On Wednesday, January 20, 2016 at 7:31:47 PM UTC+5:30, Niphlod wrote: > > uhm. maybe > > window.location='%s' % URL('default', 'index') > > ? > > On Wednesday, January 20, 2016 at 2:37:26 PM UTC+1, aston...@g

[web2py] Re: Why my snippet for new button from the controller not working?

2016-01-20 Thread aston . ribat
Well thanks for pointing out that Niphlod. So how should I correct it? On Wednesday, January 20, 2016 at 6:57:57 PM UTC+5:30, Niphlod wrote: > > _onclick should be at the very least a piece of javascript. You're just > passing an URL. > > On Wednesday, January 20, 2016 at 1:50:11 PM UTC+1, aston.

[web2py] Why are the fields not hiding when using ajax for the forms? Look below.

2016-01-20 Thread aston . ribat
this is what my controller reads: def index(): return locals() def add_bottle(): form=SQLFORM(db.bottle, 3 , deletable=True, fields = ['request_expiryDate']).process() return locals() this is what my default/index.html reads: {{extend 'layout.html'}} {{=LOAD('default', 'add_bottle.

[web2py] Why my snippet for new button from the controller not working?

2016-01-20 Thread aston . ribat
cancel=INPUT(_type='button' , _value='Cancel' , _onclick= URL('default','index')) -- 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 mess

[web2py] I am not getting update and delete form, what's wrong here in this code?

2016-01-19 Thread aston . ribat
def add_bottle(): form=SQLFORM(db.bottle, deletable=True).process() return locals() do I get to update with just deletable =True or do I have to write a different snippet for it too -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/we

[web2py] How to truncate and start the db from id 1 again in web2py?

2016-01-19 Thread aston . ribat
Please write the snippet. -- 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 "web2

Re: [web2py] Re: How can I add a compiler to my site like the ones Codecademy, ideone and W3 schools have?

2016-01-17 Thread aston . ribat
But where, how and which files do I upload files for C compiler so that I may be able to use subprocess. On Sunday, January 17, 2016 at 7:11:37 PM UTC+5:30, Bear wrote: > > If it is a small and nonsafety project, You need to use subprocess or you > need to run the code in the sandbox vm. > On Ja

[web2py] Re: How can I add a compiler to my site like the ones Codecademy, ideone and W3 schools have?

2016-01-17 Thread aston . ribat
Someone please help me with this. It's very urgent and I have no idea how to compile C programs in web2py (plus it should not be running online with the help of other sites like ideone as it has to be deployed in the college campus) On Sunday, January 17, 2016 at 5:37:57 PM UTC+5:30, aston...@g

[web2py] How can I add a compiler to my site like the ones Codecademy, ideone and W3 schools have?

2016-01-17 Thread aston . ribat
I need a C++ 14 compiler on my site. -- 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 Gr

[web2py] I have to create a replica of ideone.com for C++ programmers. How do I install C compiler in web2py?

2016-01-17 Thread aston . ribat
I need a C++ 14 compiler to work. -- 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 Grou

[web2py] What's missing here in my code for the dialogue box to appear when user clicks 'submit' on the form?

2016-01-14 Thread aston . ribat
jQuery('#people.submit').prop('onclick',if(!confirm("{{=T('Are you sure you want to add this object?')}}"this.submit=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

[web2py] Re: Why is this code for attachment in the html email showing that static folder doesn't exist?

2016-01-14 Thread aston . ribat
Thanks Anthony, that really helped. I have asked a new question on how to put a background image to my body in the html email. Please help me out in that. Thanks, Aston Ribat On Friday, January 15, 2016 at 1:56:05 AM UTC+5:30, Anthony wrote: > > You need the full filesystem pat

[web2py] How to put background-image in body of a html mail and not show the used image in attachment below?

2016-01-14 Thread aston . ribat
what's wrong in my code? message=' body { background-image:"cid:photo"}Hi Astonyou have a new entry:%s and %s with percentage: %s' %( session.name1 , session.name2, str(session.percent)), attachments = mail.Attachment(os.path.join(request.folder, 'static', 'hello.png'),

[web2py] Why is this code for attachment in the html email showing that static folder doesn't exist?

2016-01-14 Thread aston . ribat
attachments=mail.Attachment('static/hello.png',content_id='photo') -- 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 a

[web2py] Can you please correct this for me?

2016-01-14 Thread aston . ribat
now go back to go back i am using request.enc.referer but it is saying: invalid function (default/http) please tell me the corrected version for it -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.c

[web2py] Re: This jquery conditional form at pg 505 in book doesn't work. What's the problem?

2016-01-14 Thread aston . ribat
thanks, it worked On Thursday, January 14, 2016 at 3:41:26 PM UTC+5:30, Val K wrote: > > Hi! > Try to replace *.attr('checked')* with *.prop('checked')* > > On Thursday, January 14, 2016 at 12:32:46 PM UTC+3, aston...@gmail.com > wrote: >> >> I am using the latest web2py version >> >> On Thurs

[web2py] Re: This jquery conditional form at pg 505 in book doesn't work. What's the problem?

2016-01-14 Thread aston . ribat
I am using the latest web2py version On Thursday, January 14, 2016 at 2:58:00 PM UTC+5:30, aston...@gmail.com wrote: > > db = DAL('sqlite://db.db') > db.define_table('taxpayer', > Field('name'), > Field('married', 'boolean'), > Field('spouse')) > >

[web2py] This jquery conditional form at pg 505 in book doesn't work. What's the problem?

2016-01-14 Thread aston . ribat
db = DAL('sqlite://db.db') db.define_table('taxpayer', Field('name'), Field('married', 'boolean'), Field('spouse')) def conditionalform(): form = SQLFORM(db.taxpayer) if form.process().accepted: response.flash = 'record inserted'

[web2py] Re: How can we use variables like session.variable1 inside the html email body?

2016-01-13 Thread aston . ribat
Thats not html message @Niphlod here How to display value of here if here is variable -- 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 me

[web2py] Why my web2py is running when I haven't downloaded any Mark Hammond's win32 extensions for pywin3?

2016-01-13 Thread aston . ribat
Is it that I am loosing 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 the Google Grou

[web2py] Tell me the difference between the three and tell me why they give different values:

2016-01-12 Thread aston . ribat
- request.client - request.env.remote_addr - request.env.http_x_forwarded_for -- 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

[web2py] How to get ip address of the device user client is using and the server device?

2016-01-12 Thread aston . ribat
as I find out from different sources, request.env.server_addr and request.env.remote_addr should work but they don't really work. When I used this for my app on pythonanywhere, I always got request.env.server_addr as None and different ip address for request.env.remote_addr than what is show

[web2py] How to know the location of the user client on my site?

2016-01-12 Thread aston . ribat
Also can I increase by 5 hours and 20 minutes instead of time shown by the request.now Can I do like this?: HH+5:MM+20:SS -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Rep

[web2py] How to know the IP address of the user client using my web2py site?

2016-01-12 Thread aston . ribat
Could you please tell the exact 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 G

[web2py] Can I use phonegap to create my android app written using web2py?

2016-01-11 Thread aston . ribat
If yes, 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" gro

[web2py] How do I not show particular fields for the user to fill while signing up and make them fill later?

2015-12-16 Thread aston . ribat
For example, fields like their profile picture and all have to be filled later, not while signing up. How do I do that? According to my db table, they are forced to fill everything in beginning only. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/

[web2py] How do I make users fill particular fields of the auth_user table later after signing up?

2015-12-16 Thread aston . ribat
For example, their profile pic have to be posted they sign up. But they are forced to fill everything in the beginning only. How to make them fill certain fields only in the beginning? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py