Re: marksafe

2009-08-25 Thread Daniel Roseman
On Aug 25, 2:07 pm, luca72 wrote: > Hello i have this: > errore = """ >                     { alert('test_js')}; >                     """ > return mark_safe(errore) > I get this error : AttributeError: 'SafeString' object has no > attribute 'status_code' > can you help me to write the correct on

Re: marksafe

2009-08-25 Thread luca72
Thanks now it works Luca On 25 Ago, 15:12, Daniel Roseman wrote: > On Aug 25, 2:07 pm, luca72 wrote: > > > Hello i have this: > > errore = """ > >                     { alert('test_js')}; > >                     """ > > return mark_safe(errore) > > I get this error : AttributeError: 'SafeStrin

Re: MarkSafe and widget rendering "/" disapeared

2008-12-15 Thread Malcolm Tredinnick
On Mon, 2008-12-15 at 06:22 -0800, coulix wrote: > Hello Djangonauts, > I have a custom widget to create a kind of group list which ommits the > last "/" at the end of an input field. > Making html validation to fail. > > The important code is here: > >rendered_cb = cb.render(name, option_v