Re: Better Support for static file serving via django

2007-12-13 Thread Thomas Guettler
Am Mittwoch, 12. Dezember 2007 21:34 schrieb SmileyChris: > On Dec 13, 9:19 am, "Robert Coup" <[EMAIL PROTECTED]> > > wrote: > > On 13/12/2007, Thomas Güttler <[EMAIL PROTECTED]> wrote: > > > How can you check that only authorized users can access > > > some files? > > Thomas, you might want to tr

Re: more info when serializing

2007-12-13 Thread [EMAIL PROTECTED]
On 18 Nov, 11:25, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Sat, 2007-11-17 at 16:21 -0500, Bryan L. Fordham wrote: > > So, say I have a model something like this: > > > class Bar(models.Model): > > user = models.ForeignKey(User) > > name = models.CharField(maxlength=50) > > d

Re: Django weekly updates?

2007-12-13 Thread Empty
> > On 12/8/07, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > > > > > The same is true of a weekly Django update message. There is > > > absolutely nothing stopping you from writing a weekly blog message and > > > publishing it somewhere. > > Just noticed this post. I'm glad to see that you'r

Re: How do you set a cookie without a response? Like this

2007-12-13 Thread David Cramer
Upon further discussion -- there may be an easier solution is just overloading the setattr on request.COOKIES and setting those in a response middleware. On Dec 13, 3:25 pm, David Cramer <[EMAIL PROTECTED]> wrote: > Oh, for the record, authenticate() still won't work for us, because > now we don'

Re: How do you set a cookie without a response? Like this

2007-12-13 Thread David Cramer
Oh, for the record, authenticate() still won't work for us, because now we don't have the request object :P On Dec 13, 3:22 pm, David Cramer <[EMAIL PROTECTED]> wrote: > We ran into the problem lately, that we wanted to integrate our new > authentication services into an authentication backend. T

Re: Cache Invalidation Proposal -- CachedModel

2007-12-13 Thread David Cramer
IRC would be good -- I'm always in the Django channel while at work (dcramer, dcramer_, zeeg, or zinor). But yes, you are correct. We don't care if d is added until it's expired. With model or object dependancy though, that could be handled. On Dec 13, 10:16 am, "Jeremy Dunck" <[EMAIL PROTECTED]

How do you set a cookie without a response? Like this

2007-12-13 Thread David Cramer
We ran into the problem lately, that we wanted to integrate our new authentication services into an authentication backend. Too bad for us that we can't set cookies or responses inside of authenticate(). Here's a potential solution that we are considering implemented. This is untested code, I jus

Get Rich Quick Scams Revealed

2007-12-13 Thread Naeem
Get Rich Quick Scams Revealed The number of "Get-Rich-Quick" Scams being marketed on the internet seems to be growing exponentially with each passing day. Fortunately for you, I have reviewed and researched the most popular programs and what I have found is astonishing. http://doiop.com/g73621

Re: #5894 patch provided, anything else I need to do

2007-12-13 Thread [EMAIL PROTECTED]
Ok, I now have http://dpaste.com/27948/ however it still doesn't work because choices print the complete path and not just the relative one. I think this may be as good as possible though. On Dec 11, 6:37 pm, "Todd O'Bryan" <[EMAIL PROTECTED]> wrote: > Use __file__ to get the path to the test c

Re: Cache Invalidation Proposal -- CachedModel

2007-12-13 Thread Marty Alchin
On Dec 13, 2007 1:16 PM, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > ...Perhaps IRC or chat would be good here? Just make sure you post the results of said chat so the rest of us can see. :) -Gul --~--~-~--~~~---~--~~ You received this message because you are subsc

Re: Cache Invalidation Proposal -- CachedModel

2007-12-13 Thread Jeremy Dunck
On Dec 13, 2007 11:14 AM, David Cramer <[EMAIL PROTECTED]> wrote: ... > > Since inserts are undetected by the cache in the basic proposal, are > > you accepting only short timeouts? I imagine with your traffic, even > > small windows of caching have big benefits. I guess the per-manager > > tim

Re: Hacking the admin

2007-12-13 Thread jacmkno
I have built a similar funcionality for per-row permissions, but it is still a bit ugly. For now it does the following: 1. A new button called "permissions", appears on every object instance you edit. 2. When you clic that button it brings you to a list of permissions for the entry (new model in t

Re: Cache Invalidation Proposal -- CachedModel

2007-12-13 Thread David Cramer
> > We briefly discussed adding row-level dependencies (this key is > > dependent on x, y and z keys. It would be handled by storing an extra > > object in memory that stored the dependencies for the object. A simple > > reverse mapping if you will. > > The intention here would be to handle insert

Re: Cache Invalidation Proposal -- CachedModel

2007-12-13 Thread Jeremy Dunck
On Dec 8, 2007 10:29 PM, David Cramer <[EMAIL PROTECTED]> wrote: > > We briefly discussed adding row-level dependencies (this key is > dependent on x, y and z keys. It would be handled by storing an extra > object in memory that stored the dependencies for the object. A simple > reverse mapping if

Re: Models over SQL views - disable regeneration of model

2007-12-13 Thread Alex Myodov
Ok, I see your point (I tried to do the "just apply and commit it" patch myself, but if the committers have nothing strong against some manual editing of the code before submission, that's even better). Let's stuck with some more-or-less sane name (and let it be "create_db_schema" for the time bei

Watch you shape, Mobile phone application

2007-12-13 Thread Sohail Ahmed Shaikh
Have you ever wondered if you're at a healthy weight for your height? You're working out and eating right but are you really in shape? iBody Calculator, can help you to know for sure, Watch your weight! And analyze your health, strength, and fitness using iBody Calculator. iBody Calculator let

Re: Django weekly updates?

2007-12-13 Thread [EMAIL PROTECTED]
On Dec 10, 11:08 pm, "Rob Hudson" <[EMAIL PROTECTED]> wrote: > On 12/8/07, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > > > The same is true of a weekly Django update message. There is > > absolutely nothing stopping you from writing a weekly blog message and > > publishing it somewhere. > >