[web2py] Re: XML response

2012-12-14 Thread Charis
/index.xml') On Thursday, December 13, 2012 5:39:54 PM UTC+1, Charis wrote: I have managed to setup an xml response through index.xml. How do I set the default view for only the particular controller to be the index.xml file instead of the index.html? Thank you, Charis On Thursday, 13

[web2py] XML response

2012-12-13 Thread Charis
Hi all, I would like to ask how I can generate an XML response to the views instead of html (index.xml instead of index.html) Thank you, Charis --

[web2py] Re: XML response

2012-12-13 Thread Charis
I have managed to setup an xml response through index.xml. How do I set the default view for only the particular controller to be the index.xml file instead of the index.html? Thank you, Charis On Thursday, 13 December 2012 15:22:47 UTC, Niphlod wrote: Plenty of ways: - you code

[web2py] Re: Problem when trying to upload a file in web2py 1.90.4

2010-12-22 Thread Charis
but when i try to submit a file i get the following error: (the problem seems to be in dal.py at line 4141 where path == '' or path.endswith('/') ) File /home/charis/Desktop/test/gluon/dal.py in store at line 4141 if path: pass elif self.uploadfolder

[web2py] Re: Problem when trying to upload a file in web2py 1.90.4

2010-12-22 Thread Charis
the uploadfolder. uf=os.path.join(request.folder,'uploads') form = SQLFORM.factory(Field('email','string'),Field('data','upload',uploadfolder= uf)) Massimo On Dec 22, 4:49 pm, Charis charalambos.chrysosto...@gmail.com wrote: I define the db using: db = DAL('sqlite://db.db

[web2py] Problem when trying to upload a file in web2py 1.90.4

2010-12-19 Thread Charis
I have the following error message when i try to upload a file in web2py 1.90.4. This feature was working fine for me with the previews versions. Traceback (most recent call last): File /home/charis/Desktop/Dropbox/BioSP_v0.6/gluon/restricted.py, line 188, in restricted exec ccode