Re: Preventing Google Web Accelerator from prefetching

2005-11-17 Thread Simon Willison
On 16 Nov 2005, at 23:10, Jacob Kaplan-Moss wrote: However... the concept is. Developers shouldn't be blocking GWA; we should be programming web apps that conform to expected HTTP behavior. GWA *only* issues GET requests, and if an app modifies data based on a GET, then the app should b

Access request object in model's hooks and display methods

2005-11-17 Thread plisk
Hi there. Seems like its not possible to access request object in hooks like pre_save and display methods(those are listed in list_display) ? Is it supposed to be like this by design ? If so then hardly its very convinient to use in real applications. For example, i would like to get server addre

Re: admin/base_site.html

2005-11-17 Thread stava
Thanks a million, this is what I was looking for. Cheers /stava

Re: DRY templates

2005-11-17 Thread Pedro Furtado
2005/11/15, oggie rob <[EMAIL PROTECTED]>: > > Holy moly! That's exactly it! Thanks for the change - I had been > looking for a while and my head was starting to swim! > How can I get the verbose_name of the field? {{ field.verbose_name }} doesn't work. Checked the source and it seams FormField

Re: Django/lighttpd weirdness

2005-11-17 Thread Nebojša Đorđević - nesh
On 17-11-2005, at 6:02, James Bennett wrote: I'm working on writing instructions for deploying Django at TextDrive, and so I'm using the Django/lighttpd_FCGI instructions here: https://simon.bofh.ms/cgi-bin/trac-django-projects.cgi/wiki/ DjangoFcgiLighttpd But I'm seeing something extremely

Re: Access request object in model's hooks and display methods

2005-11-17 Thread limodou
2005/11/17, plisk <[EMAIL PROTECTED]>: > > Hi there. > > Seems like its not possible to access request object in hooks like > pre_save and display methods(those are listed in list_display) ? Is it > supposed to be like this by design ? If so then hardly its very > convinient to use in real applica

Re: Access request object in model's hooks and display methods

2005-11-17 Thread plisk
limodou wrote: > 2005/11/17, plisk <[EMAIL PROTECTED]>: > > > > Hi there. > > > > Seems like its not possible to access request object in hooks like > > pre_save and display methods(those are listed in list_display) ? Is it > > supposed to be like this by design ? If so then hardly its very > > co

Re: DRY templates

2005-11-17 Thread Adrian Holovaty
On 11/17/05, Pedro Furtado <[EMAIL PROTECTED]> wrote: > How can I get the verbose_name of the field? > > {{ field.verbose_name }} doesn't work. Checked the source and it seams > FormField class and its widgets only provides the field_name. You're correct: FormField classes have no knowledge of mo

Re: Access request object in model's hooks and display methods

2005-11-17 Thread Adrian Holovaty
On 11/17/05, plisk <[EMAIL PROTECTED]> wrote: > Seems like its not possible to access request object in hooks like > pre_save and display methods(those are listed in list_display) ? Is it > supposed to be like this by design ? If so then hardly its very > convinient to use in real applications. Y

Re: DRY templates

2005-11-17 Thread Pedro Furtado
> You're correct: FormField classes have no knowledge of model objects. > All they know about is the basics for displaying a form. If you want > to pass the verbose_name of a model object, you'll need to create some > sort of custom data structure and pass it to your template. Thanks -- Pedro Fu

Re: Preventing Google Web Accelerator from prefetching

2005-11-17 Thread Jeremy Dunck
On 11/17/05, Simon Willison <[EMAIL PROTECTED]> wrote: > HTTP purity is a nice ideal, but until the HTML form model contains > better support for calling HTTP verbs that reflect what you are > actually trying to do it just isn't practical in every case. It's > those edge cases that make GWA's beha

Re: templates & content-elements

2005-11-17 Thread patrick kranzlmüller
i´d like to do something similar to TemplaVoila (used within Typo3). i don´t like Typo3 at all, but their concept of "Futuristic Template Building" is really good, i think. if anyone has an idea of how to implement this functionality with django, please let me know. patrick

Re: Preventing Google Web Accelerator from prefetching

2005-11-17 Thread Luke Plant
On Thu, 17 Nov 2005 00:21:29 + Richie Hindle wrote: > > > [Luke] > > I know some people want to use links (i.e. HTTP GET requests) which > > have side effects, which is Bad. > > [Jacob] > > if an app modifies > > data based on a GET, then the app should be considered broken. > > "Logout

Re: templates & content-elements

2005-11-17 Thread Jacob Kaplan-Moss
On Nov 17, 2005, at 10:21 AM, patrick kranzlmüller wrote: i´d like to do something similar to TemplaVoila (used within Typo3). i don´t like Typo3 at all, but their concept of "Futuristic Template Building" is really good, i think. if anyone has an idea of how to implement this functionality

Re: templates & content-elements

2005-11-17 Thread Eugene Lazutkin
http://typo3.org/doc.0.html?&tx_extrepmgm_pi1[extUid]=1332&cHash=d739966bdd http://www.mcuniverse.com/TemplaVoila_-_Cheat_Sheet.1221.0.html http://www.mcuniverse.com/TemplaVoila_-_Public_Demo.1708.0.html "Jacob Kaplan-Moss" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] On Nov 17

