Authentication expiration time

2007-06-16 Thread rtconner
Hello, I'm new to DJango, but have used other frameworks. (http://www.djangoproject.com/documentation/authentication/) I love the fairly complete docs on authentication. I had one question which did not get answered. Is there any concept of login expiration time implemented in the builting

Re: newforms, manytomany, default value.

2007-06-16 Thread Brian Rosner
On 2007-06-05 07:52:51 -0600, larry <[EMAIL PROTECTED]> said: > >> I'm not sure what "a patch in the development tree" means here. Current >> subversion trunk doesn't seem to have anything like that. > > Sorry for not being clear -- I'm (obviously) not familiar with the > mechanism of open

Re: newforms, manytomany, default value.

2007-06-16 Thread David Priest
Lordy, I would dearly *LOVE* for someone to answer your question! On 07-Jun-5, at 6:52 AM, larry wrote: > >> I'm not sure what "a patch in the development tree" means here. >> Current >> subversion trunk doesn't seem to have anything like that. > > Sorry for not being clear -- I'm

Re: mod_python without httpd.conf?

2007-06-16 Thread Graham Dumpleton
On Jun 17, 5:15 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On 20 май, 01:25, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > > > > > On May 19, 9:04 pm, Daniel Ellison <[EMAIL PROTECTED]> wrote: > > > > On Friday 18 May 2007 21:32:33 Graham Dumpleton wrote: > > > > > This will all only

cannot import name User (from django.contrib.auth.models)

2007-06-16 Thread [EMAIL PROTECTED]
I was making an application that included user profiles, and I thought I was done with the first part so I entered an sql command and got this: Ian-Smiths-Computer:~/Sites/matches ismith$ python manage.py sql nest matches.cafe: cannot import name User 1 error found. BEGIN; CREATE TABLE

Re: "bad argument to internal function"

2007-06-16 Thread Graham Dumpleton
We are trying to sort out similar problem over on mod_python list at the moment. Your case is only the second case that has been seen although why they have both popped up only now don't know. Anyway, issue seems to be some subtle bug in req.read() of mod_python which only manifests when certain

Re: template inheritance - {% extends NEXTLOADER %}

