Re: weird problem regarding crud coming into the request

2006-08-06 Thread Ian Holsman
On 07/08/2006, at 9:49 AM, Malcolm Tredinnick wrote:Hey Ian,On Mon, 2006-08-07 at 09:28 +1000, Ian Holsman wrote: this problem has me stumped.. and i have no idea why this ishappening. [...] for some reason every once and a while it thinks basepath is anothercompletly different (but valid) URLeg /a

Re: weird problem regarding crud coming into the request

2006-08-06 Thread Malcolm Tredinnick
Hey Ian, On Mon, 2006-08-07 at 09:28 +1000, Ian Holsman wrote: > this problem has me stumped.. and i have no idea why this is > happening. [...] > > for some reason every once and a while it thinks basepath is another > completly different (but valid) URL > eg /aggy/tag/play/ > which I'm guessin

weird problem regarding crud coming into the request

2006-08-06 Thread Ian Holsman
this problem has me stumped.. and i have no idea why this is happening.i have a function which calculates a context variable based on the request.pathin this example, base is hard-coded to  "popular/"and the request.path is  "/aggy/popular/" I then calculate basepath ala basepath = request.path[:re

Re: bug in django.http.parse_file_upload?

2006-08-06 Thread Todd O'Bryan
On Aug 6, 2006, at 4:04 PM, Ivan Sagalaev wrote: > Todd O'Bryan wrote: >> But aren't backslashes legal characters in unix-like OSes, so that >> the filename will get truncated if it has a backslash in it? > > You're right. But it's better to have nice filenames from Windows > clients in most case

Re: bug in django.http.parse_file_upload?

2006-08-06 Thread Ivan Sagalaev
Todd O'Bryan wrote: > But aren't backslashes legal characters in unix-like OSes, so that > the filename will get truncated if it has a backslash in it? You're right. But it's better to have nice filenames from Windows clients in most cases with a rare occasion of truncated filenames uploaded

bug in django.http.parse_file_upload?

2006-08-06 Thread Todd O'Bryan
Near the bottom of the parse_file_upload function, there's: # IE submits the full path, so trim everything but the basename. # (We can't use os.path.basename because it expects Linux paths.) filename = name_dict['filename'][name_dict['filename'].rfind("\\")+1:] But aren't backslashes legal chara

Re: Email address as username

2006-08-06 Thread John Sutherland
Hi Bjorn, On a recent project I used e-mail addresses to log users in, it got a bit messy, but I created a new Backend [1] which was almost identical to the existing auth backend [2], but took and e-mail address and password. I also wrote custom logins [3], but I think that was for a diff

Re: Model inheritance redux

2006-08-06 Thread Bjørn Stabell
Joseph & Malcom, thanks for the comments. Just wanted to make sure I could stand my ground in the face of Rails-istas :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this gr

Email address as username

2006-08-06 Thread Bjørn Stabell
Hi, We'd like to use the email address as the username, but @'s not allowed in usernames. I was just wondering if there's a reason why usernames are restricted to alphanumeric characters only? We could, of course, just store the email address with @'s substituted with some other alphanumeric ch