[Tutor] Where to start, running interactive bash script in Qt GUI

2010-04-07 Thread Dotan Cohen
Hello all, new poster.

I have an interactive bash script that asks for a password, then
connects a remote machine via fuse with the supplied password. That's
fine for me, however, the wife needs an icon to click on, input a
password, and be on he way. I'd like to do that in Python with Qt. Is
there a way to wrap a bash script with Python for a GUI, ask for a
line of user input, then pass that to the bash script?

If there is a particular fine manual that I should be reading, I would
appreciate a link. I have been googling but found nothing relevant
that really helps. I am new to Python and have never used Qt. Thanks!

-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת
ا-ب-ت-ث-ج-ح-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه‍-و-ي
А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-Р-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-Э-Ю-Я
а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я
ä-ö-ü-ß-Ä-Ö-Ü
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Introduction to modelling with Python

2010-04-07 Thread AG

Eike Welk wrote:

On Saturday March 27 2010 16:21:26 AG wrote:
  

I apologise in advance for the vagueness of this query, but I am looking
for a decent modern introduction to modelling using Python.
Specifically, I want something that is a good introduction (i.e. doesn't
expect one to already be a maths/ statistics or a programming guru) and
that has an ecology/ environmental science orientation. 



You should look at the book "Python Scripting for Computational Science" by 
Hans Petter Langtangen:

http://www.amazon.com/Python-Scripting-Computational-Science-
Engineering/dp/3540435085
http://books.google.com/books?id=YEoiYr4H2A0C&printsec=frontcover&dq="Python+Scripting+for+Computational+Science"&source=bl&ots=ovp_JKREiY&sig=tJkigCLDqS6voOOjmL4xDxw0roM&hl=en&ei=OlWvS8PmE4r94Aa42vzgDw&sa=X&oi=book_result&ct=result&resnum=5&ved=0CBEQ6AEwBA#v=onepage&q=&f=false

It is an introduction to the Python language, and to a big number of tools for 
numerical computations. The book assumes that you have already some practice 
in writing computer programs. 

The book is not oriented towards ecology, the examples are from mechanical 
engineering. 

The book is however a bit dated, it's from 2004. Therefore many examples will 
need to be slightly altered to work with the current versions of the libraries 
that they use. 




Alternatively you could ask your question on the Numpy/Scipy mailing lists. 
These lists are frequented by scientists that use Python for their 
computations.  
http://www.scipy.org/Mailing_Lists




Eike.
___
  


Eike

I just wanted to come back to you on the book recommendation you made 
"Python scripting for computational science" - I tracked down a cheapish 
copy of the 3rd edition from 2009 and flipping through it (it only 
arrived yesterday), it seems like it is going to be very useful.  
Certainly it draws a lot on numpy, goes into using Tcl for GUIs, and a 
number of recipes for scripting, regular expressions and so on ... lots 
to get my head around.  With respect to my original question then, 
equipped with this book you recommended, a book on differential 
equations, and one on an intro to environmental modelling, that should 
give me enough to work on for the time being.


So, just wanted to close the circle by letting you know that I took your 
recommendation, and it looks like it will pay off in time.


Thank you.

AG
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


[Tutor] ask-why I cannot run it, and I am so confused about the traceback

2010-04-07 Thread Shurui Liu (Aaron Liu)
# Filename: classVolume.py
# Demonstrates multiple classes per program.

class Cube:
   """A class for cube shapes."""
   def __init__(self, side):
   self.side = side
   def calculateArea(self):
   return (self.side)**3.0

class Sphere:
   """A class for sphere shapes."""
   def __init__(self, radius1):
   self.radius1 = radius1
   def calculateArea(self):
   import math
   return (4/3)*(math.pi)*((self.radius1)**3.0)

class Cone:
   """A class for cone shapes."""
   def __init__(self, radius2, height):
   self.radius2 = radius2
   self.height = height
   def calculateArea(self):
   import math
   return (1/3.0)*(math.pi)*(self.height)*((self.radius2)**2)


