Re: [Tutor] Help - International School in Spain

2015-11-17 Thread Pa Yo
Might you be using two single inverted commas '' rather than one inverted comma " Just a thought. Also check the use of acute accents and inverted commas, they are easy to mix up on a Spanish keyboard - depending on the font you use. PY On Tuesday, 17 November 2015, caroline metcalf < caroline.m

Re: [Tutor] design question (Django?)

2013-04-20 Thread pa yo
It doesn't do everything you want but you might try using the "Create Map" function on Google maps. You can draw lines and mark points in different colours. You cannot count households - though i am not sure how you plan to do that with python; where will the nHouseholds data come from? On Sat,

[Tutor] P2PU Beginning Python Webservices

2010-09-01 Thread pa yo
I thought some of you might be interested in this course: http://www.p2pu.org/webcraft/beginning-python-webservices ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] incrementing one minute

2009-03-31 Thread pa yo
Hi Dave, Yep - incrementing seems to be working fine now. Now I can access smaller XML files that should allow me to use DOM rather than SAX - which I was struggling to understand. Paul Y On Tue, Mar 31, 2009 at 2:29 PM, Dave Angel wrote: > Sorry for the bad assumption.  But the thread "Caugh

Re: [Tutor] incrementing one minute

2009-03-30 Thread pa yo
king at is in > standard time, while you're currently in daylight savings.  So I'd look for > an answer that only used UTC (or Greenwich Mean time). > > Try time.gmtime(), and calendar.timegm() > > > pa yo wrote: > >> I need to add one minute to a stri

Re: [Tutor] incrementing one minute

2009-03-30 Thread pa yo
I fixed it by re-setting my system clock to GMT. ... it seems a bit of a botch but it works. Payo On Mon, Mar 30, 2009 at 4:52 PM, pa yo wrote: > I need to add one minute to a string that has a date and a time in > MMDDHHMM format. > e.g:  200903281346 should become 20090328134

[Tutor] incrementing one minute

2009-03-30 Thread pa yo
I need to add one minute to a string that has a date and a time in MMDDHHMM format. e.g: 200903281346 should become 200903281347 the following script converts the string into time and adds one minute; but somehow I also add an hour and I don't understand why. import tim

[Tutor] "Ctrl-C (unix)" in python

2009-02-18 Thread pa yo
I am running my Twitter>>Wiki bots in infinite loops but can't find an easy way to turn them off gracefully once I have started them. At the moment I have to go into the terminal window where they are running and type "Ctrl-C". (I am running Ubuntu 8.10 and python 2.5.2) I was thinking that I cou

Re: [Tutor] Loops

2009-02-14 Thread pa yo
Thanks Alan. after a few hours scratching my head I finally fixed it by removing all the indents and remaking them in the correct position. Payo On Sat, Feb 14, 2009 at 1:52 AM, Alan Gauld wrote: > "pa yo" wrote > >> The way I have come up with to solve this

[Tutor] Loops

2009-02-13 Thread pa yo
I need some help. I have written a filter called Peqibot that takes posts from Twitter and makes them into wikipages on peqipedia.com So if you post the following message on Twitter: >@peqi Tallinn=The capital city of [[Estonia]]. It makes a page on peqipedia.com with "Tallinn" as the headline

Re: [Tutor] Inserting special characters into urlencoded string

2009-02-10 Thread pa yo
"Denis,\n\nThat works perfectly!\n\nMerci Beaucoup!\n\nPayo" :-) On Tue, Feb 10, 2009 at 6:48 PM, spir wrote: > Le Tue, 10 Feb 2009 18:08:26 +0100, > pa yo a écrit : > >> Novice programmer here. >> >> I am using urllib.urlencode to post content to a we

[Tutor] Inserting special characters into urlencoded string

2009-02-10 Thread pa yo
Novice programmer here. I am using urllib.urlencode to post content to a web page: ... >>Title = "First Steps" >>Text = "Hello World." >>Username = "Payo2000" >>Content = Text + "From: " + Username >>SubmitText = urllib.urlencode(dict(Action = 'submit', Headline = Title, >>Textbox = Content)) >>