Passwords in Control Panel

2007-01-18 Thread Steve Wedig
it appears that my user's passwords are stored in plaintext in the control panel. for example, as an admin, i can go through and see their plaintext passwords. is there a way to hide them? Thanks, - Steve --~--~-~--~~~---~--~~ You received this message because yo

Re: Strange Template/Model Error

2006-11-27 Thread Steve Wedig
" in templates. I knew that implicit behavior would upset me someday :P I guess thats why we usually prefer explicit over implicit. - Steve On 11/27/06, Steve Wedig <[EMAIL PROTECTED]> wrote: > Hello, > > I am using multiple inheritance on a model. I'm just subclassing

Strange Template/Model Error

2006-11-27 Thread Steve Wedig
Hello, I am using multiple inheritance on a model. I'm just subclassing Model and subclassing a class that acts like a mixin. The mixin only adds or overrides methods. Anyway, this works fine with the python api, but is causing problems inside a template. When inside a template, I get an error i

Cursor Delete Not Committing

2006-11-16 Thread Steve Wedig
I feel like this is a simple question, yet I haven't been able to solve it at 5am :) I'm trying to delete through a cursor like this: from django.db import models, connection, transaction cursor = connection.cursor() cursor.execute( query ) But it appears to not be committing. I su

Re: Null Query Set

2006-11-04 Thread Steve Wedig
, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > On Fri, 2006-10-27 at 00:06 -0700, Steve Wedig wrote: > > I'm interested in returning a Null (empty) query set. I guess this is > > like the Null Object pattern. So it has to be a QuerySet implements > > the interf

Template Apply

2006-11-04 Thread Steve Wedig
Hello, I've got a list of items that I'm passing to a template. For every item, I'd like to render it as "object" in another template. Is this or something like this possible? it would look something like this... T1 {% for object in object_list %} {% apply "t2.html" object %} {% endfor

Null Query Set

2006-10-27 Thread Steve Wedig
I'm interested in returning a Null (empty) query set. I guess this is like the Null Object pattern. So it has to be a QuerySet implements the interface (.count, .all, etc) that always returns nothing. Does anyone know how to do this? Thanks! - Steve --~--~-~--~~~---~

Re: Model Reuse

2006-10-18 Thread Steve Wedig
oreignKey( Thread ) location = models.ForeignKey( Location) # using the function Location.threads = property( span_table('location', 'thread', LocationThread, Location, Thread) ) so now myLocation.threads returns a query set Best, - Steve On 10/16/06, Steve Wedig <[E

Re: Model Reuse

2006-10-16 Thread Steve Wedig
set = property(thread_set) class GroupThread(models.model): # m-1 relationship thread = models.OneToOneField( Thread ) location = models.ForeignKey( Location) Thanks, Steve On 10/16/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > On Mon, 2006-10-16 at 02:44 -0700, S

Model Reuse

2006-10-16 Thread Steve Wedig
I have a thread model that I would like to reuse in multiple places. So a thread should have no knowledge of where it is contained. I also have a group model and a location model. I would like to have multple threads in a group (1-n reln between group and thread). I would also like threads to app

ChangeManipulator

2006-10-06 Thread Steve Wedig
** Here is the general question ** How can I use a ChangeManipulator to validate a subset of a model's fields. ** Here is the specific situation ** I am using django.contrib.auth.models.User for my user accounts. I would like to create a change/edit form that lets the user change just their email

Re: Any good Python book recommendations?

2006-07-26 Thread Steve Wedig
I learned python by reading o'reilly's learning python over a weekend, and thought it was good introduction. Haven't seen the other intro books. You must have o'reilly's cookbook. It teaches you how to use the language like a ninja. I use o'reilly's nutshell book for quick references, however my

Generic Create with Url Parameters

2006-07-21 Thread Steve Wedig
Hello, This may be a rudimentary question, sorry if is... I would like to use the generic create_object view, but populate a hidden form field with a location_id argument which is extracted from the url. I've tried this url pattern below, but get this error: create_object() got an unexpected key