EmailField with widget TextInput and attrs takes max_length from another field.

2007-02-23 Thread Georgi Stanojevski
Hello, I'm trying the code bellow and I'm getting unexpected results with newforms widgets. I'm doing something wrong or is this for a ticket? f2 and it's field should have max_length=10 not max_length=30 or maybe not? ### from django import newforms as forms from django.newforms.widgets impor

Re: choosing ajax framework (for my projects) :)

2007-03-10 Thread Georgi Stanojevski
limodou напиша: > You can see an example at : http://limodou.51boo.com Your forms(I tried user registration) don't give any feedback while they are being submited that's really, really bad usability. :) When you do something with ajax it's really important to give feedback to the user that some

Re: Using custom tags inside custom tags

2007-03-19 Thread Georgi Stanojevski
Filipe Correia напиша: > {% ifgreaterthan items|length list_limit %} > See all the records. > {% endifgreaterthan %} > > Using {% list_limit %} prints it's value fine but somehow, when used > in the context of another tag, it's value isn't resolved. Prehaps you could try setting a context vari

Re: custom newform error text

2007-04-05 Thread Georgi Stanojevski
Calumet напиша: > I use newform. How can I redefine error text for each field? Can I do > this without redefining Form clean_xxx functions? If you don't want to redefine the form methods you could make a "translation" and use that. Copy django/conf/locale/en/ to, for example, django/conf/locale

Re: Form newforms change password advice

2007-04-05 Thread Georgi Stanojevski
Trey напиша: > I am trying to create a change password form, the unique thing about a > change password form is that you have to be logged in and do a lookup > to wherever you're storing users. > My question is: How can I get the userId out of the session for the > logged in user to attempt to v

Re: quick syntax question: if/or

2007-04-05 Thread Georgi Stanojevski
[EMAIL PROTECTED] напиша: > Is it possible to check for multiple items in that initial if > statement? For example: > > if species.range or species.habitat or species.behavior > do some stuff > endif > > > It seems that this should b

Re: about newforms

2007-04-09 Thread Georgi Stanojevski
Christian Hoppner напиша: > I have noticed that the newforms documentation really lacks a lot so far. Not > to say it's useless, but it's not enough to teach me how to use it. > > I have already decided to manually generate the two forms I'll need for my > current project. So that's not the qu

Re: new forms - processing the form without rebuilding the entire view

2007-04-16 Thread Georgi Stanojevski
Tipan напиша: > Thanks xav, I thought that the answer might involve both caching and > Ajax but I wasn't sure how. I'm not familiar with either so I'll need > to go through the documentation. Do you know where I can find some > good examples of using these? http://www.b-list.org/weblog/2006/08/0

Re: Vote to support dreamhost mod_python

2007-05-04 Thread Georgi Stanojevski
Horst Gutmann напиша: >> Has far as I know you cannot run mod_python applications as different >> >> https://panel.dreamhost.com/?tree=home.sugg&category=Software%20Installations&search=mod_python > > Exactly my reason why I won't vote for this. Dreamhost's FastCGI setup > (and Python set

Re: loading Template Tags

2007-05-14 Thread Georgi Stanojevski
badger17 напиша: > At the moment I can only get it load tags from the current app, ie the > one in which the template is being rendered, or from > django.templatetags in the django install location. Is there a way to > make it load tags for example from a different app? > > I have written an app

Re: cyrillic text garbled if used as question in polls example

2006-12-11 Thread Georgi Stanojevski
Anton Daneika напиша: > playing with example polls application. This resulted in a bunch of question > marks on the view page, instead of the expected "Как дела?" poll question, > which was in Cyrillic. > My firefox character encoding is set to UTF-8; > the following command: > $ env | grep -i ut

Re: Edit user info

2006-12-23 Thread Georgi Stanojevski
[EMAIL PROTECTED] : a bit more in the way of profile options, but I'm having trouble getting the form to properly update the basic user info. user_manipulator_data = User.ChangeManipulator(request.user.id) I had a similar problem yesterday. I thought the automatic ChangeManip

Re: XMLHttpRequest - HttpResponseRedirect - Issue

2007-01-02 Thread Georgi Stanojevski
Alagu Madhu : I am facing a problem in login screen using XMLHttpRequst sending the data to the controller.controller is getting the value through request.POST. but its not redirecting the same. if result[0]: return HttpResponseRedirect("/main/") else: return Http

Re: passing arguments to the login_required decorator

2007-02-07 Thread Georgi Stanojevski
Mike H напиша: > I am using the login_required decorator form > django.contrib.auth.decorators, but I want to override the second > argument which specified which url it should redirect to if the user is > not logged in. It's not messy to write your own. login_required only uses user_passes_test