Re: Why "flat is better than nested"?

2010-10-26 Thread Steve Holden
On 10/26/2010 2:44 PM, kj wrote: > In Steve Holden > writes: > >> The answer is probably the same as you will see if you try > >> from __future__ import braces > >> That feature *is* available in Python 2.6 ;-) > > Now, that's hilarious. >

Re: Unicode questions

2010-10-26 Thread Steve Holden
ng. > > http://justfuckinggoogleit.com/ Neither friendly nor helpful, John. Silence might have been more productive: feeling crabby today? regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http://us.pycon.org/ See Python Video!

Re: SELECT * FROM `student` WHERE mark=(select max(mark) from student)

2010-10-26 Thread Steve Holden
On 10/26/2010 12:40 PM, Phlip wrote: > Note that "isabelle_item" appears twice. We are following the auditing > rule "always write new records to change data - never edit previous > records". Someone edited isabelle_item's payload data (not shown), so > we add a new record without touching the exis

Re: Why "flat is better than nested"?

2010-10-26 Thread Steve Holden
ould prefer the ZoP > out of the standard library, to save myself having to tell those > who are even newer to Python than me not to take it seriously.) The answer is probably the same as you will see if you try from __future__ import braces That feature *is* available in Python 2.6 ;-) re

Re: how to use tkinter widget in django

2010-10-26 Thread Steve Holden
On 10/26/2010 8:50 AM, jimgardener wrote: > thanks for the replies.. > I am wondering if javascript is the only alternative if I want to use > such a custom widget. > If anyone knows about any such python widget please tell me.. > regards > jim > Jim: The reason you can forget using Python is tha

Re: how to use tkinter widget in django

2010-10-26 Thread Steve Holden
On 10/26/2010 7:17 AM, jimgardener wrote: > is it possible to use the sliderlike Scale widget from tkinter in > django?I am coding a web app where I need to get a numerical value > entered by the user.I thought ,instead of asking the user to enter a > value in a textfield ,I would provide a slider

Re: Unix-head needs to Windows-ize his Python script (II)

2010-10-25 Thread Steve Holden
act that the console is also a GUI window is an >> implementation detail ... > > It is not an implementation detail. It is intrinsic to the way Windows > works. No other OS does it backwards like this. I really don't understand what you are trying to say here. Could you pleas

Re: Why "flat is better than nested"?

2010-10-25 Thread Steve Holden
On 10/25/2010 3:11 PM, kj wrote: > In Steve Holden > writes: > >> On 10/25/2010 10:47 AM, rantingrick wrote: >>> On Oct 25, 5:07 am, kj wrote: >>>> In "The Zen of Python", one of the "maxims" is "flat is better than >>>&g

Re: Unicode questions

2010-10-25 Thread Steve Holden
On 10/25/2010 2:36 PM, Terry Reedy wrote: > On 10/25/2010 2:33 AM, Steve Holden wrote: >> On 10/25/2010 1:42 AM, Lawrence D'Oliveiro wrote: >>> In message, Petite >>> Abeille wrote: >>> >>>> Characters vs. Bytes >>> >>

Re: Question on multiple python environments in Apache

2010-10-25 Thread Steve Holden
en. These will be on a dedicated test server so > performance is not an issue. > > Does anyone know of a good FAQ that discusses this? > > Thanks in advance, > > Jeff -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http://

Re: Why "flat is better than nested"?

2010-10-25 Thread Steve Holden
> and then you shall be enlightened! > And everyone taking the Zen too seriously should remember that it was written by Tim Peters one night during the commercial breaks between rounds of wrestling on television. So while it can give useful guidance, it's nether prescriptive nor a bible ...

Re: nntplib and ssl

2010-10-25 Thread Steve Holden
roblem. > >> It's probably not very difficult to write such a patch. You mostly need >> to wrap the connection in an SSL socket, then give that socket to the >> NNTP connection class. Details will be found out by studying the >> nntplib code. > > I migh

Re: Exception Handling in Python 3

2010-10-25 Thread Steve Holden
On 10/25/2010 2:57 AM, Martin v. Loewis wrote: > Am 24.10.2010 23:48, schrieb Steve Holden: >> On 10/24/2010 4:44 PM, John Nagle wrote: >>> Are exception semantics changing in a way which would affect >>> that? >> >> No, I don't believe so. I simpl

Re: What does an ideal django workflow setup look like?

