Skip to content

Commit

Permalink
Ported from google code to github
Browse files Browse the repository at this point in the history
  • Loading branch information
jmg committed Sep 11, 2011
0 parents commit 3b7720e
Show file tree
Hide file tree
Showing 330 changed files with 30,168 additions and 0 deletions.
Binary file added .hg/00changelog.i
Binary file not shown.
1 change: 1 addition & 0 deletions .hg/branch
@@ -0,0 +1 @@
default
2 changes: 2 additions & 0 deletions .hg/branchheads.cache
@@ -0,0 +1,2 @@
778c9f1a53b4b4b38e1d15d05c84cd91a033d53e 20
778c9f1a53b4b4b38e1d15d05c84cd91a033d53e default
Binary file added .hg/dirstate
Binary file not shown.
2 changes: 2 additions & 0 deletions .hg/hgrc
@@ -0,0 +1,2 @@
[paths]
default = https://jmg.utn@pyfb.googlecode.com/hg/
1 change: 1 addition & 0 deletions .hg/last-message.txt
@@ -0,0 +1 @@
Added auth module; Refactorized code structure
20 changes: 20 additions & 0 deletions .hg/merge/1f6bff1dcf0ca92b08a99fabba17d383a51935f7
@@ -0,0 +1,20 @@
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301, USA.

__author__ = "Juan Manuel Garcia"
__version__ = "0.3.1"
__license__ = 'GPL v3'

from pyfb import Pyfb
Binary file added .hg/merge/state
Binary file not shown.
3 changes: 3 additions & 0 deletions .hg/requires
@@ -0,0 +1,3 @@
revlogv1
store
fncache
Binary file added .hg/store/00changelog.i
Binary file not shown.
Binary file added .hg/store/00manifest.i
Binary file not shown.
Binary file added .hg/store/data/.hgignore.i
Binary file not shown.
Binary file added .hg/store/data/_a_u_t_h_o_r_s.txt.i
Binary file not shown.
Binary file added .hg/store/data/_m_a_n_i_f_e_s_t.i
Binary file not shown.
Binary file added .hg/store/data/_r_e_a_d_m_e.txt.i
Binary file not shown.
Binary file added .hg/store/data/example.py.i
Binary file not shown.
Binary file added .hg/store/data/examples/basics.py.i
Binary file not shown.
Binary file added .hg/store/data/examples/djangoapp/____init____.py.i
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .hg/store/data/examples/djangoapp/manage.py.i
Binary file not shown.
Binary file added .hg/store/data/examples/djangoapp/settings.py.i
Binary file not shown.
Binary file added .hg/store/data/examples/djangoapp/urls.py.i
Binary file not shown.
Binary file added .hg/store/data/pyfb.py.i
Binary file not shown.
Binary file added .hg/store/data/pyfb/____init____.py.i
Binary file not shown.
Binary file added .hg/store/data/pyfb/auth.py.i
Binary file not shown.
Binary file added .hg/store/data/pyfb/client.py.i
Binary file not shown.
Binary file added .hg/store/data/pyfb/pyfb.py.i
Binary file not shown.
Binary file added .hg/store/data/pyfb/utils.py.i
Binary file not shown.
Binary file added .hg/store/data/setup.py.i
Binary file not shown.
Binary file added .hg/store/data/src/auth.py.i
Binary file not shown.
Binary file added .hg/store/data/src/pyfb.py.i
Binary file not shown.
Binary file added .hg/store/data/src/utils.py.i
Binary file not shown.
Binary file added .hg/store/data/upload.sh.i
Binary file not shown.
Binary file added .hg/store/data/utils.py.i
Binary file not shown.
26 changes: 26 additions & 0 deletions .hg/store/fncache
@@ -0,0 +1,26 @@
data/.hgignore.i
data/pyfb.py.i
data/utils.py.i
data/AUTHORS.txt.i
data/README.txt.i
data/example.py.i
data/examples/basics.py.i
data/src/pyfb.py.i
data/setup.py.i
data/src/utils.py.i
data/upload.sh.i
data/examples/djangoapp/__init__.py.i
data/examples/djangoapp/django_pyfb/__init__.py.i
data/examples/djangoapp/django_pyfb/models.py.i
data/examples/djangoapp/django_pyfb/tests.py.i
data/examples/djangoapp/django_pyfb/views.py.i
data/examples/djangoapp/manage.py.i
data/examples/djangoapp/settings.py.i
data/examples/djangoapp/urls.py.i
data/MANIFEST.i
data/src/auth.py.i
data/pyfb/__init__.py.i
data/pyfb/auth.py.i
data/pyfb/client.py.i
data/pyfb/pyfb.py.i
data/pyfb/utils.py.i
Binary file added .hg/store/undo
Binary file not shown.
1 change: 1 addition & 0 deletions .hg/undo.branch
@@ -0,0 +1 @@
default
3 changes: 3 additions & 0 deletions .hg/undo.desc
@@ -0,0 +1,3 @@
20
pull
https://jmg.utn@pyfb.googlecode.com/hg/
Binary file added .hg/undo.dirstate
Binary file not shown.
9 changes: 9 additions & 0 deletions .hgignore
@@ -0,0 +1,9 @@
# use glob syntax.
syntax: glob

