Nested Inlines, dynamic forms, templates and all sorts of problems.

2007-10-09 Thread Felix Ingram
Hello all, I've been making great strides with my application since returning from the land of Pylons. Given that the app is all about data entry I've taken the customise-the-admin-app approach to things and made the switch to newforms-admin this morning. So far things are working: data is

Re: Newforms dynamic fields (good to know)

2007-01-25 Thread Felix Ingram
On 25/01/07, Håkan Johansson <[EMAIL PROTECTED]> wrote: > > On 20 jan 2007, at 17:36, [EMAIL PROTECTED] wrote: > > > > Håkan Johansson wrote: > > > >> While working on a complex form using 'newforms' I had some problem > >> with 'initial' data. > >> I have multiple forms using the 'prefix'

Re: Q()s, m2ms and failing queries

2007-01-24 Thread Felix Ingram
Quick reply to myself in case someone is looking through the archives. This seems to be covered in ticket 1801: http://code.djangoproject.com/ticket/1801 It's noted as a 'hard bug'. On 16/01/07, Felix Ingram <[EMAIL PROTECTED]> wrote: > Hello all, > > I've run into a problem whe

Re: Newforms practice (common situation)

2007-01-18 Thread Felix Ingram
Hi Robert, On 18/01/07, Robert <[EMAIL PROTECTED]> wrote: I know newforms are still in development, but maybe there are known practiced on how to manage custom Form. Let's say there's a model: ITEM_TYPE_CHOICES = ( ('new','new'),

Q()s, m2ms and failing queries

2007-01-16 Thread Felix Ingram
Hello all, I've run into a problem when trying to add some simple search functionality to my app. I've got a model with several M2Ms and I'm trying to construct some OR queries using Q(). Here's a simplified example: Model: class Article(models.Model): authors =

Re: Newforms 'preferred practice'

2007-01-12 Thread Felix Ingram
Hi Chris, On 12/01/07, Chris Rose <[EMAIL PROTECTED]> wrote: > Felix Ingram wrote: > > 3. Binding data - I'd like the form to handle editing of an instance. > > I could construct a dictionary of values and pass it to the form as > > per the docs but I'd like to

Re: Newforms 'preferred practice'

2007-01-12 Thread Felix Ingram
Hi Honza, On 12/01/07, Honza Král <[EMAIL PROTECTED]> wrote: > On 1/12/07, Felix Ingram <[EMAIL PROTECTED]> wrote: > > > > Hello all, > > > > I've been playing around with the newforms library and I'd like to > > check that I'm on the right track

Newforms 'preferred practice'

2007-01-12 Thread Felix Ingram
Hello all, I've been playing around with the newforms library and I'd like to check that I'm on the right track. I've got a fairly complicated model that has a few foreign keys and m2m fields. One of the m2m fields references a table with ~130,000 rows so the usual select boxes aren't that

Re: FormGen Script

2007-01-04 Thread Felix Ingram
On 04/01/07, Adrian Holovaty <[EMAIL PROTECTED]> wrote: On 1/4/07, Felix Ingram <[EMAIL PROTECTED]> wrote: > ScaffoldScript is dead; long live FormGen! > Using this script: http://code.djangoproject.com/wiki/FormGenScript > in this manner: python formGen.py -a MyApp -

FormGen Script

2007-01-04 Thread Felix Ingram
ScaffoldScript is dead; long live FormGen! Using this script: http://code.djangoproject.com/wiki/FormGenScript in this manner: python formGen.py -a MyApp -m Category will turn this model: class Category(models.Model): category = models.CharField(maxlength=50, unique=True) createdOn =

Re: [Django-users] how about a subject prefix???

2007-01-03 Thread Felix Ingram
On 03/01/07, Honza Král <[EMAIL PROTECTED]> wrote: if you are using gmail, you can set up a filter to put all django related stuff to a specific label, even skip the inbox so that it wouldn't interfere with your normal mail... just search for django-developers@googlegroups.com in To: field...

Re: Re: Retrieve Password

2006-11-30 Thread Felix Ingram
On 30/11/06, James Bennett <[EMAIL PROTECTED]> wrote: > In general, I think this is a tradeoff we've had to make to have > Django be as useful as it is -- the goal isn't to satisfy *every* case > out of the box, but to satisfy *common* cases out of the box with the > ability to extend things as

Re: Retrieve Password

2006-11-30 Thread Felix Ingram
On 29/11/06, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > > On 11/29/06 12:50 PM, Clint74 wrote: > > I need to send the password to the user(email), but how recover the raw > > password once the database stores in this format: > > You can't; that's the point of hashing it. The right (read:

Re: Click the back button messes me up...

2006-08-17 Thread Felix Ingram
> On 8/17/06, Seth Buntin <[EMAIL PROTECTED]> wrote: > > Can I solve the IE back button issue (pages needing to be refreshed > > with the posted data) with a simple cache system? I encountered this problem with corkd.com's search page. Supposedly it's not possible to fix it (or so says the

Re: Re: VMWare image for running/developing Django

2006-08-16 Thread Felix Ingram
I thought that this thread sounded interesting so I had a go creating several vmware images. The first was an Ubuntu which weighed in at over 500 mb (all sizes are the 'used' portion from df -h), which then stopped working (I think I _may_ have deleted the kernel image while trying to save

[OT] Re: Google-like API keys

2006-08-11 Thread Felix Ingram
On 8/11/06, Jyrki Pulliainen <[EMAIL PROTECTED]> wrote: > > On 8/11/06, Felix Ingram <[EMAIL PROTECTED]> wrote: > > > > On 8/10/06, Jyrki Pulliainen <[EMAIL PROTECTED]> wrote: > > > On 8/10/06, Felix Ingram <[EMAIL PROTECTED]> wrote: >

[OT] Re: Google-like API keys

2006-08-11 Thread Felix Ingram
On 8/11/06, Jay Klehr <[EMAIL PROTECTED]> wrote: > Felix Ingram wrote: > > On 8/10/06, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > >> Just username+randomstring is good. > >> SHA better than md5. > >> > > Choice of hashing algorithm means not

Re: Google-like API keys

2006-08-10 Thread Felix Ingram
On 8/10/06, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > On 8/10/06, hernan43 <[EMAIL PROTECTED]> wrote: > > If I wanted to make a Django app that utilized a custom authenticator > > and my own "API key" what would be the best way to generate unique API > > keys for my app. Would running a md5/sha

Re: Google-like API keys

2006-08-10 Thread Felix Ingram
On 8/10/06, Jyrki Pulliainen <[EMAIL PROTECTED]> wrote: > On 8/10/06, Felix Ingram <[EMAIL PROTECTED]> wrote: > > On 8/10/06, hernan43 <[EMAIL PROTECTED]> wrote: > > > Nowadays(is that a word?) a lot of fancy web services use API keys to > > > al

Re: Password Generator

2006-07-12 Thread Felix Ingram
On 7/12/06, Jyrki Pulliainen <[EMAIL PROTECTED]> wrote: > > On 7/12/06, Felix Ingram <[EMAIL PROTECTED]> wrote: > > > salt = sha.new(str(random.random())).hexdigest()[:5] > > Dunno is this really a developer question, but is there really a point > using sha t

Re: Password Generator

2006-07-12 Thread Felix Ingram
On 7/12/06, Felix Ingram <[EMAIL PROTECTED]> wrote: > On 7/12/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > So whack the following into a script or type it into a interactive session > > import sha, random > raw_password = script though)> > a

Re: Password Generator

2006-07-12 Thread Felix Ingram
On 7/12/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > On Wed, 2006-07-12 at 03:18 +, Scott McCracken wrote: > > I also ran into this problem when trying to create new users in the > > Django admin interface. According to the Django documentation "We've > > added extra security to the

do_html2python and errors.

2006-02-20 Thread Felix Ingram
All, I'm a bit stumped. Being a good little developer I'm following the guidelines for the new admin changes (http://code.djangoproject.com/wiki/NewAdminChanges) and calling 'do_html2python' regardless of whether there are any errors from the user. This clears up one problem I was having where

Custom Form Fields, Validators and Manipulators

2006-02-20 Thread Felix Ingram
All, I'm trying to implement a custom form field similar to the Tagging example. Here's a simplified example of the model I'm using: class Port(meta.model): number = meta.IntegerField() protocol = meta.CharField(maxlength=4) class Application(meta.model): name =