2010-10-24 Thread Steve Holden
On 10/25/2010 2:02 AM, Kenneth Gonsalves wrote: [shacker] >> Another approach to this problem: >> >> settings.py IS in version control and includes settings >> that are universal to all environments (local dev, staging, >> production), but has dummy info or empty strings for >> passwords or paths

Re: Unicode questions

2010-10-24 Thread Steve Holden
res - indeed the DECSystem-10 and -20 had instructions that could be parameterized as to byte size. So octet was an unambiguous term for the (now standard) 8-bit byte. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http://us.p

Re: Unix-head needs to Windows-ize his Python script (II)

2010-10-24 Thread Steve Holden
's not. The fact that the console is also a GUI window is an > implementation detail: it happens to be displayed within a GUI > environment. and, in fact, the console is only a GUI window in a windowed system. It might be one of the console emulation windows that init starts

Re: How do I chain methods?

2010-10-24 Thread Steve Holden
; "uncommon idiom" is a near-oxymoron, I think we can safely conclude > that method chaining isn't idiomatic in Python. Not that it doesn't > have specialized uses though (See asterisk note). > Yes, the Twisted guys use method chaining a lot - it's definitely id

Re: How to optimize and monitor garbage collection?

2010-10-24 Thread Steve Holden
to create cyclic data structures. In their absence reference counting alone is sufficient to ensure that unused object memory is reclaimed. regards Steve [aside: in general, if you think your program is not working because of a bug in Python, look harder at your program]. -- Steve Holden

Re: Exception Handling in Python 3

2010-10-24 Thread Steve Holden
et you do that, but Python insists that you don't dick around with the built-in types. And roghtly so, IMHO. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http://us.pycon.org/ See Python Video! http://python.mirocommunity.

Re: How do I chain methods?

