Re: Cron vs event triggered action

2009-12-14 Thread mateusz.szulc
Have you consider the linux at command instead of cron? Example: echo "touch /home/mateusz/my.name.is.at" | at 02:30 -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To

Re: Parsing/decoding html content from textarea

2009-12-14 Thread mateusz.szulc
Maybe everyone knews about this, but I didn't and searching across the web I found many sophisticated and weird methods to handle html entities. But so far there is a module xml.sax.saxutils, which together with urlib.quote*() and urlib.unquote*() provides every possible conversion/

Re: Parsing/decoding html content from textarea

2009-12-14 Thread mateusz.szulc
Thank you very much, it is excactly what I'm searching. Regards, Mateusz P.S. For other people which have this problem, to get rid with '+' signs instead of spaces, there is a method called urllib.unquote_plus (): >>> urllib.unquote_plus('%3Cp%3E+hello+world+%3C%2Fp%3E') ' hello world ' --

Parsing/decoding html content from textarea

2009-12-14 Thread mateusz.szulc
I have simple form: When submitting " hello world ", browser (firefox) sends something like "%3Cp%3E+hello+world+%3C%2Fp%3E What is the preffered way to decode this string in python/django (maybe built in function or smth)? -- You received this message because you are subscribed to the

How to change default template name for django.views.defaults.page_not_found ?

2009-12-07 Thread mateusz.szulc
>From Django Part 3 tutorial: "The 404 view is also called if Django doesn't find a match after checking every regular expression in the URLconf." The 404 default view in django is defined as: def page_not_found(request, template_name='404.html'): How can I change the value of the template_name