[BOOM] deactivate all addons, remove links to addons stuff from base, do not belong there

bzr revid: xmo@openerp.com-20110413120756-md9lg1rgehoyg4mc
This commit is contained in:
Xavier Morel 2011-04-13 14:07:56 +02:00
parent f9e630dafb
commit b7a638ccde
9 changed files with 16 additions and 148 deletions

View File

@ -23,33 +23,11 @@
<script type="text/javascript" src="/base/static/src/js/list.js"></script>
<script type="text/javascript" src="/base/static/src/js/search.js"></script>
<script type="text/javascript" src="/base/static/src/js/views.js"></script>
<script type="text/javascript" src="/base_diagram/static/src/js/diagram.js"></script>
<script type="text/javascript" src="/base_diagram/static/lib/js/raphael-min.js"></script>
<script type="text/javascript" src="/base_diagram/static/lib/js/dracula_graffle.js"></script>
<script type="text/javascript" src="/base_diagram/static/lib/js/dracula_graph.js"></script>
<script type="text/javascript" src="/base_gantt/static/lib/dhtmlxGantt/codebase/dhtmlxcommon.js"></script>
<script type="text/javascript" src="/base_gantt/static/lib/dhtmlxGantt/codebase/dhtmlxgantt.js"></script>
<script type="text/javascript" src="/base_gantt/static/src/gantt.js"></script>
<script type="text/javascript" src="/base_calendar/static/lib/dhtmlxScheduler/codebase/dhtmlxscheduler.js"></script>
<script type="text/javascript" src="/base_calendar/static/src/js/calendar.js"></script>
<script type="text/javascript" src="/web_chat/static/lib/AjaxIM/js/jquery.jsonp-1.1.0.js"></script>
<script type="text/javascript" src="/web_chat/static/lib/AjaxIM/js/jquery.jstore-all-min.js"></script>
<script type="text/javascript" src="/web_chat/static/lib/AjaxIM/js/jquery.md5.js"></script>
<script type="text/javascript" src="/web_chat/static/lib/AjaxIM/js/im.js"></script>
<link rel="stylesheet" type="text/css" media="screen" href="/base/static/lib/jquery.ui/css/smoothness/jquery-ui-1.8.9.custom.css" />
<link rel="stylesheet" type="text/css" media="screen" href="/base/static/lib/jquery.ui.notify/css/ui.notify.css" />
<link rel="stylesheet" type="text/css" href="/base/static/lib/jquery.superfish/css/superfish.css" media="screen">
<link rel="stylesheet" type="text/css" media="screen" href="/base_gantt/static/lib/dhtmlxGantt/codebase/dhtmlxgantt.css" />
<link rel="stylesheet" type="text/css" media="screen" href="/base_calendar/static/lib/dhtmlxScheduler/codebase/dhtmlxscheduler.css">
<link rel="stylesheet" href="/base/static/src/css/base.css" type="text/css"/>
<script type="text/javascript">
@ -58,18 +36,6 @@
oe.base.webclient("oe");
});
</script>
<script>
var AjaxIM, AjaxIMLoadedFunction;
$(function() {
AjaxIM.init({
pollServer: '/web_chat/pollserver',
theme: '/web_chat/static/lib/AjaxIM/themes/default',
flashStorage: '/web_chat/static/lib/AjaxIM/js/jStore.Flash.html'
});
AjaxIM.client.login();
});
</script>
</head>
<body id="oe" class="openerp">
</body>

View File

@ -126,9 +126,6 @@ openerp.base = function(instance) {
openerp.base.search(instance);
openerp.base.list(instance);
openerp.base.form(instance);
openerp.base.calendar(instance);
openerp.base.gantt(instance);
openerp.base.diagram(instance);
};
// vim:et fdc=0 fdl=0 foldnestmax=3 fdm=syntax:

View File

