Re: #6375 -- Class Based Views: Opinions on commit plan

2010-10-15 Thread Ian Lewis
On Sat, Oct 16, 2010 at 1:31 PM, Yo-Yo Ma wrote: > Łukasz Rekucki, > > Thanks for the reply. I wasn't being cynical when I said: > > > If the API for this feature was not so intrinsically > > obscure, it might be a more obvious choice to include it right away, > > What

Re: Smart extends

2010-10-15 Thread J . Pablo Martín Cobos
Hi SmileChris and Lukasz: It's true that with this proposal the load of templates depends of the order of on which the templates are loaded. But it's is something that the project manager should controlled. But the usual is that you only overwrite only one time a template (although it work with

Re: Smart extends

2010-10-15 Thread J . Pablo Martín Cobos
2010/10/15 Andy McCurdy > We are in complete agreement ;) > Thanks for the clarification ;) > > 2010/10/15 J. Pablo Martín Cobos > >> Hi Andrew, >> >> >> I think you agree with me in all. Thank you very much for your long >> e-mail. I think you have

Re: Smart extends

2010-10-15 Thread SmileyChris
On Oct 16, 8:35 am, Łukasz Rekucki wrote: > Which "x.html" should be chosen ? the one from admin or the one from > external app "A" ? Both are valid uses. There is a dangerous > temptation to say "next that would be loaded after this", but that > depends on loaders and

Re: Smart extends

2010-10-15 Thread Andy McCurdy
We are in complete agreement ;) 2010/10/15 J. Pablo Martín Cobos > Hi Andrew, > > I think you agree with me in all. Thank you very much for your long e-mail. > I think you have explain the problem better than me. To use the urls for > overwrite the templates "leads terrible

Re: Smart extends

2010-10-15 Thread Andy McCurdy
2010/10/15 Łukasz Rekucki > 2010/10/15 J. Pablo Martín Cobos : > > > > Really the problem comes when we reuse a application: from other people, > > from Django (i.e. django.contrib.admin), or even my own that we reuse in > > some projects. Usually you want

Re: #6375 -- Class Based Views: Opinions on commit plan

2010-10-15 Thread Łukasz Rekucki
On 15 October 2010 21:40, Yo-Yo Ma wrote: > My strong suggestion (again prima facie to this discussion) is: > > Do not include something as controversial into the trunk, especially > with the justification of, "There are quite a few sets of class-based > views out

Re: Smart extends

2010-10-15 Thread SmileyChris
On Oct 16, 2:09 am, Andrew Godwin wrote: > So, from what I can work out, this is a proposal for an {% extends %} > tag which allows you to extend from the parent template of the same name Just to chime in, I like this proposal. IMO: If a designer wants to override a third

Re: parse xml

2010-10-15 Thread Horst Gutmann
I so hope this response was the result of some translation gone wrong. If not, you shouldn't really expect anyone to answer your (highly off- topic) question with that attitude... On Oct 15, 7:56 pm, kostia wrote: > Give me the answer and do what you want. > > On Oct

Re: #6375 -- Class Based Views: Opinions on commit plan

2010-10-15 Thread Yo-Yo Ma
My strong suggestion (again prima facie to this discussion) is: Do not include something as controversial into the trunk, especially with the justification of, "There are quite a few sets of class-based views out there". If the API for this feature was not so intrinsically obscure, it might be a

Re: Smart extends

2010-10-15 Thread J . Pablo Martín Cobos
Hi Dougal, Of course this have many advantages for front end developers and designers. But please we must not do "full copy and paste of the original template". This is the finallity of the project. The template code is nearly so important as view code. Regards, -- Pablo Martín 2010/10/15

Re: Smart extends

2010-10-15 Thread J . Pablo Martín Cobos
Hi Andrew, I think you agree with me in all. Thank you very much for your long e-mail. I think you have explain the problem better than me. To use the urls for overwrite the templates "leads terrible looking URL", it's really true. If you don't think you agree with me in all, please tell me.

Re: Smart extends

2010-10-15 Thread J . Pablo Martín Cobos
Hi Harro, This templatetag is different that the one you implemented. I don't feel dirty :-P Regards, -- Pablo Martín 2010/10/15 Harro > I wrote an extends tag once that changed the extending template based > on a get variable.. > The idea was that we could then simply

Re: Smart extends

2010-10-15 Thread J . Pablo Martín Cobos
Hi luke, Thanks in advance, but of course I have seen this wiki, but I had wrotten in my first e-mail I needed and wanted more funcionallity. I think we have to change a little the inheritance of templates, this wiki is from 2008, so I think it's possible to add new funcionality. It would be

Re: Smart extends

2010-10-15 Thread J . Pablo Martín Cobos
Hi Andrew, I think that in my first e-mail I didn't explain well the problem. Really it was a difficult for me explain it even in spanish with my workmate, but at the end they all agree with me. Really the problem comes when we reuse a application: from other people, from Django (i.e.

Re: Smart extends

2010-10-15 Thread Dougal Matthews
I can see one main use case. Front end developers and designers would be able to extend templates without worrying about python code changes or doing a full copy and paste of the original template (if they can find it.) Dougal On 15 Oct 2010 14:10, "Andrew Godwin" wrote: >

Re: parse xml

2010-10-15 Thread kostia
Give me the answer and do what you want. On Oct 15, 8:45 pm, Alex Gaynor wrote: > On Fri, Oct 15, 2010 at 1:38 PM, kostia wrote: > > I have xml file: > > > > > >        5 > > > > > I want to get the value of n (= 5) inside my python

