equal
deleted
inserted
replaced
1 # copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
1 # copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
3 # |
3 # |
4 # This file is part of CubicWeb. |
4 # This file is part of CubicWeb. |
5 # |
5 # |
6 # CubicWeb is free software: you can redistribute it and/or modify it under the |
6 # CubicWeb is free software: you can redistribute it and/or modify it under the |
13 # FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more |
13 # FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more |
14 # details. |
14 # details. |
15 # |
15 # |
16 # You should have received a copy of the GNU Lesser General Public License along |
16 # You should have received a copy of the GNU Lesser General Public License along |
17 # with CubicWeb. If not, see <http://www.gnu.org/licenses/>. |
17 # with CubicWeb. If not, see <http://www.gnu.org/licenses/>. |
18 """xbel views |
18 """xbel views""" |
19 |
19 |
20 """ |
|
21 __docformat__ = "restructuredtext en" |
20 __docformat__ = "restructuredtext en" |
22 _ = unicode |
21 _ = unicode |
23 |
22 |
24 from logilab.mtconverter import xml_escape |
23 from logilab.mtconverter import xml_escape |
25 |
24 |
28 from cubicweb.web.views.xmlrss import XMLView |
27 from cubicweb.web.views.xmlrss import XMLView |
29 |
28 |
30 |
29 |
31 class XbelView(XMLView): |
30 class XbelView(XMLView): |
32 __regid__ = 'xbel' |
31 __regid__ = 'xbel' |
33 title = _('xbel') |
32 title = _('xbel export') |
34 templatable = False |
33 templatable = False |
35 content_type = 'text/xml' #application/xbel+xml |
34 content_type = 'text/xml' #application/xbel+xml |
36 |
35 |
37 def cell_call(self, row, col): |
36 def cell_call(self, row, col): |
38 self.wview('xbelitem', self.cw_rset, row=row, col=col) |
37 self.wview('xbelitem', self.cw_rset, row=row, col=col) |