# Create a list of volumes.
list = [Cube(1.1),Cube(1.2),Sphere(1.1),Sphere(1.2),Cone(1.1),Cone(1.2)]

# Print out the list contents.
for volume in list:
   print "The volume is: ", volume.calculateArea()
raw_input("\n\nPress the enter key to exit.")





Traceback (most recent call last):
 File "classVolume.py", line 30, in 
   list = [Cube(1.1),Cube(1.2),Sphere(1.1),Sphere(1.2),Cone(1.1),Cone(1.2)]
TypeError: __init__() takes exactly 3 arguments (2 given)


-- 
Shurui Liu (Aaron Liu)
Computer Science & Engineering Technology
University of Toledo
419-508-1228
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] ask-why I cannot run it, and I am so confused about the traceback

2010-04-07 Thread Wesley Brooks
Morning,

Your only supplying one argument to cone, when you need two: radius & height.

Cheers,

Wesley Brooks.

On 7 April 2010 11:56, Shurui Liu (Aaron Liu)  wrote:
> # Filename: classVolume.py
> # Demonstrates multiple classes per program.
>
> class Cube:
>    """A class for cube shapes."""
>    def __init__(self, side):
>        self.side = side
>    def calculateArea(self):
>        return (self.side)**3.0
>
> class Sphere:
>    """A class for sphere shapes."""
>    def __init__(self, radius1):
>        self.radius1 = radius1
>    def calculateArea(self):
>        import math
>        return (4/3)*(math.pi)*((self.radius1)**3.0)
>
> class Cone:
>    """A class for cone shapes."""
>    def __init__(self, radius2, height):
>        self.radius2 = radius2
>        self.height = height
>    def calculateArea(self):
>        import math
>        return (1/3.0)*(math.pi)*(self.height)*((self.radius2)**2)
>
>
> # Create a list of volumes.
> list = [Cube(1.1),Cube(1.2),Sphere(1.1),Sphere(1.2),Cone(1.1),Cone(1.2)]
>
> # Print out the list contents.
> for volume in list:
>    print "The volume is: ", volume.calculateArea()
> raw_input("\n\nPress the enter key to exit.")
>
>
>
>
>
> Traceback (most recent call last):
>  File "classVolume.py", line 30, in 
>    list = [Cube(1.1),Cube(1.2),Sphere(1.1),Sphere(1.2),Cone(1.1),Cone(1.2)]
> TypeError: __init__() takes exactly 3 arguments (2 given)
>
>
> --
> Shurui Liu (Aaron Liu)
> Computer Science & Engineering Technology
> University of Toledo
> 419-508-1228
>
>
> ___
> Tutor maillist  -  tu...@python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
>
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] ask-why I cannot run it, and I am so confused about the traceback

2010-04-07 Thread Martin A. Brown
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Greetings,

 : class Cone:
 :"""A class for cone shapes."""
 :def __init__(self, radius2, height):
 :self.radius2 = radius2
 :self.height = height
 :def calculateArea(self):
 :import math
 :return (1/3.0)*(math.pi)*(self.height)*((self.radius2)**2)
 : 
 : 
 : # Create a list of volumes.
 : list = [Cube(1.1),Cube(1.2),Sphere(1.1),Sphere(1.2),Cone(1.1),Cone(1.2)]
 : 
 : # Print out the list contents.
 : for volume in list:
 :print "The volume is: ", volume.calculateArea()
 : raw_input("\n\nPress the enter key to exit.")

 : Traceback (most recent call last):
 :  File "classVolume.py", line 30, in 
 :list = [Cube(1.1),Cube(1.2),Sphere(1.1),Sphere(1.2),Cone(1.1),Cone(1.2)]
 : TypeError: __init__() takes exactly 3 arguments (2 given)

Look at your __init__ method for Cone().
Look at your invocation.

Each call to Cone only supplies a single argument.

  ... Cone(1.1),Cone(1.2) ...

- -Martin

