# HG changeset patch # User Sylvain Thénault # Date 1251367358 -7200 # Node ID 17644247f0ff96c18937c1f230b6e3f2f18384b9 # Parent 3a65f9b3367c7297dc540a53f84e6507cb309892 fix emacs syntaxic colorization diff -r 3a65f9b3367c -r 17644247f0ff web/views/tabs.py --- a/web/views/tabs.py Wed Aug 26 15:01:52 2009 +0200 +++ b/web/views/tabs.py Thu Aug 27 12:02:38 2009 +0200 @@ -130,14 +130,15 @@ # call the set_tab() JS function *after* each tab is generated # because the callback binding needs to be done before # XXX make work history: true - self.req.add_onload(u''' + self.req.add_onload(u""" jQuery('#entity-tabs-%(eeid)s > ul').tabs( { selected: %(tabindex)s }); set_tab('%(vid)s', '%(cookiename)s'); -''' % {'tabindex' : tabs.index(active_tab), +""" % {'tabindex' : tabs.index(active_tab), 'vid' : active_tab, 'eeid' : (entity and entity.eid or uid), 'cookiename' : self.cookie_name}) + class EntityRelationView(EntityView): """view displaying entity related stuff. Such a view _must_ provide the rtype, target and vid attributes :