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

2007-02-02 Thread Mário Gamito
27;t have nothing of this. > There's a refactored version of "Planet Planet" called "Planet Venus" > which may be helpful for you: Yes, i know, i've already its docs. Regards, Mário Gamito ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

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

2007-02-02 Thread Mário Gamito
How can i retrieve from them all ? 2) I can't get the category and the URL :( The code from __init.py__ and cache.py are here: http://pastebin.com/872998 http://pastebin.com/873004 Any help would be appreciated. Warm Regards, Mário Gamito ___

Re: [Tutor] Problems with date

2007-02-02 Thread Mário Gamito
Hi, Don't bother, i already got there :) Warm Regards, Mário Gamito Mário Gamito wrote: > Hi, > > I have this instruction > > print item.date that outputs > > (2007, 1, 23, 18, 35, 33, 1, 23, 0) > > What i'd like to do is to convert it to, for examp

[Tutor] Problems with date

2007-02-02 Thread Mário Gamito
. Warm Regards, Mário Gamito ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Get variable values

2007-02-01 Thread Mário Gamito
the values for "url", "content", "name", etc. Warm Regards, Mário Gamito ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Get variable values

2007-02-01 Thread Mário Gamito
i know Java, so they're not that different in the concept, but i can't see how in this particular case to retrieve the values of all that variables. Any help would be appreciated. Warm Regards, Mário Gamito ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Get variable values

2007-02-01 Thread Mário Gamito
e module layer. People on the list can talk about this more if > you'd like. Yes, that will be for later. 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. Warm Regards, Mário Gamito ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Get variable values

2007-02-01 Thread Mário Gamito
og_posts (title) VALUES ('entry[key].url')") This isn't working. It inserts nothing in the database. How to retrieve the value of url ? Warm Regards, Mário Gamito ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Get variable values

2007-02-01 Thread Mário Gamito
omeone help me, please ? Warm Regards, Mário Gamito -- def get_date(self, key): """Get (or update) the date key. We check whether the date the entry claims to have been changed is since we last updated this feed and when we pulled the feed off the si

Re: [Tutor] Why this error ?

2007-01-31 Thread Mário Gamito
"test") cursor = conn.cursor () cursor.execute ("SELECT VERSION()") row = cursor.fetchone () print "server version:", row[0] cursor.close () conn.close () Same problem :( Can't really figure why :( Any ideas ? Warm Regards, Mário Gamito ___

Re: [Tutor] Why this error ?

2007-01-31 Thread Mário Gamito
' = "testpass", 'db' = "test") cursor = conn.cursor () cursor.execute ("SELECT VERSION()") row = cursor.fetchone () print "server version:", row[0] cursor.close () conn.close () but the problem remains :-( Any ideas ? Warm Regards, Mário Gamito

Re: [Tutor] Why this error ?

2007-01-31 Thread Mário Gamito
quot;testuser", > 'passwd'= "testpass", 'db' = "test") No, unfortunately the problem remains, but thanks anyway. Warm Regards, Mário Gamito > > > On 1/31/07, *Mário Gamito* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>

[Tutor] Why this error ?

2007-01-31 Thread Mário Gamito
estpass", db = "test")' " Why is this ? I can't imagine. Any help would be appreciated. Warm Regards, Mário Gamito ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Is there anyone running planetplanet (coded in Python) ?

2007-01-31 Thread Mário Gamito
variable that hold the feeds info. My bet is that the best solution is to hack cache.py file, but i'm not sure. Any help would be appreciated. Warm Regards, Mário Gamito ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Is there anyone running planetplanet (coded in Python) ?

2007-01-31 Thread Mário Gamito
e the variables that hold the feeds info. My bet is that the best solution is to hack cache.py file, but i'm not sure. Any help would be appreciated. Warm Regards, Mário Gamito ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Is there anyone running planetplanet (coded in Python) ?

2007-01-31 Thread Mário Gamito
Hi Kent, > You will probably do better asking this on the planet developer list: > http://lists.planetplanet.org/mailman/listinfo/devel Already did. No reply. Regards, Mário Gamito ___ Tutor maillist - Tutor@python.org http://mail.python.org/m

[Tutor] Is there anyone running planetplanet (coded in Python) ?

2007-01-31 Thread Mário Gamito
e the variables that hold the feeds info. My bet is that the best solution is to hack cache.py file, but i'm not sure. Any help would be appreciated. Warm Regards, Mário Gamito ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor