DISQUS

Benjamin Golub's Blog: friendfeed.py Patch for use on Google App Engine

  • felix · 1 year ago
    This is great! Thanks a lot. My own hacked up version was barely functional. :)
  • Benjamin Golub · 1 year ago
    No problem; mine was hacky too for a long time. The thing that got me was urllib2 will automatically set the correct content-type when POSTing but urlfetch does not. I was stuck on that for hours.
  • felix · 1 year ago
    Finally got some time to be playing around again - this worked great, I did update the json code to use django's simplejson (I was using that in my original crappy friendfeed.py :) - but other than that it was as you patched it and everything was smooth sailing.
  • Benjamin Golub · 1 year ago
    Glad it's working for you; let me know if you have any trouble.
  • bjtitus · 1 year ago
    Great! This is something I've been waiting for. I hacked around it to get simple retrieval to work but I think I'll go ahead and replace my code with this.
  • Benjamin Golub · 1 year ago
    Let me know how it works out for you.
  • abdellah · 1 year ago
    HI,
    thank you very much for this patch, however, I got this error trying to use it:

    from django.utils import urlencode
    ImportError: cannot import name urlencode
  • Benjamin Golub · 1 year ago
    Are you sure you have Django in your python path? You might also need to
    use Django trunk; I have not tested this using the version included in
    Google App Engine (which is .96 and very far away from trunk). This link (
    http://code.google.com/appengine/articles/djang...) tells you how to use
    trunk on GAE.

    Good luck!
  • abdellah · 1 year ago
    Thank you very much, I too think that the problem come from Django, I tried using GAE SDK, without importing anything from Django, may I re-think about how to implement things in my project again.

    I havn't used Django as a framework before , even not think to associate it with GAE, for the moment I am trying webpy as a frame work.

    may be the solution is just to import the "django.utils.http import urlencode" I mean to include http to django utils in GAE.

    again thank you very much for your help and for the links.
  • abdellah · 1 year ago
    HI, just to point that I found a tweak for my case , I mean a patch for non django framework users:

    1) download the following files :

    1-1)http
    1-2)encoding
    1-3)functional

    from :
    http://code.djangoproject.com/browser/django/br...

    adding those file to the project and it work, again thank you for this patch.
  • adaml · 1 year ago
    I should've taken the time to search before hacking my own version. Need to go back and apply your urlencode fix though. Thanks.

    http://adamloving.com/2008/07/22/changes-to-fri...
  • Benjamin Golub · 1 year ago
  • linkso0flondon · 2 months ago
    Would like to cost some money on some interesting and cute little links of london? links of london To tell you the truth, gentlemen also have a great interest in delicacy and special little links of london. links of london It’s a good way to express your thanks and love to your father if you buy him Links of London as a lucky gift which represents healthy and longevous or give it to your boyfriend to make him smile. links of london links of london, the world-famous brand, promotes different kinds of links of london every season. links of london People find these designs are lifelike, cute and unputdownable because they are inspired by vehicles, such as slip board bikes, electronic bikes, taxis, buses and so on this season. links of london In addition, with the shape of animals and food, the pendants are also detailed and quite different. links of london The reason why the king card brand--- links of london Collection gets so much welcome is that it can buckle different pendants as decorations. links of london links of londonWe make more styles of the bracelets of Sweetie by adding more different materials. links of london Though there are no condoles on links of london like freshwater pearl, pink crystal and shells, they are not humdrum. links of london Otherwise, earrings, rings and necklaces of the same design as the bracelets have been promoted; pendants can be added into necklaces and rings so new designs can be found anytime. links of london links of londonIf you are interested in the links of london, you may have a lot of choices, except for 18K gold and pure silver; there are other rings with diamonds, sapphires, pink gem and white crystal stone as decorations. links of london And the jewelry brand links of london has promoted all new watches recently, all new designs originate from the design of hand chain. And the watches are bangle-shaped, simple and fashion. links of london Your father and boyfriend’s unique charm and temperament will fully represent if you give the jewelries and watches of links of london to them. links of london