Lines 1-3
Link Here
|
|
|
1 |
#!python |
1 |
#=============================================================================== |
2 |
#=============================================================================== |
2 |
# flickrfs - Virtual Filesystem for Flickr |
3 |
# flickrfs - Virtual Filesystem for Flickr |
3 |
# Copyright (c) 2005,2006 Manish Rai Jain <manishrjain@gmail.com> |
4 |
# Copyright (c) 2005,2006 Manish Rai Jain <manishrjain@gmail.com> |
Lines 23-29
Link Here
|
23 |
import threading |
24 |
import threading |
24 |
import random, commands |
25 |
import random, commands |
25 |
from urllib2 import URLError |
26 |
from urllib2 import URLError |
26 |
from transactions import TransFlickr |
27 |
from transactions import TransFlickr, read_config |
27 |
import inodes |
28 |
import inodes |
28 |
|
29 |
|
29 |
#Some global definitions and functions |
30 |
#Some global definitions and functions |
Lines 1075-1080
Link Here
|
1075 |
|
1076 |
|
1076 |
|
1077 |
|
1077 |
if __name__ == '__main__': |
1078 |
if __name__ == '__main__': |
|
|
1079 |
|
1080 |
config = read_config() |
1081 |
flickrAPIKey = config.get('USER', 'flickrAPIKey') |
1082 |
flickrSecret = config.get('USER', 'flickrSecret') |
1083 |
browserName = config.get('USER', 'browserName') |
1084 |
|
1078 |
try: |
1085 |
try: |
1079 |
server = Flickrfs() |
1086 |
server = Flickrfs() |
1080 |
server.multithreaded = 1; |
1087 |
server.multithreaded = 1; |