GAE framework NEWS

61 views
Skip to first unread message

Anton Danilchenko

unread,
Jul 30, 2011, 12:05:05 AM7/30/11
to gaefra...@googlegroups.com
Today we have dedicated own name for our project on the facebook web site!

Anton Danilchenko

unread,
Aug 28, 2011, 4:46:17 PM8/28/11
to gaefra...@googlegroups.com
August updates.
Changed website - added facebook and twitter blocks and Google+ button.
Also added comments on each news with facebook.

Niklas Rosencrantz

unread,
Sep 3, 2011, 5:36:42 PM9/3/11
to gaefra...@googlegroups.com
Thanks for the updates Anton. I could deploy release: "1.5.3"
timestamp: 1311108376
api_versions: ['1']
Looked at files models.py from users app, webapp.py from gae and some templates I registered an application with facebook and I can authenticate to my FB app with GAE Framework to develop the User model with additional OpenID and OAuth providers (Facebook, Twitter, etc) I can add my facebook app from http://niklas-app.appspot.com/user/login and now I'm looking at how to authenticate, store and render facebook data:

    def render(self, name, **data):
        """Render a template"""
        if not data:
            data = {}
        data[u'js_conf'] = json.dumps({
            u'appId': conf.FACEBOOK_APP_ID,
            u'canvasName': conf.FACEBOOK_CANVAS_NAME,
            u'userIdOnServer': self.user.user_id if self.user else None,
        })
        data[u'logged_in_user'] = self.user
        data[u'message'] = self.get_message()
        data[u'csrf_token'] = self.csrf_token
        data[u'canvas_name'] = conf.FACEBOOK_CANVAS_NAME
        self.response.out.write(template.render(
            os.path.join(
                os.path.dirname(__file__), 'templates', name + '.html'),
            data))

Please let's communicate if we can develop our ideas how to harmonize User models render functions requesthandlers ("basehandlers")
I tried with a requesthandler for a facebook provided account that can login and logout now I'm going to store data and render it.
They also have a "realtime API" but that's only if you must refresh data which you can do programatically and a good start is just store the facebookID along with the User model.
Thank you!
Niklas

Anton Danilchenko

unread,
Sep 17, 2011, 3:53:54 PM9/17/11
to gaefra...@googlegroups.com
In released GAE SDK 1.5.4 added ability to make queries with equality filters on multiple properties!

Robert Kluin

unread,
Sep 19, 2011, 1:40:44 AM9/19/11
to gaefra...@googlegroups.com
Well, you can now perform such queries without an explicit index and
they will keep scanning until it returns sufficient results or times
out. Generally speaking, the query will perform better if there is a
matching index. Also, for the case of user-facing queries you should
keep in mind that it could sit there scanning 30 seconds -- so you
might want to specify a low limit or shorter RPC deadline.


Robert

Reply all
Reply to author
Forward
0 new messages