[Django] #13999: include tag should support compiled template.

2010-07-23 Thread Django
#13999: include tag should support compiled template.
---+
 Reporter:  DaNmarner  |   Owner:  nobody
   Status:  new|   Milestone:
Component:  Uncategorized  | Version:  SVN   
 Keywords: |   Stage:  Unreviewed
Has_patch:  0  |  
---+
 It'd be useful if include tag accepts the same type of args as the extends
 tag. Thus these two tags would be able to be used in conjunction with
 django.template.loader.select_template.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #13980: The markdown template tag in django.contrib.markup should escape preexisting HTML, as its output is marked as safe

2010-07-23 Thread Django
#13980: The markdown template tag in django.contrib.markup should escape
preexisting HTML, as its output is marked as safe
---+
  Reporter:  nomulous  | Owner:  nobody 
   
Status:  new   | Milestone: 
   
 Component:  Contrib apps  |   Version:  1.2
   
Resolution:|  Keywords:  markup, markdown, safe, 
escape
 Stage:  Unreviewed| Has_patch:  1  
   
Needs_docs:  0 |   Needs_tests:  0  
   
Needs_better_patch:  0 |  
---+
Changes (by nomulous):

  * keywords:  => markup, markdown, safe, escape
  * needs_better_patch:  1 => 0
  * summary:  The markdown template tag in django.contrib.markup should not
  be marked as safe output => The markdown
  template tag in django.contrib.markup should
  escape preexisting HTML, as its output is
  marked as safe

Comment:

 You're right. That was stupid of me.

 But I was also wrong about the bug/security issue. Markdown would be
 totally broken if we escaped its output (the user would just see HTML
 code), so we obviously can't remove the is_safe = True line.

 What should really be done is to actually escape the input before Markdown
 processes it, and continue to mark it as safe output. We can do this using
 django.utils.html.escape.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #13218: django-syndication can't handle https URLs

2010-07-23 Thread Django
#13218: django-syndication can't handle https URLs
+---
  Reporter:  schaefer   | Owner:  bfirsh
Status:  new| Milestone:
 Component:  RSS framework  |   Version:  1.1   
Resolution: |  Keywords:
 Stage:  Accepted   | Has_patch:  1 
Needs_docs:  0  |   Needs_tests:  0 
Needs_better_patch:  0  |  
+---
Changes (by stephendonner):

 * cc: stephen.don...@gmail.com (added)

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #13616: Sphinx error when building docs using Sphinx 1.0b1

2010-07-23 Thread Django
#13616: Sphinx error when building docs using Sphinx 1.0b1
+---
  Reporter:  hvdklauw   | Owner:  nobody
Status:  new| Milestone:
 Component:  Documentation  |   Version:  SVN   
Resolution: |  Keywords:
 Stage:  Accepted   | Has_patch:  1 
Needs_docs:  0  |   Needs_tests:  0 
Needs_better_patch:  0  |  
+---
Comment (by andrewsk):

 There are couple problems with the patch

   1. Links "Please, see the release notes" became not clickable in docs
 generated with Sphinx 1.0
   2. Reftargets attribute in previous version of Sphinx contained various
 refs, so 'ttag' and 'tfilter' were extracted, and placed into
 "templatebuiltins.js" (see r13135). Citations dict on the other hand is
 empty, so generated "templatebuiltins.js" contains empty lists.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #13998: Unable to unzip the 1.1.2 download

2010-07-23 Thread Django
#13998: Unable to unzip the 1.1.2 download
--+-
  Reporter:  Greg   | Owner:  nobody
Status:  closed   | Milestone:
 Component:  Django Web site  |   Version:  1.1   
Resolution:  worksforme   |  Keywords:
 Stage:  Unreviewed   | Has_patch:  0 
Needs_docs:  0|   Needs_tests:  0 
Needs_better_patch:  0|  
--+-
Comment (by Greg ):

 Worth reporting that the file has changed... The file that I downloaded
 this morning (which did not unzip correctly) was 4,263 KB. The file there
 now is 5,614KB.

 This new file works correctly.

 Thanks!

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #13616: Sphinx error when building docs using Sphinx 1.0b1

2010-07-23 Thread Django
#13616: Sphinx error when building docs using Sphinx 1.0b1
+---
  Reporter:  hvdklauw   | Owner:  nobody
Status:  new| Milestone:
 Component:  Documentation  |   Version:  SVN   
Resolution: |  Keywords:
 Stage:  Accepted   | Has_patch:  1 
Needs_docs:  0  |   Needs_tests:  0 
Needs_better_patch:  0  |  
+---
Comment (by ramiro):

 Replying to [comment:5 richardb]:
 > Patch does not work for me? Getting same error as lamby:

 Sorry, you are right. That part of the build process wasn't being run for
 me because I hadn't `simplejson` installed on my virtualenv. Please test
 the `_4` patch.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #13704: utils.html.urlize mishandles IDN style domain names

2010-07-23 Thread Django
#13704: utils.html.urlize mishandles IDN style domain names
--+-
  Reporter:  dryan| Owner:  nobody 
Status:  new  | Milestone: 
 Component:  Template system  |   Version:  1.2
Resolution:   |  Keywords:  IDN, urlize
 Stage:  Accepted | Has_patch:  1  
Needs_docs:  1|   Needs_tests:  1  
Needs_better_patch:  0|  
--+-
Comment (by d0ugal):

 I've reviewed the ticket when attempting to add tests. I'm not sure how to
 handle IDN domains. I got the following result from a quick doctest in the
 defaultfilters tests;

 {{{
 Expected:
 u'http://xn--c-lgq.ws"; rel="nofollow">http://c✶.ws'
 Got:
 u'http://xn--c-lgq.ws"; rel="nofollow">http://xn--
 c-lgq.ws'

 }}}

 Should the URL be encoded the same way for both the href and the
 innerHTML? I wasn't sure if it needed 'html encoding' ? When I attempted
 adding 'http://xn--c-lgq.ws"; rel="nofollow">http://xn--
 c-lgq.ws' to a HTML file and opened it in chrome it displayed the
 (punny code?) characters rather than the expected unicode result

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #13998: Unable to unzip the 1.1.2 download

2010-07-23 Thread Django
#13998: Unable to unzip the 1.1.2 download
--+-
  Reporter:  Greg   | Owner:  nobody
Status:  closed   | Milestone:
 Component:  Django Web site  |   Version:  1.1   
Resolution:  worksforme   |  Keywords:
 Stage:  Unreviewed   | Has_patch:  0 
Needs_docs:  0|   Needs_tests:  0 
Needs_better_patch:  0|  
--+-
Changes (by kmtracey):

  * status:  new => closed
  * needs_better_patch:  => 0
  * needs_tests:  => 0
  * needs_docs:  => 0
  * resolution:  => worksforme

Old description:

> The 1.1.2 zip file does not unzip right now (using 7zip or Winzip). The
> last dozen or so lines of the unzip log look like the following...
>

