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
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.
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
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
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
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:
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
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
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
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
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
ettings["system_name"]}}
{{pass}}
{{if menu_enabled:}}
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}}
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
14 matches
Mail list logo