Re: [Tutor] Suggested source code folder layout

2009-06-08 Thread Walker Hale IV
On Mon, Jun 8, 2009 at 1:12 PM, Allen Fowler wrote: > >> > >> My 2 cents... >> >> 1) Since you are describing your source code layout, any virtual >> environment should be outside. A virtual environment (virtualenv) is >> part of deployment and not part of source. If you need to make a >> reproduci

Re: [Tutor] Suggested source code folder layout

2009-06-06 Thread Walker Hale IV
On Tue, Jun 2, 2009 at 5:06 PM, Allen Fowler wrote: > > Hello, > > I'm looking for some suggestions as to the filesystem source code layout for > a new project. > > Here is what I am thinking so far: > > root_folder/ > - app/ -- Code for our pylons/django/TG/etc web app > - web/ -- Public static

Re: [Tutor] Mapping to an equivalent / similar object?

2009-06-05 Thread Walker Hale IV
On Thu, May 28, 2009 at 5:41 PM, Allen Fowler wrote: > How should the mapping between the CanonicalFlavor('Vanilla') object and > ManufAFlavor('Vanilla') / ManufBFlavor('Vanilla') objects be handled. Create a dict. The keys are either CannonicalFlavor objects or just strings containing the cano

Re: [Tutor] A few very basic questions

2009-05-25 Thread Walker Hale IV
On Sun, May 24, 2009 at 1:08 PM, M Tramp wrote: > > Hello all ... > > I've started trying ot learn about Python because I'm intrigued by what I've > read about Gramps, a genealogical data manager. To run Gramps on a Mac, I > need to get GTK up and running. Here's where I have a few, hopefully ba

Re: [Tutor] Search for hex data in file

2009-05-25 Thread Walker Hale IV
On Mon, May 25, 2009 at 1:32 AM, xbmuncher wrote: > I've been reading about ways to convert strings and what not to hex and back > and forth. I'm looking for the fastest and least memory intensive way to > search through a file for a hex value and gets its byte offset in the file. > This hex value

Re: [Tutor] Find a good linux distribution with python.

2009-05-24 Thread Walker Hale IV
On Sun, May 24, 2009 at 4:44 PM, Alan Gauld wrote: > "Michael Bernhard Arp Sørensen" wrote > Most folks get by with the standard libraryb and a small number of > specialist modules to meet their specific needs. If you need a new > one install it, but loading lots of stuff just because its there i

Re: [Tutor] Python popen command using cat > textfile .... how to terminate

2009-05-17 Thread Walker Hale IV
On Fri, May 15, 2009 at 12:46 PM, Noufal Ibrahim wrote: > MK wrote: >> >> Hi there, >> >> i am using this code to send an "cat > ThisIsMyUrl" with popen. >> Of cos cat now waits for the CTRL+D command. How can i send this command ? > > Wouldn't it be better if you directly opened the "ThisIsMyUrl"

Re: [Tutor] Sorting a list

2009-05-14 Thread Walker Hale IV
The prize goes to Bob Gailer! This solution is not only shortest, but works perfectly with negative numbers. -- Walker Hale On Thu, May 14, 2009 at 1:22 PM, bob gailer wrote: > Lie Ryan wrote: >> >> Timo wrote: >>> >>> Hello, >>> >>> I don't think this should be difficult, so maybe I look over