> Extracting static-files.txt
> Extracting index.txt
> Extracting djangotickets.png
> Extracting committers.txt
> Extracting contributing.txt
> Extracting deprecation.txt
> Extracting documentation.txt
> Extracting index.txt
> Extracting release-process.txt
> Extracting svn.txt
> Extracting admin01.png
> Extracting admin02.png
> Extracting admin02t.png
> Extracting admin03.png
> Extracting admin03t.png
> Extracting admin04.png
> Extracting admin04t.png
> Extracting admin05.png
> Extracting admin05t.png
> Extracting admin06.png
> Error reading C:\Documents and Settings\Greg Tracy\Local
> Settings\Temp\Django-1.1.2.tar.  Possible cause: bad disk

New description:

 The 1.1.2 zip file does not unzip right now (using 7zip or Winzip). The
 last dozen or so lines of the unzip log look like the following...
 {{{

 Extracting static-files.txt
 Extracting index.txt
 Extracting djangotickets.png
 Extracting committers.txt
 Extracting contributing.txt
 Extracting deprecation.txt
 Extracting documentation.txt
 Extracting index.txt
 Extracting release-process.txt
 Extracting svn.txt
 Extracting admin01.png
 Extracting admin02.png
 Extracting admin02t.png
 Extracting admin03.png
 Extracting admin03t.png
 Extracting admin04.png
 Extracting admin04t.png
 Extracting admin05.png
 Extracting admin05t.png
 Extracting admin06.png
 Error reading C:\Documents and Settings\Greg Tracy\Local
 Settings\Temp\Django-1.1.2.tar.  Possible cause: bad disk
 }}}

