Re: Problems with FileFields/ImageFields

2007-11-17 Thread Thomas Steinacher
Hello, Maybe the snippet which I created today can help you. It displays a delete checkbox next to the : http://www.djangosnippets.org/snippets/469/ However, I'm not sure if it will work in admin. tom On 16.11.2007, at 18:12, Marc Garcia wrote: > > There are a couple of things about FileFie

Re: Templates: short comments {##} eats text

2007-04-26 Thread Thomas Steinacher
But then it should be at least mentioned in the documentation that this tag works only on a single line and will cause unexpected results when used on multiple lines (or better: raise an exception when using multiple lines). Thomas On Apr 26, 2007, at 9:46 PM, James Bennett wrote: > > On

Re: Templates: short comments {##} eats text

2007-04-26 Thread Thomas Steinacher
On Apr 26, 2007, at 4:40 PM, tonnzor wrote: > > This feature is demanded and it is easy to implement w/o side effects. > We should do it. +1 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" g

Re: newforms: compound or nested forms

2007-03-09 Thread Thomas Steinacher
+1 - Sub forms and form lists are great and IMHO very common. Please submit the patch. On Mar 9, 11:18 am, "Jeroen van Dongen" <[EMAIL PROTECTED]> wrote: > Apart from the SubForm "field" I've also created a FormList "field" > which takes a form definition, a min_count and a max_count which > allo

Re: Proposal: Root view

2007-02-19 Thread Thomas Steinacher
Hello, What is the current status of the ROOT_VIEW setting? Are there any plans to implement this? I am +1 on this, because it would allow me to use one Django instance for multiple subdomains, without wasting system ressources. Also, this is more flexible than e.g. a HostURLResolver (see h

newforms: Dynamic forms using JavaScript

2007-02-15 Thread Thomas Steinacher
Hello, I created a small library called "dynamicforms" (based on newforms) that allows you to edit multiple instances of an object simultaneously. It also provides a JavaScript link that allows you to add another instance of the object without having to reload the page. Take a look at it:

Re: Is this group moderated, or is it a bug with google groups?

2007-01-26 Thread Thomas Steinacher
This is funny. Now it seems to work. It didn't work for months. tom On Jan 26, 2007, at 6:30 PM, Thomas Steinacher wrote: > > Yeah, google groups sucks. Using my gmail.com account it sometimes > takes up to three days until a message appears. I also couldn't post > t

Re: Is this group moderated, or is it a bug with google groups?

2007-01-26 Thread Thomas Steinacher
Yeah, google groups sucks. Using my gmail.com account it sometimes takes up to three days until a message appears. I also couldn't post to the list using a non-gmail account. It says that I'm not subscribed to the list, but I am. tom On Jan 26, 2007, at 7:49 AM, medhat wrote: > > So many

newforms: Creating a Widget with multiple HTML form elements

2006-12-27 Thread Thomas Steinacher
TYPES])) class ContactInfoField(forms.Field): widget = ContactInfoWidget def __init__(self, required=True, widget=None, label=_('Contact info')): forms.Field.__init__(self, required, widget, label) def clean(self, value): print value return value Thomas Steinacher

newforms: rendering radio fields separately

2006-12-25 Thread Thomas Steinacher
opt }}{% endfor %} What do you think? Thomas Steinacher P.S.: I sent this mail earlier but it didn't appear in the mailing list for some reason... And google doesn't let me post using my e-mail client :-( --~--~-~--~~~---~--~~ You received thi

newforms:

2006-12-25 Thread Thomas Steinacher
) all radio items are rendered in a list and I can't insert anything between them. I'd like to be able to do something like this: {{ form.radio_options.1 }}: {{ form.foo }} {{ form.radio_options.2 }}: {{ form.bar }} What do you think? Th

Bug in documentation

2006-11-09 Thread Thomas Steinacher
Hello, I'm posting it here because Akismet is blocking my ticket. Can't you use captchas instead of a stupid spam detector? Session.objects.get_object() should be Session.objects.get() On http://www.djangoproject.com/documentation/sessions/#using-sessions-out-of-views it says: {{{ >>> from dj

Re: Database race conditions when using multiple processes

2006-10-17 Thread Thomas Steinacher
Michael Radziej wrote: > It seems you need to spend more thoughts on multi user issues > within your application. It's easy to fall for that in the > beginning, but you need to deal with concurrent access. You must > be aware for all transactions what impact other transactions can > have. There is

Re: Database race conditions when using multiple processes

2006-10-17 Thread Thomas Steinacher
James Bennett wrote: > On 10/16/06, gabor <[EMAIL PROTECTED]> wrote: > > would you use something in the db? (from what i know about transactions > > (very little :), they "solve" the potential conflicts by simply > > reporting an error-condition to one of the "writers", so then he has to > > retry

Re: Database race conditions when using multiple processes

2006-10-16 Thread Thomas Steinacher
gabor wrote: > Thomas Steinacher wrote: > > I already included > > "django.middleware.transaction.TransactionMiddleware" in my > > MIDDLEWARE_CLASSES (as described on > > http://www.djangoproject.com/documentation/transactions/#tying-transactions-to-

Re: Database race conditions when using multiple processes

2006-10-16 Thread Thomas Steinacher
On Oct 16, 2006, at 8:46 PM, gabor wrote: > > What, if two Django processes transfer money from account A to account > > B simultaneously? > > these situations are (afaik) handled using transactionssimply start > a transaction at the beginning, and commit/rollback at the end... I already incl

Database race conditions when using multiple processes

2006-10-16 Thread Thomas Steinacher
Hello, I was recently using the get_or_create method and noticed that it added an entry twice into my database in very rare cases, because it complained later that "get() returned more than one ___ -- it returned 2!". This problem didn't occur when using the development server. My question is: I