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 options are, basically

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 this

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] 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 called later,

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.reverse()

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 print

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 computer

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] 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 pointed

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 you could

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 opener2 =

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's

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 command

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 print

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 existed, and

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] 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, snipped intro about tying GUI-network code together I'm