Re: Photo gallery software

2008-05-01 Thread Scott SA
On 5/1/08, Jumping Arne ([EMAIL PROTECTED]) wrote: >I've searching for some software that would allow me to present my photos on >the web (I'm not interested a software that generates static pages that I >upload) and there are quite a few, see for example >

Re: Signals/Slots support in Python

2008-05-01 Thread Scott SA
On 5/1/08, Brian Vanderburg II ([EMAIL PROTECTED]) wrote: >I don't know if any such support is already built in, so I ended up >making my own simple signals/slots like mechanism. If anyone is >interested then here it is, along with a simple test. It can connect to >normal functions as well as

Re: PIL and IPTC

2008-04-30 Thread Scott SA
On 4/30/08, Jumping Arne ([EMAIL PROTECTED]) wrote: >I'm completely new to PIL and I'm trying to read IPTC info, I understand that >it's possible but I can't find out how (and for once Google doesn't seem to >be able to help). Does anyone have an example of how it's done? Some basic PIL info: <

Re: @classmethod question

2008-04-29 Thread Scott SA
On 4/23/08, Ivan Illarionov ([EMAIL PROTECTED]) wrote: >On 24 ???, 07:27, Scott SA <[EMAIL PROTECTED]> wrote: >> I'm using the @classemethod decorator for some convenience methods and for > >It would make sense to separate instance-level and class-level >behav

Re: @classmethod question

2008-04-29 Thread Scott SA
On 4/24/08, Bruno Desthuilliers ([EMAIL PROTECTED]) wrote: >> It is a series of convenience methods, in this case I'm interacting >> with a database via an ORM (object-relational model). > >out of curiosity : which one ? I'm rapidly becoming a "django junkie"^TM >> I want the ability >> to call

@classmethod question

2008-04-23 Thread Scott SA
Hi, I'm using the @classemethod decorator for some convenience methods and for some reason, either mental block or otherwise, can't seem to figure out how to elegantly detect if the call is from an instance or not. Here's the problem: Within the class definition, 'isinstance' has nothing to co

Linux Mag's "Introduction to Python Decorators"

2008-04-09 Thread Scott SA
Hi, I've been trying to wrap my head around decorators and in my trails found a very recent article on Linux Mag's website. I didn't see a post here regarding this article and feel it is worth directing interested parties towards: Introduction to Python Decorators Have a web app th

RE: apache/mod_wsgi daemon mode

2008-02-03 Thread Scott SA
On 2/3/08, Brian Smith ([EMAIL PROTECTED]) wrote: >Scott SA wrote: >> I am trying to configure mod_wsgi to run in daemon mode with >> Apache. I can easily get it to run 'normally' under Apache >> but I obtain permission errors _or_ process-failures i

apache/mod_wsgi daemon mode

2008-02-03 Thread Scott SA
HI, I'm posting this here because it is, I believe, a python config issue (mine) that is not correct, but frustration and inexperience has left me without further [visible] options for rectification. I am trying to configure mod_wsgi to run in daemon mode with Apache. I can easily get it to ru

Re: may be a bug in string.rstrip

2007-11-23 Thread Scott SA
On 11/23/07, Bruno Desthuilliers ([EMAIL PROTECTED]) wrote: >> The better option, IMO, is probably to use regex. > >You forgot at least the simplest solution: > >import os.path >os.path.splitext('132.ext')[0] Yes, I did miss that one... and while I was typing there was a nagging feeling I was m

Re: may be a bug in string.rstrip

2007-11-22 Thread Scott SA
On 11/23/07, kyo guan ([EMAIL PROTECTED]) wrote: > Please look at this code: > 'exe.torrent'.rstrip('.torrent') >'ex' <- it should be 'exe', why? > >but this is a right answer: > '120.exe'.rstrip('.exe') >'120' <-- this is a right value. > > the

Re: Interfaces.

2007-11-19 Thread Scott SA
On 11/17/07, Duncan Booth ([EMAIL PROTECTED]) wrote: >Bjoern Schliessmann <[EMAIL PROTECTED]> wrote: > >> Benjamin wrote: >>> Python is has duck typing. "If it quacks like a duke, it's duck." >> >> How do dukes quack, exactly? :) > >They quack with a North-eastern Scottish accent of course. > >Th

Re: which Python ? asks beginner

2007-11-17 Thread Scott SA
On 11/17/07, [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: >Have given up Java. Want to switch to Python. But _which_ ? >There is ver : > 2.5 out now > 2.6 in beta , final expected Apr 2008 > 3.0 ? in alpha or beta > 3.0 final expected Sep 2008 ? >Will the real python please s

Re: Binary search tree

2007-11-12 Thread Scott SA
On 11/12/07, Scott SA ([EMAIL PROTECTED]) wrote: Uhm sorry, there is a slightly cleaner way of running the second option I presented (sorry for the second post). >If you would find an index and count useful, you could do something like this: > >for idx in range

Re: Binary search tree

2007-11-12 Thread Scott SA
On 11/12/07, Michel Albert ([EMAIL PROTECTED]) wrote: >On Nov 9, 11:45 pm, Bruno Desthuilliers ><[EMAIL PROTECTED]> wrote: >> [EMAIL PROTECTED] a Ècrit : >> >> > Hi, >> >> > I have to get list of URLs one by one and to find the URLs that I have >> > more than one time(can't be more than twice). >>

Looking for contract developer(s) - where can I find them?

2007-02-21 Thread Scott SA
Hi, I've just sent a job listing to python.org and posted this message on comp.lang.python, but am also trying to proactively find python developers through other means. python.org and guru.com notwithstanding, most job-sites to seem only support people/organizations looking for full/part-time e