I have some python CGI scripts running in an intranet.
I would like to get the user of the client browser to use it as an input in the
script, so it can show the the data related to that user.
There is the function getpass.getuser() that would return the user logged in the
server.
Is it possible
On Wed, 10 Jan 2007, [EMAIL PROTECTED] wrote:
> I have some python CGI scripts running in an intranet.
>
> I would like to get the user of the client browser to use it as an input
> in the script, so it can show the the data related to that user.
>
> There is the function getpass.getuser() that
On 1/9/07, Hemantharaju Subbanna <[EMAIL PROTECTED]> wrote:
> Hi,
> Before I jump into the investigation, I wanted to ask
> experts and get help/direction.
>
> I am looking to develop a simple web application.
> What would be my best approach? What package/s is good
> to explore?
>
> Need HTML GUI
Hemantharaju Subbanna wrote:
> Hi,
> Before I jump into the investigation, I wanted to ask
> experts and get help/direction.
>
> I am looking to develop a simple web application.
> What would be my best approach.
We just discussed this:
http://mail.python.org/pipermail/tutor/2007-January/051816.
Olen wrote:
> Hi Kent and Terry,
> Correct I am using Active state python,and did not read
> the full information about installations. Thank you for for the
> information.
>
> I just need to confirm something, In python when we "upgrade" we
> essentially install a new
> version of pyt
I'd like to remove redundant items from a list, and have read that using
set() is an effective way to do it. But I often get the following error,
and I'd be glad for your help understanding what's wrong.
>>> z = ['test','test',1,2,1]
>>> set(z)
set(['test', 1, 2])
>>> list(set(z))# Works a
Switanek, Nick wrote:
> I'd like to remove redundant items from a list, and have read that using
> set() is an effective way to do it. But I often get the following error,
> and I'd be glad for your help understanding what's wrong.
>
type(n)# This is a list of lists of strings
>
hello,
I tried asking this on the image-sig mailing list but didn't get an
complete answer.
I am having a difficulty with developing my game. I would like to
colorize the outfits on my penguins
(http://joey101.net/projects/snowballz/). I have them separated out to
make it easier to colorize... but
On Wed, 10 Jan 2007, Kent Johnson wrote:
> For major version upgrades (2.x -> 2.x+1) that is correct. For minor
> upgrades (2.x.y -> 2.x.y+1) the new version usually installs over the
> old and uses the same custom packages. I don't know what happens if you
> install the python.org distribution
Kent Johnson wrote:
> The solution is to turn the list into something immutable. One way would
> be to convert the lists to tuples:
> n1 = list(set(tuple(i) for i in n))
>
> This gives you a list of tuples, if you need a list of lists you will
> have to convert back which you can do with a list
Hey friendly users!
My question is pretty simple. How can I create a folder with Python? Trying
to make a program which will allow me to save my notes (txt files) quickly
and cleanly. Having to create folder manually would really make it a bit
obsolete.
Thanks in advance!
___
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Toon Pieton
> Sent: Wednesday, January 10, 2007 2:31 PM
> To: tutor
> Subject: [Tutor] Creating folders
>
> Hey friendly users!
>
> My question is pretty simple. How can I create a folder with
> P
I'm trying to write a script that will rename files.
The files are in this format:
replace_dashes_stuff03
I want to rename the files to
replace.dashes.STF.v03
Here is what I have so far:
#!/usr/bin/python
import os,sys
oldFile = sys.argv[1]
if oldFile.find('_') != -1:
print "Found
Can anyone explain the following: I was getting string.uppercase
returning an unexpected number of characters, given that the Python Help
says that it should normally be A-Z. Being locale-dependent, I checked
that my locale was not set to something exotic, and sure enough it is
only what I expe
Toon Pieton wrote:
> Hey friendly users!
>
> My question is pretty simple. How can I create a folder with Python?
> Trying to make a program which will allow me to save my notes (txt
> files) quickly and cleanly. Having to create folder manually would
> really make it a bit obsolete.
>
> Thanks
Christopher Spears wrote:
> Is there a more elegant way to do this? I haven't
> figure out how to convert stuff03 to STF.v03.
Just replace 'stuff' with 'STF.v' instead of 'STF' ? Or am I missing
something?
You don't have to do the find(), you can just replace(); if the string
being replaced is
Barnaby Scott wrote:
> Can anyone explain the following: I was getting string.uppercase
> returning an unexpected number of characters, given that the Python Help
> says that it should normally be A-Z. Being locale-dependent, I checked
> that my locale was not set to something exotic, and sure e
Hi everyone,
I have a quick quick question joining out of order dictionary values.
For example:
I created an empty
>>> config={}
Added some key/value pairs
>>> config["test1"]="elem1"
>>> config["test2"]="elem2"
>>> config["test3"]="elem3"
etc
>>>
Dumped the values and joined them at
On 11/01/07, Andrew Robert <[EMAIL PROTECTED]> wrote:
> Only some of the key/value pairs in the dictionary are needed so a
> dump of all values does not work.
>
> Also, the order in which the values are joined is important so walking
> through and joining all values does not work either.
Well, a d
Does anyone how to remove padded numbers with python?
I want to be able to take a file like
afile.0001.cin
and convert it to
afile.1.cin
I've been checking the docs but nothing jumps out at
me.
Thanks!
___
Tutor maillist - Tutor@python.org
http:
Christopher Spears wrote:
> Does anyone how to remove padded numbers with python?
> I want to be able to take a file like
>
> afile.0001.cin
>
> and convert it to
>
> afile.1.cin
The straightforward way is just to pick it apart and put it back
together the way you want it:
>>> a, b, c = 'af
21 matches
Mail list logo