Released version 1.2

1 view
Skip to first unread message

peteshinners

unread,
Oct 28, 2009, 12:54:12 AM10/28/09
to minifb
A new version 1.2 of minifb is available.

There is a substantial change to the validate function. The returned
dictionary now only contains the values that were signed by Facebook.
This is the only secure way for this to work, but this will require a
change to any form handling code, since posted forms received a mix of
your own fields and the signed Facebook fields. The validate function
also accepts a wider variety of dictionary like mappings. This should
allow FieldStorage and other cgi style mappings to be passed in
directly.

This fixes the longstanding but with the call_id value using time. It
now uses an incrementing integer. This should definitely fix problems
with rapid calls to the API. I am still not totally sure if this is
thread safe, but it will behave much better than before with multiple
threads. (I'm definitely not seeing any problems on my Facebook app.)

This release also adds support for Python3. It can run from Python2 or
Python3 with the same Python module. The Python3 support seems to be
working, but I didn't actually test it against Facebook.


Btw, since I'm working with the code a bit, now is the best time to
send in any suggestions. I still could do a wrapper for the "retry N
times" request. But I'm hoping with the call_id change that will no
longer be necessary.

deli...@googlemail.com

unread,
Nov 13, 2009, 5:44:48 AM11/13/09
to minifb
Hej,

can we put this file to pypi, so it is installable with setuptools,
distribute (easy_install).
Can you give me your email addres, so i can send you the needed files
to create a egg.

Greez

Peter Shinners

unread,
Nov 14, 2009, 1:23:01 AM11/14/09
to deli...@googlemail.com, min...@googlegroups.com
Yes, send me the file, I'll add it to the package. I haven't been urgent
to do it, since this really is just a single file module. I'm guessing
this is a setup.py?
Reply all
Reply to author
Forward
0 new messages