[TurboGears] Re: validating user submitted html

2007-06-05 Thread Christopher Arndt
iain duncan schrieb: Any idea what I need to do to get the js included given that I am passing out a rendered widget? For JS/CSS widgets to be rendered the y must be either included in the dict returned from the controller directly, or they must be attached to the javascript/css attribute of a

[TurboGears] Re: validating user submitted html

2007-06-05 Thread Christopher Arndt
Christopher Arndt schrieb: In fact, any method with a retrieve_javascript/retrieve_css method should do. ^^ s/method/object/ *wanders-off-in-search-for-coffee* Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[TurboGears] Re: validating user submitted html

2007-06-04 Thread iain duncan
I'm not sure what's up, but the js is definitely not getting included in the widget. Would the fact that I am using the tinymce inside a custom widget change things? I have a class that inherits from TableForm and uses tinymce inside the fields list. When I view the widget it looks just

[TurboGears] Re: validating user submitted html

2007-06-04 Thread iain duncan
On Sat, 2007-02-06 at 21:25 -0700, asm wrote: Part of the joy of widgets is that they co-ordinate the inclusion of Javascript and CSS automagically. Thanks for the doc. I've been following it however, and I don't see any difference from a text area in my widget when I view the form. Is

[TurboGears] Re: validating user submitted html

2007-06-04 Thread Krys Wilken
Unfortunately my code is not online yet. I have not had time to prep it for release. (Or even work on it much at all, for that matter). Florent's TurboBlog code looks good, though. I think you can accomplish your goals by using it as an example. Best of luck, Krys On Sunday 3 June 2007

[TurboGears] Re: validating user submitted html

2007-06-04 Thread iain duncan
On Mon, 2007-04-06 at 23:48 -0400, Krys Wilken wrote: Unfortunately my code is not online yet. I have not had time to prep it for release. (Or even work on it much at all, for that matter). Florent's TurboBlog code looks good, though. I think you can accomplish your goals by using it

[TurboGears] Re: validating user submitted html

2007-06-04 Thread Krys Wilken
asm's document (http://sureseam.webfactional.com/tgdocs/) does a good job of explaining the entity conversion and the use of TinyMCE. I do not know if a doc that combines everything using a validator. It should not be too difficult to adapt asm's code to run in a validator though. Someway,

[TurboGears] Re: validating user submitted html

2007-06-03 Thread Florent Aide
You could parse the input with elementree or beautifulsoup and then filter out all tags except the ones you want. You could wrap all that logic up in a validator. This is what i did for my blog. Not sure if it is the most efficient, but it's a sure bet more maintainable than

[TurboGears] Re: validating user submitted html

2007-06-02 Thread asm
Have you thought of using TinyMCE? With help from this group I got it going and it is quite neat. There are a few wrinkles to be smoothed out when using it; and I wrote up a HOWTO which you can find here: http://sureseam.webfactional.com/tgdocs/ Happy hunting A On Jun 1, 10:36 pm, iain

[TurboGears] Re: validating user submitted html

2007-06-02 Thread Krys Wilken
Hi asm, Good doc. :) TinyMCE is indeed a decent way to let used input HTML. However, I do not believe it functions well as a validator, as you can still enter any tags in the raw HTML window, or if you turn JavaScript off. Combining TinyMCE for UI, with an actual validator (for

[TurboGears] Re: validating user submitted html

2007-06-02 Thread iain duncan
On Sat, 2007-02-06 at 08:29 -0400, Krys Wilken wrote: Hi asm, Good doc. :) TinyMCE is indeed a decent way to let used input HTML. However, I do not believe it functions well as a validator, as you can still enter any tags in the raw HTML window, or if you turn JavaScript off.

[TurboGears] Re: validating user submitted html

2007-06-02 Thread iain duncan
On Sat, 2007-02-06 at 03:46 -0700, asm wrote: Have you thought of using TinyMCE? With help from this group I got it going and it is quite neat. There are a few wrinkles to be smoothed out when using it; and I wrote up a HOWTO which you can find here:

[TurboGears] Re: validating user submitted html

2007-06-02 Thread iain duncan
On Fri, 2007-01-06 at 23:00 -0400, Krys Wilken wrote: Hi there, You could parse the input with elementree or beautifulsoup and then filter out all tags except the ones you want. You could wrap all that logic up in a validator. This is what i did for my blog. Not sure if it is the

[TurboGears] Re: validating user submitted html

2007-06-02 Thread iain duncan
On Fri, 2007-01-06 at 23:00 -0400, Krys Wilken wrote: Hi there, You could parse the input with elementree or beautifulsoup and then filter out all tags except the ones you want. You could wrap all that logic up in a validator. This is what i did for my blog. Not sure if it is the

[TurboGears] Re: validating user submitted html

2007-06-02 Thread asm
Part of the joy of widgets is that they co-ordinate the inclusion of Javascript and CSS automagically. Thanks for the doc. I've been following it however, and I don't see any difference from a text area in my widget when I view the form. Is there someplace that I should be including some

[TurboGears] Re: validating user submitted html

2007-06-01 Thread Krys Wilken
Hi there, You could parse the input with elementree or beautifulsoup and then filter out all tags except the ones you want. You could wrap all that logic up in a validator. This is what i did for my blog. Not sure if it is the most efficient, but it's a sure bet more maintainable than