Re: [Tutor] Get variable values [Introduction to Planet RSS news aggregator] (fwd)

2007-02-02 Thread Mário Gamito
Hi, Danny Yoo wrote: > > Have you tried asking for help from the planet devel list? Yes, but the list is comfortably numb :( > From what I understand, Planet does it own on-disk caching already: it > really does look like you're trying to implement something that Planet > already does intern

Re: [Tutor] Get variable values [Introduction to Planet RSS news aggregator] (fwd)

2007-02-02 Thread Danny Yoo
On Fri, 2 Feb 2007, Mário Gamito wrote: 1) This way i can only retrieve information from one blog. The one in the line c = planet.Channel(p, "http://blog.gamito.org/rss.php?blogId=1&profile=rss20";) How can i retrieve from them all ? Hi Mario, Have you tried asking for help from the plan

Re: [Tutor] Get variable values [Introduction to Planet RSS news aggregator] (fwd)

2007-02-02 Thread Mário Gamito
Hi, Now, i got into something: http://pastebin.com/873482 I'm already inserting data in MySQL. Just two glitches: 1) This way i can only retrieve information from one blog. The one in the line c = planet.Channel(p, "http://blog.gamito.org/rss.php?blogId=1&profile=rss20";) How can i retrieve

Re: [Tutor] Get variable values [Introduction to Planet RSS news aggregator] (fwd)

2007-02-01 Thread Danny Yoo
-- Forwarded message -- Date: Fri, 02 Feb 2007 00:52:49 + From: "[ISO-8859-1] Mário Gamito" <[EMAIL PROTECTED]> To: Danny Yoo <[EMAIL PROTECTED]> Subject: Re: [Tutor] Get variable values [Introduction to Planet RSS news aggregator] Hi Dann

Re: [Tutor] Get variable values [Introduction to Planet RSS news aggregator]

2007-02-01 Thread Danny Yoo
> Yes, i've read the two docs. > But my problem is more related with Python. > > If you read my previous post with the links to the code, my doubt is how > to get the values for "url", "content", "name", etc. Hi Mario, After taking a much closer look at the code you mentioned here: http

Re: [Tutor] Get variable values

2007-02-01 Thread Alan Gauld
> I have this code (following my signature) and i'm trying > to get the value of "content" and insert it into a MySQL > database. >From where are you trying to get the value of content? Its not clear from your code. -- > def get_date(self, key): > ... The fact that this has a self param,eter s

Re: [Tutor] Get variable values

2007-02-01 Thread Mário Gamito
Hi, > http://www.amk.ca/python/writing/DB-API.html > > http://mail.python.org/pipermail/tutor/2003-April/022010.html Yes, i've read the two docs. But my problem is more related with Python. If you read my previous post with the links to the code, my doubt is how to get the values for "

Re: [Tutor] Get variable values

2007-02-01 Thread Danny Yoo
> Please tell me if you've read those and yet don't understand what they > are saying. Alternatively, if you've read them but still feel that they > are relevant to you, say that, and we'll try to elaborate why they > should be applicable. Errr.. substitute "relevant" with "irrelevant". Sorry

Re: [Tutor] Get variable values

2007-02-01 Thread Danny Yoo
> For now, i'd just like to pull out the variables values, and i don't > know how. For those who may be interested it's about file __init.py__ > from planetplanet code. Hi Mario, Have you read either of the following yet? http://www.amk.ca/python/writing/DB-API.html http://mail.pyth

Re: [Tutor] Get variable values

2007-02-01 Thread Mário Gamito
Hi, > I keep looking at this and your other posts and I just don't understand > what you are trying to do. What do you mean by "content"? Is this code > part of some class? It looks like it is from a class that subclasses > dict. Anyway more context both of code and of what you are trying to do

Re: [Tutor] Get variable values

2007-02-01 Thread Kent Johnson
Mário Gamito wrote: > Hi, > > I'm new to Python, so forgive me the lame question. > > I have this code (following my signature) and i'm trying to get the > value of "content" and insert it into a MySQL database. > > I've been reading the docs in www.python.org, but i can't find a solution. > >

Re: [Tutor] Get variable values

2007-02-01 Thread Mário Gamito
Hi, Danny Yoo wrote: > Ok, good. Next time, make it more clear to the group that things worked > out fine, to close the thread. Remember, we can't read your mind: make > it explicit. > > Otherwise, people will continue to try to help you with something that > you don't have problems with any

Re: [Tutor] Get variable values

2007-02-01 Thread Danny Yoo
>> Wait, wait, before we continue here: did you finally get things working >> from your last question? > > Yes, i got things working. That was just a test for python-MySQldb. Hi Mario, Ok, good. Next time, make it more clear to the group that things worked out fine, to close the thread. Rem

Re: [Tutor] Get variable values

2007-02-01 Thread Mário Gamito
Hi Danny, > Wait, wait, before we continue here: did you finally get things working > from your last question? Yes, i got things working. That was just a test for python-MySQldb. Now, i'm trying to get info from a python file, but i'm unable to get the variable values to insert in MySQL. For e

Re: [Tutor] Get variable values

2007-02-01 Thread Danny Yoo
On Thu, 1 Feb 2007, Mário Gamito wrote: I'm new to Python, so forgive me the lame question. I have this code (following my signature) and i'm trying to get the value of "content" and insert it into a MySQL database. Hi Mario, Wait, wait, before we continue here: did you finally get things

[Tutor] Get variable values

2007-02-01 Thread Mário Gamito
Hi, I'm new to Python, so forgive me the lame question. I have this code (following my signature) and i'm trying to get the value of "content" and insert it into a MySQL database. I've been reading the docs in www.python.org, but i can't find a solution. Can someone help me, please ? Warm Reg