- -- 
Martin A. Brown
http://linux-ip.net/
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: pgf-0.72 (http://linux-ip.net/sw/pine-gpg-filter/)

iD8DBQFLvGZJHEoZD1iZ+YcRAikGAJ4gkDCl6ljej92QFx0VfYgh3jPUFACfUlWD
Yx6ZZiTTs6JIxulV+RcWucU=
=fhP5
-END PGP SIGNATURE-
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] ask-why I cannot run it, and I am so confused about the traceback

2010-04-07 Thread Shurui Liu (Aaron Liu)
Yes, I found it. thanks!

On Wed, Apr 7, 2010 at 7:00 AM, Wesley Brooks  wrote:

> Morning,
>
> Your only supplying one argument to cone, when you need two: radius &
> height.
>
> Cheers,
>
> Wesley Brooks.
>
> On 7 April 2010 11:56, Shurui Liu (Aaron Liu)  wrote:
> > # Filename: classVolume.py
> > # Demonstrates multiple classes per program.
> >
> > class Cube:
> >"""A class for cube shapes."""
> >def __init__(self, side):
> >self.side = side
> >def calculateArea(self):
> >return (self.side)**3.0
> >
> > class Sphere:
> >"""A class for sphere shapes."""
> >def __init__(self, radius1):
> >self.radius1 = radius1
> >def calculateArea(self):
> >import math
> >return (4/3)*(math.pi)*((self.radius1)**3.0)
> >
> > class Cone:
> >"""A class for cone shapes."""
> >def __init__(self, radius2, height):
> >self.radius2 = radius2
> >self.height = height
> >def calculateArea(self):
> >import math
> >return (1/3.0)*(math.pi)*(self.height)*((self.radius2)**2)
> >
> >
> > # Create a list of volumes.
> > list = [Cube(1.1),Cube(1.2),Sphere(1.1),Sphere(1.2),Cone(1.1),Cone(1.2)]
> >
> > # Print out the list contents.
> > for volume in list:
> >print "The volume is: ", volume.calculateArea()
> > raw_input("\n\nPress the enter key to exit.")
> >
> >
> >
> >
> >
> > Traceback (most recent call last):
> >  File "classVolume.py", line 30, in 
> >list =
> [Cube(1.1),Cube(1.2),Sphere(1.1),Sphere(1.2),Cone(1.1),Cone(1.2)]
> > TypeError: __init__() takes exactly 3 arguments (2 given)
> >
> >
> > --
> > Shurui Liu (Aaron Liu)
> > Computer Science & Engineering Technology
> > University of Toledo
> > 419-508-1228
> >
> >
> > ___
> > Tutor maillist  -  Tutor@python.org
> > To unsubscribe or change subscription options:
> > http://mail.python.org/mailman/listinfo/tutor
> >
> >
>



-- 
Shurui Liu (Aaron Liu)
Computer Science & Engineering Technology
University of Toledo
419-508-1228
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] ask-why I cannot run it, and I am so confused about the traceback

2010-04-07 Thread bob gailer

You have the solution. Good.

I beg you to avoid colored text. I find it hard to read.

Just use good old plain text. No fancy fonts, sizes, colors.

--
Bob Gailer
919-636-4239
Chapel Hill NC

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


[Tutor] ftp and python

2010-04-07 Thread Matjaz Pfefferer

Hi,

I'm Py newbie and I have some beginners problems with ftp 
handling.
What would be the easiest way to copy files from one ftp 
folder to another without downloading them to local system?
Are there
 any snippets for this task (I couldnt find example like this)

Thx   
_
Hotmail: Powerful Free email with security by Microsoft.
https://signup.live.com/signup.aspx?id=60969___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


[Tutor] Django Book Recommendation

2010-04-07 Thread Khalid Al-Ghamdi
Hi everyone!

Do you have recommendations regrading good free books or websites to learn
django? I'm a beginner and know the basics of python.

thanks
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Django Book Recommendation

2010-04-07 Thread Serdar Tumgoren
There is lots of good information in the second edition of the
official Django Book (though it appears it's only a partially complete
Web preview):

  http://www.djangobook.com/en/2.0/

The Django google group is a great way to research specific questions
and get help:

  http://groups.google.com/group/django-users/

