[FIX] share: naming of classes in web module

bzr revid: xmo@openerp.com-20101122121227-bjx7fi4r3ospdml1
This commit is contained in:
Xavier Morel
2010-11-22 13:12:27 +01:00
parent c2aedebfcb
commit 11d5607f05
2 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ import cherrypy
class Piratepad(openerp.controllers.SecuredController):
class ShareWizardController(openerp.controllers.SecuredController):
_cp_path = "/share"
@expose()
+8 -8
View File
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
import openobject.templating
class SidebarTemplateEditor(openobject.templating.TemplateEditor):
class ShareActionEditor(openobject.templating.TemplateEditor):
templates = ['/openerp/widgets/templates/sidebar.mako']
ADD_SHARE_BUTTON = u'id="sidebar"'
@@ -20,14 +20,14 @@ class SidebarTemplateEditor(openobject.templating.TemplateEditor):
</ul>
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery('#sharing').click(function() {
jQuery("#sharing").click(function() {
jQuery(this).attr(
'href',
"href",
openobject.http.getURL('/share', {
context: jQuery('#_terp_context').val(),
domain: jQuery('#_terp_domain').val(),
name: jQuery('#_terp_string').val(),
search_domain: jQuery('#_terp_search_domain').val(),
context: jQuery("#_terp_context").val(),
domain: jQuery("#_terp_domain").val(),
name: jQuery("#_terp_string").val(),
search_domain: jQuery("#_terp_search_domain").val(),
}));
});
});
@@ -37,7 +37,7 @@ class SidebarTemplateEditor(openobject.templating.TemplateEditor):
return output
def edit(self, template, template_text):
output = super(SidebarTemplateEditor, self).edit(template, template_text)
output = super(ShareActionEditor, self).edit(template, template_text)
output = self.insert_share_link(output)
return output