Django and Ruby on Rails framework roundtable: Dec. 3 in Chicago

2005-11-17 Thread Adrian Holovaty
Hi all, If you're in the area, you should come to Snakes and Rubies, a meeting of Python and Ruby Web programmers on Dec. 3 in Chicago. David Heinemeier Hansson of Ruby on Rails will be presenting his creation, and I'll be presenting Django. We'll have spirited discussion, answer questions, etc.

Re: Access request object in model's hooks and display methods

2005-11-17 Thread Ian Holsman
couldn't we do something similar to get_active_site() call on the sites table? that way people who need the 'request' object could just call it and it wouldn't impact the api of anything else? On 11/18/05, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 11/17/05, plisk <[EMAIL PROTECTED]> wrot

Re: Django and Ruby on Rails framework roundtable: Dec. 3 in Chicago

2005-11-17 Thread David Ascher
On 11/17/05, Adrian Holovaty <[EMAIL PROTECTED]> wrote: Hi all,If you're in the area, you should come to Snakes and Rubies, a meetingof Python and Ruby Web programmers on Dec. 3 in Chicago.David Heinemeier Hansson of Ruby on Rails will be presenting his creation, and I'll be presenting Django. We'l

Re: Dictionary lookups in templates?

2005-11-17 Thread JA
I'll give that a whirl, thank you. J

Re: Django and Ruby on Rails framework roundtable: Dec. 3 in Chicago

2005-11-17 Thread Clint Ecker
Will the event be recorded, either audio or video? ClintOn 11/17/05, Adrian Holovaty <[EMAIL PROTECTED]> wrote: Hi all,If you're in the area, you should come to Snakes and Rubies, a meetingof Python and Ruby Web programmers on Dec. 3 in Chicago.David Heinemeier Hansson of Ruby on Rails will be pre

Re: templates & content-elements

2005-11-17 Thread patrick k
eugene: thanks for the links. it´s really hard for me to explain what i want - i tried it yesterday with a code-example, but didn´t get an answer (so i thought i try a different approach and relate to templavoila, although that might give the wrong impression). basic idea: building a site with o

Re: Django and Ruby on Rails framework roundtable: Dec. 3 in Chicago

2005-11-17 Thread Eugene Lazutkin
 Will the event be webcasted? "Clint Ecker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]...Will the event be recorded, either audio or video?Clint On 11/17/05, Adrian Holovaty <[EMAIL PROTECTED]> wrote: Hi all,If you're in the area, you should come to Snakes a

Re: Django and Ruby on Rails framework roundtable: Dec. 3 in Chicago

2005-11-17 Thread Jacob Kaplan-Moss
On Nov 17, 2005, at 3:22 PM, Clint Ecker wrote: Will the event be recorded, either audio or video? I'm trying to get my hands on a DV cam to record video... If I can get one I'll certainly tape it. Jacob

Using umlauts

2005-11-17 Thread Steffen Glückselig
Using an umlaut in a form-field of the admin-interface causes the validator to complain about 'only letters, numbers and underscores' being allowed. Is there a way to enable umlauts in form-fields? best regards

Re: Django and Ruby on Rails framework roundtable: Dec. 3 in Chicago

2005-11-17 Thread Jacob Kaplan-Moss
On Nov 17, 2005, at 4:13 PM, Jacob Kaplan-Moss wrote: I'm trying to get my hands on a DV cam to record video... If I can get one I'll certainly tape it. There are times when working at a newspaper is a big bonus :) Turns out I can borrow at least one and possibly two DV cams, so baring an

Re: Using umlauts

2005-11-17 Thread Jacob Kaplan-Moss
On Nov 17, 2005, at 4:43 PM, Steffen Glückselig wrote: Using an umlaut in a form-field of the admin-interface causes the validator to complain about 'only letters, numbers and underscores' being allowed. Is there a way to enable umlauts in form-fields? Sounds like you're using a SlugField or a

Re: Django and Ruby on Rails framework roundtable: Dec. 3 in Chicago

2005-11-17 Thread Ian Maurer
> Full information is here: > > http://snakesandrubies.com/event/ Is the site written in Django or Rails? Just curious :P

Re: Django and Ruby on Rails framework roundtable: Dec. 3 in Chicago

2005-11-17 Thread Jeremy Dunck
On 11/17/05, Ian Maurer <[EMAIL PROTECTED]> wrote: > > > Full information is here: > > > > http://snakesandrubies.com/event/ > > Is the site written in Django or Rails? Rails: http://snakesandrubies.com/event/asdasd

Re: Editing inline object individually

2005-11-17 Thread Qi Cheng
> For the specific case of editing an inline_edited object seperately in > its own admin form, (which I believe the original poster would be > satisfied with as a stop gap measure), this should already work in > new-admin AFAIK. The foreign key with edit_inline=whatever is rendered > as a foreign

how to run code on backgroud automatic in django

2005-11-17 Thread Fat
I start a project in django. It need to run some code on backgroud automatic to handle some data. any good suggestion ,or just run it manual