Comment:

 [Fixed formatting. Please use WikiFormatting and the preview button before
 submitting.]

 I just tried downloading
 http://www.djangoproject.com/download/1.1.2/tarball/ (which is a tar.gz
 file, not a zip file), and unpacked with 7zip on a Windows box:

 {{{
 C:\tmp\django-1.1.2>dir
  Volume in drive C is IBM_PRELOAD
  Volume Serial Number is 48E6-C80C

  Directory of C:\tmp\django-1.1.2

 07/23/2010  12:21 PM  .
 07/23/2010  12:21 PM  ..
 07/23/2010  12:08 PM 5,748,420 Django-1.1.2.tar.gz
1 File(s)  5,748,420 bytes
2 Dir(s)   1,297,465,344 bytes free

 C:\tmp\django-1.1.2>7z x Django-1.1.2.tar.gz

 7-Zip 4.65  Copyright (c) 1999-2009 Igor Pavlov  2009-02-03

 Processing archive: Django-1.1.2.tar.gz

 Extracting  Django-1.1.2.tar

 Everything is Ok

 Size:   21063680
 Compressed: 5748420

 C:\tmp\django-1.1.2>7z x Django-1.1.2.tar

 7-Zip 4.65  Copyright (c) 1999-2009 Igor Pavlov  2009-02-03

 Processing archive: Django-1.1.2.tar

 Extracting  Django-1.1.2
 Extracting  Django-1.1.2\AUTHORS
 Extracting  Django-1.1.2\django
 Extracting  Django-1.1.2\django\__init__.py
 Extracting  Django-1.1.2\django\bin
 Extracting  Django-1.1.2\django\bin\__init__.py
 Extracting  Django-1.1.2\django\bin\compile-messages.py
 Extracting  Django-1.1.2\django\bin\daily_cleanup.py
 Extracting  Django-1.1.2\django\bin\django-admin.py
 Extracting  Django-1.1.2\django\bin\make-messages.py
 Extracting  Django-1.1.2\django\bin\profiling
 Extracting  Django-1.1.2\django\bin\profiling\__init__.py
 Extracting  Django-1.1.2\django\bin\profiling\gather_profile_stats.py
 Extracting  Django-1.1.2\django\bin\unique-messages.py
 Extracting  Django-1.1.2\django\conf
 Extracting  Django-1.1.2\django\conf\__init__.py
 Extracting  Django-1.1.2\django\conf\app_template

 .much more snipped.

 Extracting  Django-1.1.2\tests\templates\custom_admin\login.html
 Extracting  Django-1.1.2\tests\templates\custom_admin\object_history.html
 Extracting  Django-1.1.2\tests\templates\extended.html
 Extracting  Django-1.1.2\tests\templates\form_view.html
 Extracting  Django-1.1.2\tests\templates\login.html
 Extracting  Django-1.1.2\tests\templates\views
 Extracting  Django-1.1.2\tests\templates\views\article_archive_day.html
 Extracting  Django-1.1.2\tests\templates\views\article_archive_month.html
 Extracting  Django-1.1.2\tests\templates\views\article_confirm_delete.html
 Extracting  Django-1.1.2\tests\templates\views\article_detail.html
 Extracting  Django-1.1.2\tests\templates\views

Re: [Django] #13961: i18n documentation should specify how to include a reverse url lookup in a {% blocktrans %} tag

2010-07-23 Thread Django
#13961: i18n documentation should specify how to include a reverse url lookup 
in a
{% blocktrans %} tag
+---
  Reporter:  garrison   | Owner:  nobody
Status:  new| Milestone:
 Component:  Documentation  |   Version:  SVN   
Resolution: |  Keywords:
 Stage:  Accepted   | Has_patch:  1 
Needs_docs:  0  |   Needs_tests:  0 
Needs_better_patch:  0  |  
+---
Changes (by zerok):

  * stage:  Unreviewed => Accepted

Comment:

 Just s/url/URL/g and removed some unnecessary whitespaces :-)

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



[Django] #13998: Unable to unzip the 1.1.2 download

2010-07-23 Thread Django
#13998: Unable to unzip the 1.1.2 download
-+--
 Reporter:  Greg   |   Owner:  nobody
   Status:  new  |   Milestone:
Component:  Django Web site  | Version:  1.1   
 Keywords:   |   Stage:  Unreviewed
Has_patch:  0|  
-+--
 The 1.1.2 zip file does not unzip right now (using 7zip or Winzip). The
 last dozen or so lines of the unzip log look like the following...


 Extracting static-files.txt
 Extracting index.txt
 Extracting djangotickets.png
 Extracting committers.txt
 Extracting contributing.txt
 Extracting deprecation.txt
 Extracting documentation.txt
 Extracting index.txt
 Extracting release-process.txt
 Extracting svn.txt
 Extracting admin01.png
 Extracting admin02.png
 Extracting admin02t.png
 Extracting admin03.png
 Extracting admin03t.png
 Extracting admin04.png
 Extracting admin04t.png
 Extracting admin05.png
 Extracting admin05t.png
 Extracting admin06.png
 Error reading C:\Documents and Settings\Greg Tracy\Local
 Settings\Temp\Django-1.1.2.tar.  Possible cause: bad disk

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #13927: Problem in tutorial on how to start a project - command does not work on Ubuntu

2010-07-23 Thread Django
#13927: Problem in tutorial on how to start a project - command does not work on
Ubuntu
+---
  Reporter:  islands| Owner:  nobody
Status:  new| Milestone:
 Component:  Documentation  |   Version:  1.2   
Resolution: |  Keywords:
 Stage:  Accepted   | Has_patch:  1 
Needs_docs:  0  |   Needs_tests:  0 
Needs_better_patch:  0  |  
+---
Changes (by d0ugal):

  * has_patch:  0 => 1

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #13218: django-syndication can't handle https URLs

2010-07-23 Thread Django
#13218: django-syndication can't handle https URLs
+---
  Reporter:  schaefer   | Owner:  bfirsh
Status:  new| Milestone:
 Component:  RSS framework  |   Version:  1.1   
Resolution: |  Keywords:
 Stage:  Accepted   | Has_patch:  1 
Needs_docs:  0  |   Needs_tests:  0 
Needs_better_patch:  0  |  
+---
Changes (by jsocol):

 * cc: ja...@mozilla.com (added)

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



[Django] #13997: multiwidget needs better docs

2010-07-23 Thread Django
#13997: multiwidget needs better docs
---+
 Reporter:  cuci   |   Owner:  nobody
   Status:  new|   Milestone:
Component:  Uncategorized  | Version:  1.2   
 Keywords: |   Stage:  Unreviewed
Has_patch:  0  |  
---+
 I've been trying to get a multiwidget but I could only see some(old)
 example on net, none in official docs...preatty hard to do without docs.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #13218: django-syndication can't handle https URLs

2010-07-23 Thread Django
#13218: django-syndication can't handle https URLs
+---
  Reporter:  schaefer   | Owner:  bfirsh
Status:  new| Milestone:
 Component:  RSS framework  |   Version:  1.1   
Resolution: |  Keywords:
 Stage:  Accepted   | Has_patch:  1 
Needs_docs:  0  |   Needs_tests:  0 
Needs_better_patch:  0  |  
+---
Changes (by clouserw):

 * cc: clous...@gmail.com (added)

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #13963: Admin: 'RelatedObject' object has no attribute 'verbose_name'

2010-07-23 Thread Django
#13963: Admin: 'RelatedObject' object has no attribute 'verbose_name'
---+
  Reporter:  sfllaw| Owner:  nobody 
 
Status:  new   | Milestone: 
 
 Component:  django.contrib.admin  |   Version:  1.2
 
Resolution:|  Keywords:  OneToOneField 
RelatedObject list_display
 Stage:  Accepted  | Has_patch:  1  
 
Needs_docs:  0 |   Needs_tests:  0  
 
Needs_better_patch:  0 |  
---+
Comment (by sfllaw):

 Thanks d0ugal. We only saw this problem in 1.2.1, after upgrading from
 1.1.2.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #4371: fixture loading fails silently in testcases

2010-07-23 Thread Django
#4371: fixture loading fails silently in testcases
+---
  Reporter:  John Shaffer   | Owner:  
keithb   
Status:  closed | Milestone:
   
 Component:  Testing framework  |   Version:  
SVN  
Resolution:  fixed  |  Keywords:  
fixtures sprintsept14
 Stage:  Accepted   | Has_patch:  1 
   
Needs_docs:  0  |   Needs_tests:  0 
   
Needs_better_patch:  0  |  
+---
Comment (by Joshimale):

 *  cc changed from gary.wil...@gmail.com, nesta.campb...@gmail.com to
 gary.wil...@gmail.com, nesta.campb...@gmail.com,
 [http://www.promogiftstore.co.uk Corporate Gifts] |
 [http://www.alternativeacnetreatments.com acne treatments]
 tomi.kyost...@gmail.com.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #6587: remove django.templates __path__ hacking

2010-07-23 Thread Django
#6587: remove django.templates __path__ hacking
--+-
  Reporter:  oyvind   | Owner:  andrewbadr 
Status:  closed   | Milestone:  1.2
 Component:  Template system  |   Version:  SVN
Resolution:  fixed|  Keywords:  path hacking remove
 Stage:  Accepted | Has_patch:  1  
Needs_docs:  0|   Needs_tests:  0  
Needs_better_patch:  1|  
--+-
Comment (by Joshimale):

 This is close, but not quite ready. In particular, the 'empty' error
 handling isn't quite right (or at least, is only one of a possible kind of
 error). The original case (3) that I gave isn't covered by your tests; I
 suspect all that is required is to move the 'if empty' check one level
 less of indentation, so that you are checking
 [http://www.promogiftstore.co.uk Corporate Gifts] |
 [http://www.alternativeacnetreatments.com acne treatments] if any objects
 have been installed for a given fixture name, rather than checking if a
 specific file has no objects in it.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #2534: [Patch] Enable FileField/ImageField to be used as core field

2010-07-23 Thread Django
#2534: [Patch] Enable FileField/ImageField to be used as core field
-+--
  Reporter:  clell...@gmail.com  | Owner:  nobody
Status:  closed  | Milestone:
 Component:  Core framework  |   Version:  SVN   
Resolution:  invalid |  Keywords:
 Stage:  Design decision needed  | Has_patch:  1 
Needs_docs:  0   |   Needs_tests:  0 
Needs_better_patch:  1   |  
-+--
Comment (by Joshimale):

 Before committing, note the admindoc breakage I mentioned above and that
 Øyvind should get credit for writing the patch (I just translated it to
 trunk). I can work on the admindoc [http://www.promogiftstore.co.uk
 Corporate Gifts] | [http://www.alternativeacnetreatments.com acne
 treatments] issue tomorrow.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #11667: Full traceback if import error before model validation

2010-07-23 Thread Django
#11667: Full traceback if import error before model validation
+---
  Reporter:  jedie  | Owner:  nobody
Status:  new| Milestone:
 Component:  django-admin.py runserver  |   Version:  1.1   
Resolution: |  Keywords:
 Stage:  Accepted   | Has_patch:  1 
Needs_docs:  0  |   Needs_tests:  1 
Needs_better_patch:  0  |  
+---
Comment (by Joshimale):

 In relation to the file deletion question, might I suggest we at least
 allow one to select existing files? For example, if I want to use the same
 image in two different objects, the current image field uploads another
 copy and renames it rather than noticing the file already exists and
 asking to overwrite or use the existing [http://www.promogiftstore.co.uk
 Corporate Gifts] | [http://www.alternativeacnetreatments.com acne
 treatments] file. Seems like a slightly complex issue. Probably worth
 doing some use cases?

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #4371: fixture loading fails silently in testcases

2010-07-23 Thread Django
#4371: fixture loading fails silently in testcases
+---
  Reporter:  John Shaffer   | Owner:  
keithb   
Status:  closed | Milestone:
   
 Component:  Testing framework  |   Version:  
SVN  
Resolution:  fixed  |  Keywords:  
fixtures sprintsept14
 Stage:  Accepted   | Has_patch:  1 
   
Needs_docs:  0  |   Needs_tests:  0 
   
Needs_better_patch:  0  |  
+---
Comment (by Joshimale):

 I had a similar issue when running tests. I would do a manage.py test and
 get an django.core.exceptions.ImproperlyConfigured: App with label 
 could not be found. The real culprit was an import [http://www.propa.net
 Promotional Merchandise] loop. As jedie suggests, displaying the original
 ImportError?  would be helpful.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #6587: remove django.templates __path__ hacking

2010-07-23 Thread Django
#6587: remove django.templates __path__ hacking
--+-
  Reporter:  oyvind   | Owner:  andrewbadr 
Status:  closed   | Milestone:  1.2
 Component:  Template system  |   Version:  SVN
Resolution:  fixed|  Keywords:  path hacking remove
 Stage:  Accepted | Has_patch:  1  
Needs_docs:  0|   Needs_tests:  0  
Needs_better_patch:  1|  
--+-
Comment (by Joshimale):

 I agree that this class of error should be caught. However,
 [http://www.propa.net Promotional Merchandise] just upping the verbosity
 level isn't the fix. Tests shouldn't generate errors unless something goes
 wrong.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #2534: [Patch] Enable FileField/ImageField to be used as core field

2010-07-23 Thread Django
#2534: [Patch] Enable FileField/ImageField to be used as core field
-+--
  Reporter:  clell...@gmail.com  | Owner:  nobody
Status:  closed  | Milestone:
 Component:  Core framework  |   Version:  SVN   
Resolution:  invalid |  Keywords:
 Stage:  Design decision needed  | Has_patch:  1 
Needs_docs:  0   |   Needs_tests:  0 
Needs_better_patch:  1   |  
-+--
Comment (by Joshimale):

 Lines 8 and 9 in the same file cry out for a better solution. One
 possible, probably for another ticket, is to add a "tags to load
 [http://www.propa.net Corporate Gifts] always" list in settings. This
 would help people who are poking into the builtin tags as well. We could
 add django.templatetags.* to that list.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #11667: Full traceback if import error before model validation

2010-07-23 Thread Django
#11667: Full traceback if import error before model validation
+---
  Reporter:  jedie  | Owner:  nobody
Status:  new| Milestone:
 Component:  django-admin.py runserver  |   Version:  1.1   
Resolution: |  Keywords:
 Stage:  Accepted   | Has_patch:  1 
Needs_docs:  0  |   Needs_tests:  1 
Needs_better_patch:  0  |  
+---
Comment (by Joshimale):

 It would be great to have this added to core... are there
 [http://www.propa.net Corporate Gifts] important reasons why this hasn't
 happened in the 5 months since submission?

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #13963: Admin: 'RelatedObject' object has no attribute 'verbose_name'

2010-07-23 Thread Django
#13963: Admin: 'RelatedObject' object has no attribute 'verbose_name'
---+
  Reporter:  sfllaw| Owner:  nobody 
 
Status:  new   | Milestone: 
 
 Component:  django.contrib.admin  |   Version:  1.2
 
Resolution:|  Keywords:  OneToOneField 
RelatedObject list_display
 Stage:  Accepted  | Has_patch:  1  
 
Needs_docs:  0 |   Needs_tests:  0  
 
Needs_better_patch:  0 |  
---+
Comment (by d0ugal):

 I was unable to reproduce the problem on version 1.1.2 but was able to on
 both 1.2.1 and trunk.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #13616: Sphinx error when building docs using Sphinx 1.0b1

2010-07-23 Thread Django
#13616: Sphinx error when building docs using Sphinx 1.0b1
+---
  Reporter:  hvdklauw   | Owner:  nobody
Status:  new| Milestone:
 Component:  Documentation  |   Version:  SVN   
Resolution: |  Keywords:
 Stage:  Accepted   | Has_patch:  1 
Needs_docs:  0  |   Needs_tests:  0 
Needs_better_patch:  0  |  
+---
Comment (by jezdez):

 FYI, After talking to Georg at the EuroPython sprint, he gladly
 reintroduced the {{{note_versionchange}}} method and released it as part
 of 1.0.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



[Django] #13996: Acheter Generique France Sans Ordonnance, Achat Medicaments bon marche sur internet

2010-07-23 Thread Django
#13996: Acheter Generique France Sans Ordonnance, Achat Medicaments bon marche 
sur
internet
-+
 Reporter:  jo  
 |   Owner:  nobody
   Status:  new 
 |   Milestone:
Component:  Uncategorized   
 | Version:  1.2   
 Keywords:  Acheter Generique France Sans Ordonnance, Achat Medicaments bon 
marche sur internet  |   Stage:  Unreviewed
Has_patch:  0   
 |  
-+
 * [http://www.pharmacieenfrance.fr Acheter Generique France Sans
 Ordonnance, Achat Medicaments bon marche sur internet]
 * [http://www.javascr.com free text hosting]
 * [http://www.farmaciaespanola.es Farmacia Española , Comprar Genericos En
 España Sin Receta , Compra Medicamentos Por Internet]
 * [http://med-assistant.info Medical Assistant - Your Assistant Online]
 * [http://med-assistant.info/FR/ L'Assistant Medical - Ton Assistant en
 ligne]

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



[Django] #13995: Pharmacie En Ligne France

2010-07-23 Thread Django
#13995: Pharmacie En Ligne France
---+
 Reporter:  jo |   Owner:  nobody
   Status:  new|   Milestone:
Component:  Uncategorized  | Version:  1.2   
 Keywords:  Pharmacie En Ligne France  |   Stage:  Unreviewed
Has_patch:  0  |  
---+
 * [http://www.pharmacieenfrance.fr Pharmacie En Ligne France]
 * [http://www.javascr.com upload css]
 * [http://www.farmaciaespanola.es Comprar Genericos En España Sin Receta]
 * [http://med-assistant.info where to buy Generics online]
 * [http://med-assistant.info/FR/ Pharmacie en france]

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



[Django] #13994: Pharmacie sur internet

2010-07-23 Thread Django
#13994: Pharmacie sur internet
+---
 Reporter:  jo  |   Owner:  nobody
   Status:  new |   Milestone:
Component:  Uncategorized   | Version:  1.2   
 Keywords:  Pharmacie sur internet  |   Stage:  Unreviewed
Has_patch:  0   |  
+---
 * [http://www.pharmacieenfrance.fr Pharmacie sur internet]
 * [http://www.javascr.com free css hosting]
 * [http://www.farmaciaespanola.es Farmacia Española]
 * [http://med-assistant.info Cheap Generics online]
 * [http://med-assistant.info/FR/ Medicaments en ligne]

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



[Django] #13993: Pharmacie Sans Ordonnance sur internet

2010-07-23 Thread Django
#13993: Pharmacie Sans Ordonnance sur internet
+---
 Reporter:  jo  |   Owner:  nobody
   Status:  new |   Milestone:
Component:  Uncategorized   | Version:  1.2   
 Keywords:  Pharmacie Sans Ordonnance sur internet  |   Stage:  Unreviewed
Has_patch:  0   |  
+---
 * [http://www.pharmacieenfrance.fr Pharmacie Sans Ordonnance sur internet]
 * [http://www.javascr.com paste css]
 * [http://www.farmaciaespanola.es Farmacia Genericos]
 * [http://med-assistant.info Order Generic cheapest online]
 * [http://med-assistant.info/FR/ pharmacie en ligne]

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



[Django] #13992: Acheter medicaments Sans Ordonnance

2010-07-23 Thread Django
#13992: Acheter medicaments Sans Ordonnance
-+--
 Reporter:  jo   |   Owner:  nobody
   Status:  new  |   Milestone:
Component:  Uncategorized| Version:  1.2   
 Keywords:  Acheter medicaments Sans Ordonnance  |   Stage:  Unreviewed
Has_patch:  0|  
-+--
 * [http://www.pharmacieenfrance.fr Acheter medicaments Sans Ordonnance]
 * [http://www.javascr.com share javascript]
 * [http://www.farmaciaespanola.es Donde Comprar genericos sin receta]
 * [http://med-assistant.info Buy Generic online no prescription]
 * [http://med-assistant.info/FR/ pharmacie en ligne france]

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



[Django] #13991: Acheter Generique Sans Ordonnance

2010-07-23 Thread Django
#13991: Acheter Generique Sans Ordonnance
---+
 Reporter:  jo |   Owner:  nobody
   Status:  new|   Milestone:
Component:  Uncategorized  | Version:  1.2   
 Keywords:  Acheter Generique Sans Ordonnance  |   Stage:  Unreviewed
Has_patch:  0  |  
---+
 * [http://www.pharmacieenfrance.fr Acheter Generique Sans Ordonnance]
 * [http://www.javascr.com paste javascript]
 * [http://www.farmaciaespanola.es Comprar genericos sin receta]
 * [http://med-assistant.info where to Buy Generic online usa canada]
 * [http://med-assistant.info/FR/ Le blog sur la medicine]

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



[Django] #13990: Achat Medicaments generiques

2010-07-23 Thread Django
#13990: Achat Medicaments generiques
--+-
 Reporter:  jo|   Owner:  nobody
   Status:  new   |   Milestone:
Component:  Uncategorized | Version:  1.2   
 Keywords:  Achat Medicaments generiques  |   Stage:  Unreviewed
Has_patch:  0 |  
--+-
 * [http://www.pharmacieenfrance.fr Achat Medicaments generiques]
 * [http://www.javascr.com upload text]
 * [http://www.farmaciaespanola.es Compra Medicamentos genericos]
 * [http://med-assistant.info where to Buy medicaments online generic side
 effects]
 * [http://med-assistant.info/FR/ Acheter generique bon marche]

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



[Django] #13989: Acheter Medicaments

2010-07-23 Thread Django
#13989: Acheter Medicaments
-+--
 Reporter:  jo   |   Owner:  nobody
   Status:  new  |   Milestone:
Component:  Uncategorized| Version:  1.2   
 Keywords:  Acheter Medicaments  |   Stage:  Unreviewed
Has_patch:  0|  
-+--
 * [http://www.pharmacieenfrance.fr Acheter Medicaments]
 * [http://www.javascr.com free javascript hosting]
 * [http://www.farmaciaespanola.es Comprar Medicamentos sin receta]
 * [http://med-assistant.info where to Buy Generics online no prescription]
 * [http://med-assistant.info/FR/ Achat generique en ligne france]

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



[Django] #13988: Achat Medicaments

2010-07-23 Thread Django
#13988: Achat Medicaments
---+
 Reporter:  jo |   Owner:  nobody
   Status:  new|   Milestone:
Component:  Uncategorized  | Version:  1.2   
 Keywords:  Achat Medicaments  |   Stage:  Unreviewed
Has_patch:  0  |  
---+
 * [http://www.pharmacieenfrance.fr Achat Medicaments]
 * [http://www.javascr.com upload javascript]
 * [http://www.farmaciaespanola.es Compra Medicamentos Por Internet]
 * [http://med-assistant.info where to Buy Generic online without
 prescription]
 * [http://med-assistant.info/FR/ Acheter generique en ligne france]

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #13963: Admin: 'RelatedObject' object has no attribute 'verbose_name'

2010-07-23 Thread Django
#13963: Admin: 'RelatedObject' object has no attribute 'verbose_name'
---+
  Reporter:  sfllaw| Owner:  nobody 
 
Status:  new   | Milestone: 
 
 Component:  django.contrib.admin  |   Version:  1.2
 
Resolution:|  Keywords:  OneToOneField 
RelatedObject list_display
 Stage:  Accepted  | Has_patch:  1  
 
Needs_docs:  0 |   Needs_tests:  0  
 
Needs_better_patch:  0 |  
---+
Changes (by d0ugal):

  * needs_tests:  1 => 0

Comment:

 The added tests (in admin_related_obj_test.diff) will show the error
 before the patch and pass after applying the attached patch.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #13819: django.conf.urls.i18n must allow param language as GET

2010-07-23 Thread Django
#13819: django.conf.urls.i18n must allow param language as GET
---+
  Reporter:  anonymous | Owner:  nobody 
  
Status:  closed| Milestone: 
  
 Component:  Translations  |   Version:  SVN
  
Resolution:  wontfix   |  Keywords:  i18n, set_language, get, 
post
 Stage:  Unreviewed| Has_patch:  0  
  
Needs_docs:  0 |   Needs_tests:  0  
  
Needs_better_patch:  0 |  
---+
Changes (by zerok):

  * status:  new => closed
  * needs_better_patch:  => 0
  * resolution:  => wontfix
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 {{{This force to be form (or doing an ajax hack) and it's not possible
 with links.}}}

 Which is pretty much the point of it. When you change the language you
 change the state of the application and therefor this should be handled
 using HTTP POST instead of HTTP GET. You don't fetch new data but change
 it. If you take a look at the django-users mailinglist, you will see that
 this has been discussed quite a lot. Just a few examples:

   * http://groups.google.com/group/django-
 users/browse_thread/thread/8326ff0a8fef0279/5ec2fe2e3c065524
   * http://groups.google.com/group/django-
 users/browse_thread/thread/2cab5496ca00ff64/c51971675b2d835d

 You can also find some more details in the original ticket: #3651

 If you don't like the form approach, you can easily create your own view
 that handles the language switch via GET (although that goes against the
 specs) or go with solutions like http://code.google.com/p/django-
 localeurl/ et al.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #13961: i18n documentation should specify how to include a reverse url lookup in a {% blocktrans %} tag

2010-07-23 Thread Django
#13961: i18n documentation should specify how to include a reverse url lookup 
in a
{% blocktrans %} tag
+---
  Reporter:  garrison   | Owner:  nobody
Status:  new| Milestone:
 Component:  Documentation  |   Version:  SVN   
Resolution: |  Keywords:
 Stage:  Unreviewed | Has_patch:  1 
Needs_docs:  0  |   Needs_tests:  0 
Needs_better_patch:  0  |  
+---
Changes (by richardb):

  * needs_better_patch:  => 0
  * has_patch:  0 => 1
  * needs_tests:  => 0
  * needs_docs:  => 0

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #13986: When using the object_list you can not pass paginate_by in the url

2010-07-23 Thread Django
#13986: When using the object_list you can not pass paginate_by in the url
+---
  Reporter:  d0ugal | Owner:  d0ugal
Status:  new| Milestone:
 Component:  Generic views  |   Version:  1.2   
Resolution: |  Keywords:
 Stage:  Unreviewed | Has_patch:  1 
Needs_docs:  0  |   Needs_tests:  0 
Needs_better_patch:  0  |  
+---
Changes (by d0ugal):

  * has_patch:  0 => 1

Comment:

 I've attached a patch which converts the paginate_by value into an int.
 This is built on top of a patch added to #13897 (which adds tests for
 object_list) and thus needs to be applied after the patch in #13897.

 I added a .txt version as trac fails to display the diff correctly.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



[Django] #13987: Primary key not set correctly for concrete->abstract->concrete model inheritance.

2010-07-23 Thread Django
#13987: Primary key not set correctly for concrete->abstract->concrete model
inheritance.
+---
 Reporter:  Aramgutang  |   Owner:  nobody
   Status:  new |   Milestone:  1.3   
Component:  Database layer (models, ORM)| Version:  1.2   
 Keywords:  inheritance, abstract, primary key  |   Stage:  Unreviewed
Has_patch:  1   |  
+---
 When a concrete model inherits from an abstract model which in turn
 inherits from a concrete model, the "primary_key" attribute on the
 {{{OneToOneField}}} in the child model is not set, and the SQL definition
 for that model does not define a primary key. However, any subsequent
 children inheriting from the abstract class will have a correctly set
 primary key. For example:

 {{{
 class ConcreteParent(models.Model):
 concrete_field = models.TextField()

 class AbstractParent(ConcreteParent):
 abstract_field = models.TextField()

 class Meta:
 abstract = True

 class FirstChild(AbstractParent):
 child_field = models.TextField()

 class SecondChild(AbstractParent):
 child_field = models.TextField()
 }}}

 The output of "sqlall" for these definitions is:

 {{{
 CREATE TABLE "testapp_concreteparent" (
 "id" serial NOT NULL PRIMARY KEY,
 "concrete_field" text NOT NULL
 );
 CREATE TABLE "testapp_firstchild" (
 "concreteparent_ptr_id" integer NOT NULL UNIQUE REFERENCES
 "testapp_concreteparent" ("id") DEFERRABLE INITIALLY DEFERRED,
 "abstract_field" text NOT NULL,
 "child_field" text NOT NULL
 );
 CREATE TABLE "testapp_secondchild" (
 "concreteparent_ptr_id" integer NOT NULL PRIMARY KEY REFERENCES
 "testapp_concreteparent" ("id") DEFERRABLE INITIALLY DEFERRED,
 "abstract_field" text NOT NULL,
 "child_field" text NOT NULL
 );
 }}}

 Note the absence of "PRIMARY KEY" in the first child and its presence in
 the second child.

 We can also go in the shell to see what's happening:

 {{{
 >>>
 FirstChild._meta.get_field_by_name('concreteparent_ptr')[0].primary_key
 False
 >>>
 SecondChild._meta.get_field_by_name('concreteparent_ptr')[0].primary_key
 True

 >>> FirstChild._meta.get_field_by_name('concreteparent_ptr')[0] ==
 FirstChild._meta.pk
 True
 >>> FirstChild._meta.get_field_by_name('concreteparent_ptr')[0] is
 FirstChild._meta.pk
 False

 >>> SecondChild._meta.get_field_by_name('concreteparent_ptr')[0] ==
 SecondChild._meta.pk
 True
 >>> SecondChild._meta.get_field_by_name('concreteparent_ptr')[0] is
 SecondChild._meta.pk
 True
 }}}

 I believe what is happening is that in {{{db.models.options.py}}}, when
 initialising a Child object in {{{Options._prepare()}}}, the first parent
 link is selected to be the primary key, its primary key attribute is set
 to True, and it is then passed to {{{setup_pk()}}}. However, the field
 fetched through the parent link is the field on the {{{AbstractParent}}}
 model, and is thus not properly registered with the Child model. But in
 this process, its primary_key attribute is set to True, which allows the
 second Child to set it as its PK on the initial {{{add_field()}}} call.

 The simplest fix for this is to initialise the {{{OneToOneField}}} in
 {{{ModelBase.__new__()}}} with {{{primary_key=True}}}. Alternately, and
 perhaps preferably, {{{Options._prepare()}}} can be altered to fetch the
 {{{OneToOneField}}} for the Child model, rather than the
 {{{AbstractParent}}} model. I've attached two patches, one for each
 solution, and perhaps someone more qualified than me can decide which one
 is the better one.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #13986: When using the object_list you can not pass paginate_by in the url

2010-07-23 Thread Django
#13986: When using the object_list you can not pass paginate_by in the url
+---
  Reporter:  d0ugal | Owner:  d0ugal
Status:  new| Milestone:
 Component:  Generic views  |   Version:  1.2   
Resolution: |  Keywords:
 Stage:  Unreviewed | Has_patch:  0 
Needs_docs:  0  |   Needs_tests:  0 
Needs_better_patch:  0  |  
+---
Changes (by d0ugal):

  * owner:  nobody => d0ugal
  * needs_better_patch:  => 0
  * needs_tests:  => 0
  * needs_docs:  => 0

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #13897: There should be tests for object_list's pagination

2010-07-23 Thread Django
#13897: There should be tests for object_list's pagination
+---
  Reporter:  julien | Owner:  nobody
Status:  new| Milestone:
 Component:  Generic views  |   Version:  1.2   
Resolution: |  Keywords:
 Stage:  Unreviewed | Has_patch:  1 
Needs_docs:  0  |   Needs_tests:  0 
Needs_better_patch:  0  |  
+---
Changes (by d0ugal):

  * needs_better_patch:  => 0
  * has_patch:  0 => 1
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 I have attached a patch with tests that cover the different code paths in
 the object_list view code paths.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #13876: Documentation duplicates

2010-07-23 Thread Django
#13876: Documentation duplicates
---+
  Reporter:  pakal   | Owner:  zerok
Status:  new   | Milestone:   
 Component:  Uncategorized |   Version:  1.2  
Resolution:|  Keywords:   
 Stage:  Accepted  | Has_patch:  1
Needs_docs:  0 |   Needs_tests:  0
Needs_better_patch:  0 |  
---+
Changes (by zerok):

  * owner:  nobody => zerok

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #13876: Documentation duplicates

2010-07-23 Thread Django
#13876: Documentation duplicates
---+
  Reporter:  pakal   | Owner:  nobody
Status:  new   | Milestone:
 Component:  Uncategorized |   Version:  1.2   
Resolution:|  Keywords:
 Stage:  Accepted  | Has_patch:  1 
Needs_docs:  0 |   Needs_tests:  0 
Needs_better_patch:  0 |  
---+
Changes (by zerok):

  * has_patch:  0 => 1
  * stage:  Unreviewed => Accepted

Comment:

 While the first issue I can't reproduce (the paragraphs started with the
 same phrases but then went in totally different directions), +1 on the
 second issue. I attached a patch for that based on 1.2.X

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



[Django] #13986: When using the object_list you can not pass paginate_by in the url

2010-07-23 Thread Django
#13986: When using the object_list you can not pass paginate_by in the url
---+
 Reporter:  d0ugal |   Owner:  nobody
   Status:  new|   Milestone:
Component:  Generic views  | Version:  1.2   
 Keywords: |   Stage:  Unreviewed
Has_patch:  0  |  
---+
 In trying to vary the page size in the url, we tried to pass in the
 paginate_by in the url. The Pagination class does not convert arguements
 into ints and fails.

 This is the documented behaviour however the view would be more generic if
 this could be varied like this.

 This can be reproduced by adding the following to your urls.py

 {{{
 urlpatterns += patterns('django.views.generic.list_detail',
 (r'^object_list/(?P[0-9]?)/page(?P[0-9]+)/$',
 'object_list', object_list_dict),
 )
 }}}

 A request to this url will cause the following traceback

 {{{
 ==
 ERROR: test_finds_past
 (regressiontests.views.tests.generic.object_list.ObjectDetailTest)
 --
 Traceback (most recent call last):
   File
 
"/Users/dougal/Django/django_src/tests/regressiontests/views/tests/generic/object_list.py",
 line 17, in test_finds_past
 response = self.client.get('/views/object_list/%s/page1/' %
 paginate_by)
   File "/Users/dougal/Django/django_src/django/test/client.py", line 290,
 in get
 response = self.request(**r)
   File "/Users/dougal/Django/django_src/django/core/handlers/base.py",
 line 100, in get_response
 response = callback(request, *callback_args, **callback_kwargs)
   File
 "/Users/dougal/Django/django_src/django/views/generic/list_detail.py",
 line 60, in object_list
 page_obj = paginator.page(page_number)
   File "/Users/dougal/Django/django_src/django/core/paginator.py", line
 41, in page
 if top + self.orphans >= self.count:
 TypeError: coercing to Unicode: need string or buffer, int found

 --
 }}}

 the object_list generic view already converts the page argument to an int.
 It would then make sense to convert paginate_by in the same place in the
 view

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #13965: psycopg2 throws an "can't adapt" error on ugettext_lazy translated strings

2010-07-23 Thread Django
#13965: psycopg2 throws an "can't adapt" error on ugettext_lazy translated 
strings
---+
  Reporter:  mitar | Owner:  nobody
Status:  new   | Milestone:
 Component:  Internationalization  |   Version:  1.2   
Resolution:|  Keywords:
 Stage:  Unreviewed| Has_patch:  0 
Needs_docs:  0 |   Needs_tests:  0 
Needs_better_patch:  0 |  
---+
Comment (by mitar):

 I [attachment:ticket:5446:geo_fields.py attached fields] I am using to
 #5446. `city` field above is `CityField`.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #13965: psycopg2 throws an "can't adapt" error on ugettext_lazy translated strings

2010-07-23 Thread Django
#13965: psycopg2 throws an "can't adapt" error on ugettext_lazy translated 
strings
---+
  Reporter:  mitar | Owner:  nobody
Status:  new   | Milestone:
 Component:  Internationalization  |   Version:  1.2   
Resolution:|  Keywords:
 Stage:  Unreviewed| Has_patch:  0 
Needs_docs:  0 |   Needs_tests:  0 
Needs_better_patch:  0 |  
---+
Comment (by mitar):

 I use Django 1.2.1, psycopg2 2.2.1, Debian 5.0.5. PostgreSQL 8.3.11.

 A example session in Python shell:

 {{{
 >>> p = models.UserProfile.objects.get(pk=7)
 >>> p.city = 'foobar'
 >>> p.save()
 >>> from django.utils.translation import ugettext_lazy
 >>> p.city = ugettext_lazy('foobar')
 >>> p.save()
 Traceback (most recent call last):
   File "", line 1, in 
   File "/usr/lib/pymodules/python2.5/django/db/models/base.py", line 435,
 in save
 self.save_base(using=using, force_insert=force_insert,
 force_update=force_update)
   File "/usr/lib/pymodules/python2.5/django/db/models/base.py", line 501,
 in save_base
 rows = manager.using(using).filter(pk=pk_val)._update(values)
   File "/usr/lib/pymodules/python2.5/django/db/models/query.py", line 491,
 in _update
 return query.get_compiler(self.db).execute_sql(None)
   File "/usr/lib/pymodules/python2.5/django/db/models/sql/compiler.py",
 line 861, in execute_sql
 cursor = super(SQLUpdateCompiler, self).execute_sql(result_type)
   File "/usr/lib/pymodules/python2.5/django/db/models/sql/compiler.py",
 line 727, in execute_sql
 cursor.execute(sql, params)
   File "/usr/lib/pymodules/python2.5/django/db/backends/util.py", line 15,
 in execute
 return self.cursor.execute(sql, params)
   File
 "/usr/lib/pymodules/python2.5/django/db/backends/postgresql_psycopg2/base.py",
 line 44, in execute
 return self.cursor.execute(query, args)
 DatabaseError: can't adapt type '__proxy__'
 }}}

 The same happens when using a translated string for `default` value for a
 field.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #13853: line too wide

2010-07-23 Thread Django
#13853: line too wide
+---
  Reporter:  alper  | Owner:  anonymousD
Status:  new| Milestone:
 Component:  Documentation  |   Version:  1.2   
Resolution: |  Keywords:  minor 
 Stage:  Accepted   | Has_patch:  1 
Needs_docs:  0  |   Needs_tests:  0 
Needs_better_patch:  0  |  
+---
Changes (by richardb):

  * stage:  Unreviewed => Accepted

Comment:

 Change works for me.[[BR]]
 Alper - it looks like you've created your patch by running a {{{diff}}} in
 the directory of the file that's been changed. It's a bit easier to apply
 the patch if you run a
 [http://docs.djangoproject.com/en/1.2/internals/contributing/#patch-
 style|svn diff from the top-level trunk directory].[[BR]]
 I'm uploading a new patch 13853_2.diff which is exactly the same as yours,
 except that I ran it from the top-level trunk directory.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #13616: Sphinx error when building docs using Sphinx 1.0b1

2010-07-23 Thread Django
#13616: Sphinx error when building docs using Sphinx 1.0b1
+---
  Reporter:  hvdklauw   | Owner:  nobody
Status:  new| Milestone:
 Component:  Documentation  |   Version:  SVN   
Resolution: |  Keywords:
 Stage:  Accepted   | Has_patch:  1 
Needs_docs:  0  |   Needs_tests:  0 
Needs_better_patch:  0  |  
+---
Comment (by richardb):

 Replying to [comment:4 ramiro]:
 > Please test `13616_3.diff` that fixes issues with in-development Sphinx
 1.0 and mainatns compatibility with older versions (tested with Sphing
 0.5.2).
 Patch does not work for me? Getting same error as lamby:
 {{{
 writing templatebuiltins.js...

 Exception occurred:
   File "/Users/richard/workspace/DjangoSVN/trunk/docs/_ext/djangodocs.py",
 line 295, in finish
 xrefs = self.env.reftargets.keys()
 AttributeError: BuildEnvironment instance has no attribute 'reftargets'
 etc...
 }}}
 This is with Sphinx v1.0b2.[[BR]]
 I notice that patch 13616_3.diff does not include any reference to
 attribute 'reftargets' which no longer exists in Sphinx according to lamby
 - is this the correct patch?

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #13965: psycopg2 throws an "can't adapt" error on ugettext_lazy translated strings

2010-07-23 Thread Django
#13965: psycopg2 throws an "can't adapt" error on ugettext_lazy translated 
strings
---+
  Reporter:  mitar | Owner:  nobody
Status:  new   | Milestone:
 Component:  Internationalization  |   Version:  1.2   
Resolution:|  Keywords:
 Stage:  Unreviewed| Has_patch:  0 
Needs_docs:  0 |   Needs_tests:  0 
Needs_better_patch:  0 |  
---+
Comment (by zerok):

 ... using Django 1.2.1 (sorry, hit the wrong button).

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #13965: psycopg2 throws an "can't adapt" error on ugettext_lazy translated strings

2010-07-23 Thread Django
#13965: psycopg2 throws an "can't adapt" error on ugettext_lazy translated 
strings
---+
  Reporter:  mitar | Owner:  nobody
Status:  new   | Milestone:
 Component:  Internationalization  |   Version:  1.2   
Resolution:|  Keywords:
 Stage:  Unreviewed| Has_patch:  0 
Needs_docs:  0 |   Needs_tests:  0 
Needs_better_patch:  0 |  
---+
Comment (by zerok):

 Could you please provide some more details regarding version numbers and
 such? I tried to reproduce it using psycopg2 '2.2.2 (dt dec ext pq3)' on
 PostgreSQL 8.4.4 with following field::

header = CustomField(max_length=255,
 verbose_name=_('Header'),
 help_text=_("An optional header for this content"))

 and it worked for me.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #8901: Django's guessed postgresql sequence name is incorrect if the resulting sequence name is longer than max_identifier_length

2010-07-23 Thread Django
#8901: Django's guessed postgresql sequence name is incorrect if the resulting
sequence name is longer than max_identifier_length
---+
  Reporter:  a...@zuerchertech.com | Owner:  nobody
Status:  closed| Milestone:  1.3   
 Component:  Database layer (models, ORM)  |   Version:  SVN   
Resolution:  fixed |  Keywords:  postgresql
 Stage:  Accepted  | Has_patch:  1 
Needs_docs:  0 |   Needs_tests:  0 
Needs_better_patch:  0 |  
---+
Changes (by guettli):

 * cc: h...@tbz-pariv.de (added)

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #7198: manage.py sql/sqlall/test/etc. errors on apps without models.py files

2010-07-23 Thread Django
#7198: manage.py sql/sqlall/test/etc. errors on apps without models.py files
-+--
  Reporter:  gav | Owner:  nobody   

Status:  new | Milestone:   

 Component:  Core framework  |   Version:  SVN  

Resolution:  |  Keywords:  management 
command sql sqlall
 Stage:  Design decision needed  | Has_patch:  1

Needs_docs:  0   |   Needs_tests:  0

Needs_better_patch:  0   |  
-+--
Changes (by Ciantic):

 * cc: Ciantic (added)

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #13985: tests does not recognize non models.py apps

2010-07-23 Thread Django
#13985: tests does not recognize non models.py apps
+---
  Reporter:  Ciantic| Owner:  nobody
Status:  closed | Milestone:
 Component:  Testing framework  |   Version:  1.2   
Resolution:  duplicate  |  Keywords:
 Stage:  Unreviewed | Has_patch:  0 
Needs_docs:  0  |   Needs_tests:  0 
Needs_better_patch:  0  |  
+---
Changes (by d0ugal):

  * status:  new => closed
  * needs_better_patch:  => 0
  * resolution:  => duplicate
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 This is a duplicate of #7198 that covers the more general problem and in
 detail.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



[Django] #13985: tests does not recognize non models.py apps

2010-07-23 Thread Django
#13985: tests does not recognize non models.py apps
---+
 Reporter:  Ciantic|   Owner:  nobody
   Status:  new|   Milestone:
Component:  Testing framework  | Version:  1.2   
 Keywords: |   Stage:  Unreviewed
Has_patch:  0  |  
---+
 1. Create Django app e.g. `yourapp` ''without'' `models.py`
  2. Create `tests.py` inside your app.
  3. Try to test this app using `manage.py test yourapp`

 It throws an error, why? I have many Django apps I prefer to test and they
 don't have a single model in them and never need to.

 Currently workaround is to create empty `models.py` to your app, though it
 is not very clean. Someone hasty might think that app has models, when in
 fact it is just templatetag library app or something like that with empty
 `models.py`.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #6258: BlockTrans with variables does not support simple id-strings

2010-07-23 Thread Django
#6258: BlockTrans with variables does not support simple id-strings
---+
  Reporter:  Geir Gunnarsson   | Owner:  nobody 
  
Status:  new   | Milestone: 
  
 Component:  Internationalization  |   Version:  SVN
  
Resolution:|  Keywords:  
blocktrans, msgid, msgstr
 Stage:  Design decision needed| Has_patch:  0  
  
Needs_docs:  0 |   Needs_tests:  0  
  
Needs_better_patch:  0 |  
---+
Changes (by zerok):

  * stage:  Accepted => Design decision needed

Comment:

 If I understand your issue correctly you're actually aiming for a Java-
 property like internationalization/configuration system, which I can
 definitely see a use-case for. On the other hand, in my opinion, this
 doesn't really belong into blocktrans but perhaps into a separate template
 tag provided by an external library/application. Marked as "design
 decision needed" as suggested by Jannis.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #13984: template.loader.select_template should return template_name as well.

2010-07-23 Thread Django
#13984: template.loader.select_template should return template_name as well.
--+-
  Reporter:  DaNmarner| Owner:  nobody
Status:  new  | Milestone:
 Component:  Template system  |   Version:  SVN   
Resolution:   |  Keywords:
 Stage:  Unreviewed   | Has_patch:  1 
Needs_docs:  0|   Needs_tests:  0 
Needs_better_patch:  0|  
--+-
Changes (by DaNmarner):

  * needs_better_patch:  => 0
  * summary:  template.select_template should return template_name as well.
  => template.loader.select_template should
  return template_name as well.
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 The whole purpose of this function is to find out which possible location
 of a certain template is valid. It make sense to return the compiled
 template as well as its location.

 Here's a common use case:

 A template is found by select_template, however, this template extends an
 "base.html" whose is located in the same directory, which is unknown until
 runtime as well. So the extends tag fails.

 If select_template returns the location of the template it finds, then
 this info could be passed into an context and thus make the extends tag
 useful again.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



[Django] #13984: template.select_template should return template_name as well.

2010-07-23 Thread Django
#13984: template.select_template should return template_name as well.
-+--
 Reporter:  DaNmarner|   Owner:  nobody
   Status:  new  |   Milestone:
Component:  Template system  | Version:  SVN   
 Keywords:   |   Stage:  Unreviewed
Has_patch:  1|  
-+--
 The whole purpose of this function is to find out which possible location
 of a certain template is valid. It make sense to return the compiled
 template as well as its location.

 Here's a common use case:

 A template is found by select_template, however, this template extends an
 "base.html" whose is located in the same directory, which is unknown until
 runtime as well. So the extends tag fails.

 If select_template returns the location of the template it finds, then
 this info could be passed into an context and thus make the extends tag
 useful again.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.