Re: parse xml

2010-10-15 Thread Alex Gaynor
On Fri, Oct 15, 2010 at 1:38 PM, kostia wrote: > I have xml file: > > >        5 > > > I want to get the value of n (= 5) inside my python program, I'm > doing this: > > import xml.dom.minidom > from xml.dom.minidom import Node > doc =

parse xml

2010-10-15 Thread kostia
I have xml file: 5 I want to get the value of n (= 5) inside my python program, I'm doing this: import xml.dom.minidom from xml.dom.minidom import Node doc = xml.dom.minidom.parseString("boolean_width.xml") n = doc.getElementsByTagName("root")[0].firstChild.nodeValue.strip()

Re: #6375 -- Class Based Views: Opinions on commit plan

2010-10-15 Thread Russell Keith-Magee
On Fri, Oct 15, 2010 at 1:09 AM, Justin Lilly wrote: > Because you asked, I think this sounds like a great idea. > > When you have decided you like the API for create/update > views, please send another email to the list, so that we > know we've hit a stable API to write

Re: Smart extends

2010-10-15 Thread Andy McCurdy
On Fri, Oct 15, 2010 at 6:09 AM, Andrew Godwin wrote: > So, from what I can work out, this is a proposal for an {% extends %} tag > which allows you to extend from the parent template of the same name (so it > looks back in the list of possible templates, and picks the one

Re: Smart extends

2010-10-15 Thread Harro
I wrote an extends tag once that changed the extending template based on a get variable.. The idea was that we could then simply get a part of the website in a lightbox popup without all the "outer content". I removed it afterwards and we did it properly.. it felt dirty. On Oct 15, 3:29 pm, Luke

Re: Template preprocessing (to improve template rendering speed, en page filesize)

2010-10-15 Thread Brendan Smith
Jonathan, I don't know if this is the proper place to post this, unless you are looking to have it added to core. I have a feeling core contributors are going to chime in and say this more than likely belongs the in django-users mailing list. When you post it there though, I for one think this

Template preprocessing (to improve template rendering speed, en page filesize)

2010-10-15 Thread Jonathan S
Hi all, At my current job, I spent a week of programming on a preprocessor for Django templates. In short, what it does is compiling the templates in a more compact version, dropping all useless information and preprocessing templatetags where possible. The Apache benchmark tools showed a page

Re: #6375 -- Class Based Views: Opinions on commit plan

2010-10-15 Thread Andrew Godwin
On 15/10/10 14:52, Ian Lewis wrote: On Fri, Oct 15, 2010 at 2:06 PM, Russell Keith-Magee > wrote: However, this isn't a decision we need to make right now. If we land what we have, we can fiddle with it until the RC comes out;

Django/Python developers- Multiple Positions in Atlanta

2010-10-15 Thread Jack
Good Morning! I am looking for Django/Python developers to join the team of one our clients working on one of the largest Django apps EVER - scaled to serve web,mobile, and more for 100+ prominent newspaper, TV, and radio sites! There are 3-5 job openings and they are looking for someone who can

Re: #6375 -- Class Based Views: Opinions on commit plan

2010-10-15 Thread Ian Lewis
On Fri, Oct 15, 2010 at 2:06 PM, Russell Keith-Magee < russ...@keith-magee.com> wrote: > > > There is this crazy idea im my mind to mark CBVs API as > > "Beta" in 1.3 and put a big warning in the docs that it can change in > > backwards-incompatible was in 1.4. A precedence to this would be > >

Re: Smart extends

2010-10-15 Thread Andrew Godwin
On 15/10/10 13:41, J. Pablo Martín Cobos wrote: Hi, I'm a Django developer since more or less 3 years. Some time ago I had the need for the extends templatetag to have more funcionality. The funcionality I mean is that a template can extends from "itself". I'm going to try to explain it

Re: #6375 -- Class Based Views: Opinions on commit plan

2010-10-15 Thread Russell Keith-Magee
On Fri, Oct 15, 2010 at 8:30 PM, David De La Harpe Golden wrote: > On 15/10/10 07:11, Russell Keith-Magee wrote: > >> We're happy to entertain design suggestions, but only if they're >> enlightened by the extensive discussions that have proceeded the >>

Smart extends

2010-10-15 Thread J . Pablo Martín Cobos
Hi, I'm a Django developer since more or less 3 years. Some time ago I had the need for the extends templatetag to have more funcionality. The funcionality I mean is that a template can extends from "itself". I'm going to try to explain it better, so I will put Django admin as an example,

Re: #6375 -- Class Based Views: Opinions on commit plan

2010-10-15 Thread David De La Harpe Golden
On 15/10/10 07:11, Russell Keith-Magee wrote: > We're happy to entertain design suggestions, but only if they're > enlightened by the extensive discussions that have proceeded the > implementation that we have. You're free to say "as_view() sucks", but > unless you are proposing an *specific*

Re: #6375 -- Class Based Views: Opinions on commit plan

2010-10-15 Thread Sebastian Pawlus
Maybe not important but makes bit harder to find in it trac :) Russ there is a typo in subject, ticket id is #6735, not 6375. On Fri, Oct 15, 2010 at 8:11 AM, Russell Keith-Magee wrote: > On Fri, Oct 15, 2010 at 1:59 PM, Yo-Yo Ma wrote: >> I