[IMP] rename module "anonymous" to "auth_anonymous" + recategorize auth modules

bzr revid: chs@openerp.com-20120802154749-rl2240e8fak1457q
This commit is contained in:
Christophe Simonis 2012-08-02 17:47:49 +02:00
parent 6b23be4a25
commit 2f9da3ba1e
11 changed files with 16 additions and 16 deletions

View File

@ -3,17 +3,17 @@
'description': 'Allow anonymous access to OpenERP.',
'author': 'OpenERP SA',
'version': '1.0',
'category': 'Tools',
'category': 'Authentication',
'website': 'http://www.openerp.com',
'installable': True,
'depends': ['web'],
'data': [
'anonymous.xml',
'auth_anonymous.xml',
],
'js': [
'static/src/js/anonymous.js',
'static/src/js/auth_anonymous.js',
],
'qweb': [
'static/src/xml/anonymous.xml',
'static/src/xml/auth_anonymous.xml',
],
}

View File

@ -1,4 +1,4 @@
openerp.anonymous = function(instance) {
openerp.auth_anonymous = function(instance) {
instance.web.Login.include({
start: function() {
@ -19,7 +19,7 @@ openerp.anonymous = function(instance) {
init: function(parent) {
this._super(parent);
if (this.session.username == 'anonymous') {
this.template = 'UserMenu.anonymous';
this.template = 'UserMenu.auth_anonymous';
this.do_update = function() {}; // avoid change of avatar
}
},

View File

@ -3,7 +3,7 @@
-->
<templates id="template" xml:space="preserve">
<t t-name="UserMenu.anonymous">
<t t-name="UserMenu.auth_anonymous">
<div>
<a href="#" class="oe_user_menu oe_topbar_item oe_topbar_anonymous_login">
<img class="oe_topbar_avatar" t-att-src="_s + '/web/static/src/img/icons/gtk-dialog-authentication.png'"/>

View File

@ -3,10 +3,10 @@
'description': 'Allow users to reset their password from the login page',
'author': 'OpenERP SA',
'version': '1.0',
'category': 'Tools',
'category': 'Authentication',
'website': 'http://www.openerp.com',
'installable': True,
'depends': ['anonymous', 'email_template'],
'depends': ['auth_anonymous', 'email_template'],
'data': [
'email_templates.xml',
'res_users.xml',

View File

@ -3,10 +3,10 @@
'description': 'Allow users to sign up',
'author': 'OpenERP SA',
'version': '1.0',
'category': 'Tools',
'category': 'Authentication',
'website': 'http://www.openerp.com',
'installable': True,
'depends': ['anonymous', 'base_setup'],
'depends': ['auth_anonymous', 'base_setup'],
'data': [
'auth_signup.xml',
'res_config.xml',

View File

@ -3,7 +3,7 @@
-->
<templates id="template" xml:space="preserve">
<t t-extend="UserMenu.anonymous">
<t t-extend="UserMenu.auth_anonymous">
<t t-jquery="a" t-operation="after">
<a href="#" class="oe_user_menu oe_topbar_item oe_topbar_signup">
<img class="oe_topbar_avatar" t-att-src="_s + '/web/static/src/img/user_menu_avatar.png'"/>

View File

@ -2,7 +2,7 @@
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2011 OpenERP S.A (<http://www.openerp.com>).
# Copyright (C) 2004-2012 OpenERP S.A (<http://www.openerp.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
@ -22,7 +22,7 @@
{
'name' : "Portal",
'version' : "1.0",
'depends' : ["base", "share", "anonymous"],
'depends' : ["base", "share", "auth_anonymous"],
'author' : "OpenERP SA",
'category': 'Portal',
'description': """

View File

@ -23,7 +23,7 @@
<!-- Top menu item -->
<menuitem name="Portal"
id="portal_menu"
groups="base.group_no_one,portal.group_portal_member,anonymous.group_anonymous"
groups="base.group_no_one,portal.group_portal_member,auth_anonymous.group_anonymous"
sequence="20"/>
<menuitem name="Our company" id="portal_company" parent="portal_menu" sequence="10"/>

View File

@ -101,7 +101,7 @@ authentication if installed at the same time.
"website" : "http://www.openerp.com",
"category" : "Tools",
"category" : "Authentication",
"data" : [
"users_ldap_view.xml",
"user_ldap_installer.xml",