Re: Uploading Image, Marking a Field as True

2007-06-10 Thread Bryan Veloso
> I think you need to work on your workflow a little more. You will > definitely need to play with views; I'm not sure what you think > signals will acheive. > > You need to think in terms of "what HTML pages can I present to the > user, in what order; and what conditions must be met to move from

Re: FileBrowser v 2.0

2007-06-10 Thread patrick k .
image-editing with picnik is also possible now. see the installation-guide for more details: http://trac.dedhost- sil-076.sil.at/trac/filebrowser/wiki that´s it for this version of the filebrowser - there´ll probably be some minor changes due to user-feedback within the next couple of weeks.

Re: Event based caching

2007-06-10 Thread Henrik Lied
So there's simply no way around this? If I'm sticking with the time based cache, it will probably only be activated for non-authorized users. The problem is that most of the site is restricted to logged in users, so the server load will probably be a bit too high. Has this subject never been touc

implementing admin filters in my own views

2007-06-10 Thread cesco
Hi, I'd like to implement in my own views the filter functionality that is available in the admin by setting class Admin: list_filter = ('field_name1', 'field_name2',) I went through the html of the admin and I kind of understand that it's related to the generation of hidden input fields wh

applying patch

2007-06-10 Thread cesco
Hi, I'm trying to apply the patch given in http://code.djangoproject.com/ticket/3297 using tortoiseSVN on windows but I get the following error message: The line "Index: " was not found Either this is not a diff file or the diff is empty. The file I downloaded and used as patch is: http://code.

Re: applying patch

2007-06-10 Thread Nis Jørgensen
cesco skrev: > Hi, > > I'm trying to apply the patch given in > http://code.djangoproject.com/ticket/3297 > using tortoiseSVN on windows but I get the following error message: > > The line "Index: " was not found > Either this is not a diff file or the diff is empty. > > The file I downloaded and

Re: Including [django-users] in subject line?

2007-06-10 Thread Nimrod A. Abing
Hello, Prior to switching to GMail exclusively, I used to use Outlook or Outlook Express. I had the same problem that you have now, so I understand where you're coming from. I used to use a modified spambayes filter that would modify the Subject field and add a prefix to it (e.g., SPAM, [LISTNAM

Re: Including [django-users] in subject line?

2007-06-10 Thread Michael Trier
Michael, I'd be happy to send you a gmail invite. It's really a good choice when subscribing to newsgroups like these. Let me know. Michael On 6/10/07, Nimrod A. Abing <[EMAIL PROTECTED]> wrote: > > Hello, > > Prior to switching to GMail exclusively, I used to use Outlook or > Outlook Express

Re: tutorial 4, generic views won't load from db?

2007-06-10 Thread Michael Trier
I found that a couple of the changes required stopping and restarting the server to be picked up correctly. Also, if you want I have the polls app working as a demo for an EC2 image I'm using. You can download the code here for a comparison: http://s3.amazonaws.com/eminent-ami/mysite.sql.gz Mi

Re: how to update a translation message in django

