From tzot at sil-tec.gr Sun May 16 21:11:10 2010 From: tzot at sil-tec.gr (Christos Georgiou) Date: Sun, 16 May 2010 22:11:10 +0300 Subject: [PyAthens] =?utf-8?b?zpzOuc6xIM65z4PPhM6/z4HOr86xIM+Az4zOvc6/z4U=?= Message-ID: <4BF0434E.6030007@sil-tec.gr> ???????, ? ???????????. ????? ???? ?? ????????? ??? ?? ?? ??? ???? ??? ?? ???????? ????????? ??? ??????? ?? ?? ??????????. ??? ???? ?? ?? ???????????, ?? ?? ?????????, ?? ?? ?????????? ???? ???? ?? ?? ????????. ?? ???????, ??? link: http://stackoverflow.com/questions/2484156/ ??? stackoverflow.com , ??????? ???????? ?????? ????? ?? ??????????? ?? ??? string ???? ?????????? ??? ????? ??????? ??? ??? HTML ?? charrefs (????????). ? ???? ??? ???? ?????: return string.replace('&', '&').replace('<', '<').replace('>', '>').replace("'", ''').replace('"', '"') ???? ??? ??? ??? ????? ??? ?????? ?? ????? .replace ??? ???? ?????????, ??? ????, ???????? multi_replace?; ?? ?????????? ???? ????????, ??? ??? ??? ???? ?????????? ??? ???????? ??? ???????, ????? ???? ????????? ??? ???? ???????, ????? ? ??????????. ??? ????? ?????. ??? ????????, ????? ??? ??????, ?? ?????????? ?????? ??? ??? unicode.translate ??? strings, ???? ???? ???? ??? ?????? ?? ?????????????? replacements ?? ????? ??? ??? ???? ?????????. ?? ??? ????? ???? ??????.? ??? ??? ?????? ?????????? ????. ??????? ???? ?????? ???????? (??? ?? ??????? ? ?????? ???, ???? ???? ?? ??? ???????? ?? ??????? ?????? ??? ?????? ??????, ????;) ? ?????? ?? ?????? ??????????? ??? ???? ??? ? ????????: [1] ????? ????? (??? ?????), [2] ????? ?????????? (??? ???????? ????????????? ??????????? ??? itertools, ????? ???????? ?? functional territory, ?? ????????, ????, ?? ??????? ??????????, ????? ???? ?????? ??????), [3] ????? inefficient (??? ?????, ??? ? ??????????? ??? ??????? ?? ????????? ??? ??????), [4] ???????????? ?? byte strings ??? ??? ????? i18n friendly (???, ??? ????, ???? ??? ????????? ??? ??? ???????? ???? ??? ?? ????, ???????? ??? ???????? ??? ??? ?? ??? ???? unicode friendly). ??? ???????? ?????????? (??? ??????? ????? ??? ????? ??? ??????????:), ???? ? ????? ???????? ??? ? ??????? ????? ?????, ???? ? ????? ??? ????????? ?????. ?????????? ???? ????? ????? ??? ????? ?? ??????? ???? dict, ??? ??? ??? ??? ??????? ??? ???? dict.__iter__, ???? ???? dict.__getitem__. ????? ???????? ??? ?????? ????? ?? ???? ????????? ??? ??????. ????? ??? ???????? ????? ??? ?????? ??? ??? ???????????????? ???? (??? ?? ??????? ?????? ????? ???? ??? ?????????) ?? ??????? ?????????? ??? ???????. http://stackoverflow.com/questions/2484156/is-str-replace-replace-ad-nauseam-a-standard-idiom-in-python/2487614#2487614 ?? ????? ??? ???????? ????? ??? ?? ????? ?? ????? ???????? ??? ??? ??? ??????? ?? ????? ? ??????? ???, ???? ?? ???????? ?? ??? ???? ??? ??? ?????? ?? ??? ?????????? ??? ??????? ???? ?? ???????????. ????? ??? ????????? ??? ??????? ????? ??? ???? ???????. ?? ?? ?????????? ??? ????? ?? TASPython ??? ???????? ?? ??????? ???????? ???; From orestis at orestis.gr Sun May 16 22:17:58 2010 From: orestis at orestis.gr (Orestis Markou) Date: Sun, 16 May 2010 23:17:58 +0300 Subject: [PyAthens] =?utf-8?b?zpzOuc6xIM65z4PPhM6/z4HOr86xIM+Az4zOvc6/z4U=?= In-Reply-To: <4BF0434E.6030007@sil-tec.gr> References: <4BF0434E.6030007@sil-tec.gr> Message-ID: <67A985FD-7A87-4DC8-97E0-0DB246295262@orestis.gr> On 16 May 2010, at 22:11, Christos Georgiou wrote: > ???????, ? ???????????. ????? ???? ?? ????????? ??? ?? ?? ??? ???? ??? ?? ???????? ????????? ??? ??????? ?? ?? ??????????. ??? ???? ?? ?? ???????????, ?? ?? ?????????, ?? ?? ?????????? ???? ???? ?? ?? ????????. ???? ?? ??? ????????? ?????! ????? ??? def escape(a_string): replacer= { '&': '&', '<': '<', '>': '>', '"': '"', "'": ''', } return ''.join(replacer.get(s, s) for s in a_string) (???? ??? ?? ??????) > ?? ????? ??? ???????? ????? ??? ?? ????? ?? ????? ???????? ??? ??? ??? ??????? ?? ????? ? ??????? ???, ???? ?? ???????? ?? ??? ???? ??? ??? ?????? ?? ??? ?????????? ??? ??????? ???? ?? ???????????. Do not feed the trolls :) > > ????? ??? ????????? ??? ??????? ????? ??? ???? ???????. > > ?? ?? ?????????? ??? ????? ?? TASPython ??? ???????? ?? ??????? ???????? ???; > _______________________________________________ > PyAthens mailing list > PyAthens at python.org > http://mail.python.org/mailman/listinfo/pyathens From tzot at medbar.gr Sun May 16 22:34:38 2010 From: tzot at medbar.gr (Christos Georgiou) Date: Sun, 16 May 2010 23:34:38 +0300 Subject: [PyAthens] =?utf-8?b?zpzOuc6xIM65z4PPhM6/z4HOr86xIM+Az4zOvc6/z4U=?= In-Reply-To: <67A985FD-7A87-4DC8-97E0-0DB246295262@orestis.gr> References: <4BF0434E.6030007@sil-tec.gr> <67A985FD-7A87-4DC8-97E0-0DB246295262@orestis.gr> Message-ID: <4BF056DE.7030902@medbar.gr> Orestis Markou wrote: > On 16 May 2010, at 22:11, Christos Georgiou wrote: > >> ???????, ? ???????????. ????? ???? ?? ????????? ??? ?? ?? ??? ???? ??? ?? ???????? ????????? ??? ??????? ?? ?? ??????????. ??? ???? ?? ?? ???????????, ?? ?? ?????????, ?? ?? ?????????? ???? ???? ?? ?? ????????. > > ???? ?? ??? ????????? ?????! > > ????? ??? > > def escape(a_string): > replacer= { > '&': '&', > '<': '<', > '>': '>', > '"': '"', > "'": ''', > } > return ''.join(replacer.get(s, s) for s in a_string) > > (???? ??? ?? ??????) ??? ???????? ???? (??? ????? ? ???? ??????? ?? ?? ???? ???, ???? ????? itertools :) ?????? ??? ??????? ????? ?? ???? ?????????. ??? ???????? ????? ??? ???????????. ??? ?????? ??? ??????? ?? ??? ??????, ???? ?? ??? ???? ??? ????? ??? ????? ????? ??? ?? ??? ??????! ??????, ????? ??????????? ?? ????? ?I won't feed the trolls\n?*100 (????? ?? ??????? ????? ??? ???????? ????????????;) From alefteris at gmail.com Sun May 16 22:59:01 2010 From: alefteris at gmail.com (Thanos Lefteris) Date: Sun, 16 May 2010 23:59:01 +0300 Subject: [PyAthens] =?utf-8?b?zpzOuc6xIM65z4PPhM6/z4HOr86xIM+Az4zOvc6/z4U=?= In-Reply-To: <4BF056DE.7030902@medbar.gr> References: <4BF0434E.6030007@sil-tec.gr> <67A985FD-7A87-4DC8-97E0-0DB246295262@orestis.gr> <4BF056DE.7030902@medbar.gr> Message-ID: ?????????? ??? ??? ????????????, ?? ?????? ??? ???????? ????? ???? http://xkcd.com/386/ :p From tzot at sil-tec.gr Sun May 16 23:38:05 2010 From: tzot at sil-tec.gr (Christos Georgiou) Date: Mon, 17 May 2010 00:38:05 +0300 Subject: [PyAthens] =?utf-8?b?zpzOuc6xIM65z4PPhM6/z4HOr86xIM+Az4zOvc6/z4U=?= In-Reply-To: References: <4BF0434E.6030007@sil-tec.gr> <67A985FD-7A87-4DC8-97E0-0DB246295262@orestis.gr> <4BF056DE.7030902@medbar.gr> Message-ID: <4BF065BD.2060909@sil-tec.gr> Thanos Lefteris wrote: > ?????????? ??? ??? ????????????, ?? ?????? ??? ???????? ????? ???? > http://xkcd.com/386/ :p ??. ???? ?? ????????? ?? ??????? ??? ?? ????????? ?? ?????????, ?? ???????????? ??? ??? ??????????? ??: http://www.flamewarriors.com/warriorshtm/crybaby.htm ??? stackoverflow ?? ??????: http://www.flamewarriors.com/warriorshtm/tirelessrebutter.htm ??? ?? ????? ?? ?????: http://www.flamewarriors.com/warriorshtm/kungfumaster.htm From anthony at itia.ntua.gr Mon May 17 10:40:07 2010 From: anthony at itia.ntua.gr (Antonis Christofides) Date: Mon, 17 May 2010 11:40:07 +0300 Subject: [PyAthens] =?utf-8?b?zpzOuc6xIM65z4PPhM6/z4HOr86xIM+Az4zOvc6/z4U=?= In-Reply-To: <4BF0434E.6030007@sil-tec.gr> References: <4BF0434E.6030007@sil-tec.gr> Message-ID: <4BF100E7.9090602@itia.ntua.gr> > ??? stackoverflow.com , ??????? ???????? ?????? ????? ?? ??????????? ?? ??? > string ???? ?????????? ??? ????? ??????? ??? ??? HTML ?? charrefs (????????). ??? ???? ????? ?? ???????? ?? ??? urllib.quote; From tzot at sil-tec.gr Mon May 17 12:26:48 2010 From: tzot at sil-tec.gr (Christos Georgiou) Date: Mon, 17 May 2010 13:26:48 +0300 Subject: [PyAthens] =?utf-8?b?zpzOuc6xIM65z4PPhM6/z4HOr86xIM+Az4zOvc6/z4U=?= In-Reply-To: <4BF100E7.9090602@itia.ntua.gr> References: <4BF0434E.6030007@sil-tec.gr> <4BF100E7.9090602@itia.ntua.gr> Message-ID: <4BF119E8.60800@sil-tec.gr> Antonis Christofides wrote: >> ??? stackoverflow.com , ??????? ???????? ?????? ????? ?? ??????????? > ?? ??? >> string ???? ?????????? ??? ????? ??????? ??? ??? HTML ?? charrefs > (????????). > > ??? ???? ????? ?? ???????? ?? ??? urllib.quote; ??? ??? ????? ?? ??????? ??? ????? ? ?????. ? urllib.quote ??????????? ?? %xx ???? ?????????? ??? ??? ???????????? ??? URL, ??? ? ????? ????? ?? ??????????? ?? ??????? ??? ?? ?????????? ?? ?????? HTML. From brigitajones at yahoo.com Mon May 17 12:37:50 2010 From: brigitajones at yahoo.com (Brigita Jones) Date: Mon, 17 May 2010 03:37:50 -0700 (PDT) Subject: [PyAthens] Django Message-ID: <809327.90758.qm@web114610.mail.gq1.yahoo.com> I have installed Django and MySQL, but have some issues trying to make Django talk to MySQL for my after tummy tuck site. django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb Anyone ideas? -------------- next part -------------- An HTML attachment was scrubbed... URL: