Re: html greater than less than encoding problem

2009-03-23 Thread gl330k
Thank you that was it :) On Mar 23, 5:01 pm, Briel wrote: > Hi. > > It sounds like you have run into the auto escape filter. It basically > converts html tags into something viewable but not html. This is > a protective matter, to protect your site from cross site scripting

Re: html greater than less than encoding problem

2009-03-23 Thread Briel
Hi. It sounds like you have run into the auto escape filter. It basically converts html tags into something viewable but not html. This is a protective matter, to protect your site from cross site scripting attacks, that can take down your site and worse. If you want to display some html from

html greater than less than encoding problem

2009-03-23 Thread gl330k
Hi all, I'm a django newbie. I have a mysql database backend and when I try to output html from the database I'm getting all the html as ampersand + l + t + ; So then when I view the page I'm basically seeing all the html tags. mysql server - 5.1.30 Thoughts? What am I doing wrong? thanks

Re: Greater than Less than

2008-07-02 Thread Scott Moonen
Aah, ok. I think this might work: exclude(number_iregex = r'^(1?(281|832|713|800).*|.{,6})$') That excludes anything that matches your existing pattern or which is exactly six characters or less. Please be sure to test it though as this is off the cuff. :) -- Scott On Wed, Jul 2, 2008 at

Re: Greater than Less than

2008-07-02 Thread mike171562
hey Scott, that worked perfectly thanks On Jul 2, 11:16 am, mike171562 <[EMAIL PROTECTED]> wrote: > Scott, > > Thanks, I'm already using long_distance = > call.exclude(number__iregex=r'^1?(281|832|713|800)') > to filter long distance numbers so, the new regex would be > > something like

Re: Greater than Less than

2008-07-02 Thread mike171562
Scott, Thanks, I'm already using long_distance = call.exclude(number__iregex=r'^1?(281|832|713|800)') to filter long distance numbers so, the new regex would be something like iregex=r'^1?(281|832|713|800)^.{7,}') does that look right? On Jul 2, 11:04 am, "Scott Moonen" <[EMAIL PROTECTED]>

Re: Greater than Less than

2008-07-02 Thread Scott Moonen
Mike, you might try this: call.filter(number__regex = r'^.{7,}') That uses a regular expression that matches strings of length 7 characters or more. -- Scott On Wed, Jul 2, 2008 at 11:59 AM, mike171562 <[EMAIL PROTECTED]> wrote: > > hello, >I am working on a web app that pulls call

Greater than Less than

2008-07-02 Thread mike171562
hello, I am working on a web app that pulls call logs from a database and displays them. I am working with the greater than and less than functions to filter out phone numbers less than 7 digits long i.e. internal extensions. When I use something like call.filter(number__gte=7) however,