*.elc
*.pyc
dist/*
build/*
env/*
*~
1 change: 1 addition & 0 deletions AUTHORS.txt
@@ -0,0 +1 @@
Juan Manuel García <jmg.utn@gmail.com>
4 changes: 4 additions & 0 deletions MANIFEST
@@ -0,0 +1,4 @@
README.txt
setup.py
src/pyfb.py
src/utils.py
16 changes: 16 additions & 0 deletions README.txt
@@ -0,0 +1,16 @@
*****************************************************************

pyfb - A Python Interface to the facebook Graph API

*****************************************************************

This is an Easy to Use Python Interface to the Facebook Graph API

It gives you methods to access your data on facebook and
provides objects instead of json dictionaries!

*****************************************************************

Dependencies

- simplejson
20 changes: 20 additions & 0 deletions build/lib.linux-i686-2.6/pyfb/__init__.py
@@ -0,0 +1,20 @@
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301, USA.

__author__ = "Juan Manuel Garcia"
__version__ = "0.3.1"
__license__ = 'GPL v3'

from pyfb import Pyfb
94 changes: 94 additions & 0 deletions build/lib.linux-i686-2.6/pyfb/auth.py
@@ -0,0 +1,94 @@
"""
$Id: auth.py
This file is a mapper for the specified permissions in
http://developers.facebook.com/docs/reference/api/permissions/
"""

#User related permissions

USER_ABOUT_ME = "user_about_me"
USER_ACTIVITIES = "user_activities"
USER_BIRTHDAY = "user_birthday"
USER_CHECKINS = "user_checkins"
USER_EDUCATION_HISTORY = "user_education_history"
USER_EVENTS = "user_events"
USER_GROUPS = "user_groups"
USER_HOMETOWN = "user_hometown"
USER_INTERESTS = "user_interests"
USER_LIKES = "user_likes"
USER_LOCATION = "user_location"
USER_NOTES = "user_notes"
USER_ONLINE_PRESENCE = "user_online_presence"
USER_PHOTO_VIDEO_TAGS = "user_photo_video_tags"
USER_PHOTOS = "user_photos"
USER_RELATIONSHIPS = "user_relationships"
USER_RELATIONSHIP_DETAILS = "user_relationship_details"
USER_RELIGION_POLITICS = "user_religion_politics"
USER_STATUS = "user_status"
USER_VIDEOS = "user_videos"
USER_WEBSITE = "user_website"
USER_WORK_HISTORY = "user_work_history"
USER_EMAIL = "email"
USER_READ_FRIENDLISTS = "read_friendlists"
USER_READ_INSIGHTS = "read_insights"
USER_READ_MAILBOX = "read_mailbox"
USER_READ_REQUESTS = "read_requests"
USER_READ_STREAM = "read_stream"
USER_XMPP_LOGIN = "xmpp_login"
USER_ADS_MANAGEMENT = "ads_management"

vars = locals().copy()
USER_ALL_PERMISSIONS = [value for key, value in vars.iteritems() if key.startswith("USER_")]

#Friends related permissions

FRIENDS_ABOUT_ME = "friends_about_me"
FRIENDS_ACTIVITIES = "friends_activities"
FRIENDS_BIRTHDAY = "friends_birthday"
FRIENDS_CHECKINS = "friends_checkins"
FRIENDS_EDUCATION_HISTORY = "friends_education_history"
FRIENDS_EVENTS = "friends_events"
FRIENDS_GROUPS = "friends_groups"
FRIENDS_HOMETOWN = "friends_hometown"
FRIENDS_INTERESTS = "friends_interests"
FRIENDS_LIKES = "friends_likes"
FRIENDS_LOCATION = "friends_location"
FRIENDS_NOTES = "friends_notes"
FRIENDS_ONLINE_PRESENCE = "friends_online_presence"
FRIENDS_PHOTO_VIDEO_TAGS = "friends_photo_video_tags"
FRIENDS_PHOTOS = "friends_photos"
FRIENDS_RELATIONSHIPS = "friends_relationships"
FRIENDS_RELATIONSHIP_DETAILS = "friends_relationship_details"
FRIENDS_RELIGION_POLITICS = "friends_religion_politics"
FRIENDS_STATUS = "friends_status"
FRIENDS_VIDEOS = "friends_videos"
FRIENDS_WEBSITE = "friends_website"
FRIENDS_WORK_HISTORY = "friends_work_history"

vars = locals().copy()
FRIENDS_ALL_PERMISSIONS = [value for key, value in vars.iteritems() if key.startswith("FRIENDS_")]

#Write related permissions

WRITE_PUBLISH_STREAM = "publish_stream"
WRITE_CREATE_EVENT = "create_event"
WRITE_RSVP_EVENT = "rsvp_event"
WRITE_SMS = "sms"
WRITE_OFFLINE_ACCESS = "offline_access"
WRITE_PUBLISH_CHECKINS = "publish_checkins"
WRITE_MANAGE_FRIENDLISTS = "manage_friendlists"

vars = locals().copy()
WRITE_ALL_PERMISSIONS = [value for key, value in vars.iteritems() if key.startswith("WRITE_")]

#Page related permissions

PAGE_MANAGE_PAGES = "manage_pages"

vars = locals().copy()
PAGE_ALL_PERMISSIONS = [value for key, value in vars.iteritems() if key.startswith("PAGE_")]

#All permisssions
ALL_PERMISSIONS = USER_ALL_PERMISSIONS + FRIENDS_ALL_PERMISSIONS + WRITE_ALL_PERMISSIONS + PAGE_ALL_PERMISSIONS

0 comments on commit 3b7720e

Please sign in to comment.