On Jul 7, 2007, at 2:37 PM, Mathias Gug wrote:

> Hi all,
>
> I'm using Pylons-0.9.5-py2.5.
>
> I've been trying to send a file to an update action with a
> restcontroller (setup with map.resource). However it fails with the  
> error :
> <type 'exceptions.NotImplementedError'>: Action 1 is not implemented
>
> I've created a restcontroller with the command 'paster  
> restcontroller'.
> The form is generated with the following command :
>   h.form(h.url_for('message', id=1), method='put', multipart=True)
>
> The complete template is:
>
>   <% h.form(h.url_for('message'), method='put', multipart=True)%>
>   <% h.file_field('file') %>
>   <% h.submit("Create file") %>
>   <% h.end_form() %>
>
>   <% h.form(h.url_for('message', id=1), method='put',  
> multipart=True)%>
>   <% h.file_field('file') %>
>   <% h.submit("Send file") %>
>   <% h.end_form() %>
>
>   <% h.form(h.url_for('message', id=1), method='put')%>
>   <% h.file_field('file') %>
>   <% h.submit("Send file 2") %>
>   <% h.end_form() %>
>

Funny that you just ran into this, as this is a Routes bug that was  
just reported a few days ago:

http://routes.groovie.org/trac/routes/ticket/55

It's fixed in Routes' trunk:

easy_install -U Routes==dev

--
Philip Jenvey



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to