25 8 / 2010
Working through the class Vote(db.Model):
I am working on the Voting function, but I am fairly certain I’m digging myself a ditch…
Talking through the absolute minimum of what I need to do:
- Model: class Vote(db.Model) that has properties for the User submitting the vote & URL that it applies to. I’m not very confident in the way I’m doing the ReferenceProperty() for URL & User, or how to fit that in with the Controller…
- Controller: class VoteHandler that takes in current user & the URL object to process votes - taking the current total, +1 for new vote, and saving the new total. I’ll save that code for later. Get the Model right, then I’ll attempt the Controller.
- View: a vote link with vote total that is unique to that URL object
Is this thought process anywhere near correct? I hit the point this morning where my head just started spinning with, “I know what I need to do, just how do I do it?” But I am sure I will learn a lot in getting this built, so I really do appreciate your help!
24 8 / 2010
#help #python URL Rendering
Hey guys,
I am having trouble with the URL rendering. Specifically I use doRender() function that I defined at the top. doRender() is used then throughout the app, but I’m having difficulty having URLs route where I’d like them to.
Currently, when a user logs in, it goes to thebuswheel.appspot.com/login, but I’d like for the user to remain on thebuswheel.appspot.com/. This also happens with /logout, and after submitting a url —> /url.
How can I make this code better? Thanks for the help!
05 8 / 2010
CDATA error #help #polldaddy !
UPDATE: I am in touch with the Polldaddy guys…less than 30 minutes. Now that is fast service!
I am trying to embed a Polldaddy poll into a blog post, but it throws up something funky. Please help!
Code for the poll:
Error I see:
<![CDATA[// <![CDATA[ // <![CDATA[ PDRTJS_settings_2476225 = { “id” : “2476225”, “unique_id” : “default”, “title” : “”, “permalink” : “” }; // ]]<![CDATA[> // ]]]]><![CDATA[>]]>
Thanks again for the help!
30 7 / 2010
#python #help #pickle
When I run the following, I get a EOFError. Thoughts?
Thanks guys!
UPDATE: SOLVED - removed the ‘/’ from ‘/banner.p’
26 7 / 2010
#python #help #GAE
I am playing with a tutorial in “Using Google App Engine” -but the example isn’t actually loading the input. The problem seems to be at data, line 11? There is the POST/GET from terminal too. Thanks for the help in advance!

Update Thanks to Eugene Ciurana I learned you can’t call read() on localhost.