equal
deleted
inserted
replaced
18 from rql.utils import rqlvar_maker |
18 from rql.utils import rqlvar_maker |
19 |
19 |
20 from logilab.common.decorators import cached |
20 from logilab.common.decorators import cached |
21 from logilab.common.deprecation import obsolete |
21 from logilab.common.deprecation import obsolete |
22 |
22 |
23 from logilab.mtconverter import html_escape |
23 from logilab.mtconverter import xml_escape |
24 |
24 |
25 from cubicweb.dbapi import DBAPIRequest |
25 from cubicweb.dbapi import DBAPIRequest |
26 from cubicweb.common.mail import header |
26 from cubicweb.common.mail import header |
27 from cubicweb.common.uilib import remove_html_tags |
27 from cubicweb.common.uilib import remove_html_tags |
28 from cubicweb.utils import SizeConstrainedList, HTMLHead |
28 from cubicweb.utils import SizeConstrainedList, HTMLHead |
503 - 'append' to append the generated HTML to the node's content |
503 - 'append' to append the generated HTML to the node's content |
504 """ |
504 """ |
505 url = self.build_url('view', rql=rql, vid=vid, __notemplate=1, |
505 url = self.build_url('view', rql=rql, vid=vid, __notemplate=1, |
506 **extraparams) |
506 **extraparams) |
507 return "javascript: loadxhtml('%s', '%s', '%s')" % ( |
507 return "javascript: loadxhtml('%s', '%s', '%s')" % ( |
508 nodeid, html_escape(url), replacemode) |
508 nodeid, xml_escape(url), replacemode) |
509 |
509 |
510 # urls/path management #################################################### |
510 # urls/path management #################################################### |
511 |
511 |
512 def url(self, includeparams=True): |
512 def url(self, includeparams=True): |
513 """return currently accessed url""" |
513 """return currently accessed url""" |