I think it is fixed in trunk now. Please try it. On Tuesday, 31 December 2013 04:42:22 UTC-6, Rahul wrote: > > Hi All, > I am getting below exception under web2py 2.8.2 when I am exporting > the smartgrid in HTML format (SmartGrid attribute used csv=True) . > > *Steps*: Try to export a table (smartGrid) data in csv format, it works > fine, later try to export it in HTML and it shows below ticket. > > > *Browser*: Chrome, Win7 > <type 'exceptions.AttributeError'> 'list' object has no attribute 'xml' > Versionweb2py™Version 2.8.2-stable+timestamp.2013.11.28.13.54.07PythonPython > 2.7.5: C:\Python27\python.exe (prefix: C:\Python27)Traceback > > 1. > 2. > 3. > 4. > 5. > 6. > 7. > 8. > 9. > 10. > 11. > 12. > 13. > 14. > > Traceback (most recent call last): > File "D:\Web2py\web2py\gluon\restricted.py", line 217, in restricted > exec ccode in environment > File "D:/Web2py/web2py/applications/BBOnline/controllers/default.py" > <http://admin/default/edit/BBOnline/controllers/default.py>, line 7994, in > <module> > File "D:\Web2py\web2py\gluon\globals.py", line 372, in <lambda> > self._caller = lambda f: f() > File "D:/Web2py/web2py/applications/BBOnline/controllers/default.py" > <http://admin/default/edit/BBOnline/controllers/default.py>, line 1517, in > ticket_list > details=False) > File "D:\Web2py\web2py\gluon\sqlhtml.py", line 2194, in grid > raise HTTP(200, oExp.export(), **response.headers) > File "D:\Web2py\web2py\gluon\sqlhtml.py", line 3201, in export > return '<html>\n<head>\n<meta http-equiv="content-type" > content="text/html; charset=UTF-8" />\n</head>\n<body>\n%s\n</body>\n</html>' > % (self.rows.xml() or '') > AttributeError: 'list' object has no attribute 'xml' > > > Please suggest > > Rahul > > > >
-- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.