Re: תוכנה חופשית לסינון האינטרנט

2016-11-06 Thread Shai Berger
On Sunday 06 November 2016 15:16:10 Yaniv Kaul wrote: > 2016-11-06 14:09 GMT+02:00 Ira Abramov : > זו גם הבעייה העיקרית שלי עם ההצעה - הבעייה הינה פחות בתוכנה ויותר בשירות - > צריך באופן קובע לעדכן אותו עם תכנים. > זו (אמנם רק אחת) מהסיבות שאנטי-וירוס חינמי (ClamAV) לא

Re: אוגוסט פנגווין 2017

2016-11-06 Thread Shai Berger
הי תומר וכולם, On Sunday 06 November 2016 14:17:15 Tomer Brisker wrote: > שלום לכולם, > > אחרי החגים הגיעו וכמובטח הגיע הזמן להתחיל לתכנן את הפנגווין הבא. למי שפספס > את שיחת הסיכום השנה ואת ההתכתבויות שהיו פה בעבר, אני ארענן את עיקרי ההצעה > שלי לשנה הבאה: > > אוגוסט פנגווין יכול להפוך למפגש

Re: תוכנה חופשית לסינון האינטרנט

2016-11-06 Thread Shai Berger
ות דומה, במקום לשרת של הספק. > אני בחרתי באפשרות השניה אצלנו בבית. זה מספיק טוב עד שהילד לומד על שרתי > פרוקסי פתוחים, VPN חינמי או סתם עריכה של כתובת הDNS בתחנת הקצה. > > 2016-11-06 12:46 GMT+02:00 Shai Berger <s...@hamakor.org.il>: > > שלום לכולם, > > > > אמ;

תוכנה חופשית לסינון האינטרנט