And though it's not free, I highly recommend the book Pro Django by
Marty Alchin. It deals with some pretty advanced concepts, but it's
the first resource I've found that really demonstrates how Django
works under the covers. You don't need to read it to use Django, but
it's an invaluable resource if you're trying to piece together the
moving parts behind the framework. And it's a great primer on more
advanced Python techniques like meta-programming.

HTH,
Serdar

On Wed, Apr 7, 2010 at 10:48 AM, Khalid Al-Ghamdi  wrote:
> Hi everyone!
> Do you have recommendations regrading good free books or websites to learn
> django? I'm a beginner and know the basics of python.
> thanks
> ___
> Tutor maillist  -  tu...@python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
>
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Display in a text field using tkinter

2010-04-07 Thread doyin adegoke
Thanks guys I was able to resolve it by changing

self.txt_box = Entry(self, text = "hool").grid(row = 0, column = 1, sticky = W)

to

self.txt_box = Entry(self, text = "hool")
self.txt_box.grid(row = 0, column = 1, sticky = W)

and

 self.txt_box.insert(END,trt)

to

 self.txt_box.insert(0,trt)

but i added

 self.txt_box.delete(0, END)

before inserting







From: James Reynolds 
To: adedoyin adegoke 
Sent: Sun, April 4, 2010 9:35:37 PM
Subject: Re: [Tutor] Display in a text field using tkinter

Did you try setting this (in the init):

self.create_widgets()

to something like this:

my_object = self.create_widgets()

?


On Fri, Apr 2, 2010 at 2:25 AM, adedoyin adegoke  wrote:

from Tkinter import *
>import MySQLdb
>
>
>class Snoop(Frame):
>def __init__(self, master):
>Frame.__init__(self, master)
>self.grid()
>>self.create_widgets()
>
>
>def create_widgets(self):
>Label(self, text = "Database Name:").grid(row = 0, column = 0, sticky 
> = W)
>self.txt_box = Entry(self, text = "hool").grid(row = 0, column = 1, 
> sticky = W)
>Button(self, text = "Submit", command = self.connect_db).grid(row = 1, 
> column = 1, sticky = W)
>Label(self, text = "Tables:").grid(row = 2, column = 0, sticky = W)
>>
>   
>Label(self, text = "Information:").grid(row = 2, column = 1, sticky = 
> W)
>   # self.txt = Text(self, width = 40, height = 5, wrap = WORD).grid(row = 
> 3, column = 1, sticky = W)
>   
>def connect_db(self):
>db= MySQLdb.connect(host="localhost", user="root" , passwd="")
>cursor = db.cursor()
>cursor.execute("show databases")
>
>
>self.favorite = StringVar()
>
>
>result = cursor.fetchall()
>i = 4
>for record in result:
>Radiobutton(self,
> text = record,
> variable = self.favorite,
> value = record,
> command = self.update_text
> ).grid(row = i, column = 0, sticky = W)
>i+=1
>
>#print database
>#self.txt.delete(0.0, END)
>#self.get_db(database)
>def update_text(self):
>print self.favorite.get()
>trt = self.favorite.get()
>self.txt_box.insert(END,trt)
>
>
>   
>
>
>#db.close
>root = Tk()
>root.title("Snoop")
>>
>start = Snoop(root)
>
>
>root.mainloop()
>
>
>
>
>
>
>The above code will snoop and fetch all d available databases using tkinter. 
>When I select one of these databases, the name should be inserted in a text 
>field instead it throws the following error ;
>
>
>Exception in Tkinter callback
>Traceback (most recent call last):
>  File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 1413, in __call__
>return self.func(*args)
>  File "/home/NetBeansProjects/python/src/Xsnoop.py", line 45, in update_text
>self.txt_box.insert(END,trt)
>AttributeError: 'NoneType' object has no attribute 'insert'
>   
>
>
>How can i correct this?
>
>
>___
>>Tutor maillist  -  Tutor@python.org
>>To unsubscribe or change subscription options:
>http://mail.python.org/mailman/listinfo/tutor
>
>



  ___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Django Book Recommendation

