On May 27, 4:56 pm, Dan <[email protected]> wrote:
> Hello Massimo and others-
>
> I just upgraded from version 1.62 to 1.63 and tried to get the CSV and
> JSON output to work, and ran into a few small issues that I thought
> could be fixed. It works, after a bit of tweaking.
>
> As suggested, I copied the contents of my app's folder to the new
> version's tree to perform the upgrade. Is it better to ask the new
> version to create a whole new app and then selectively copy files
> over?
>
> Then I copied these template files from /applications/welcome/views/
> but they do not show up in the admin/default/design/app web page for
> my app:
> generic.json
> generic.rss
> generic.xml
> And in fact when I tried to use the web interface to create a new
> view, it insisted on appending a ".html" extension even though I
> didn't want it to be there for a file called "generic.csv". Should
> this be changed to allow some additional extensions now?

You need to upgrade admin. run web2py with --upgrade=yes
or
> cd application/admin
> tar zxvf ../../admin.w2p

> Also I didn't find an example "generic.csv" template in the welcome
> app. But there is a function that looks like it's just a place holder
> in /gluon/serializers.py called csv() - is that something that's
> already being worked on?

yes we are thinking about it.
The fact is that there is no generic way to serialize a dict() into
csv.
There are already two ways for python to serve csv (@service.csv)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to