[web2py] Re: avatar like feature as in instant press

2015-03-01 Thread Ron Chatterjee
Leonel, Whats be your email address? Mine is achatterjee...@gmail.com I am not a web developer but I started to learn web2py and want to get good at it. Since my background is different, I need some help. Right now, I am coming up with task to myself and trying to learn web2py by working these

[web2py] Re: avatar like feature as in instant press

2015-03-01 Thread Leonel Câmara
I'm up to doing some consulting. You can put all that code in the models before the line where you do auth.define_tables() or you can put upload_fullpath and SMARTHUMB in a module and then you import SMARTHUMB in your models before auth.settings.extra_fields. This solution uses a computed fiel

[web2py] Re: avatar like feature as in instant press

2015-03-01 Thread Abhijit Chatterjee
Leonel, also, if you want to do some consulting, please let m know... -Ron On Sunday, March 1, 2015 at 1:14:41 PM UTC-5, Abhijit Chatterjee wrote: > > I put the "auth.settings.extra_fields..." in my model db.by and the rest > in my controller default.py. > > How do I now implement them. Any thou

[web2py] Re: avatar like feature as in instant press

2015-03-01 Thread Abhijit Chatterjee
I put the "auth.settings.extra_fields..." in my model db.by and the rest in my controller default.py. How do I now implement them. Any thoughts? On Thursday, February 26, 2015 at 8:04:27 PM UTC-5, Leonel Câmara wrote: > > It's not very hard, here's a possibility that requires you to have pillow

[web2py] Re: avatar like feature as in instant press

2015-02-26 Thread Leonel Câmara
It's not very hard, here's a possibility that requires you to have pillow installed. auth.settings.extra_fields['auth_user'] = [ Field('photo', 'upload', label=T('Photo'), uploadseparate=True, requires =[IS_EMPTY_OR(IS_IMAGE(error_message=T('This is not an i