2010-10-24 Thread Steve Holden
lot in Python itself: > >>>> x = 4 >>>> x.__add__(1).__sub__(3) > 2 > > The implementation of many common operators return self (the object > you're working with). > You surely aren't trying to suggest that (4).__add__(1) returns 4? regards Stev

Re: newbie to python

2010-10-24 Thread Steve Holden
On 10/24/2010 5:19 PM, rantingrick wrote: > On Oct 24, 7:31 am, Steve Holden wrote: >> On 10/24/2010 3:29 AM, Hrishikesh wrote: >> >>> I want to start python, I have just downloaded python compiler, Can >>> somebody please tell me what python really is and expl

Re: Exception Handling in Python 3

2010-10-24 Thread Steve Holden
handled. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http://us.pycon.org/ See Python Video! http://python.mirocommunity.org/ Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinf

Re: time difference interms of day

2010-10-24 Thread Steve Holden
un and subtract datetime.datetime.now() at the end, giving you a datetime.delta object which contains days, seconds and microseconds: >>> import datetime >>> t1 = datetime.datetime.now() [waited a while] >>> t2 = datetime.datetime.now() >>> t2-t1 datetime.timedel

Re: Exception Handling in Python 3

2010-10-24 Thread Steve Holden
On 10/24/2010 2:22 AM, Lawrence D'Oliveiro wrote: > In message , Steve > Holden wrote: > >> I was somewhat surprised to discover that Python 3 no longer allows an >> exception to be raised in an except clause (or rather that it reports it >> as a separate ex

Re: newbie to python

2010-10-24 Thread Steve Holden
swers to *any* of those questions, one wonders why you "want to start Python". Perhaps you can explain, or is this simply trolling? regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http://us.pycon.org/ See Python Video! http

Re: Exception Handling in Python 3

2010-10-24 Thread Steve Holden
On 10/24/2010 4:48 AM, Martin v. Loewis wrote: > Am 24.10.2010 07:01, schrieb Steve Holden: >> I was somewhat surprised to discover that Python 3 no longer allows an >> exception to be raised in an except clause (or rather that it reports it >> as a separate exception tha

Re: Exception Handling in Python 3

2010-10-23 Thread Steve Holden
re ought to be some way to suppress that __context__. From the user's point of view the fact that I am raising AttributeError because of some implementation detail of __getattr__() is exposing *way* too much information. I even tried calling sys.exc_clear(), but alas that doesn't help

Re: Python 2.7 parser bug on syntax for set literals ?

2010-10-23 Thread Steve Holden
sys.version >>> '2.7.0+ (r27:82500, Sep 15 2010, 18:14:55) \n[GCC 4.4.5]' >>>>>> ({'', 1}.items()) >>> Traceback (most recent call last): >>> File "", line 1, in >>> AttributeError: 'set' object has no attribute 'it

Exception Handling in Python 3

2010-10-23 Thread Steve Holden
;s __getattr__() method this means that instead of being able to say try: value = _attrs[name] except KeyError: raise AttributeError ... I am forced to write if name not in _attrs: raise AttributeError ... value = _attrs[name] which requires an unnec

Re: call more than one view action from an uri path?

2010-10-21 Thread Steve Holden
On 10/21/2010 2:24 PM, ringemup wrote: > #urls.py > #note: untested regex, but a regex should be able to do this > url('^((\w+)/(\d+)/)+$', 'myview', ...) > Oops. I omitted to point out (though the OP picked it up) that a repeated group in a regex only leaves behind its last match in the match ob

Re: call more than one view action from an uri path?

2010-10-21 Thread Steve Holden
On 10/21/2010 2:24 PM, ringemup wrote: > You can't do something like this? > > #urls.py > #note: untested regex, but a regex should be able to do this > url('^((\w+)/(\d+)/)+$', 'myview', ...) > > #views.py > # note: this is pseudocode > def myview(request, *args, **kwargs): > # iterate through

Re: call more than one view action from an uri path?

2010-10-21 Thread Steve Holden
On 10/21/2010 9:36 AM, Phlip wrote: > On Oct 21, 5:26 am, Scott Gould wrote: > >> What's your use case? Are "nest, pest and rest" always "nest, pest and >> rest" -- or could they be "rest, pest and nest", or "nest, best, and >> rest"? > > Tx but - the use case is we can't do it like you said. C-

Re: /admin list help ASAP

2010-10-20 Thread Steve Holden
On 10/20/2010 11:55 PM, Mike Dewhirst wrote: > On 21/10/2010 1:24pm, Bobby Roberts wrote: >> hi all. I have two models setup let's call them >> >> Gallery >> Photos >> >> photos has a field as such: >> >> GalleryId = models.ForeignKey('Gallery', verbose_name=_('Gallery Id'), >> related_name='Galle

Re: about site price

2010-10-20 Thread Steve Holden
On 10/20/2010 4:17 PM, Lic. José M. Rodriguez Bacallao wrote: > hi folks, I have a client that need to develop a bet site like this: > http://www.webapuestas.com/ > the problem is that I am new in the business and I don't know how much > money can I ask for a > this work, can someone help me and ta

Re: Displaying a template table using a query set

2010-10-20 Thread Steve Holden
On 10/20/2010 7:58 AM, Pranav wrote: > > > On Oct 20, 4:13 pm, Daniel Roseman wrote: >> On Oct 20, 8:29 am, Pranav wrote: >> >> >> >> >> >>> I'm trying to display a table in template using the result retrieved >>> from a query set, but i get problem when i try to display the table >>> iterating

Re: Different logins in same browser session and login_required

2010-10-20 Thread Steve Holden
On 10/20/2010 5:20 AM, PyMan wrote: > > > On 20 Ott, 10:28, Daniel Roseman wrote: >> On Oct 20, 8:11 am, PyMan wrote: >> Firefox has long had its "profile" functionality. >> firefox -no-remote -ProfileManager >> You can create multiple firefox profiles, then run multiple instance

Re: MaxValueValidator to validate a model

2010-10-18 Thread Steve Holden
On 10/15/2010 9:18 PM, refreegrata wrote: > Now works. > validators=[MaxValueValidator(Decimal('14.5')) > > But I must to do an explicit declaration Decimal('14.5'). > > Somebody knows why? Because only decimal numbers can give exact comparisons to arbitrary decimal values. You would not want yo

Re: Escaping text for raw SQL?

2010-10-12 Thread Steve Holden
On 10/12/2010 4:34 PM, Nick Arnett wrote: > > > On Tue, Oct 12, 2010 at 9:00 AM, Javier Guerra Giraldez > mailto:jav...@guerrag.com>> wrote: > > On Tue, Oct 12, 2010 at 10:46 AM, Nick Arnett > wrote: > > Anybody know a good way to do this? > > Word

Re: trouble creating first project

2010-10-12 Thread Steve Holden
On 10/12/2010 4:02 PM, Robbington wrote: > I mention this because some one has said that it is to do with your > Python path, and this isnt true, its to do with the way you installed > django in the first place. It's nothing to do with the Python path (which is held in sys.path, and is essentially

Re: trouble creating first project

2010-10-11 Thread Steve Holden
On 10/11/2010 1:47 AM, Phil wrote: > Hi, > > I am having trouble creating my first project. I am running the latest > version of Ubuntu and I installed Django from svn, when I run 'import > django' i get no errors back so I assume its installed OK. > > When I run 'django-admin.py startproject myp

Re: I can't select day with calendar widget

2010-10-09 Thread Steve Holden
As others have observed, I see the correct dates for holidays I created, including 2010-10-10. regards Steve On 10/9/2010 7:46 AM, Rene Vielma wrote: > Hello > > I've upload the sandbox project whit develop server to > http://200.63.96.245:8000/admin/ > user and p: test > > For you can check

Re: dictionary doesn't get properly updated

2010-10-07 Thread Steve Holden
e) you are using Apache as a front-end then, as I understand it, >> there are no guarantees about that. >> -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http://us.pycon.org/ See Python Video! http://python.mirocommunity.or

Re: dictionary doesn't get properly updated

2010-10-07 Thread Steve Holden
On 10/7/2010 10:20 AM, jimgardener wrote: [...] > > When the view add_new_threadobj() is executed a couple of times,this > is the print output > adding for the first time, > tm= > TM::before::threads: {} > TM:: add_thread()::added=threadname1 > TM::after::threads: {'threadname1': daemon)>} > >

Re: Possible backwards incompatibility introduced by change 12950 (in upgrade from 1.1.1 to 1.1.2)

2010-10-07 Thread Steve Holden
On 10/7/2010 3:24 AM, Jyrki Pulliainen wrote: >> So -- my original analysis still stands -- albeit for slightly more >> > complex reasons. The issue here is that your code was previously in >> > error, and now we're a little more vigilant about reporting the >> > potential problem. > Now that you'v

Re: data synchronization

2010-10-06 Thread Steve Holden
On 10/6/2010 9:17 PM, hooda_28 wrote: > good day django peeps, i don't know if this is the right place to post > here but im giving it a try, > > website A is a publishing company, then website B is an agent of > website, as an agent some of the orders from website B are given to > website A. both

Re: admin site not working, problem with urls.py?

2010-10-06 Thread Steve Holden
indocs.urls')), > ># Uncomment the next line to enable the admin: >(r'^stories/$','ccu_gen.views.all_stories'), >(r'^stories/(?P\d+)/$', 'ccu_gen.views.one_story'), >(r'^admin/', in

Re: Django app that uploads media files and servers them through a view?

2010-10-06 Thread Steve Holden
On 10/6/2010 7:17 AM, Kenneth Gonsalves wrote: > On Thu, 2010-09-30 at 04:20 -0700, Stodge wrote: >> Is anyone aware of a Django app that lets you upload media files (not >> necessarily in the admin site) but serves them through a view instead >> of as static files via the web server? I need to con

Re: Django Registration password reset problem

2010-10-05 Thread Steve Holden
On 10/5/2010 4:45 PM, Joel Klabo wrote: > Need to bump this, sorry. I don't get it. > > On Oct 5, 1:04 pm, Joel Klabo wrote: >> This is the error and location of the problem:http://gist.github.com/612210, >> I can't see what it's looking for. It seems like I could hard code the >> arguments it wa

Re: [pydotorg-www] Fwd: Zimbio Inc. - PSF Sponsor Membership - PSF Board Resolution Notification

2010-10-05 Thread Steve Holden
gt;>> -- >>> Pat Campbell >>> PSF Administrator/Secretary >>> <mailto:pat...@python.org>pat...@python.org >>> <mailto:pat...@python.org> >>> >>> >

Re: treating different versions of website urls as one

2010-10-05 Thread Steve Holden
page /data will be the same. > .This is why I need to consider the validation for duplicates > thanks for the replies > harry > > On Oct 5, 10:00 pm, Steve Holden wrote: >> What aboutwww.mysite.com/default.asp?It might be helpful if you could >> give us a little more in

Re: treating different versions of website urls as one

2010-10-05 Thread Steve Holden
What about www.mysite.com/default.asp? It might be helpful if you could give us a little more insight into the real requirement here, rather than a technical question based on some interpretation of the requirement. regards Steve On 10/5/2010 12:57 PM, Alec Shaner wrote: > Definitely sounds like

Re: convert list into a comma separated string

2010-10-04 Thread Steve Holden
On 10/4/2010 8:49 AM, ashy wrote: > Hi All, > > my code is as below: > li = ['2l','1l'] > str = ",".join(li) > > but print str does not work for me :( > "Does not work" is hardly a sufficient description of your problem, I suspect. If I tell you my car "does not work", would you be able to tell

Re: Any way to select which Model to initialize without resorting to "if-elfi" statements?

2010-10-03 Thread Steve Holden
On 10/3/2010 4:04 AM, Andy wrote: > I need to model many different product categories such as TV, laptops, > women's apparel, men's shoes, etc. > > Since different product categories have different product attributes, > each category has its own separate Model: TV, Laptop, WomensApparel, > MensSho

Re: Django documentation search not working

2010-10-02 Thread Steve Holden
On 10/2/2010 4:45 PM, NoviceSortOf wrote: > I used to be able to go to the following link and > seach django documents. > > http://docs.djangoproject.com/en/dev//search/ > >>From there I could search anything from 'widgets' to > 'login()' and find the related document/page discussion that time. >

Re: Django website down?

2010-10-02 Thread Steve Holden
On 10/2/2010 5:50 PM, diogobaeder wrote: > Hi, guys, > > Is the Django website down? I've been trying to access it for days, > but I just can't get in. Has anyone here been able to access it > normally these days? > > Thanks! > > Diogo > http://www.downforeveryoneorjustme.com/djangoproject.com

Re: Error

2010-10-01 Thread Steve Holden
On 10/1/2010 1:12 PM, Tsolmon Narantsogt wrote: > Hi there > > i got this error > > *Exception RuntimeError: 'maximum recursion depth exceeded while calling > a Python object' in > help me > Was this *really* the only output you got? [I suppose it's possible, given the nature of the error]. Or

[issue10000] mark more tests as CPython specific

2010-09-30 Thread Steve Holden
Steve Holden added the comment: Of course, but better some record than none due to the overwhelming nature of the task. At least someone else can carry the torch from here. -- nosy: +holdenweb ___ Python tracker <http://bugs.python.org/issue10

Re: Full Text Search

2010-09-30 Thread Steve Holden
On 9/30/2010 8:26 PM, Nick Arnett wrote: > Brain is mush, though. Obviously, otherwise you'd have left it in the hope that someone else would reply with an answer before you recovered consciousness. Great heavens, this community is *so* anxious to help. Kudos for trying with a frazzled brain! reg

Re: Need opinion for an object permission rule backend

2010-09-30 Thread Steve Holden
On 9/30/2010 1:55 PM, Miguel Araujo wrote: > Hi Michael, > > I have been looking at your project, django.extauth and I have to say I > really like its architecture and permission handling. I have to say that > my rule system is kind of the same thing of your role system, except > mine is less flex

Re: DjangoCon 2011

2010-09-30 Thread Steve Holden
On 9/30/2010 10:36 AM, sserrano wrote: >> I live in Argentina, If I wanted to go to the DjangoCon in >> Portland, it would require a Bus to Buenos Aires, then take an >> international flight to a US mayor city and then another to reach >> Portland, overall I would be travelling more nearly an entir

Re: url not going to view

2010-09-30 Thread Steve Holden
Just as "^" means "start of string" so "$" mean "end of string", so "^$" means a string where the end is next to the beginning. You can read the Python documentation for the "re"module for more insight into all this. regards Steve On 9/30/2010 11:20 AM, Bradley Hintze wrote: > LOL, let me rephr

Re: template syntax errors in production admin site (version problem?)

2010-09-30 Thread Steve Holden
On 9/30/2010 9:50 AM, bobbymanuel wrote: > Hi all - i've got a mysterious problem with my admin templates and I > think its a version problem but can't figure it out. > > The contrib.admin templates seem to be throwing some very crazy > TemplateSyntaxError(s) in many of the admin templates when i

Re: UnicodeEncodeError

2010-09-29 Thread Steve Holden
vices for where to look for this to happen ? > > I have a basic 'Bien' class and a *very basic* 'Image' class (with a > ForeignKey to Bien). > BienAdmin has a ImageInline and that's all. > > I am a bit confused.. > > cheers, > _y > > > &

Re: UnicodeEncodeError

2010-09-29 Thread Steve Holden
It sounds to me as though the image is being transmitted with the wrong MIME Type. Image files are binary data, but something in your application is treating is as a string. regards Steve On 9/29/2010 1:05 PM, werefr0g wrote: > Hi, > > You should check that your file is actually utf-8 encoded

Re: [Python-Dev] Atlassian and bitbucket merge

2010-09-29 Thread Steve Holden
sh one way or the other (and Dirkan's points about tailored commit hooks seems compelling); I simply want to make sure that as much developer time as possible is actually spent developing Python rather than supporting the development effort in various ways that aren't as directly productive.

Re: What is the correct way to copy an object from one model to a similar model?

2010-09-29 Thread Steve Holden
On 9/29/2010 5:25 AM, Daniel Roseman wrote: > On Sep 29, 6:06 am, Yo-Yo Ma wrote: >> I have two models that are identical in structure except one has 2 >> extra fields. The second one is used for record keeping and is never >> edited by users. The system takes the first model and copies it to the

Re: How to get an ajax call to return both QuerySet and paging info in Django

2010-09-28 Thread Steve Holden
On 9/28/2010 10:42 PM, Dmitrij wrote: > I am trying to implement paging across ajax calls. The page should not > refresh when the user wants to see the next x num of results. > > Here is my problem. Returning the QuerySet is super simple. I just do > (sumaJson is custom) > > data = serializer

Re: Model field choices

2010-09-28 Thread Steve Holden
On 9/28/2010 10:39 PM, Derek wrote: > I have a model which has choices specified for the "offer_type" field: > > class Coupon(models.Model): > offer_types = ( > (1, 'Percentage Off'), > (2, 'Amount Off'), > (3, 'Free'), > ) > > business

[Python-Dev] Atlassian and bitbucket merge

2010-09-28 Thread Steve Holden
server. Or is self-hosting the only acceptable solution? From recent mail it looks likes we may be up and running on Hg fairly soon. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 DjangoCon US September 7-9, 2010http://djangocon.us/ See Python Video!

Re: DjangoCon 2011

2010-09-28 Thread Steve Holden
those costs? I'm finding it difficult to imagine how that could practically be done. regards Steve > On Sep 28, 8:54 am, Steve Holden wrote: >> Without wishing to seem non-responsive, can I just point out that we >> can't keep extending the search indefinitely. Fi

Re: DjangoCon 2011

2010-09-28 Thread Steve Holden
Without wishing to seem non-responsive, can I just point out that we can't keep extending the search indefinitely. First of all, we need to make a decision reasonably quickly.Secondly, these venue searches take time. While it costs nothing to "toss something out there", there *are* costs involved w

Fwd: Re: DjangoCon 2011

2010-09-28 Thread Steve Holden
On 9/28/2010 1:19 AM, Kenneth Gonsalves wrote: > On Mon, 2010-09-27 at 22:51 -0400, Steve Holden wrote: >> I'd just like to briefly report back on the inquiries Nancy and I have >> been making into East coast venues for DjangoCon 2011. > > just curious - why a ho

Re: DjangoCon 2011

2010-09-28 Thread Steve Holden
There seemed to be a general feeling that a change of venue should head Eastwards rather than South. So we are looking primarily for East coast locations as an alternative to Portland for 2011. regards Steve On 9/27/2010 11:49 PM, David Zhou wrote: > Is the bay area right out for cost reasons? >

Re: [Python-Dev] issue2180 and using 'tokenize' with Python 3 'str's

2010-09-27 Thread Steve Holden
uld I open an issue for this? > > Tokenize only works on bytes. You can open a feature request if you desire. > Working only on bytes does seem rather perverse. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 DjangoCon US September 7-9, 2010http://djangoco

Re: DjangoCon 2011

2010-09-27 Thread Steve Holden
On 9/27/2010 11:02 PM, Shawn Milochik wrote: > > I live on the east coast, but the past two DjangoCons have caused me > > to fall in love with Portland. It would be a treat for me to get to > > go there again in 2011. > > > > In fact, if it's in Portland next year I plan to make a family > > vacati

DjangoCon 2011

2010-09-27 Thread Steve Holden
I'd just like to briefly report back on the inquiries Nancy and I have been making into East coast venues for DjangoCon 2011. This is not a final answer, simply reassurance that things have actually been happening. Sadly, New York is out for 2011. Those (very few) venues whose costs are low enough

Re: Where do you put your business logic in django? Organizing big projects in django.

2010-09-27 Thread Steve Holden
On 9/27/2010 11:31 AM, Thomas Weholt wrote: > On Mon, Sep 27, 2010 at 4:52 PM, bruno desthuilliers > wrote: >> On 27 sep, 12:55, Thomas Weholt wrote: >>> On Mon, Sep 27, 2010 at 12:40 PM, Steve Holden wrote: >>>> I think the point is to learn enough Pytho

Re: Where do you put your business logic in django? Organizing big projects in django.

2010-09-27 Thread Steve Holden
On 9/27/2010 4:57 AM, Thomas Weholt wrote: > On Mon, Sep 27, 2010 at 10:38 AM, bruno desthuilliers > wrote: >> On 27 sep, 09:08, MrMuffin wrote: >>> Where do you put your business logic in django? >> >> Depends on the definition of "business logic", but : >> >>> In my project I`ve put >>> it into

Re: [Python-Dev] Python wiki

2010-09-26 Thread Steve Holden
gt; > I've asked Frank Wierzbicki which one he prefers. > Strikes me this is a much needed change. Thanks! regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 DjangoCon US September 7-9, 2010http://djangocon.us/ See Pytho

Re: [Python-Dev] Goodbye

2010-09-25 Thread Steve Holden
erformance improvement requests as "Enhancement requests". The big problem, I suspect, is that we don't give clear enough guidance to almost total noobs about how to fill in the issue tracker form. If you can't remember what your first month as a programmer was like then you probabl

Re: Python unexpectedly quit

2010-09-24 Thread Steve Holden
On 9/24/2010 2:23 PM, Axel Bock wrote: > Anything wrong here? I must say, the framework for the people "with > deadlines" is giving me a *really* hard time so far :) . Maybe you aren't in enough of a hurry? And, by the way, it's *perfectionists* with deadlines. Maybe you aren't being picky enough?

Re: [Python-Dev] Goodbye

2010-09-23 Thread Steve Holden
re sympathetic to his case, and more tolerant of his foibles and style of communication. I appreciate that a disruptive team member might eventually have to be isolated for the good of the team, but I am sorry to note that it came to that in Mark's case, and I hope that eventually he can retur

Re: [Python-Dev] Goodbye

2010-09-22 Thread Steve Holden
;> > >> > Even I felt a bit offended by that one ;-) > That was not one of my finer moments, and I apologize. So even after losing his tracker privileges Mark is still managing to find ways to improve the Python community ;-) regards Steve -- Steve Holden +1 571 484 6

Re: Why Django Apps Suck

2010-09-22 Thread Steve Holden
On 9/22/2010 8:36 AM, Russell Keith-Magee wrote: > Lastly, I can't deny that reusability has it's price. Engineering an > application to be reusable takes more effort and planning than > building an application as a once-off. Well, Unix certainly came a long way with this philosophy > The aim i

Re: ManyToManyField to Phones model for enter phones manually (not select from list)

2010-09-22 Thread Steve Holden
On 9/22/2010 4:30 PM, Anton Danilchenko wrote: > Ihave found solution. > > I have changed only Form class: > > 1) added field for show text input field > phones = forms.CharField() > > 2) I have create in my Form instance method clear_phones() where I > check phones and save it all to databa

Re: [Python-Dev] Goodbye

2010-09-22 Thread Steve Holden
e further to Python's success. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 DjangoCon US September 7-9, 2010http://djangocon.us/ See Python Video! http://python.mirocommunity.org/ Holden Web LLC http://www.holdenweb.com/ __

Re: multiple servers one database

2010-09-20 Thread Steve Holden
On 9/20/2010 11:11 AM, Tim Arnold wrote: > hi, I have two machines for a Django-powered site and they are setup > to be duplicates to provide redundancy. Each one runs its own apache > instance and accesses the same Django apps on a shared disk. > > The problem I have is that I need a single data

Re: {% url %} template and javascript Get with callback

2010-09-19 Thread Steve Holden
On 9/19/2010 12:52 PM, Ben Kraft wrote: > I'm trying to do a javascript post to an internal api and use a > callback to process the JSON result. I'm referencing the api using, > > {% url %}, > > which returns a path url relative to my domain ( /api/... instead of > http://localhost/api/... for t

Re: [Python-Dev] Supporting raw bytes data in urllib.parse.* (was Re: Polymorphic best practices)

2010-09-18 Thread Steve Holden
to me that separating the APIs better reflects the > mental model we're trying to encourage in programmers manipulating > text (i.e. the difference between the raw octet sequence and the text > character sequence/parsed data). > That sounds pretty sane and coherent to me. rega

Re: Relationship question: What do I do wrong?

2010-09-18 Thread Steve Holden
On 9/18/2010 3:23 PM, werefr0g wrote: > Hello, > > I was quite laconic previously in order to spare you my "english". Sorry > if you found this rude. > > Well, you describe the relashionship from one model perspective (Meal) > while setting your field (side1).By setting Field side1 in Meal as >

Re: need help with admin list images

2010-09-18 Thread Steve Holden
Read up on the concept of "safe" markup: http://docs.djangoproject.com/en/dev/howto/custom-template-tags/#filters-and-auto-escaping regards Steve On 9/18/2010 6:16 PM, Bobby Roberts wrote: > only thing that does is return this: > > width="65"/> > > > > I need the image to show rather than

Re: [Python-Dev] egg_info in PyPI

2010-09-18 Thread Steve Holden
On 9/18/2010 9:21 AM, "Martin v. Löwis" wrote: > IT WILL BE NOT IN PREFERENCE TO DISTUTILS2. No need to shout. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 DjangoCon US September 7-9, 2010http://djangocon.us/ See Python Vide

Re: [Python-Dev] (Not) delaying the 3.2 release

2010-09-16 Thread Steve Holden
; the time. And unfortunately I'm just not familiar enough with the > problem(s) to have any real shot at working towards a solution, and > I'm *certainly* not enough of an expert to work on a PEP or spec. So > all I can really do is agitate. > I think you are entitled to

Re: [Python-Dev] 3.x as the official release

2010-09-15 Thread Steve Holden
e going to have time to do work on multiprocessing? >> There are a huge number of bugs reports open for that module. >> > > Trying to get that time; and I've recently brought on Ask Solem to > help me there, I concur that the current situation is sub optimal. Great that

Re: [Python-Dev] Rework nntlib?

2010-09-15 Thread Steve Holden
On 9/15/2010 10:02 AM, Jesse Noller wrote: > On Tue, Sep 14, 2010 at 7:57 PM, Steve Holden wrote: >> On 9/14/2010 6:45 PM, R. David Murray wrote: >>> On Tue, 14 Sep 2010 16:34:33 +0530, Senthil Kumaran >>> wrote: >>>> On Tue, Sep 14, 2010 at 12

Re: [Python-Dev] Rework nntlib?

2010-09-14 Thread Steve Holden
On 9/14/2010 11:06 PM, geremy condra wrote: > On Tue, Sep 14, 2010 at 2:22 PM, Steve Holden wrote: >> On 9/14/2010 4:40 PM, Jon Ribbens wrote: >>> On Tue, Sep 14, 2010 at 11:43:46AM -0500, s...@pobox.com wrote: >>>> We got rid of gopherlib a few years ago (depr

Re: [Python-Dev] Rework nntlib?

2010-09-14 Thread Steve Holden
l come back around > and help Antoine with nttplib by and by :) > And again I say, if anyone knows of any budgets to which this work is important, the PSF will be happy to try and tap these people for money that can help the development effort. Frankly I am a little embarrassed by the poor

Re: [Python-Dev] Rework nntlib?

2010-09-14 Thread Steve Holden
ell, GMANE's presence notwithstanding. > > NNTP is *very* considerably less dead than gopher. That's an interesting metric. Would you like to list the extant libraries implementing protocols that are *not* "*very* considerably less dead than gopher"? ;-) regards Steve -- Stev

Re: [Python-Dev] Rework nntlib?

2010-09-14 Thread Steve Holden
minished user base as > well, GMANE's presence notwithstanding. > > Skip The fact that Mailman will need it would alone outweigh all those considerations in my mind. regards Steve PS: I read c.l.py-dev using NNTP from Thunderbird. Why anyone bothers with these web interfaces is beyon

Re: [Python-Dev] Rework nntlib?

2010-09-14 Thread Steve Holden
On 9/14/2010 9:36 AM, Michael Foord wrote: > On 14/09/2010 12:47, Steve Holden wrote: >> On 9/14/2010 7:10 AM, Michael Foord wrote: >>> On 14/09/2010 12:04, Senthil Kumaran wrote: >>>> On Tue, Sep 14, 2010 at 12:44:30PM +0200, Baptiste Carvello wrote: >>

<    5   6   7   8   9   10   11   12   13   14   >