2007-06-16 Thread Malcolm Tredinnick
On Sat, 2007-06-16 at 08:02 +, kahless wrote: > hi, > > is there a way to extend a template with the same name, but in another > template loader ? > more specific.. it would be nice if i could customize only specific > blocks of templates by simply adding a new template loader (or another >

Re: rendering fields in newforms

2007-06-16 Thread Malcolm Tredinnick
On Fri, 2007-06-15 at 18:24 -0700, [EMAIL PROTECTED] wrote: > Say we have class MyForm with IntegerField called 'year'. When we > instantiate MyForm, say a = MyForm() we can get it rendered in html > before passing to template - a.as_table(); This will contain all > errors, previously entered

Re: locale support - decimal point character

2007-06-16 Thread Malcolm Tredinnick
On Sat, 2007-06-16 at 21:39 +, schettino72 wrote: > Hello, > >I would like to change the decimal point character from "." to > ",". >"django settings" have several localization options but I couldnt > find for decimal point character. Is it supported? > >I am specially

locale support - decimal point character

2007-06-16 Thread schettino72
Hello, I would like to change the decimal point character from "." to ",". "django settings" have several localization options but I couldnt find for decimal point character. Is it supported? I am specially interested in the admin interface. I know i can use the python locale

Re: mod_python without httpd.conf?

2007-06-16 Thread [EMAIL PROTECTED]
On 20 май, 01:25, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On May 19, 9:04 pm, Daniel Ellison <[EMAIL PROTECTED]> wrote: > > > On Friday 18 May 2007 21:32:33 Graham Dumpleton wrote: > > > > This will all only work if the web site administrator has also set: > > > > AllowOverride FileInfo

Re: 'Session' object does not support item assignment

2007-06-16 Thread Jeremy Dunck
On 6/16/07, Vertigo <[EMAIL PROTECTED]> wrote: > * Are Django sessions only designed to be used through the request > context (and session middleware) ? No, but they're most convenient that way. > * Is there any "easy" snippet of code to do what I want (i.e update a > Session object out of

Out of sync model objects

2007-06-16 Thread Seighin
I have a model similar to the following: class Item(Model): name = CharField() fieldA = CharField(null=True) fieldB = CharField(null=True) class ItemHolderA(Model): item = ForeignKey('Item') class ItemHolderB(Model): item = ForeignKey('Item') Then I attempt

'Session' object does not support item assignment

2007-06-16 Thread Vertigo
Hi, Using the latest SVN revision, I have an issue when manipulating sessions (out of request). The background: My application stores custom user privileges in their sessions (home- cooked version of 'per-object' permissions). When specific conditions are met, I must 'refresh' some user

Re: get subversion revision-number in a django-project

2007-06-16 Thread Udi
Ok. I was trying something similar and I found that getting ant and svn talking nicely was a hassle. I ended up coming up with another solution that I've never heard of anyone else using that I think makes some sense. Instead of the svn version number, I have my ant build script take the

Re: Survey: FileBrowser and FancyUpload

2007-06-16 Thread itsnotvalid
By the way I like the idea of Gmail upload methods too. But a flash plugin could do something like "drag 'n drop" file uploading which, javascript doesn't seem to cut right now. It could be integrated as an option, not a requirement. --~--~-~--~~~---~--~~ You

Re: Survey: FileBrowser and FancyUpload

2007-06-16 Thread Martin Winkler
Hi Patrick, Am Sat, 16 Jun 2007 12:47:46 +0200 schrieb patrickk <[EMAIL PROTECTED]>: > > I usually don´t like the idea of using a js-framework for the > filebrowser. > nevertheless, today I´ve seen this: > http://digitarald.de/project/fancyupload/ I tried it too, and just after finishing

Re: Survey: FileBrowser and FancyUpload

2007-06-16 Thread Thomas Steinacher
I'm -0 on this because it's flash-based, but +1 for using MooTools. tom On Jun 16, 2007, at 12:47 PM, patrickk wrote: > > I usually don´t like the idea of using a js-framework for the > filebrowser. > nevertheless, today I´ve seen this: > http://digitarald.de/project/fancyupload/ > > it´s an

accessing dictionary in a template

2007-06-16 Thread cesco
Hi, I'm using the django-voting application whose method get_votes_in_bulk(object) returns a "votes" dictionary like: {object_id: {''score': score, 'num_votes': num_votes} I'm passing this dictionary as extra_context to a template where I'm also using the regroup tag on theobjects which I pass

accessing dictionary

2007-06-16 Thread cesco
Hi, I'm using the django-voting application whose method get_votes_in_bulk(object) returns a "votes" dictionary like: {object_id: {''score': score, 'num_votes': num_votes} I'm passing this dictionary as extra_context to a template where I'm also using the regroup tag on theobjects which I pass

Survey: FileBrowser and FancyUpload

2007-06-16 Thread patrickk
I usually don´t like the idea of using a js-framework for the filebrowser. nevertheless, today I´ve seen this: http://digitarald.de/project/fancyupload/ it´s an swf/ajax upload-tool for multiple files with progress bar. now, I´d like to hear some opinions on integrating fancyupload with the

Re: get subversion revision-number in a django-project

2007-06-16 Thread Gábor Farkas
Udi wrote: > Mind if I ask why? > i've got the idea from here: http://www.thinkvitamin.com/features/webapps/serving-javascript-fast the idea is that you serve all your media files (js/css/png/jpg) at urls that contain for example the svn version number, like: /media/1432/js/form.js and you

template inheritance - {% extends NEXTLOADER %}

2007-06-16 Thread kahless
hi, is there a way to extend a template with the same name, but in another template loader ? more specific.. it would be nice if i could customize only specific blocks of templates by simply adding a new template loader (or another template directory) and creating a file with the same name as

Re: Sitemap questions (probably dumb ones)

2007-06-16 Thread David Larlet
2007/6/16, John DeRosa <[EMAIL PROTECTED]>: > > David Larlet wrote: > > > > Any thoughts about this implementation? > > I think you could get rid of FakeObject() completely: > > class MainSitemap(Sitemap): > priority = 0.8 > > def items(self): > return ["/", "/archives/",