2007-06-10 Thread Gilbert Fine
Thanks you and kg. I have not used gettext before. Now I fixed the problem. I found the Chinese translation contained many fuzzy entries. Some translations were even wrong. Is this file is actively maintained? If so, I should contact the maintainer (who is <[EMAIL PROTECTED]>, according to the po

Re: remove inline item

2007-06-10 Thread Michael Trier
You need to provide some view and template code so we can see what you are trying to do. Michael On 6/9/07, Manuel Meyer <[EMAIL PROTECTED]> wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Hey, > > to a model Event i attach some images. But how can I delete images > from an Even

I need to Increasing Link Popularity WITHOUT Exchanging Links

2007-06-10 Thread desiga
Mr.Bill Gates says, Google, Alexa, and Yahoo should be worried about agloco and their business techniques, Get Paid to surf the viewbar and get upto U$.30 Dollar per referral. THE TOPPEST WORLD NO.1 MONEY MAKING ONLINE : http://www.aglocodesign.blogspot.com part time jobs, indian onlin

Re: Pickle model fields

2007-06-10 Thread [EMAIL PROTECTED]
Ok, turns out my code doesn't work. What gets called to convert the data as soon as you get it back from the database? I've got it pickling on the way in, but it doesn't unpickle on the way out unless I call validate manually. --Aaron On May 16, 4:50 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wr

Re: Including [django-users] in subject line?

2007-06-10 Thread Doug Van Horn
You should install this plugin for Firefox. It'll help you with your myriad GMail accounts: https://addons.mozilla.org/en-US/firefox/addon/1320 Of course it may be that you only use IE, so you may need to join that project's mailing list and request them to rewrite it to support your browser o

newforms: setting a field to a value in clean( )

2007-06-10 Thread Bram - Smartelectronix
Hi all, in clean( ) we would like to set a field value. In particular: if there are errors in a signup form, we'd like to delete the passwords to user gave before as to not send unencrypted passwords back... How can we do this? Thanks! - bram --~--~-~--~~~---~

sleep for 30 minutes?

2007-06-10 Thread MartinWinkler
Hi all, I have implemented a captcha solution for django (because the already available approaches did not fit my needs), and came to this problem: An image is created for every captcha-enabled form that is being displayed. Wen the user submits the form, the image is being deleted automatically.

Re: sleep for 30 minutes?

2007-06-10 Thread Phil Davis
On 10/06/07, MartinWinkler <[EMAIL PROTECTED]> wrote: > > Hi all, > > I have implemented a captcha solution for django (because the already > available approaches did not fit my needs), and came to this problem: > > An image is created for every captcha-enabled form that is being > displayed. Wen

Newforms: 'Decimal' object has no attribute 'strip' ?

2007-06-10 Thread ringemup
I can't seem to print a form in a template using the {{form}} shortcut, if the form is bound and contains a DecimalField. I get the error "'Decimal' object has no attribute 'strip'". What am I doing wrong? Here's a barebones command-line example (note: for some reason, I can't create a model on

sqlite3: odd slice behavior

2007-06-10 Thread Forest Bond
Hi, Using the sqlite3 backend, any slice operation on a QuerySet for which the slice does not start at 0, a list is returned instead of a QuerySet, and the slice is not performed in the database, but in Python. Is this expected behavior? The sqlite3 docs indicate that offsets can be given, so I s

MySql Workbench

2007-06-10 Thread CarlFK
I use MySql Workbench for data modeling. It might be a good idea to have it create django's model.py. Has anyone done anything like this? Carl K --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou

Re: sleep for 30 minutes?

2007-06-10 Thread Todd O'Bryan
On Sun, 2007-06-10 at 18:03 +, MartinWinkler wrote: > Hi all, > > I have implemented a captcha solution for django (because the already > available approaches did not fit my needs), and came to this problem: > > An image is created for every captcha-enabled form that is being > displayed. We

Re: sleep for 30 minutes?

2007-06-10 Thread Florian Apolloner
On 10 Jun., 20:03, MartinWinkler <[EMAIL PROTECTED]> wrote: > Hi all, > > I have implemented a captcha solution for django (because the already > available approaches did not fit my needs), and came to this problem: > > An image is created for every captcha-enabled form that is being > displayed.

Re: sleep for 30 minutes?

2007-06-10 Thread MartinWinkler
Hi again, On Jun 10, 10:37 pm, Florian Apolloner <[EMAIL PROTECTED]> wrote: > Why don't you display the image dynamically with django, without > saving it? > Example:http://django-captcha.googlecode.com/svn/trunk/djaptcha/views.py I already took a look at django-captcha, and what I do not like

Re: newforms: setting a field to a value in clean( )

2007-06-10 Thread MartinWinkler
Bram - Smartelectronix schrieb: > in clean( ) we would like to set a field value. In particular: if there > are errors in a signup form, we'd like to delete the passwords to user > gave before as to not send unencrypted passwords back... clean() is a field method, but I guess, you want to chang

Re: sleep for 30 minutes?

2007-06-10 Thread Carl Karsten
MartinWinkler wrote: > Hi again, > > On Jun 10, 10:37 pm, Florian Apolloner <[EMAIL PROTECTED]> wrote: > >> Why don't you display the image dynamically with django, without >> saving it? >> Example:http://django-captcha.googlecode.com/svn/trunk/djaptcha/views.py > > I already took a look at dja

Re: Django DbMigration 0.03 released

2007-06-10 Thread Kent Johnson
Mike H wrote: > Hi all, > > We've just released an update to the django dbmigration project. This > release cleans up the code a little and improves the parsing of SQL > migrations. > > Homepage and downloads at: > http://www.aswmc.com/dbmigration/ The download link is not working (404). Ken

Re: Django DbMigration 0.03 released

2007-06-10 Thread Mike H
Whoops, sorry about that! The download was a .tar.gz instead of a .tgz - all fixed now :) Cheers, Mike Kent Johnson wrote: > Mike H wrote: > >> Hi all, >> >> We've just released an update to the django dbmigration project. This >> release cleans up the code a little and improves the parsin

request.POST.getlist('fieldname') / repeated rows of fields

2007-06-10 Thread David Priest
request.POST returns a QueryDict object for those fields that have the same key. The key appears to be assigned by Django when it magics the form and template into an http response. It seems difficult to get Django to deal with multiple lines on a form, ie. as when creating almost any busi

Re: tutorial 4, generic views won't load from db?

2007-06-10 Thread deerchao
I'm sorry, but what am I supposed to do with the downloaded sql file? Run it angainst my database? On Jun 10, 10:11 pm, "Michael Trier" <[EMAIL PROTECTED]> wrote: > I found that a couple of the changes required stopping and restarting > the server to be picked up correctly. Also, if you want I h

Re: proper and easy way to urlencode unicode string?

2007-06-10 Thread Andrey Khavryuchenko
Malcolm, MT> On Tue, 2007-06-05 at 17:47 +0300, Andrey Khavryuchenko wrote: >> Well, I think here you've missed the point. Python fails *before* >> iriencode - during urlencode. Check the traceback again: MT> Ah, I see. For some reason I forgot to switch the urlencode filter over MT> to u

SSL Redirect causing Firefox Connection Reset

2007-06-10 Thread DouglasPhillips
I've got a really strange problem here. I've tried and tried to work it out, and have gotten nowhere. I copied a customer's site as-is to a new server for development. Everything works as expected on the existing (production) server. On the new development server, the site works as expected und

Re: request.POST.getlist('fieldname') / repeated rows of fields

2007-06-10 Thread SmileyChris
On Jun 11, 1:10 pm, David Priest <[EMAIL PROTECTED]> wrote: > The Admin interface does it. I haven't been able to figure out where > it does it, so I can steal its method... Check out django.utils.datastructures.DotExpandedDict --~--~-~--~~~---~--~~ You received

Re: sleep for 30 minutes?

2007-06-10 Thread MartinWinkler
On Jun 11, 12:17 am, Carl Karsten <[EMAIL PROTECTED]> wrote: > I sense a race condition: > We are only deleting images older than 30 minutes - if a user takes THAT long for a captcha, he has to enter a new captcha. This is desired behaviour. I do not like the whole "delete all old images" all th