[web2py] Re: auth groups and permission

2016-12-30 Thread Biplov Bhandari
Hi Stefan, The default web2py auth_group adds a person to his own group when the user is created. I want to override the default behavior. I have fixed number of auth_group, say authenticated, editor, publisher and admin. I want to assign a role, based on the form data. if not defaults to authe

[web2py] auth groups and permission

2016-12-30 Thread Biplov Bhandari
Hi, I want to have a fixed user groups (eg. editor, publishers and admin). I don't want the default one group to one member. How do I do that? Best, Biplov -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.

Re: [web2py] Re: Layout design with angular material and web2py

2016-12-22 Thread Biplov Bhandari
UPDATE. looks like the problem is solved. I had to add at least one {{pass}} in layout.html. just added a single {{pass}} at the end of tag. The form is loaded now. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - htt

[web2py] Re: missing pass in view

2016-12-22 Thread Biplov Bhandari
I am facing similar situation. Please have a look here: https://groups.google.com/forum/#!topic/web2py/7iWp8fkl6aM -- 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 Iss

Re: [web2py] Re: Layout design with angular material and web2py

2016-12-22 Thread Biplov Bhandari
UPDATE I changed the deliminator of web2py as response.delimiters = ('') The layout.html looks like http://pastebin.com/PqrcBtTm . It has condition to include sidebar-nav and menu-bar, and include the form. The /views/default/user.html looks like this: jQuery("#web2p

Re: [web2py] Re: Layout design with angular material and web2py

2016-12-22 Thread Biplov Bhandari
Okey I changed the web2py deliminator and retained the angular deliminator but still the form is not included. Any idea on whats going wrong here? [image: DhtDcaR.png (1674×1023)] How to include the login form? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http:

Re: [web2py] Re: Layout design with angular material and web2py

2016-12-22 Thread Biplov Bhandari
I think I have adjusted the deliminator in the angular js module. The file looks like this angular.module('mainApp', ['ngMdIcons', 'ngMaterial', 'ngSanitize', 'ngMessages']) .config(function ($interpolateProvider) { //allow Web2py views and Angular to co-exist $interpol

[web2py] Re: Where to define flash to inform user of pending approval

2016-12-22 Thread Biplov Bhandari
Normally goes in db.py file where you first load auth. -- 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 subscribe

[web2py] Re: Where to define flash to inform user of pending approval

2016-12-22 Thread Biplov Bhandari
I think this should work, give it a try (but have not tested yet) auth = Auth(db) auth.messages.registration_pending = "your_text_goes_here" Alternatively, if you have many changes to make you can sub class Auth class and override the settings as well as messages and/or any other methods -- R

Re: [web2py] Re: Layout design with angular material and web2py

2016-12-22 Thread Biplov Bhandari
Hello Ovidio, Actually my problem is not with deliminators but with the form include in the layout. In fact, the {{include "angular_module.html"}} which includes angular module look like this: angular.module('mainApp', ['ngMdIcons', 'ngMaterial', 'ngSanitize', 'ngMessages']) .config

[web2py] Re: portalocker import error

2016-12-22 Thread Biplov Bhandari
Hi Avinash, You might need to adjust the web2py version. The preferred one is 2.14.6 See here how to switch to other version: https://github.com/sahana/eden_deploy/blob/master/install-eden-cherokee-postgis.sh#L95 Hope this helps! Best Regards, Biplov On Thursday, December 22, 2016 at 11:13:1

[web2py] Re: Layout design with angular material and web2py

2016-12-22 Thread Biplov Bhandari
ettings["system_name"]}} {{pass}} {{if menu_enabled:}} Biplov Bhandari

[web2py] Re: Layout design with angular material and web2py

2016-12-21 Thread Biplov Bhandari
Update. I am able to load the auth/_login.html but the form is not included. The div id='body' looks like this now: {{=response.title or app_settings["system_name"]}} {{block content_form}} {{include}} {{end content_form}}

[web2py] Layout design with angular material and web2py

2016-12-21 Thread Biplov Bhandari
Hi All, I am trying to use angular material with web2py. My layout.html using angular material looks like this: http://pastebin.com/Fydxwb8w. The layout looks like this when loaded in browser: [image: AP4XDAk.png (1823×1041)] I am trying to create login form. My form style looks like this: d