Re: Username Blacklist

2009-03-17 Thread P M
why don't you use ABSOLUTE_URL_OVERRIDES = { 'auth.user': lambda o: "/*user*/%s/" % o.username, } so username will not collide with application name !!! Greetings. Puneet On Tue, Mar 17, 2009 at 3:14 PM, Andrew Turner wrote: > > Just for the record, I have created the following class (subc

Re: Django and IIS 7

2009-03-26 Thread P M
IronPython is not CPython , i will be amazed if these two works identically ... On Thu, Mar 26, 2009 at 2:54 PM, Adi Sieker wrote: > > Hi, > > On 26.03.2009, at 14:21, Sergey Petrov wrote: > > > > > I've blown my brains away, trying to make django work under IIS7 on > > Windows Server 2008. > >

Re: File upload: how to validate file type

2009-03-28 Thread P M
servus, there are various ways to check, but best will be to use Python-libmagic interface... it did worked well for me .. mit freundliche Grüß On Sat, Mar 28, 2009 at 10:16 PM, Torsten Bronger < bron...@physik.rwth-aachen.de> wrote: > > Hallöchen! > > I'd like to ensure that people only upload

Re: File upload: how to validate file type

2009-03-28 Thread P M
tip :) libmagic python interface also provide a option to you to feed in stream/part of chunk... so hack that simple interface and you are done ;) greetings, Puneet On Sat, Mar 28, 2009 at 10:37 PM, Torsten Bronger < bron...@physik.rwth-aachen.de> wrote: > > Hallöchen! > > P M w