Re: Help on cookbook

2005-07-31 Thread N. C. Deepak Ramesh
Hi, Hadn't read the new docs before answering.> Also, once you have become comfortable with this approach you could> add some code such as _get_ingredients (in the Recipe class) and> _get_recipes (in the Ingredients class) for easy access to the related > data.> Ignore above paragraph and look at

Re: Help on cookbook

2005-07-31 Thread N. C. Deepak Ramesh
Hi, > Just give an amount field to the Ingredient: > > class Ingredient(meta.Model): > fields = ( > meta.CharField('name', 'Name', maxlength=64), > meta.CharField('description', 'Description', maxlength=128, > blank=True), > meta.FloatField('amount','Amount', max_digi

Re: Anonymous Session?

2005-07-31 Thread Jacob Kaplan-Moss
On Jul 31, 2005, at 3:36 PM, Chuck Thier wrote: Since there has been no docs on sessions yet, I have been looking through the code to figure out how to use anonymous sessions. The only problem is that it looks like it sets the session object in the response to None if it is an anonymous user, a

Re: Help on cookbook

2005-07-31 Thread Radek Svarz
Just give an amount field to the Ingredient: class Ingredient(meta.Model): fields = ( meta.CharField('name', 'Name', maxlength=64), meta.CharField('description', 'Description', maxlength=128, blank=True), meta.FloatField('amount','Amount', max_digits=5, decimal_places=

Re: Anonymous Session?

2005-07-31 Thread Ksenia Marasanova
2005/7/31, Chuck Thier <[EMAIL PROTECTED]>: > > Since there has been no docs on sessions yet, I have been looking > through the code to figure out how to use anonymous sessions. The > only problem is that it looks like it sets the session object in the > response to None if it is an anonymous us

Anonymous Session?

2005-07-31 Thread Chuck Thier
Since there has been no docs on sessions yet, I have been looking through the code to figure out how to use anonymous sessions. The only problem is that it looks like it sets the session object in the response to None if it is an anonymous user, and I'm not sure what to do at that point. Anyone

Re: Problems with User Auth stuff

2005-07-31 Thread Ksenia Marasanova
Maybe another option would be injecting custom User class? Something like: from myproject.mymodel import Appuser from django.model import auth auth.User = Appuser 2005/7/31, Django <[EMAIL PROTECTED]>: > > Yes, that's how it looks. The session class also has a lot of useful > code, but again i