2010-04-07 Thread C.T. Matsumoto
If I can follow up with the 'not free' theme, I also think 'Practical 
Django Projects' by James Bennett is pretty good.


For really fast tutorials, look for screencasts too.

T


And though it's not free, I highly recommend the book Pro Django by
Marty Alchin.

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] ftp and python

2010-04-07 Thread Emile van Sebille

On 4/7/2010 6:51 AM Matjaz Pfefferer said...

I'm Py newbie and I have some beginners problems with ftp
handling.
What would be the easiest way to copy files from one ftp
folder to another without downloading them to local system?


The easiest is of course command line access on the hosting system.  FTP 
is essentially a file transfer protocol designed and inteded to move 
data between systems.


If what you're asking for is essentially how to do a cp (or copy on 
win??) from a remote machine you may want to look at "scp - secure copy 
(remote file copy program)"


HTH,

Emile

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Where to start, running interactive bash script in Qt GUI

2010-04-07 Thread Alan Gauld


"Dotan Cohen"  wrote


I have an interactive bash script that asks for a password, then
connects a remote machine via fuse with the supplied password. 



there a way to wrap a bash script with Python for a GUI, ask for a
line of user input, then pass that to the bash script?


Rather than wrap the bash script I'd do the equivalent in Python.
Pop up a GUI window that captures the password then call fuse 
directly from Python via the subprocess module.


Rather than use Qt I'd use EasyGUI to just pop up an input box. 
It will be much easier.


http://easygui.sourceforge.net/

HTH,

Alan G.


___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Where to start, running interactive bash script in Qt GUI

2010-04-07 Thread Dotan Cohen
On 7 April 2010 21:23, Alan Gauld  wrote:
>
> "Dotan Cohen"  wrote
>
>> I have an interactive bash script that asks for a password, then
>> connects a remote machine via fuse with the supplied password.
>
>> there a way to wrap a bash script with Python for a GUI, ask for a
>> line of user input, then pass that to the bash script?
>
> Rather than wrap the bash script I'd do the equivalent in Python.
> Pop up a GUI window that captures the password then call fuse directly from
> Python via the subprocess module.
>

It is more than that, and calls many command-line functions such as
pdftools and imagemagic. I suppose that I could call them all from
Python, but it would be a mess. The bash is very straightforward for
working with command line tools.


> Rather than use Qt I'd use EasyGUI to just pop up an input box. It will be
> much easier.
>

I am hoping that this will be a stepping stone into bigger Qt
projects, as I am a motivated KDE user.


-- 
Dotan Cohen

http://bido.com
http://what-is-what.com
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] ask-why I cannot run it, and I am so confused about the traceback

2010-04-07 Thread Albert-Jan Roskam
What's with Pythonistas and colours? 
http://www.mail-archive.com/python-l...@python.org/msg231447.html ;-)))

Cheers!!

Albert-Jan



~~

All right, but apart from the sanitation, the medicine, education, wine, public 
order, irrigation, roads, a fresh water system, and public health, what have 
the Romans ever done for us?

~~

--- On Wed, 4/7/10, bob gailer  wrote:

From: bob gailer 
Subject: Re: [Tutor] ask-why I cannot run it, and I am so confused about the 
traceback
To: tutor@python.org
Date: Wednesday, April 7, 2010, 3:15 PM

You have the solution. Good.

I beg you to avoid colored text. I find it hard to read.

Just use good old plain text. No fancy fonts, sizes, colors.

-- Bob Gailer
919-636-4239
Chapel Hill NC

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor



  ___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Django Book Recommendation

2010-04-07 Thread wesley chun
i worked on another well-received Django book with a pair of great
co-authors called "Python Web Development with Django", Addison Wesley
(2009).

rather than taking the existing Django docs, which are great BTW, and
expanding on them, we wanted to have a more comprehensive look at
Django development as a whole, starting with a strong intro to Python
and web services followed by taking on each major Django component
(model, template, view), then building 4 useful Django apps, all
focused on using different features of Django, then finally leading to
a high-level overview of more advanced features and useful appendices.

you can find out more from the amazon page as well as at the book's
homepage at: http://withdjango.com

