[web2py] Re: delete on confirmation

2016-04-11 Thread Ron Chatterjee
use text.string. On Monday, April 11, 2016 at 8:52:56 AM UTC-4, rajjm...@gmail.com wrote: > > If I use the helper function it works. Ran into one issue though. > > {{=SPAN(A( IMG(_src=URL('static','images/delete.png')), _href = > URL('delete',args=id), _title = 'Delete', _onclick = "javascrip

[web2py] Re: DatabaseError: database disk image is malformed

2016-04-11 Thread Martin
Ok, most of the information i found was only about how to repair such an error, but maybe i didnt search long enough.. I am hosting the website on my own VPS using nginx. I dont have a very large amount of traffic so in that case maybe i made something very inefficient. Could brute force break

[web2py] Re: what are globals?

2016-04-11 Thread Dave S
On Sunday, April 10, 2016 at 6:36:24 PM UTC-7, Anthony wrote: > > It's just Python -- see > http://www.diveintopython.net/html_processing/locals_and_globals.html. > The built-in globals() function returns a dictionary of all the objects in > the global environment. > > Anthony > > Also, the w

[web2py] Re: Confirm Password in Customized Registration Form

2016-04-11 Thread Dave S
On Saturday, April 9, 2016 at 5:40:51 PM UTC-7, Jerry Liu wrote: > > Hello, everyone > > I want to customize my user registration page a little bit, and I am using > the code like below: > > {{=form.custom.begin}} > > > {{=form.custom.widget.username}} > > ... > > > {{=form.custom.submit}} > {{=

[web2py] Re: DatabaseError: database disk image is malformed

2016-04-11 Thread Niphlod
seems that the i/o subsystem of your hosting is getting "tired". Google is full of information regarding that particular error where are you hosting your app ? On Monday, April 11, 2016 at 9:02:09 PM UTC+2, Martin wrote: > > Hi, > > I am running a webshop built using web2py. Everything has b

[web2py] DatabaseError: database disk image is malformed

2016-04-11 Thread Martin
Hi, I am running a webshop built using web2py. Everything has been running smoothly for a few weeks but now I am having some problems. At seemingly random times the database will break somehow. The website becomes inaccessible and the tickets give the message "DatabaseError: database disk imag

[web2py] Re: No module named images

2016-04-11 Thread Alex Glaros
I just upgraded to latest w2p version and uploading images works without needing to import anything. -- 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

[web2py] Re: to tinyMCE or to do something else ?

2016-04-11 Thread Pierre
l *oading tinyMCE from cdn will make it work:* {{extend 'layout.html'}} tinymce.init({ selector: '#tpage_body' }); {{=form}} *loading tinyMCE from the local machine and you have a big mess:* {{extend 'layout.html'}} tinymce.init({ selector: '#tpage_body', }); {{=form}} how

[web2py] Re: Empty strings stored as null in database

2016-04-11 Thread David Manns
There is a similar problem with SQLFORM.factory. E.g: searchform=SQLFORM.factory( Field('name', 'string', default='', comment='(start of) last name'), Field('status', 'string', requires=IS_EMPTY_OR(IS_IN_SET(['Full', 'Student', 'Comp', 'Inactive']))), Field('paid_year'

[web2py] Re: delete on confirmation

2016-04-11 Thread rajjmatthur
If I use the helper function it works. Ran into one issue though. {{=SPAN(A( IMG(_src=URL('static','images/delete.png')), _href = URL('delete',args=id), _title = 'Delete', _onclick = "javascript:return confirm('Are you sure you want to process?')", _class = 'Delete') ) }} Now, if I want to st

Re: [web2py] how to change facebook oauth2 redirect_uri

2016-04-11 Thread killzane
Hi I have tried your suggestion and put the code auth.settings.login_url = URL(c='default', f='fbLogin', args=['login']) this is in my default.py def fbLogin(): auth.settings.login_form=FaceBookAccount() auth.settings.login_url = URL(c='default', f='fbLogin', args=['login']) form = auth() return

Re: [web2py] how to change facebook oauth2 redirect_uri

2016-04-11 Thread Michele Comitini
In the standard web2py authentication is triggered by @auth.requires_login decorator if the user is not authenticated already. in model after defining a class FacebookAccount() extended from gluon.contrib.oauth20_account.OAuthAccount auth.settings.login_form = FacebookAccount() # change default