2016-11-06 Thread Shai Berger
שלום לכולם, אמ;לק: יש סיכוי לגייס תקציב לעבודה על תוכנה חופשית לסינון האינטרנט. במהלך השבוע שעבר, כשהצעת החוק של שולי מועלם לסינון אתרים עדיין נראתה כמו איום רציני, דיברתי קצת על הנושא עם סמנכ״לית הרגולציה של איגוד האינטרנט. במהלך השיחה עלה הרעיון הבא: אם היה פתרון יחסית קל וחינמי (או קרוב

Re: Rethinking migrations

2016-11-05 Thread Shai Berger
Hi, On Saturday 05 November 2016 17:53:49 Patryk Zawadzki wrote: > > I'm typing this from the comfort of Django: Under the Hood sprints so > please excuse poor grammar and the somewhat chaotic explanations that > follow. I'm very tired and English is not my mother tongue. This is not a > DEP but

A command to optimize a squashed migration?

2016-10-31 Thread Shai Berger
Hi, I'm doing some migration squashing, which was long overdue; so, I'm squashing dozens of migrations at once. Within these migrations, there are data migrations (RunPython operations) which, of course, stand as barriers to optimization. The operations have not been defined elidable --

Re: disclosing security release dates on django-announce

2016-10-08 Thread Shai Berger
On Friday 07 October 2016 19:47:38 Markus Holtermann wrote: > On Friday, October 7, 2016 at 4:58:00 PM UTC+2, Tim Graham wrote: > > The Django team proposes [0] to add the following to the security policy: > > > > Approximately one week before public disclosure, ... > > we notify django-announce

Re: is_valid as property

2016-09-30 Thread Shai Berger
Hi Sven, On Thursday 29 September 2016 22:09:27 Sven R. Kunze wrote: > > Am Donnerstag, 29. September 2016 20:26:54 UTC+2 schrieb Aymeric Augustin: > > > Generally speaking, properties are expected to be cheap and methods can be > > expensive. In my opinion, for lack of a better guideline, we

Re: GitHub Octoverse - the State of GitHub in 2016 - https://octoverse.github.com/

2016-09-19 Thread Shai Berger
כל מקרה, אפל מעולם לא עשתה באמת קוד פתוח, וגם היוניקס שלה מעולם לא היה > לינוקס (אלא כאמור NetBSD). > כל מה שעשתה היה לקחת קוד פתוח שאחרים כתבו (ספארי, NetBSD וכו׳) ולשלב אותו > פנימה לתוך הקוד שלה. > > 2016-09-18 22:47 GMT+03:00 Shai Berger <s...@platonix.com>: > > On Sunda

Re: Django default PK type setting

2016-08-31 Thread Shai Berger
On Thursday 01 September 2016 02:51:54 Josh Smeaton wrote: > A major issue with this would be the many apps out in the wild (and their > tests!) that assume the pk is an integer, and do queries like > .filter(pk=1). FWIW, this is a bad practice which we should recommend against. In databases

Re: Django Box - A vagrant virtual machine for testing Django

2016-08-28 Thread Shai Berger
Hi Josh, This looks very promising. Thanks for making it. On Sunday 28 August 2016 08:55:05 Josh Smeaton wrote: > > *1. Should we host the django-box project under the django organisation?* > > [...] Should this project be proposed for inclusion within the django > organisation under DEP7 >

Re: Simulating timeouts on client with django.test.client.Client

2016-08-24 Thread Shai Berger
l be the > same. > > I do realise, that this can be accomplished by just firing up "manage.py > runserver" and sending requests as real load balancer would do, but I > think it's too much overhead for a simple test. > > By "prototype" you mean pull-request to Djan

Re: Simulating timeouts on client with django.test.client.Client

2016-08-23 Thread Shai Berger
Hi, Just to make it clear: Based on the ticket, you want to test how the server acts when facing client timeouts and/or disconnects. Please correct me if I'm wrong. Assuming I'm right, the test client seems like the wrong tool for this job, because it doesn't actually make network

Re: תודה על אוגוסט פינגווין וקצת הערות

2016-08-07 Thread Shai Berger
אורי שלום, On Saturday 06 August 2016 07:36:48 Ori Idan wrote: > קודם כל תודה למארגנים על ארגון כנס למופת. > הארגון היה מעולה ונראה שהושקעה מחשבה לא מעטה ועבודה לא מעטה. תודה, בשם כל הצוות. > > לצערי לא נשארתי לדיון על אוגוסט פינגווין הבא, לכן אכתוב כאן את הדברים: > נתחיל ממה שהיה כבר בעבר

Re: משהו קטן שחסר בקשר לפינגווין של מחר

2016-08-04 Thread Shai Berger
במפה יש פינגווין על בניין 90. כשאתה יורד מהרכבת, אתה רואה ישר את גשר מקסיקו שמוביל לכניסה לאוניברסיטה. בתוך האוניברסיטה אמור להיות שילוט. On Thursday 04 August 2016 08:30:31 Guy Dafny wrote: > האם מישהו יכול בבקשה לסמן על המפה של האוניברסיטה היכן בניין 90 + הנחיות > הליכה מהרכבת למקום?

Re: Extend support for long surnames in Django Auth

2016-08-02 Thread Shai Berger
Well, there's one precedent that is quite pertinent here, and that is AUTH_USER_MODEL. But a setting for the length of a field in a built-in app is problematic because it would imply a migration in that app, rather than user apps. In principle we could write the d.c.auth migration by hand to

אוגוסט פינגווין 2016 בעוד שלושה ימים — כולל אזהרת רכבת

2016-08-02 Thread Shai Berger
שלום כולם, בזמן שאני כותב את זה, ההכנות האחרונות נשלמות. בעוד שלושה ימים נערוך את הכנס השנתי שלנו, וכולנו בצוות הכנס נרגשים מאד. אנחנו רוצים להזכיר לכם שהרשמה מראש עוזרת לנו לייעל את הכניסה לכנס ולקצר תורים — אנא עזרו לנו לעשות את הכנס קל יותר לכולם. אנחנו רוצים להדגיש שבסוף הכנס אנו

Re: Extend support for long surnames in Django Auth

2016-07-31 Thread Shai Berger
On Sunday 31 July 2016 00:15:57 Donald Stufft wrote: > > On Jul 30, 2016, at 4:40 PM, Aymeric Augustin > > wrote: > > > > I have trouble believing that a significant number of people are used to > > typing 100+ characters when inputting their name into a

יאן וילדבואר יהיה הדובר המרכזי באוגוסט פינגווין

2016-07-28 Thread Shai Berger
אנחנו גאים מאד להודיע כי יאן וילדבואר יהיה הדובר המרכזי בכנס אוגוסט פינגווין הבא עלינו לטובה. הוא ירצה על „אנשים לפני קוד - לקחים קהילתיים”. פרטים באתר הכנס[1]. אנו רוצים לנצל הזדמנות זו לשוב ולבקש מהמתכוונים לבוא לכנס להירשם מראש[2], כדי לייעל את התהליכים בכניסה. להתראות בכנס! שי [1]

פורסם לו״ז אוגוסט פינגווין

2016-07-24 Thread Shai Berger
אלה מכם שחיכו ללוח ההרצאות של אוגוסט פינגווין בשביל להירשם מוזמנים: לו״ז http://ap.hamakor.org.il/2016/agenda.html והרשמה https://www.eventbrite.com/e/august-penguin-2016-tickets-25898841131 ___ Discussions mailing list Discussions@hamakor.org.il

Re: Improve queries on django admin

2016-07-22 Thread Shai Berger
I tend to agree with Tim -- in particular, a query on the admin should only return a small (<100) number of records, due to paging; if, for that size of query, you see a significant difference between returning all the columns and returning just the ones you need, it is suspicious: Either you

Re: Translatable Site.name

2016-07-19 Thread Shai Berger
On Wednesday 20 July 2016 01:43:05 James Pic wrote: > Hi all, > > Are there any plans to make Site.name translatable ? > Site.name is a model field. Translatable models are a big hairy issue. Several solutions have been suggested, each with its own pros and cons. Last time I looked (several

Make django.db.models.deletion.Collector public?

2016-07-18 Thread Shai Berger
Hi, We're implementing a feature where we need to access all the dependent objects for a given set of objects -- much like the Admin's deletion does. I note that we are not the first with this need, and I bring the SO question[1] as evidence. As you can see in that question, it turns out that

Bug#830523: I was apparently wrong...

2016-07-17 Thread Shai Berger
After checking a little more, it looks like it does happen every time the USB device is reconnected. Further, there is no need for two X servers to be running -- one is enough, provided that it is made not active. That is, to reproduce: 0. Make sure your keyboard/mouse are connected via USB 1.

Bug#830523: I was apparently wrong...

2016-07-17 Thread Shai Berger
After checking a little more, it looks like it does happen every time the USB device is reconnected. Further, there is no need for two X servers to be running -- one is enough, provided that it is made not active. That is, to reproduce: 0. Make sure your keyboard/mouse are connected via USB 1.

Re: Exceptions caught by the "include" template tag make it hard to rely on tests

2016-07-11 Thread Shai Berger
On Monday 11 July 2016 22:45:31 Florian Apolloner wrote: > On Monday, July 11, 2016 at 7:56:34 PM UTC+2, Tim Graham wrote: > > As for me as a developer, I'd support removing the exception silencing > > that {% include %} does so that errors appear alongside any other > > exceptions (e.g. in

Bug#830517: lightdm: Cannot start sessions after first, requires lighdm restart

2016-07-08 Thread Shai Berger
Package: lightdm Version: 1.18.2-1 Severity: normal Dear Maintainer, I am encountering difficulties with starting any session beyond the first. Whether I try to start a second session while the first is still active (that is, to switch to another user) or after the first user logged out, I get

[Pkg-xfce-devel] Bug#830517: lightdm: Cannot start sessions after first, requires lighdm restart

2016-07-08 Thread Shai Berger
Package: lightdm Version: 1.18.2-1 Severity: normal Dear Maintainer, I am encountering difficulties with starting any session beyond the first. Whether I try to start a second session while the first is still active (that is, to switch to another user) or after the first user logged out, I get

נפתחה ההרשמה לאוגוסט פינגווין

2016-07-07 Thread Shai Berger
לבקשת קפלן (סתם, ההודעה ממילא עמדה לצאת והוא הקדים אותי בכמה דקות): אנחנו שמחים להודיע על פתיחת ההרשמה לאוגוסט פינגווין. להרשמה: https://www.eventbrite.com/e/august-penguin-2016-tickets-25898841131 אתר הכנס (תזכורת): http://ap.hamakor.org.il/2016/‎ יאללה בלאגן, שי.

הבהרות והתנצלויות בנוגע לכללי ההתנהגות באוגוסט פינגווין 2016

2016-07-06 Thread Shai Berger
ערב טוב לכולם, בימים האחרונים התנהל כאן ויכוח סוער למדי בנושא כללי ההתנהגות שהוגדרו לאוגוסט פינגווין. באופן אירוני, בלהט הויכוח, נאמרו -- גם על ידיי -- דברים פוגעניים, ואני רוצה להתנצל על חלקי בעניין. התנצלות כללית בפני כל מי שנפגע, אבל גם כמה התנצלויות מודגשות יותר. יחד עם ההתנצלויות, אני

Re: תנאי שימוש מקפחים בכנס אוגוסט פינגווין

2016-07-06 Thread Shai Berger
) בהורדה מהבמה בגלל >>> הלבוש שלה לא משנה מה הלבוש שלה. כנ"ל גם לגבי מרצים ממגדרים אחרים. >>> >>> >>> האם צריך קוד לבוש יותר מחמיר לאנשים (מכל המגדרים) שמאיישים דוכנים? >>> >>> גם כאן אנו לא רוצים להגיע למצב שבו מודדים בסרגל אורך שרוול או אורך

Re: תנאי שימוש מקפחים בכנס אוגוסט פינגווין

2016-07-05 Thread Shai Berger
016 01:27:47 Shai Berger wrote: > > כללי ההתנהגות בכנס נועדו לייצר מצב שבו כל מי שבא לכנס ירגיש בטוח ונוח. > ‏ > על מי ומה אתם מנסים להגן ? גבר או אישה שמוטרדים בגלל הלבוש זו עברה פלילית > של המטריד בלי קשר למה שהוא או היא לבשה. אם יש אדם שהוא מרגיש מוטרד מלבוש > של אדם אחר (גבר או

Re: תנאי שימוש מקפחים בכנס אוגוסט פינגווין

2016-07-04 Thread Shai Berger
הי שלומי, תודה לך על ששיתפת את דעותיך, ובצורה קונסטרוקטיבית. יחד עם זאת, אני חושב שאתה טועה כמעט בכל נקודה שהעלית כאן. חוץ מזה, אני מתנצל על החפירה. אמ;לק: מה שתומר אמר. On Monday 04 July 2016 15:00:31 שלומי ישראלי wrote: > אני לא חושב שיש כאן תקופנות כלפי אף אחד. התגוננות היתר מיותרת

Re: תנאי שימוש מקפחים בכנס אוגוסט פינגווין

2016-07-04 Thread Shai Berger
ולא מקובל ונשמע כמו משהוא שמנסה להמציא חוקים ולא מבין מה > >> הוא רושם או שהוא פשוט מנסה למנוע הגעת נשים למקום. > >> עצם הקיום של שהדרישה ללבוש לא מיני קיימת במקומות אחרים לא הופכת זאת > >> לתקין, הוספת התנאים האלה זה משהוא חדש בכנס אוגוסט פינגווין (לא נתקלתי בו >

Re: תנאי שימוש מקפחים בכנס אוגוסט פינגווין

2016-07-03 Thread Shai Berger
בוריס שלום, On Monday 04 July 2016 00:40:05 borissh1...@gmail.com wrote: > למקור שלום, > > האם באוגוסט פינגווין, אנחנו הולכים לראות מארגנים ומתנדבים שלובשים מכנסי > חצי, רעקל וגרביים עד הברך, ואולי גם שטריימל על הדרך? אם זה לא הלבוש > הדרוש, התוכלו בבקשה לפחות להגדיר בבירור מהן דרישות הצניעות

Bug#828923: kde-l10n-he: current version incompatible with old kdenlive-data

2016-06-28 Thread Shai Berger
Package: kde-l10n-he Version: 4:16.04.2-2 Severity: important Tags: l10n Dear Maintainer, I am now upgrading a system after a very long time. During the installation, I ran into this error: Unpacking kde-l10n-he (4:16.04.2-2) over (4:4.14.0-3) ... dpkg: error processing archive

Bug#828923: kde-l10n-he: current version incompatible with old kdenlive-data

2016-06-28 Thread Shai Berger
Package: kde-l10n-he Version: 4:16.04.2-2 Severity: important Tags: l10n Dear Maintainer, I am now upgrading a system after a very long time. During the installation, I ran into this error: Unpacking kde-l10n-he (4:16.04.2-2) over (4:4.14.0-3) ... dpkg: error processing archive

תזכורת: מפגש עבודה ברד־האט מחר בערב

2016-06-28 Thread Shai Berger
בעצם, עד שרובכם קוראים את זה, זה בטח כבר היום... להתראות שם, שי. ___ Discussions mailing list Discussions@hamakor.org.il http://hamakor.org.il/cgi-bin/mailman/listinfo/discussions

Re: change commit message format to present tense?

2016-06-25 Thread Shai Berger
On Saturday 25 June 2016 00:04:30 Tim Graham wrote: > With the idea of saving characters in the first line, would "Fix #XXX: > Message" be better than ""Fix #XXX -- Message" also? This saves two > characters without any loss of readability as far as I see. > Is there a real reason for caring

Re: Adding a database-agnostic JSONField into Django

2016-06-25 Thread Shai Berger
On Friday 24 June 2016 14:49:54 Raphael Hertzog wrote: > > Did my answer clear your doubts? > It moves my opinion of the feature from -0.5 "are we sure we need this" to -0 "I won't stand in your way". Shai.

Re: Adding a database-agnostic JSONField into Django

2016-06-24 Thread Shai Berger
On Friday 24 June 2016 10:01:36 Raphael Hertzog wrote: > Hi, > > Le jeudi 23 juin 2016, Aymeric Augustin a écrit : > > On 23 Jun 2016, at 15:40, Tim Graham wrote: > > > Marc said, "I'm happy for JSONField to be made a core field on the > > > condition that it's underlying

הקריאה להרצאות לאוגוסט פינגווין עומדת להיסגר

2016-06-23 Thread Shai Berger
תזכורת (הטקסט פורסם באתר העמותה, אם כבר קראתם שם, אתם מקבלים פטור עכשיו): אוגוסט פינגווין, הכנס הקהילתי לתוכנה חופשית, חוזר השנה שוב. יש לנו מקום וזמן — אוניברסיטת בן־גוריון בנגב, יום ששי 5.8. יש לנו צוות מארגנים, בהובלת שי גובר ותומר בריסקר יש לנו אתר, http://ap.hamakor.org.il/2016/‎ (שעומד

Re: Fate of sql* management commands

2016-06-22 Thread Shai Berger
Hi again Marcin, Thanks for this thoughtful clarification. I think I understand your position much better now. If I understand correctly, there are two issues you find with migrations: - They are designed to deal with schema changes, while you'd rather have a tool for one-time schema

Re: Fate of sql* management commands

2016-06-21 Thread Shai Berger
Marcin, You can write the "sqlall" you want as a shell script -- remove any existing migrations, use "makemigrations" to create an initial migratgion, which will exactly reflect your models, and run sqlmigrate on that. You want to do that against a clean database, to make sure no migration

Re: decorator_from_middleware changes

2016-06-21 Thread Shai Berger
Hi Carl, On Tuesday 21 June 2016 19:32:15 Carl Meyer wrote: > Hi Shai, > > On 06/20/2016 11:07 PM, Shai Berger wrote: > > Well, we can change decorator_from_middleware to introspect the > > middleware itself and decide accordingly: > > > > -- if

Re: decorator_from_middleware changes

2016-06-20 Thread Shai Berger
Well, we can change decorator_from_middleware to introspect the middleware itself and decide accordingly: -- if it does not have process_request or process_response as callable attributes, and it is callable itself, it is a new-style middleware -- if it does, we can define a new attribute

Work meeting last week 15/6

2016-06-20 Thread Shai Berger
Hi, Last wednesday, again, 9 of us met at Matific's offices to discuss, promote and advance Open Source and Free Software in Israel, and also have some Pizza. Thanks to Tomer, Tzafrir, Avi, Fridrih, Moshe, Ilya, Eitan and Jeremy for their participation; and thanks to Matific[1] for hosting the

Fwd: 5th Annual TCE Summer School on Computer Security | September 4-8 2016

2016-06-19 Thread Shai Berger
Hi, Thought some people here might be interested. Note that this summer-school is free of charge -- only requires registration, and registration is on a daily basis so you can pick and choose. I am not affiliated with the Technion in any way, but if I recall correctly, Orr Dunkelman (one of

Re: I like a small thing to be added in new django release.

2016-06-18 Thread Shai Berger
Hi Ratan, On Saturday 18 June 2016 14:35:08 Ratan Kulshreshtha wrote: > hello, everyone, I think that when we make new Django app inside by running > django-admin startapp or by python manage.py startapp > name of app shoul be added automatically in settings.py file in project > directory. >

Fwd: [ILTechTalks] Reversim Summit 2016 Call for Papers is open!

2016-06-12 Thread Shai Berger
Hi everyone, If your talk doesn't get into August Penguin, you can try Reversim Summit... Have fun, Shai. -- Forwarded Message -- Subject: [ILTechTalks] Reversim Summit 2016 Call for Papers is open! Date: Sunday 12 June 2016, 22:50:04 From: Ori Lahav To:

Re: מפגש פיתוח הבא

2016-06-11 Thread Shai Berger
On Tuesday 07 June 2016 13:51:11 Tomer Brisker wrote: > שלום, > מפגש הפיתוח הבא יהיה במשרדים של רד הט (דרך ירושלים 34 רעננה) בשבוע של 26.6, > החל משש בערב. מפגש פיתוח ברד־הט אכן מתוכנן להתקיים בשבוע האחרון של החודש, אבל זה יהיה קצת רחוק מאז המפגש האחרון; לכן, עוד קודם לכן, אנו ניפגש ביום רביעי

Re: New CharField attribute to handle CharField(null=True, blank=True, unique=True) in model forms

2016-05-27 Thread Shai Berger
Hi, On Thursday 19 May 2016 06:01:30 Jon Dufresne wrote: > > Occasionally I'll need to define a CharField on a model that is unique but > also allow blank values. At the database level, this is easily handled by > storing NULL for the blank values. (Storing the empty string multiple times > will

Re: ממשלה ומיקרוסופט - החבר'ה של הסדנא לידע ציבורי עושים עבודה טובה

2016-05-22 Thread Shai Berger
מוד בו. שי. > > דורון > > בתאריך 17 במאי 2016 בשעה 23:15, מאת Shai Berger <s...@platonix.com>: > > צר לי להשבית שמחות, אבל... > > > > On Tuesday 17 May 2016 18:37:47 Daniel Last wrote: > > > אני יודע אישית שמשרד הדתות ישמח לעבור ללינוקס אבל הת

Re: סיכום מפגש פיתוח 18.5.2016

2016-05-20 Thread Shai Berger
אהמ, עבודה אמיתית על שרתי העמותה נעשתה ע״י יהודה דויטש. אני רק עזרתי קצת. On Friday 20 May 2016 16:25:24 Shay Gover wrote: > שלום לכולם, > > אחרי הפסקה של כשלושה שבועות, נפגשנו שוב כדי לקדם את הקוד הפתוח בארץ. > > ליאור קפלן: > - עדכון מאגר חולשות אבטחה של php > > שי גובר: > - מדריך

Re: שת״פ סביב הכנס המסחרי - ״open first"

2016-05-19 Thread Shai Berger
כום - אנחנו עובדים מול הממשלה הצבא ו״התעשייה״ בקידום אותם ערכים שהעמותה > עומדת מאחוריהם - נשמח לשתף פעולה. > ליאור > > 2016-04-20 20:02 GMT+03:00 Doron Ofek <do...@ofek.biz>: > > On 20/04/16 18:28, Shai Berger wrote: > > > > הי דורון, טוב לראות אותך חוזר לעניינים. &

Re: ממשלה ומיקרוסופט - החבר'ה של הסדנא לידע ציבורי עושים עבודה טובה

2016-05-17 Thread Shai Berger
צר לי להשבית שמחות, אבל... On Tuesday 17 May 2016 18:37:47 Daniel Last wrote: > אני יודע אישית שמשרד הדתות ישמח לעבור ללינוקס אבל התנאי הוא שיהיה לא פחות > נגיש ממיקרוסופט (כלומר בלי תירוצים למה האיפון לא עובד) ובאותו מחיר. (שאצלם > זה תקציב מינימלי) > האם אנשי הקוד הפתוח יכולים לעמוד בזה? לא.

Re: Making Django more PaaS-friendly

2016-05-09 Thread Shai Berger
On Monday 09 May 2016 05:06:47 James Bennett wrote: > Whee, this thread got big! > > The takeaway I'm getting here is that we should be careful about what we > adopt into core and when; I'm going to take a couple days and write up some > notes on what I think a good conservative approach would

Re: No access to the login page to the already logged-in user through url

2016-04-30 Thread Shai Berger
On Saturday 30 April 2016 13:05:38 rajat vijay wrote: > Yeah it accomplishes what I want but it's False by default and without > extending the login view it will always be False. > What I am suggesting is it that by default the user should be redirected to > another template(maybe a new one) when

Re: is_authenticated as property

2016-04-29 Thread Shai Berger
Well, actually, there is a problem with the check approach: People use proxy models with user models, to account for different types of users; and it could be that the actual class is decided before the user is authenticated (because of different entry URLs, different authentication backends,

Re: is_authenticated as property

2016-04-28 Thread Shai Berger
Right, right and right. Tim, I somehow missed that suggestion. It is certainly workable. Markus, Custom user classes which do not inherit AbstractBaseUser are a point I hadn't considered, and in fact they make my suggestions problematic, leaving _only_ the checks approach. However,

Re: is_authenticated as property

2016-04-28 Thread Shai Berger
On Monday 11 April 2016 20:13:02 Florian Apolloner wrote: > On Monday, April 11, 2016 at 6:57:46 PM UTC+2, Tim Graham wrote: > > I cannot think of much we could do besides monkey-patching the > > custom-user model. > > I would not call checking and rewriting the class in __new__ >

Re: Unicode normalization for username field

2016-04-25 Thread Shai Berger
On Monday 25 April 2016 21:11:51 Aymeric Augustin wrote: > > It’s a -0 from me, not a -1, and it may turn into a +0 as time passes... > More arguments or opinions, especially backed by data or experience, would > certainly be useful. As far as I can see, the force of the push to use non-ASCII

Re: Yoram Gnat

2016-04-24 Thread Shai Berger
April 2016 10:09:39 Aharon Varady wrote: > I'd very much like to know more about him. Anything more you can say, Shai? > Even basic details. > > On Thu, Apr 21, 2016 at 6:13 PM, Shai Berger <s...@platonix.com> wrote: > > On Thursday 21 April 2016 20:51:10 Lior Kaplan wrote:

Re: שת״פ סביב הכנס המסחרי - ״open first"

2016-04-20 Thread Shai Berger
הי דורון, טוב לראות אותך חוזר לעניינים. On Wednesday 20 April 2016 08:47:37 Doron Ofek wrote: > היי > > אין ספק שהמטרה נכונה וחשובה. > אבל כמו שליאור כתב, "הכנס צבוע חזק בצבעי לינווייט, (וכך זה גם ימשיך)", ואז > תישאל השאלה למה הקהילה תומכת בחברה מסחרית כזו ולא אחרת, שהרי גם רד-האט > יטענו שי

Re: grocking the source code

2016-04-17 Thread Shai Berger
Hi Becka, This is a piece of Python meta-programming; what this does is make sure that classes who have this as their metaclass will have an attribute named 'media'; if one was not defined in the class, a default (defined by `media_property()`) is provided. To learn *how* this works, you need

Re: Making Django more PaaS-friendly

2016-04-11 Thread Shai Berger
Django-database-url is very nice, but AFAICT has no way to support 3rd-party backends. I think it needs to grow this support before it can be used in Django. We can adapt the backend API to help, but it's a little tricky if we don't want to import unused backend. On 11 באפריל 2016 11:13:23

Re: באיזה יום עדיף לקיים את אוגוסט פינגווין?

2016-04-10 Thread Shai Berger
מותר לך להגיב, ורצוי שתגיב. רק ככה אפשר יהיה להביא את הצרכים שלך בחשבון... ברוך הבא, שי. On Sunday 10 April 2016 12:08:11 fel...@outlook.co.il wrote: > לא יודע אם מותר לי להגיב ^^", נרשמתי לרשומה כי פרסמו לניק בפייסבוק. אבל > כתושב אבצע הגליל (קרית שמונה) אני יכול לעיד שנסיעה לתל אביב

Re: באיזה יום עדיף לקיים את אוגוסט פינגווין?

2016-04-09 Thread Shai Berger
On Friday 08 April 2016 18:12:11 Lior Kesos wrote: > אם מריצים עוד כנס הייתי מתרכז בורטיקלים ספציפיים כמו כנס הקוד פתוח לתעשיות > הביטחוניות שלדעתי נתן סמה לשחקנים בורטיקל להיפגש. > אפשר לשקול ממשל, פינאנסים, חינוך ולחבור למובילים בכל ורטיקל. אני חושב שניסיון להרים עוד כנס מתוך קבוצת האנשים הזו

Re: utils.suppress_warning, TestCase.assertWarns

2016-04-04 Thread Shai Berger
On Monday 04 April 2016 18:37:39 Tim Graham wrote: > I think django.test.ignore_warnings may meet your needs. > Yes, probably. I had misunderstood the warnings.catch_warnings() documentation (and might have misunderstood the django.test.ignore_warnings documentation as well, if there was such

Re: default values on database level

2016-04-04 Thread Shai Berger
Hi everybody, Waking this up again because, going over some older stuff, I found a ticket asking for this feature: https://code.djangoproject.com/ticket/470 It was closed wontfix, but if anybody likes to put a 3-digit-numbered Django bug under their belt, it's there. The discussion in this

utils.suppress_warning, TestCase.assertWarns

2016-04-03 Thread Shai Berger
Hi all, While working on a ticket that had to do with cookies, I found myself writing this code (essentially): with warnings.catch_warnings(record=True) as warnings_log: # # Begin actual code I'm trying to test #

Re: Annotate date intervals or ranges

2016-04-02 Thread Shai Berger
On Monday 07 March 2016 12:20:59 Josh Smeaton wrote: > FYI I'm implementing date_trunc based transforms in this > patch: https://github.com/django/django/pull/6243 > > Since the transform names "__month" "__year" etc are already taken by the > Extract based transforms I've not yet implemented a

Re: Value of tightening URLValidator/EmailValidator regular expressions?

2016-04-02 Thread Shai Berger
On Saturday 02 April 2016 09:44:54 Josh Smeaton wrote: > For what reason Zach? There is only one reason for which a strict and accurate validation is required, as far as I can see, and that is if your application is not just using existing email addresses (i.e. sending mail to users) but

Re: ManyToManyField not generating ON DELETE CASCADE clauses on (default) through table

2016-04-01 Thread Shai Berger
Hi Carlton, I'm sorry that your mail was left unanswered for so long. Generally, "is it a bug" questions are better suited to django-users than to this list. In particular, I believe this is not a bug: The behavior you see is Django's default way of defining foreign keys, and indeed, as you

Re: Feedback on Django Channels

2016-04-01 Thread Shai Berger
On Saturday 02 April 2016 00:38:31 Andrew Godwin wrote: > On Fri, Apr 1, 2016 at 11:32 PM, Shai Berger <s...@platonix.com> wrote: > > Hi, > > > > Finally found the time to go through this discussion. > > > > The first note that comes to mind is: > >

Re: Feedback on Django Channels

2016-04-01 Thread Shai Berger
Hi, Finally found the time to go through this discussion. The first note that comes to mind is: Although it has already been pointed out more than once that positional arguments cannot follow keyword arguments, you both (Andrew and Vincent) keep giving examples such as # SYNTAX ERROR

Re: A helpful ImportError for manage.py when Django isn't installed/available

2016-04-01 Thread Shai Berger
An idea: Catch the exception; in the handler, try to simply "import django". If this works, reraise, if it fails, print helpful message. On Thursday 31 March 2016 20:15:05 Tim Graham wrote: > Ben Welsh (palewire) raised a proposal on a GitHub pull request [0]: > > I've seen newbies flounder

Re: Value of tightening URLValidator/EmailValidator regular expressions?

2016-03-30 Thread Shai Berger
On Thursday 31 March 2016 02:03:26 Florian Apolloner wrote: > Having a new field seems overkill to me -- a new validation routine which > is less strict is something we should be able to do without backward compat > considerations. Strictly speaking, the new method is not less strict. It does

Re: An idea for Q filter objects

2016-03-30 Thread Shai Berger
On Tuesday 29 March 2016 05:07:14 Stephen J. Butler wrote: > Why not do this in the database? Create a view with an extra column that is > called "field_dttxt" that is to_char(field, 'Mon DD, '). Then add this > as a field to Django and let it use the normal Q lookups. > Why would you need

Re: bulk_create for multi table inheritance support

2016-03-30 Thread Shai Berger
On Tuesday 29 March 2016 13:19:01 Anssi Kääriäinen wrote: > > Personally I think we should just rename the method to fast_create() > and allow it to fall back to single row at time behavior. This way you > could safely call it for any objects on any database and know the > results will be OK. I

Re: Value of tightening URLValidator/EmailValidator regular expressions?

2016-03-30 Thread Shai Berger
On Wednesday 30 March 2016 15:45:23 Tim Graham wrote: > How did you imagine the deprecation cycle working? Do you want Django to > raise a warning saying that the regular expression is changing and provide > a temporary setting or something to opt-in to the simpler validation? > Yes, that's one

Re: Revisiting lazy middleware initialization

2016-03-27 Thread Shai Berger
Fred, The thread (and Ben) is talking about "lazy load" in the sense of "wait until the first request comes in, only then load things". This used to be the way all of Django behaved until 1.7 and the app refactor. These days, it only applies to some parts -- middleware is the topic of this

New planet server (was Re: Request for help -- please test the new planet server)

2016-03-27 Thread Shai Berger
Hi all, I've made the DNS changes, and within a few hours all planet users should be using the new server. If you encounter any problems, please let us know. Thanks, Shai On Sunday 20 March 2016 14:37:11 Shai Berger wrote: > Hi everybody, > > As you may be aware, we have bee

Re: אוגוסט פינגווין 2016

2016-03-27 Thread Shai Berger
אני רוצה לעזור, איפה אני נרשם? > > On Mar 27, 2016 10:14 AM, "Shai Berger" <s...@platonix.com> wrote: > > חברים, ידידים ועוקבים שלום, > > > > אמ;לק: אם אתם רוצים אוגוסט פינגווין כמו בשנה שעברה, אתם צריכים לארגן > > אותו. > > > > אוגוסט פינ

אוגוסט פינגווין 2016

2016-03-27 Thread Shai Berger
חברים, ידידים ועוקבים שלום, אמ;לק: אם אתם רוצים אוגוסט פינגווין כמו בשנה שעברה, אתם צריכים לארגן אותו. אוגוסט פינגווין 2015 היה כנס מגוון עם מבחר הרצאות בנושאים שונים הקשורים לתכנה חופשית ולקוד פתוח. מהתגובות שהגיעו אליי, ומהרושם שקיבלתי בכנס עצמו, נראה שהוא גם היה כנס מעניין ומוצלח בסך הכל,

Re: Proposal on Custom Indexes - Google Summer of Code

2016-03-26 Thread Shai Berger
On Monday 14 March 2016 12:15:33 akki wrote: > > you can't have identical indexes defined in multiple ways with the same > > names. > > Yes, I will be checking for the duplications at the autodetector level > itself. We need to take care that no two indexes are for the same fields, > and none of

Re: Value of tightening URLValidator/EmailValidator regular expressions?

2016-03-26 Thread Shai Berger
On Tuesday 15 March 2016 04:51:50 Markus Holtermann wrote: > > WRT the backwards compatibility issues: > > 2) You're not able to submit an email address that does not pass the new > validator but the old one. --> Unlikely, but when the new field is of > type="email" your rather modern browser

Re: MySQL data loss possibility with concurrent ManyToManyField saves

2016-03-24 Thread Shai Berger
On Wednesday 23 March 2016 11:50:59 Hugo Chargois wrote: > > ... MySQL's REPEATABLE READ may have > it flaws, it may cause repeating bugs because that level is a bit awry, > with its reads and writes that don't work the same, but all in all, it IS a > higher isolation level than READ COMMITTED.

Re: MySQL data loss possibility with concurrent ManyToManyField saves

2016-03-24 Thread Shai Berger
While there are some different opinions expressed here (mine included), the rough consensus seems to be to apply the for_update() patch to 1.8.x (it is neither needed nor applicable to 1.9.x) and change the transaction isolation level for 1.10 and going forward. To the best of my knowledge,

Re: MySQL data loss possibility with concurrent ManyToManyField saves

2016-03-22 Thread Shai Berger
On Tuesday 22 March 2016 11:57:03 Hugo Chargois wrote: > > I'm unsure that your relentless rant against MySQL is useful in this topic. I'm sorry if anyone sees it as a rant. It is intended as a technical argument that MySql's REPEATABLE READ is unsuitable for use as a default by Django. > >

Re: MySQL data loss possibility with concurrent ManyToManyField saves

2016-03-21 Thread Shai Berger
Hi, On Monday 21 March 2016 13:01:27 hcharg...@medici.tv wrote: > > I agree with Karen that documenting that some functions don't work is not > helping. Especially since this is Django's fault, not MySQL's. I mean, > sure, MySQL has some very weird isolation modes, I definitely agree with > Shai

Feature suggestion: Count database queries

2016-03-21 Thread Shai Berger
Hi, When working with large projects, it is sometimes the case that you run into problems where some edge case causes a pathologically high number of queries for processing a specific request. These cases are hard to debug, because it is not always easy to reconstruct the edge-case and even

Re: MySQL data loss possibility with concurrent ManyToManyField saves

2016-03-21 Thread Shai Berger
nging the isolation level has potential for >breaking working code. > > - Anssi > >On Mon, Mar 21, 2016 at 9:27 AM, Shai Berger <s...@platonix.com> wrote: >> First of all, I would like to say that I strongly support the move to >READ >> COMITTED, includi

Re: MySQL data loss possibility with concurrent ManyToManyField saves

2016-03-21 Thread Shai Berger
First of all, I would like to say that I strongly support the move to READ COMITTED, including backporting it to 1.8.x. But we also need to explain: REPEATABLE READ is a higher transaction isolation level than READ COMMITTED. If you have problematic code, it should lead to more deadlocks

Request for help -- please test the new planet server

2016-03-20 Thread Shai Berger
Hi everybody, As you may be aware, we have been working on putting up a new version of Hamakor's planet (feed aggregator) on our new server. The service is now up, except that DNS records still point at the old one. I want the transition to be as smooth and transparent as possible for you all,

Fwd: [pyweb-il:5560] Pycon IL registration is open!

2016-03-15 Thread Shai Berger
Apologies for cross-posting; we don't do this much, and we want to reach as many people as we can. --- Begin Message --- Hi all, Finally, Pycon Israel 2016 registration is open to the public! Sponsors reaction to the conference was great (almost all the sponsorship

Re: MySQL data loss possibility with concurrent ManyToManyField saves

2016-03-14 Thread Shai Berger
Hi, I just commented on the ticket, but wanted to clarify a few things here: On Tuesday 15 March 2016 00:48:02 Cristiano Coelho wrote: > The django-admin interface is quite bad at handling concurrent > modifications, this is one problem that might not happen on other backends > and is quite

[Aptitude-devel] Bug#731318: aptitude: keeps switching a package between architectures on safe-upgrade

2016-03-09 Thread Shai Berger
Hi Manuel, On Tuesday 08 March 2016 00:52:36 Manuel A. Fernandez Montecelo wrote: > > Did you keep observing this problem in recent years/releases? > I'm not sure when was the last time I saw the problem; anyway, since the last major ABI transitions (gcc 5 together with KDE5, IIRC) I have not

Bug#731318: aptitude: keeps switching a package between architectures on safe-upgrade

2016-03-09 Thread Shai Berger
Hi Manuel, On Tuesday 08 March 2016 00:52:36 Manuel A. Fernandez Montecelo wrote: > > Did you keep observing this problem in recent years/releases? > I'm not sure when was the last time I saw the problem; anyway, since the last major ABI transitions (gcc 5 together with KDE5, IIRC) I have not

Re: TransactionManagementError is raised when autocommit …

2016-03-06 Thread Shai Berger
Hi Tore, You should be able to get what you want be replacing your commits by connection.cursor.execute("commit"); transaction.rollback() or equivalents (caveat: untested). This looks like a very hackish thing to do, code I wouldn't put in production. And it should. Shai. On

<    1   2   3   4   5   6   7   8   9   10   >