Re: [Tutor] web intefaces?

2006-05-09 Thread Christian Wyglendowski
> > >>> "Chad Crabtree" <[EMAIL PROTECTED]> 5/8/2006 6:29 PM >>> > > While everything that Alan Guald said is true, there are a > couple of > > options for you. Provided you know HTML (you must), you > could generate > > html pragmatically but, knowledge of html is still mandatory. > > Your op

Re: [Tutor] Renaming computers

2006-03-23 Thread Christian Wyglendowski
Danny Yoo wrote: > There are examples of programs that people have written to > automate some Windows administration tasks. For example: > > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/347812 > > is code to get the MAC address of one's ethernet card You can also use WMI for thi

Re: [Tutor] mod_python and other web frameworks

2006-01-26 Thread Christian Wyglendowski
Some others have already mentioned TurboGears, but since it sounds like you want more control perhaps, I would recommend going with CherryPy (http://www.cherrypy.org). You basically write python code and then expose it to the web (or intranet or whatever). # simple example import cherrypy import

Re: [Tutor] Newb ?

2005-11-17 Thread Christian Wyglendowski
Orri said: > Or you could just do the following: > > >>> print "\n\nWelcome to the Backwards Message Display." > >>> print > >>> message = raw_input("\nPlease Enter a Message.") > >>> print message[::-1] Interesting. I forgot about the 'step' option when slicing. > This is the equivalent of pr

Re: [Tutor] compiled images

2005-11-17 Thread Christian Wyglendowski
Fred said: > [snip] > I've got another question I think you may have come across before. > I'm planning on purchasing a license to use some stock icons in an > application I'm developing. The problem is the license requires this: > > "Where an application is to be distributed, the graphical me

Re: [Tutor] Newb ?

2005-11-17 Thread Christian Wyglendowski
Liam said: > > How about - > print "\n\nWelcome to the Backwards Message Display." > print > message = raw_input("\nPlease Enter a Message.") > msgAsList = [ char for char in message] You could also do: msgAsList = list(message) list() takes any iterable and returns a list object. > msgAsList.

Re: [Tutor] lambda in a loop

2005-11-17 Thread Christian Wyglendowski
Fred said: > >> Obviously, the lambda is using "value" at the end of the loop (4), > >>rather than what I want, "value" during the loop (0,1,2,3). Christian said: > > Right. I think the issue is that your lambda calls another funtion. > > However, the function isn't called until the lambda is c

Re: [Tutor] lambda in a loop

2005-11-16 Thread Christian Wyglendowski
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Fred Lionetti > Sent: Wednesday, November 16, 2005 2:32 PM > To: tutor@python.org > Subject: [Tutor] lambda in a loop > > Hi everyone, Hello, > If I have this code: > > ---

Re: [Tutor] Help me

2005-11-15 Thread Christian Wyglendowski
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Danny Yoo > > On Tue, 15 Nov 2005, sivapriya pasupathi wrote: > > > I am planning to start my career in computer programming.But i don't > > have specific resource(websire/book) to improve my basic c

Re: [Tutor] Console output

2005-10-05 Thread Christian Wyglendowski
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Oliver Maunder > Sent: Wednesday, October 05, 2005 1:13 PM > To: tutor@python.org > Subject: [Tutor] Console output > > Does anyone know how I can update a line of console output > without creating a

Re: [Tutor] Getting singal strength of the received packet

2005-07-19 Thread Christian Wyglendowski
Signal strength is not stored in an IP packet. It is more of a radio-level statistic that would need to be gathered from the wireless device somehow. Christian > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of sunny sunny > Sent: Tuesday, July 19,

Re: [Tutor] Cookies and authorization

2005-06-23 Thread Christian Wyglendowski
> -Original Message- > > Christian, > > > Try subclassing urllib.FancyURLopener and overriding the > > prompt_user_passwd() method. That should get you what you need :-) > > Well, I used urllib.FancyURLopener, and can open and look at > the url, like this: > > import urllib > open

Re: [Tutor] Interesting problem

2005-06-23 Thread Christian Wyglendowski
> -Original Message- > > Consider a class with a lt of properties. I would like a member > function which generates a dictionary where the keys are the property > names and the values are the property values? > > Is this clear? I think so :-) > How might I go about this? I think yo

Re: [Tutor] Cookies and authorization

2005-06-23 Thread Christian Wyglendowski
> -Original Message- > > Hello, everyone! Hi, > My problem is, when I plug this url into my sample code above, I get > an error ("HTTP Error 401: Authorization Required"), because normally > when you go to this url it makes you enter in a username and a > password. Does anyone know

Re: [Tutor] database app

2005-06-23 Thread Christian Wyglendowski
> -Original Message- > > Hey there, Hi, > i have used the cgi module and dig it. > heres the deal, > my employer wants me to build a dynamic website that will > access a > database and display customer > information on web. ok, easy enough. Looks like some others have

Re: [Tutor] Trying Ruby...

2005-06-07 Thread Christian Wyglendowski
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Terry Carroll > Sent: Monday, June 06, 2005 8:20 PM > To: tutor@python.org > Subject: [Tutor] Trying Ruby... > > This message is not as off-topic as it at first appears. > > I'm a user of Activestate'

Re: [Tutor] CPAN for python

2005-06-06 Thread Christian Wyglendowski
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Danny Yoo > > > Yes, there is a system called 'PyPI': > > http://www.python.org/pypi > Also see EasyInstall (http://peak.telecommunity.com/DevCenter/EasyInstall). Installs packages from the co

Re: [Tutor] wxpython button icons?

2005-05-31 Thread Christian Wyglendowski
Hey Jeff, > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Peery > > Hello, does anyone know if there is a list of widows icons > available? I'm creating an application for windows and I'd > like to use standard icons for things like a "prin

RE: [Tutor] A Newbie Printing Question

2005-04-01 Thread Christian Wyglendowski
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] > > Quoting "Jacob S." <[EMAIL PROTECTED]>: > > > Cool! Does anybody know of... I guess a rather *thorough* > tutorial of > > win32? for the very reason that I don't know that this

RE: [Tutor] iterating through large dictionary

2005-03-22 Thread Christian Wyglendowski
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of jeff > > Hi, Hey Jeff, > I'm trying to print out all the attributes of a user account in active > directory. I got a script from: > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/303348 > /

RE: [Tutor] "TypeError: 'int' object is not callable"??

2004-12-17 Thread Christian Wyglendowski
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Jacob S. > Sent: Friday, December 17, 2004 3:54 PM > To: Kent Johnson > Cc: [EMAIL PROTECTED] > Subject: Re: [Tutor] "TypeError: 'int' object is not callable"?? > > Hey, could you give an example? > Th

RE: [Tutor] Socket events and wxPython events?

2004-12-06 Thread Christian Wyglendowski
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Mike Eve > Sent: Sunday, December 05, 2004 6:21 PM > To: [EMAIL PROTECTED] > Subject: [Tutor] Socket events and wxPython events? Hey Mike, > I'm thinking about 3 approaches, but rather than beat m