Re: [Django] #34952: manage.py compilemessages may skip locale folders if ignore is used.

2023-11-13 Thread Django
#34952: manage.py compilemessages may skip locale folders if ignore is used.
-+-
 Reporter:  Andrew Cordery   |Owner:  Andrew
 |  Cordery
 Type:  Bug  |   Status:  closed
Component:   |  Version:  4.2
  Internationalization   |
 Severity:  Normal   |   Resolution:  fixed
 Keywords:   | Triage Stage:  Ready for
 |  checkin
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Mariusz Felisiak):

 * status:  assigned => closed
 * needs_better_patch:  1 => 0
 * resolution:   => fixed


Comment:

 Fixed by ad41f1c53aa9f2c938df32e4386d8a80138923fc.

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018bcc09ec21-957a79a3-1573-4395-9dd7-70ef2d959424-00%40eu-central-1.amazonses.com.


Re: [Django] #34952: manage.py compilemessages may skip locale folders if ignore is used.

2023-11-13 Thread Django
#34952: manage.py compilemessages may skip locale folders if ignore is used.
-+-
 Reporter:  Andrew Cordery   |Owner:  Andrew
 |  Cordery
 Type:  Bug  |   Status:  assigned
Component:   |  Version:  4.2
  Internationalization   |
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Ready for
 |  checkin
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Natalia Bidart):

 * stage:  Accepted => Ready for checkin


-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018bc9de7e63-0ec25305-cc38-484b-85ba-c30bde7e3cd8-00%40eu-central-1.amazonses.com.


Re: [Django] #34952: manage.py compilemessages may skip locale folders if ignore is used.

2023-11-08 Thread Django
#34952: manage.py compilemessages may skip locale folders if ignore is used.
-+-
 Reporter:  Andrew Cordery   |Owner:  Andrew
 |  Cordery
 Type:  Bug  |   Status:  assigned
Component:   |  Version:  4.2
  Internationalization   |
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Natalia Bidart):

 * owner:  nobody => Andrew Cordery
 * needs_better_patch:  0 => 1
 * status:  new => assigned


-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018bb03be532-f49f2ac4-6b27-46b5-a2cd-bd5a5687cb35-00%40eu-central-1.amazonses.com.


Re: [Django] #34952: manage.py compilemessages may skip locale folders if ignore is used.

2023-11-07 Thread Django
#34952: manage.py compilemessages may skip locale folders if ignore is used.
--+
 Reporter:  Andrew Cordery|Owner:  nobody
 Type:  Bug   |   Status:  new
Component:  Internationalization  |  Version:  4.2
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  0 |UI/UX:  0
--+
Changes (by Natalia Bidart):

 * component:  Uncategorized => Internationalization
 * stage:  Unreviewed => Accepted


Comment:

 Thank you! Accepting.

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018ba9a1c6b2-5bbb96fc-1e8d-4fd0-a739-51b125ae976a-00%40eu-central-1.amazonses.com.


Re: [Django] #34952: manage.py compilemessages may skip locale folders if ignore is used.

2023-11-07 Thread Django
#34952: manage.py compilemessages may skip locale folders if ignore is used.
+--
 Reporter:  Andrew Cordery  |Owner:  nobody
 Type:  Bug |   Status:  new
Component:  Uncategorized   |  Version:  4.2
 Severity:  Normal  |   Resolution:
 Keywords:  | Triage Stage:  Unreviewed
Has patch:  1   |  Needs documentation:  0
  Needs tests:  0   |  Patch needs improvement:  0
Easy pickings:  0   |UI/UX:  0
+--

Comment (by Andrew Cordery):

 Here is the PR:  https://github.com/django/django/pull/17452

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018ba990f665-2b76206b-8f2b-4a13-bb1b-84f3eb5d0642-00%40eu-central-1.amazonses.com.


[Django] #34952: manage.py compilemessages may skip locale folders if ignore is used.

2023-11-07 Thread Django
#34952: manage.py compilemessages may skip locale folders if ignore is used.
--+
   Reporter:  Andrew Cordery  |  Owner:  nobody
   Type:  Bug | Status:  new
  Component:  Uncategorized   |Version:  4.2
   Severity:  Normal  |   Keywords:
   Triage Stage:  Unreviewed  |  Has patch:  1
Needs documentation:  0   |Needs tests:  0
Patch needs improvement:  0   |  Easy pickings:  0
  UI/UX:  0   |
--+
 manage.py compilemessages uses os.walk and iterates through the same
 dirnames instance that it removes members from when the ignore option is
 used.

 This will cause compilemessages to accidentally ignore a locale directory
 that directly follows a skipped directory in the list.   Unfortunately it
 is not easy to predict when this will occur or which directories may be
 affected as os.walk provides the list of dirnames in 'arbitrary' order
 according to the python docs.

 I've provided the miniscule patch to fix this as well as a much lengthier
 regression test, however I'm not positive that the test is capable of
 recreating the correct conditions on all operating systems.  I've tested
 on OSX only.  Regardless, the issue at hand is a basic language error
 (modifying a value that you are iterating through) and the fix is
 extremely simple (i.e. copy dirnames before iterating, in my patch I just
 wrap it in list()), so this should not be a controversial patch.


 Note:  this was originally mentioned as a comment on my other ticket
 https://code.djangoproject.com/ticket/34925, I'm separating it for clarity
 and I will attach the PR here.

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018ba985a966-718b342d-8bed-4c04-b708-9eeede28d11a-00%40eu-central-1.amazonses.com.