Re: Not querying related record on form creation

2007-02-04 Thread Ivan Sagalaev
Adrian Holovaty wrote: > The first option sounds better to me, too. Are you willing to code up a patch? OK. I'll post a follow-up here with the ticket number in a day or two. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Some ideas for Django ;)

2007-02-04 Thread [EMAIL PROTECTED]
On Feb 5, 5:37 pm, Ivan Sagalaev <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > 2a. WSGI support / compatibility -> so WSGI middleware and WSGI apps > > could be integrated with the framework (for example AuthKit with > > openID, pocoo) > > Django is WSGI compliant. You can use WSGI m

Re: Some ideas for Django ;)

2007-02-04 Thread Ivan Sagalaev
[EMAIL PROTECTED] wrote: > 1. Full if support - if/elif/else with python access - It could be > done in the view but making a loop in view and second one in template > isn't a nice solution. I bet you can find such or similar discussion in the archives of this list or django-users. In short -- n

Re: Some ideas for Django ;)

2007-02-04 Thread James Bennett
On 2/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > 1. Full if support - if/elif/else with python access - It could be > done in the view but making a loop in view and second one in template > isn't a nice solution. As far as I know, support for arbitrary Python expressions in templates (wh

Re: Some ideas for Django ;)

2007-02-04 Thread limodou
On 2/5/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I''ve been using Django some time, I've also looked on Pylons and it's > friends :) Django is a nice framework but there are few things I would > want to see in the framework > > 1. Full if support - if/elif/else with python access - It c

Some ideas for Django ;)

2007-02-04 Thread [EMAIL PROTECTED]
I''ve been using Django some time, I've also looked on Pylons and it's friends :) Django is a nice framework but there are few things I would want to see in the framework 1. Full if support - if/elif/else with python access - It could be done in the view but making a loop in view and second one i

Re: Django ORM

2007-02-04 Thread tsuyuki makoto
Hi all. I agree with Benjamin completely. I hate Identity Map and synchronization approach. They break database logic like trigger or view. 2007/2/5, Benjamin Slavin <[EMAIL PROTECTED]>: > > I've also given this some consideration -- I haven't found any > information on this either. > > It would

# 2070 cleanup and review

2007-02-04 Thread [EMAIL PROTECTED]
Remove all files up to 3581- streaming_uploads_and_uploadprogress_middleware_x_progress_id.diff and theese 4065- streaming_uploads_and_uploadprogress_middleware_x_progress_id_windowsfix.diff upload.py middleware.py using-feedparser.diff using-feedparser.2.diff modpyton-ok-needs-fcgi-testing.diff

Re: filesizeformat filter

2007-02-04 Thread vfoley
It was in my my unit tests, instead of properly upload a file, I just set the name to "whatever.pdf", but when I loaded the detail page, Python couldn't find the file, so it raised an OSError. I don't think I can qualify that as a bug. On Feb 3, 4:52 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> w

Re: Django ORM

2007-02-04 Thread Benjamin Slavin
I've also given this some consideration -- I haven't found any information on this either. It would be nice if the DB API could make use of the cache system (memcached) if you attempt the lookup by ID. Synchronization becomes more of a problem... and it certainly removes transactional safety fro

Re: Not querying related record on form creation

2007-02-04 Thread Adrian Holovaty
On 2/3/07, Ivan Sagalaev <[EMAIL PROTECTED]> wrote: > I have a better proposal. We can just defer getting 'choices' for > until 'render' is called. Thus if the field is never displayed > in template it won't hit database. I'm not sure how to do it properly > though... I see two ways now: > > - Tu

Django ORM

2007-02-04 Thread Sergey Kirillov
Greetings, I'd like to ask, why Django ORM has no concept of Identity Map? It is strange for me that if I call get() five times I will get five object instances, instead of five references to a single instance. Was it a design decision? I'm unable to find any discussions of this. Or I'm the firs

Display field name of a related object

2007-02-04 Thread mykdzn
I need to return a queryset, to be serialized for ajax. I have a Store object, which references a State object. State.objects.all() currently returns the state value as the ID field for the State object. But I need it to instead return the l_state Any insight? Thanks Mike See below: ===

Re: Using javascript to edit_in_line on django admin

2007-02-04 Thread Gary Wilson
On Feb 3, 5:04 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Filtering with javascript isn't too much needed, but the edit_inline > with javascript is a cool thing I want to see in django that doesn't > break backward compatibility. As I said, I can make this improvement > on the django ad

newforms form_for_model documentation

2007-02-04 Thread philipp . keller
Hi there The newforms documentation still lacks a paragraph about converting model to forms and posted form data back to models/db. There are some tickets (3247, 3257) waiting for this documentation bit to be written so they can submit a documentation path and become part of the svn trunk. Is

Re: Not querying related record on form creation

2007-02-04 Thread Ivan Sagalaev
James Bennett wrote: > One suggestion that I kind of like is the ability to pass a QuerySet > to 'choices' and, in that case, have it generate the choices from, > say, the id and __str__ of each object in the QuerySet. Then you'll loose a 'blank' choice. Current Field.get_choices does a bit more

Re: unicode issues in multiple tickets (#952, #1356, #3370) and thread about Euro sign in django-users

2007-02-04 Thread Bjørn Stabell
On Feb 1, 4:16 pm, Michael Radziej <[EMAIL PROTECTED]> wrote: > Ivan Sagalaev: > > > Michael Radziej wrote: > >> d) make the database wrapper accept both unicode and bytestrings in > >> the models, but always pass unicode strings to the database backend. Sounds like a reasonable proposal. You ma