Re: [Tutor] automatically add it to all the classes

2006-10-29 Thread Luke Paireepinart
anil maran wrote: > [some stuff] > > thanks > John Okay... So this is an e-mail from john... > [some other stuff] > > Anil And this is the reply by Anil? What is the question here, exactly? ___ Tutor maillist - Tutor@python.org http://mail.python.org/

[Tutor] automatically add it to all the classes

2006-10-29 Thread anil maran
All the classes in my webpy application have the following lines is there anyway to automatically add it to all the classes in code.py, user.py If it is too basic, please pardon my naivette. thanks John These are the lines shared by all classes,    @checkaccess(auth=True)         sess = we

Re: [Tutor] re-import

2006-10-29 Thread jhl
Thanks again!That is just what I need.-JOn 10/29/06, Glenn T Norton <[EMAIL PROTECTED] > wrote:jhl wrote:> Hi->> How is the 1st import of a module removed so that new edits on the > module can be re-imported?>> DETAIL:>> I am working on a module/file and importing it into a python shell,> trying it

Re: [Tutor] re-import

2006-10-29 Thread johnf
On Sunday 29 October 2006 18:25, jhl wrote: > Hi- > > How is the 1st import of a module removed so that new edits on the module > can be re-imported? > > DETAIL: > > I am working on a module/file and importing it into a python shell, trying > it out and then tweaking/editing the module. Then to se

Re: [Tutor] re-import

2006-10-29 Thread Glenn T Norton
jhl wrote: > Hi- > > How is the 1st import of a module removed so that new edits on the > module can be re-imported? > > DETAIL: > > I am working on a module/file and importing it into a python shell, > trying it out and then tweaking/editing the module. Then to see the > effects of the edits,

[Tutor] re-import

2006-10-29 Thread jhl
Hi-How is the 1st import of a module removed so that new edits on the module can be re-imported?DETAIL:I am working on a module/file and importing it into a python shell, trying it out and then tweaking/editing the module.  Then to see the effects of the edits, I want to re-import the file and find

Re: [Tutor] Matching on multiple log lines

2006-10-29 Thread wesley chun
> so it's guaranteed that 'Writing Message to' > will always be followed by 'TRANSPORT_STREAM_ID' > before the next occurrence of 'Writing Message to' > and all text between can be ignored, > and we increment the counter if and only if > there is a newline immediately after 'TRANSPORT_STREAM_ID' >

Re: [Tutor] name is not defined error (fwd)

2006-10-29 Thread Danny Yoo
-- Forwarded message -- Date: Sun, 29 Oct 2006 12:33:58 -0500 From: Kristinn Didriksson <[EMAIL PROTECTED]> To: Danny Yoo <[EMAIL PROTECTED]> Subject: Re: [Tutor] name is not defined error Hi Danny, Thanks :) The program works now. I'll take a look at those threads. Here is what

Re: [Tutor] name is not defined error

2006-10-29 Thread Alan Gauld
"Kristinn Didriksson" <[EMAIL PROTECTED]> wrote > I am trying to solve the following exercise and get a name is not > defined error. It is my understanding that eval turns a string into > a > number and then I can do math operations on it. Not really. eval takes a string and interprets it as a py

Re: [Tutor] name is not defined error

2006-10-29 Thread Danny Yoo
> It is my understanding that eval turns a string into a number and then I > can do math operations on it. Hi Kristinn, No, no, that's not what it does. *grin* Where did you read about eval() from? If you saw it in a beginner's tutorial, tell us who the guilty party is so we can knock some

[Tutor] name is not defined error

2006-10-29 Thread Kristinn Didriksson
Hello, I am new to Python and programming and going through the "Python Programming " book by Zelle. I am trying to solve the following exercise and get a name is not defined error. It is my understanding that eval turns a string into a number and then I can do math operations on it. Any help

Re: [Tutor] Adding voting to several object in python and db

2006-10-29 Thread Alan Gauld
Anil, You've been asking a lot of very web specific questions. But you haven't told us much about how you are building your application. You mebntion Ruby on Rails here. Are you using any of the Python web development frameworks - TurboGears, Zope, etc? If you are serious about web development th