On 12/5/06, James Bennett <[EMAIL PROTECTED]> wrote:
> Now, I'm pretty picky about my markup, and I'm certainly willing to go
> to unusual lengths to get it just the way I want it, but it'd be
> awfully nice if there were some way to get HTML-style output from
> newforms without having to manually
James Bennett wrote:
> Now, I'm pretty picky about my markup, and I'm certainly willing to go
> to unusual lengths to get it just the way I want it, but it'd be
> awfully nice if there were some way to get HTML-style output from
> newforms without having to manually subclass all the widgets and
>
Ivan Sagalaev wrote:
>
> Since all these things happily work in browsers the only difference
> between "/>" and the rest is that it is not DTD-valid HTML 4.01.
In fact I'm wrong here... I just checked that W3C's validator doesn't
object to ""s. This is a valid HTML 4.01:
http://www.w3.or
On 11/28/06, Jyrki Pulliainen <[EMAIL PROTECTED]> wrote:
>
>
> On 11/28/06, John Sutherland <[EMAIL PROTECTED]> wrote:
> >
> > While this is MySQL fulltext specific, it may be of use when you start
> > tinkering with the Django code:
> >
> http://www.mercurytide.com/knowledge/white-papers/django-fu
Lakin Wecker wrote:
> as_dl() gets a +1 from me. I've used definition lists for forms and
> prefer it over tables. :)
Maybe there needs to be an easy hook for people to specify their own way of
laying a form out. It seems the as_ methods are gonna keep growing and growing.
--
Lach
Personal: h
On 12/4/06, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote:
>
> I'm taking this to django-dev for more discussion; it'll get seen by more the
> right people there.
>
> Thoughts, anyone?
Ok; here's my thoughts.
1. Introduction
~~~
Consider the following pseudo-model:
class Book(Model):
On 12/4/06, DavidA <[EMAIL PROTECTED]> wrote:
>
> Would I have to call queryset.groupby(account) three times: once for
> count(), once for sum(quantity) and once for sum(total_pnl)?
I hadn't even considered having a multi-parameter tuple-returning
"sum"; I was ok with either calling groupby thric
On 12/5/06, Lachlan Cannon <[EMAIL PROTECTED]> wrote:
> Lakin Wecker wrote:
> > as_dl() gets a +1 from me. I've used definition lists for forms and
> > prefer it over tables. :)
>
> Maybe there needs to be an easy hook for people to specify their own way of
> laying a form out. It seems the as_ m
Hi, all.
I have a following error when i try to display an object list in the
admin panel:
"TypeError at /admin/report/code/
float argument required"
My model:
class Code(models.Model):
tarif= models.FloatField(_('Tarif'), decimal_places=2, max_digits=3)
class Admin:
On 12/5/06, Ivan Sagalaev <[EMAIL PROTECTED]> wrote:
> In fact I'm wrong here... I just checked that W3C's validator doesn't
> object to ""s. This is a valid HTML 4.01:
>
> "http://www.w3.org/TR/html4/strict.dtd";>
>
> Test
>
>
>
> So even "invalidness" is not a point. What
James Bennett wrote:
> So I've been poking around in the newforms code, and it appears that
> the pre-defined widgets will be producing XHTML-style output.
I had the same thought but I wrote a quick test with an HTML 4 strict
doc-type, put an input tag in it like this: , and it was still valid.
James Bennett wrote:
> Unfortunately, I don't really have a good proposal for how to handle
> this, except maybe to further break down the Widget API to include
> 'as_html' and 'as_xhtml'. Any ideas?
build up the output using a light-weight DOM with a nice Python-level
syntax, and serialize it
On 12/5/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote:
> If XHTML-style tags are valid in HTML 4 strict, then I don't see a
> point in creating a separate output format for each widget.
They are valid but have a completely different meaning which browsers
don't interpret correctly; in HTML4, the
James Bennett wrote:
> They are valid but have a completely different meaning which
(most)
> browsers don't interpret correctly; in HTML4, the closing slash is a
> form of SGML SHORTTAG syntax, and '' in HTML4 is meant to be
> interpreted as a 'br' element followed by a literal greater-than
On 12/5/06, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
> full details:
>
> http://www.cs.tut.fi/~jkorpela/html/empty.html
Also, there is a valid problem here; if I produce HTML4, and just say
"it validates, I don't care if it's correct", then my HTML will work
in browsers, but actual SGML parsers (
On 12/5/06, Ivan Sagalaev <[EMAIL PROTECTED]> wrote:
> The question is where to stop. Pickiness may lead further to having an
> option to omit quotes around attribute values, have uppercase tag names,
> omit end tags of etc... This is all working HTML (even valid by DTD).
Yup. And in fact, I do
On 12/5/06, James Bennett <[EMAIL PROTECTED]> wrote:
> On IRC a moment ago, Jacob suggested an 'html4' template filter which
> would just strip trailing slashes from empty tags; I'd be happy with
> that (and willing to put in some time to implement it), provided we
> advertise clearly that the Dja
James Bennett wrote:
> There's a real-world difference there. You may say that nobody's ever
> used a real SGML parser on HTML4, but I actually have (in fact, I once
> ran into a situation where it was the only way to find a bug that the
> standard W3C validator settings couldn't catch), and I kn
James Bennett wrote:
> Yup. And in fact, I do that (quite deliberately).
Nice to meet a like-minded person :-)
> I'm just asking for a simple way to get form inputs without trailing
> slashes
As you said the problem is how to make it simple enough... What about a
middleware that seeing 'text/h
On 12/5/06, Ivan Sagalaev <[EMAIL PROTECTED]> wrote:
> In the near future I think The Right Thing would be to use a real HTML
> parser for such things. There were many messages on WHATWG list from
> people writing such tools in many languages including Python:
> http://code.google.com/p/html5lib/
On 12/1/06, Gábor Farkas <[EMAIL PROTECTED]> wrote:
> what about the following change?:
> > if not isinstance(output, basestring):
> > -return str(output)
> > +try:
> > +return str(output)
> > +except UnicodeEncodeError:
> > +
Hi, I'm a Spanish native speaker from Chile. I use django in
productions systems and I've seen the po files. Some msgid's are not
translated and I want to help with that. Also, there's an es_AR but
not es_CL, I'd like to help with that to :-)
is ok with you?
--
http://www.advogato.org/perso
James Bennett wrote:
> Well... define "near future" ;)
When the library will be usable.
> Whenever HTML5-the-specification is finished and
> HTML5-the-cross-browser-implementation is available, then yeah,
> that'll work.
You don't have to wait for this because html5lib would work with
existing
2006/12/5, Mario <[EMAIL PROTECTED]>:
>
> Hi, I'm a Spanish native speaker from Chile. I use django in
> productions systems and I've seen the po files. Some msgid's are not
> translated and I want to help with that. Also, there's an es_AR but
> not es_CL, I'd like to help with that to :-)
>
>
Adrian Holovaty wrote:
> On 12/1/06, Gábor Farkas <[EMAIL PROTECTED]> wrote:
>> what about the following change?:
>>> if not isinstance(output, basestring):
>>> -return str(output)
>>> +try:
>>> +return str(output)
>>> +except UnicodeEnc
Adrian Holovaty wrote:
> This is an interesting problem. That template fix would be OK by me,
> but it's sort of a hack. I think we're going to run into similar
> issues with Form.__str__() returning a Unicode object. Maybe, as you
> suggest, Form.__str__() should return a bytestring according to
> Hello Mario,
>
> It's great that you want to start this effort, I am starting too a
> Spanish translation (es_MX) but my question is why we need to have
> es_AR, es_CL or es_MX is because we speak a little bit different the
> Spanish or it's because we haven't put enough effort to coordinate a
>
On 12/5/06, Ivan Sagalaev <[EMAIL PROTECTED]> wrote:
> Adrian Holovaty wrote:
> > This is an interesting problem. That template fix would be OK by me,
> > but it's sort of a hack. I think we're going to run into similar
> > issues with Form.__str__() returning a Unicode object. Maybe, as you
> > s
> Well, we could have the 'es' translation in 100% completed first and
> then start to think in another countries. The 'es' file is about 80%
> translated so if you let me I'll do my best to translate all the file.
>
This is my little help
http://media.forestal.udec.cl/django/
>
--~--~-
I've just checked in a new bit of Django functionality I've been
developing for the past couple of days (extracted from some production
code).
It's an abstraction of the workflow "Display an HTML form, force a
preview, then do something with the submission." If you're familiar
with the forced-pre
> Well, we could have the 'es' translation in 100% completed first and
> then start to think in another countries. The 'es' file is about 80%
> translated so if you let me I'll do my best to translate all the file.
>
Where is this 'es' file perhaps you mean es_CL ?
> So, why we need differen
2006/12/5, mario__ <[EMAIL PROTECTED]>:
> This is my little help
> http://media.forestal.udec.cl/django/
>
Perhaps you want to use Django I18N mailing list for this kind of affairs.
Regards.
--
Iván Alemán
--~--~-~--~~~---~--~~
You received this message becaus
Russell Keith-Magee wrote:
> annotate() returns a query set, so it can be used multiple times, be
> combined with filters, etc. The argument handling strategy employed in
> filter() is reused here; kwargs to annotate() can be decomposed on a
> __ boundary to describe table joins, with the last pa
Adrian Holovaty wrote:
> What other sorts of things can we make abstractions for,
> given a Form?
First thing that comes to mind is the same thing you describe but
without preview. In other words it's what update_object generic view
does now but it works only on models and often it is desired t
John Lenton wrote:
>
> I hadn't even considered having a multi-parameter tuple-returning
> "sum"; I was ok with either calling groupby thrice, or saving the
> groupby and calling the different ops in sequence. In either case, a
> database roundtrip per call.
I'm often grouping thousands of rows
On 12/5/06, Ivan Sagalaev <[EMAIL PROTECTED]> wrote:
> Adrian Holovaty wrote:
> > What other sorts of things can we make abstractions for,
> > given a Form?
>
> First thing that comes to mind is the same thing you describe but
> without preview. In other words it's what update_object generic view
Adrian Holovaty wrote:
> Yes, *definitely*...That one is next on the list.
I just wanted to make sure :-). I'm about to create a forum for my site
and am waiting for this bit to use it and test it :-)
--~--~-~--~~~---~--~~
You received this message because you a
I'm trying to get MySQL to work with Django. (I'm new to Django.) My
installation runs successfully until I attach a database connector.
PROBLEM:
An error occurs when running *Python manage.py syncdb* after setting
DATABASE_ENGINE = 'mysql' in settings.py.
(I've omitted the other settings here
On 12/5/06, edelberry <[EMAIL PROTECTED]> wrote:
>
> ENVIRONMENT:
> Windows XP Pro
> Python 2.4
> Apache 2.2
> mod-python 3.2.10
> MySQL 5.0
Did you install a Python Mysql module? I use this one:
http://sourceforge.net/projects/mysql-python
--
Julio Nobrega - http://www.inerciasensorial.com.b
On 11/14/06, shaunc <[EMAIL PROTECTED]> wrote:
> "__getitem__" in
> django.forms.__init__.RadioSelectField.render.RadioFieldRenderer
>
> In this inner class (line 546), I have found it useful to have:
>
> def __getitem__( self, item ):
> return self.datalist[ item ]
He
No I didn't. I'll take a look, Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this gr
hi,
while I really appreciate all of django's exciting new developments, I wonder
how some of workload could possibly be taken off the core developers'
shoulders by helping them wade through the currently 175 active tickets with
patches found on [1]. While it might be that someday I will encou
as the title
and is there a written code about unittest on django?
plz share me.
write me with gtalk
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this group, send email to
On 12/6/06, Riquelme <[EMAIL PROTECTED]> wrote:
>
>
> as the title
> and is there a written code about unittest on django?
> plz share me.
This question should be directed to the users mailing list. The developers
list is for discussion of development of Django itself, not for answering
end-user
I am also interested in helping with this situation. I've run into quite a
few patches that are reportedly working for some people.How do we help
get these triaged?
Lakin
On 12/5/06, Nikolaus Schlemm <[EMAIL PROTECTED]> wrote:
>
>
> hi,
>
> while I really appreciate all of django's exciting
On 11/8/06, Jeremy Dunck <[EMAIL PROTECTED]> wrote:
> Currently, sessions are renewed only if 1) they're modified or 2) every
> request.
>
> There's a middle ground that's useful: renew the session and cookie if
> it's within X days of the session's current expiration. This keeps
> cookies for u
On 10/26/06, patrickk <[EMAIL PROTECTED]> wrote:
> when doing a search in the related-object window in the admin-
> interface and using the link "xxx total" after that search, the query
> is missing.
> because "pop=1" is in the query, the header is shown ...
Hi patrickk,
I've fixed this in trunk
On 10/27/06, Gary Wilson <[EMAIL PROTECTED]> wrote:
> The ticket_show_details option [1] adds the ability for users to view
> ticket detail changes in the timeline view. I think this would be nice
> to have.
>
> [1] http://trac.edgewall.org/wiki/TracIni#timeline-section
I've made the change to o
On 12/6/06, Lakin Wecker <[EMAIL PROTECTED]> wrote:
> I am also interested in helping with this situation. I've run into quite a
> few patches that are reportedly working for some people.How do we help
> get these triaged?
Yes, there are 175 active tickets with patches in the database.
How
On 12/6/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote:
>
> On 12/6/06, Lakin Wecker <[EMAIL PROTECTED]> wrote:
> > I am also interested in helping with this situation. I've run into quite a
> > few patches that are reportedly working for some people.How do we help
> > get these triaged?
50 matches
Mail list logo