@ -491,7 +491,7 @@ openerp.base.Controller = openerp.base.BasicController.extend( /** @lends opener
controller_manifest: {
register: null,
template: "",
element_post_prefix: false,
element_post_prefix: false
},
/**
* Controller registry,
@ -702,7 +702,7 @@ openerp.base.CrashManager = openerp.base.Controller.extend({
openerp.base.Loading = openerp.base.Controller.extend({
controller_manifest: {
register: ["Loading"],
register: ["Loading"]
},
init: function(session, element_id) {
this._super(session, element_id);

View File

@ -231,10 +231,6 @@
<button type="button" name="delete"></button>
</td>
</tr>
<t t-name="DiagramView">
<h2 class="oe_view_title"><t t-esc="fields_view.arch.attrs.string"/></h2>
<div id="dia-canvas" style="overflow: auto;"></div>
</t>
<t t-name="FormView">
<h2 class="oe_view_title"><t t-esc="view.fields_view.arch.attrs.string"/></h2>
<div class="oe_form_header" t-att-id="view.element_id + '_header'">
@ -574,48 +570,4 @@
</p>
</div>
</t>
<t t-name="CalendarView">
<h3 class="title"><t t-esc="view.fields_view.arch.attrs.string"/></h3>
<table class="calendar-view" width="100%" height="100%" cellspacing="0" cellpadding="0">
<tr>
<td>
<div style="height: 1000px;width: 100%;">
<div id="calendar-sidebar">
</div>
</div>
</td>
<td style="width:85%;" align="left">
<div id="openerp_scheduler" class="dhx_cal_container" style="height: 1000px;width: 100%;">
<div class="dhx_cal_navline">
<div class="dhx_cal_prev_button"></div>
<div class="dhx_cal_next_button"></div>
<div class="dhx_cal_today_button"></div>
<div class="dhx_cal_date"></div>
<div class="dhx_minical_icon" id="dhx_minical_icon"></div>
<div class="dhx_cal_tab" name="day_tab" style="right:204px;"></div>
<div class="dhx_cal_tab" name="week_tab" style="right:140px;"></div>
<div class="dhx_cal_tab" name="month_tab" style="right:76px;"></div>
</div>
<div class="dhx_cal_header">
</div>
<div class="dhx_cal_data">
</div>
</div>
</td>
</tr>
</table>
</t>
<t t-name="GanttView">
<h3 class="title"><t t-esc="view.fields_view.arch.attrs.string"/></h3>
<table class="gantt-view" width="100%" height="100%" cellspacing="0" cellpadding="0">
<tr>
<td style="width:85%">
<div style="width:100%;height:300px;position:relative" id="GanttDiv"></div>
</td>
<td valign = "top">
<div id="gantt-sidebar"></div>
</td>
</tr>
</table>
</t>
</templates>

View File

@ -1,57 +1,8 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
{
"name" : "Basic Calendar Functionality",
"version" : "1.0",
"depends" : ["base"],
'description': """
This is a full-featured calendar system.
========================================
It supports:
- Calendar of events
- Alerts (create requests)
- Recurring events
- Invitations to people""",
"author" : "OpenERP SA",
'category': 'Tools',
'website': 'http://www.openerp.com',
"init_xml" : [
'base_calendar_data.xml'
],
"demo_xml" : [],
"update_xml" : [
'security/calendar_security.xml',
'security/ir.model.access.csv',
'wizard/calendar_event_edit_all_view.xml',
'wizard/base_calendar_invite_attendee_view.xml',
'wizard/base_calendar_set_exrule_view.xml',
'base_calendar_view.xml'
],
"test" : ['test/base_calendar_test.yml'],
"installable" : True,
"active" : False,
"certificate" : "00694071962960352821",
'images': ['images/base_calendar1.jpeg','images/base_calendar2.jpeg','images/base_calendar3.jpeg','images/base_calendar4.jpeg',],
"name": "Hello",
"version": "2.0",
"depends": [],
"js": ["static/*/js/*.js"],
"css": [],
'active': False
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -2,5 +2,5 @@
"name" : "OpenERP Web base Diagram",
"version" : "2.0",
"depends" : [],
'active': True,
'active': False,
}

View File

@ -4,4 +4,5 @@
"depends": [],
"js": ["static/*/js/*.js"],
"css": [],
'active': False
}

View File

@ -4,5 +4,5 @@
"depends": [],
"js": ["static/src/web_chat.js"],
"css": [],
'active': True,
'active': False,
}

View File

@ -436,10 +436,11 @@ class Root(object):
manifest_path = os.path.join(path_addons, i, '__openerp__.py')
if os.path.isfile(manifest_path):
manifest = eval(open(manifest_path).read())
print "Loading", i
m = __import__(i)
addons_module[i] = m
addons_manifest[i] = manifest
if manifest.get('active', True):
print "Loading", i
m = __import__(i)
addons_module[i] = m
addons_manifest[i] = manifest
for k, v in controllers_class.items():
if k not in controllers_object:
o = v()