cheers,
-- wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
"Python Fundamentals", Prentice Hall, (c)2009
http://corepython.com



wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Django Book Recommendation

2010-04-07 Thread Evans Anyokwu
Nice book. I actually bought a copy of Python Web Development with Django
last month, and I can't recommend it enough.

On Wed, Apr 7, 2010 at 8:46 PM, wesley chun  wrote:

> i worked on another well-received Django book with a pair of great
> co-authors called "Python Web Development with Django", Addison Wesley
> (2009).
>
> rather than taking the existing Django docs, which are great BTW, and
> expanding on them, we wanted to have a more comprehensive look at
> Django development as a whole, starting with a strong intro to Python
> and web services followed by taking on each major Django component
> (model, template, view), then building 4 useful Django apps, all
> focused on using different features of Django, then finally leading to
> a high-level overview of more advanced features and useful appendices.
>
> you can find out more from the amazon page as well as at the book's
> homepage at: http://withdjango.com
>
> cheers,
> -- wesley
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> "Core Python Programming", Prentice Hall, (c)2007,2001
> "Python Fundamentals", Prentice Hall, (c)2009
>http://corepython.com
>
>
>
> wesley.j.chun :: wescpy-at-gmail.com
> python training and technical consulting
> cyberweb.consulting : silicon valley, ca
> http://cyberwebconsulting.com
> ___
> Tutor maillist  -  Tutor@python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] ask-why I cannot run it, and I am so confused about the traceback

2010-04-07 Thread Steven D'Aprano
On Wed, 7 Apr 2010 11:15:35 pm bob gailer wrote:
> You have the solution. Good.
>
> I beg you to avoid colored text. I find it hard to read.
>
> Just use good old plain text. No fancy fonts, sizes, colors.

I don't see any of those. Can't you tell your mail client to ignore 
the "rich text" (HTML) attachment and just display the plain text?


-- 
Steven D'Aprano
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Django Book Recommendation

2010-04-07 Thread wesley chun
that's great!! we're always glad to hear about happy readers!

on a side note, if any of you out there are doing Django and Google
App Engine, there is some new information that i hadn't gotten a
chance to add to Appendix E yet. basically in that section, i describe
the use of the Helper but since then, there have been 2 more tools
that have come online. the 2nd is called the Patch, which was recently
replaced by django-nonrel and djangoappengine:
http://www.allbuttonspressed.com/

-wesley


On Wed, Apr 7, 2010 at 1:07 PM, Evans Anyokwu  wrote:
> Nice book. I actually bought a copy of Python Web Development with Django
> last month, and I can't recommend it enough.
>
> On Wed, Apr 7, 2010 at 8:46 PM, wesley chun  wrote:
>>
>> i worked on another well-received Django book with a pair of great
>> co-authors called "Python Web Development with Django", Addison Wesley
>> (2009).
>>
>> rather than taking the existing Django docs, which are great BTW, and
>> expanding on them, we wanted to have a more comprehensive look at
>> Django development as a whole, starting with a strong intro to Python
>> and web services followed by taking on each major Django component
>> (model, template, view), then building 4 useful Django apps, all
>> focused on using different features of Django, then finally leading to
>> a high-level overview of more advanced features and useful appendices.
>>
>> you can find out more from the amazon page as well as at the book's
>> homepage at: http://withdjango.com
>>
>> cheers,
>> -- wesley
>> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>> "Core Python Programming", Prentice Hall, (c)2007,2001
>> "Python Fundamentals", Prentice Hall, (c)2009
>>    http://corepython.com
>>
>>
>>
>> wesley.j.chun :: wescpy-at-gmail.com
>> python training and technical consulting
>> cyberweb.consulting : silicon valley, ca
>> http://cyberwebconsulting.com
>> ___
>> Tutor maillist  -  tu...@python.org
>> To unsubscribe or change subscription options:
>> http://mail.python.org/mailman/listinfo/tutor
>
>



-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
"Python Fundamentals", Prentice Hall, (c)2009
http://corepython.com

"Python Web Development with Django", Addison Wesley, (c) 2009
http://withdjango.com

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor