Yes, I've been using $: for this.

Another question; I want to be able to upload a file and store it in my database, I'm assuming with the bytea type, and then be able to serve up that file later. I haven't found any examples of how to do this, examples all seem to just store files on the filesystem, generate a unique filename, and then put that filename in the database. I feel like I would like to avoid having a bunch of files cluttering up my drive; am I misguided in this? Is there an inherent disadvantage to storing files in the database?

On 08/07/2013 12:46 AM, Ruben Maher wrote:
Hi Steven,

Have you tried disabling the websafe filter with a colon before the
$:function() name?

Take a look here:


     By default, Templetor uses web.websafe filter to do HTML-encoding.

     >>> render.hello("1 < 2")
     "Hello 1 &lt; 2"

     To turnoff filter use : after $. For example:
The following will not be html escaped.
     $:form.render()

     http://webpy.org/docs/0.3/templetor#filtering
Kind regards,

Ruben


--
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/webpy.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to