2 patches for repository davidsarah@dev.allmydata.org:/home/darcs/tahoe/trunk: Sun Dec 26 02:05:08 GMT Standard Time 2010 david-sarah@jacaranda.org * Remove unmaintained Mac GUI app. fixes #1282 Sun Dec 26 02:08:58 GMT Standard Time 2010 david-sarah@jacaranda.org * NEWS: remove unmaintained Mac GUI app. refs #1282 New patches: [Remove unmaintained Mac GUI app. fixes #1282 david-sarah@jacaranda.org**20101226020508 Ignore-this: b3613bf1abfd284d542bf7c753ec557a ] { rmdir ./mac/macfuse rmfile ./src/allmydata/gui/__init__.py hunk ./src/allmydata/gui/amdicon.py 1 -#---------------------------------------------------------------------- -# This file was generated by encode_icons.py -# -from wx import ImageFromStream, BitmapFromImage -from wx import EmptyIcon -import cStringIO - - -def getData(): - return \ -'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00 \x00\x00\x00 \x08\x06\x00\ -\x00\x00szz\xf4\x00\x00\x00\x04sBIT\x08\x08\x08\x08|\x08d\x88\x00\x00\x04\ -\x1aIDATX\x85\xad\x97MLTW\x14\xc7\xff\xef\xbd\x997|\x8c\x86\xb1\x888\x0c\x06\ -\x17\x80\x03\xa1\x8a\t\xa9\x8d5a\xd3t\xd3\xa4\xed\xae+\xe3\xa6\xe9\x02v\x8d\ -\xdd\xb8\xd2%D\xb1\x06\x02]\xd9.\xba\xd0\xa4iBqaHHM\xcbnbGZeH\x8d\x16\xad\ -\xed\x14\x91\xe1c\x98\xb9\xf7\xbdw\xcf\xe9\x02\x9c\xf2\xf1\xde\x9b7\xc8\x99L\ -2\x99{\xce\xb9\xbfs\xee\xb9\xe7\xde\xabi\xba\x81\xa0\x12\x1eN2\xd9!\x90\x1d\ -\xc2\xdb\x87\x92\xa8\xab\x8abY\xe41\xb34\x0b=\xec\xc00mX}\x19-\xb0C\x00\xd0t\ -#\xd0\xd7\xb8\xde\xcd-\xa3\x1f\xf3\xcd\x99\t\xce\x895\xde*9\xb1\xc67g&\xb8e\ -\xec#\x0e}u\x8a\x83\xfa\xd4t#\x18\x80q\xed4_\xb8s\x85\xcbIN\xac\xf1\x85;W\ -\xd8\xb8v:0D\xf9\xc9\x87\xba\xf9\xfc\xc4eV;>S\xf3)\x9e\x9aO\xf1\xfdlf\xd7\ -\xd8\xf9\x89\xcbl\\\xef\x0e\x06\xe1W\x03\xa1\x1b\x1d|&\xf6.\xee~:T\xfao\xe2\ -\x8fi\\\xfci\x04\x7f\x15\x9e\x03:\x03\xa4!Q\xd3\x8c\xc1\xde>|\xd8z\xb6\xa4w\ -\xe6\xdb\xcf\x90\x113\xb0\xfbg\xfdk\xa2\\\xea\xc7\x9fL\xf1\x92\xbd\xc8K\xf6"\ -\x8f\xa4o\xb16\xd8\xc3\x91\xd1\xcem\xd1EF;Y\x1b\xec\xe1\x91\xf4\xad\x92\xee\ -\xf8\x93\xa9@K\xa1\xfb\xc1\xc5\xab\xe2\xe8ij\x83$\x81\x97\xc5W\xb8to\x0cf\ -\xb4\xb0\xab\xd2\xad\xbe\x8cfF\x0b\xb8to\x0c/\x8b\xaf I\xa0\xa7\xa9\r\xf1\ -\xea\xb8\xff\x0e\x00\xbc\x01B7:\xf8\x9dD\x12\x92\x05$\x0b|\xf7p\x12y\xe4<\ -\xb7\x99\xd5\x97\xd1\xf2\xc8\xe1\xc7\xc7\xd3%\x9bd\xfd1\x84\x87\x93\xbc\'\ -\x00\x008z \x06I\x02\x92\x04rb\x15\x9a\xa1|\xa3\xd1\x0c\x85\xf9\x95l\xc9\xa6\ -\xbd>\x01&\xff\x12\x08\xf9\r:\xec@\x92(\xfd\x0e"\x95\xda\x94\x01\xb0\xb78\ -\xb3\x03\x02Tf\xe3\t\xa0\xa4\t\x87\x1d\x08*\x02\x00\xea\xa3Qt\x1e\xec\x00\ -\xbe\xe9\xf0]\xd3\xfah\xb4d\xe3\xb0\x03%M_\x00\xd7>\xa0\r\x9e\xe2/\xce~\x82\ -\x0f\xdaO\x96\x8d\xa0\x9c\xdc\x9d{\x80\xab\xd3?\x80/\xa6]\x8b\xc15\x03-\x07\ -\xe3\xe8mm/\xa5\xf2M\xa4\xb7\xb5\x1d\xdf\xff\x16\xc7S\xa4]\xc7]\x01\xaa\xcd\ -\xf0\xbeL\xbe\xd5\x9f\x97\xb8\x020\x13\xc4>\x020Se\x00\x04\x82do\x80\xb9\xec\ -\x02&\x1feP\xb0,\xd4\x98&\xde\xef8\x81\xf6\xc6\x06O}B\xa5\x00L\xa5J\xde)\x0f\ -\x9e\xfd\x83\xaf\x7f\xfe\x05\xe1\xda"\xec\xfeY-<\x9c\xe4\xfb\x93\x7f\xe2\xf3\ -s\xef\xe1\xe4\xb1\xa3\xee\x00{\xca\x80\xcb\x12,;K\xb8\x9dJo;\x0f\xec\xfeY\ -\xcd\x1c9\xc1\xb7S\xbf\xe2\xad\x06\x0bu\xa1\x18\xc2\xba\xb9\xcb\xdf\x1e\x00$\ -\x14;X\xb0\xb3\xf8\xd7z\x81U\xb5\x02b\x85e\xa1\x83\xbf\xdc}\x18\xd9\x03\xd5<\ -\x99\x1b\x07\x81P\xa5W\xe3p\xf8\x08\x8eW\xb5\xe1\x88\x19\xaf\x1c\x80\x99\xf0\ -B>\xc3\xbc|\x0c\x8b,\x10\x14\x14\x13\x88\x15\x98j\\\x1d1i\x90,A\xacP\xa0u,\ -\xda\x0bx\xb8\x9e\xc6a\xb3\x11k\x8ew}\xb8\x1eFy\xb5\x86\xb9\xe2\xef(\xa8\xf5\ -\xcd\x83E\xc2\xa2\x8d\x13\xae\xb1Y\xc0\x18\xea\xda\xd6\r\x8d\xa1.\x8e5\xadl\ -\xeaHX$7\xecX\xe2\xb9x\x8aU\xb5R\x19\xc0\xeb~.Y\xc2\xe2\xff\x9dY$\xd1p|\t\ -\xb5Q\xa7\x04a\x0cuq\xa4V\xa2\xae\xe5\xefM\x1d\x01\x8b$\x1c\xb672\x06\xdf\ -\xce\xed]\x03\x16I((\x10+\x106\xd2\xafX\x81\x0cB]3!\xff\xa8\x11\x00\xc0\xac\ -\xe1@"\x0bG/\x80\xc9\x7f\xb2\xe0\x00\xbc\xd1\x07\x88is\xfd\xb7C\xd8\xac\xef\ -\xd2/\x17iE\x00\xbc3\x03L\xdb\xb2\xe1\x90wk\xdd\x17\x00\x02C\x92\x00\x816\ -\xa3W`\xe6=GY9\x00\x13,\x96\xbe\xa9%+\x04m\xa0\x9b\xc9\xaa\xec%\x16\x08\x80\ -\xc1P\xec}\xff\x8b\xd4\xad"q.\xf5F\x13\xbf\x16\xd7mHN\xf0\x07k\x10\xf1\xf3\ -\xe7\n\xa0\xa4\x89\xe2bl_&/.\xc6\xa0D\xc4s\xdc\xf3i\xa6\rt\xb3Q%\xa1\x87\xfc\ -\xaf\xe2~B\x8e\x01%M\xcf\xeb\x18\x00\xfc\x07\x9aY\xdf_&\xed\xfd\xe8\x00\x00\ -\x00\x00IEND\xaeB`\x82' - -def getBitmap(): - return BitmapFromImage(getImage()) - -def getImage(): - stream = cStringIO.StringIO(getData()) - return ImageFromStream(stream) - -def getIcon(): - icon = EmptyIcon() - icon.CopyFromBitmap(getBitmap()) - return icon - - rmfile ./src/allmydata/gui/amdicon.py hunk ./src/allmydata/gui/amdlogo.py 1 -#---------------------------------------------------------------------- -# This file was generated by /opt/local/lib/python2.4/site-packages/wx-2.6-mac-unicode/wx/tools/img2py.py -# -from wx import ImageFromStream, BitmapFromImage -from wx import EmptyIcon -import cStringIO, zlib - - -def getData(): - return zlib.decompress( -'x\xda\x01\n\x0f\xf5\xf0\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x006\x00\ -\x00\x006\x08\x06\x00\x00\x00\x8cEj\xdd\x00\x00\x00\x04sBIT\x08\x08\x08\x08|\ -\x08d\x88\x00\x00\x0e\xc1IDATh\x81\xbd\x9ai\x90\\Wu\xc7\x7f\xe7\xde\xb7\xf42\ -\xdd\xa3\x914\x92,\x8d$[\xdedIF62\x8b\xb0\xc16\xa0\x02C\xb1\x84J\xfc!T\xd9\ -\x15\x12Ha\x96PT\x92\xa2\x12 \xa4(Hp\x80\xa2\x1c\x8aP\x10\x92\x94M\x9cJ\x11\ -\x02$\x80C\x19\x8c\xcdb\xcb\x06\x83\xe5\x05!,dY\x8b5\xb24\x9a\x99\xee\xe9\ -\xe5\xdd\xf7\xee\xbd\xf9\xf0^\xcf\xa6\x91=\xd3\x92y]\xb7\xdf\xed\xb7\x9cw\ -\xfe\xf7\x7f\xce\xb9\xe7\xdc\xd7\xc2\x1d\xaf\xe4\x05\xdf\xbc\x03\xef\xf3\xbe\ -\x00(\x10yA\x1f\x19\xbc`\x92m:\x80\xcb\xde\x80\xe8\x9daT=\xaf\x16\x96\x97\t\ -\x12\xa6\xce\xb6\x1bfj\x8c\xb4{\x10\xf86A\xf8sD\x9f\xf3\xc7\x9f{`.\x1b\xc1\ -\xd9?\xbct\xf9\x85\x7f\xbcs\xd5E\x97l]\xbe\x96-\xcb\xd6\xb1\xa2TE\x10\x8c\ -\xb3\x1ci\x9db\xcf\xd8!\xf6\x8e\x8f~\xe4\x87\xc7\x1e\xffv\xa33\xf6/\x84\xa5o\ -\x15t\x9e\x93M\xce\xa9)f\xc9\xf5C\xa5e\xb7\xdf\xb2\xf5\x8d#o\xbf\xe8%\x04\ -\xda`|\x82\xb1\x19\xd6[<\xa0D\x08$ R\x01\x91\xaap\xa8\xd9\xe63{\xbe\xc3w\x9e\ -~\xe0\xbfP\xfaOQ\xfa\xd4\xb9P\xe5\xdc\x01K;\xef\xbb~\xfdK?\xfb\xb1\x1do\rVWC\ -\x1ai\x13\xeb=R\xb0\xe0\x8bo_|{\x1c\x16GY\x87D\xaa\xca\xcf\x8e\x8d\xf2\xe7\ -\xbbo\xff\xf5d2y#:z\xecl\xd5\xd1\xbcm\xe3\xd9\xca\x80\xb4{\xcb\xef]x\xfd\xe7\ -?\xb3\xf3F\x15\x06\x1d\x1aY\x1b\x07\x80\xc7b\xc9\xc8\xf0bq\xe2\xc8HI\xc9\nX\ -\x8e\xae7\xb4|\x93\xf3\x87\xea\\\xb3z\xfb\xca\xdd\xc7\x0f\xbc\xb6\xd1\x9d\ -\xb8\x0f\x15\x1c?\x1b\x95\xd49\x00\xf5\xa6\xab\xd7]\xf9\xb9O\xbc\xec\xad4\ -\xdc\xb34l\x87\x8c\x0c\x83!\xa1K\x1c\x06\xd4\xc2A\xbc+\xd1\xcd4\xb1\xaa3\x18\ -\r\xe2\xb5\xa3K\x17C\x8a\xc1r\xcc\x9cd\xdd\n\xf8\xe8\xcb\xdevq=\xaa\xfd;\xde\ -V\xceF\xad\xb3c\xcc\xd9hYi\xd9]\xb7]s\xd3r\x82I\xda\xce\xe0p\xa4\xa4(-T\xf5\ -\x10\x0f\x8f\x9e\xe4\x0b\x8f\xfe\xd0}\xf1W\xf7M\xde\xb9\xff\xa1\xd6\x0f\x0f\ -\xef\xf3\xc7\xa7\xba\xd1\x05\xb5\x11\x06+!-\xdf"-\xd8\x9b\xb4S\\0\xb4\x8c5\ -\xa5\x91U\xf7>\xfd\x88\xa0\x83{\xfaU\xed\xec|,3\x1f\xfc\xe4\xce?\xfa\xcc\xeb\ -6\xad\xe7\xd9d\x0c\x10\x1c\x96\x81\xb0\xc2\xc4T\xc8\xc7v\xffw\xfa\xcb\x93\ -\xfbo\xc5e_C\x07\xcf\x80dx[\xc3\xda\xcd\x95\xb8\xfe\xc1?\xb8\xf8\xea\xd7\xdd\ -\xf4\xa2+9\xe9\x8e\xe1|\xe1\x7fb\x19\x94a>p\xf7\xb7\xba\xfb\xc7\x0f^\x82\x8e\ -\x0e\xf7\xa3Z\xff\x8c9\xbblye\xc5W\xdf\xb3\xfd\x9a\xda\x94?E\x86\xc7\x92\x11\ -\x06\x9a\xb1\xa6\xe6\xcf\xee\xbd\xe3\xe9\xdf\x8c\x1f|#Ax;:<\x8e\xa86\xa2\xba\ -(=\x89\x0e\x7f\x9b\xfa\xec\xab{\x8e\xed\xed4\xd3\xf05\xd7\x8c\\(\xe3n\x1c\ -\x8b#\x15\x8b\x0e\x1d\x1b\xe2\xf5\xc1=\x87\x9e8\x8aR\x0f\xf4\xa3^\xff>f\xd3K\ -\xae[\xbbem\xb9\xech{S\xf8TBU\x86\xf8\xa7G\x7f\xdc<\xd28z\x13ai\xf7\x19\xe7&\ -Q\x10\x97o\xfd\xc6\xbe{\xbf\xfc\xfd\x03\x07)G1F\x0c)\x19\'\xb3S\\\xbaf\x905\ -\x03\xc37\xe1l_sm\xff\xc0T\xf0\xb2k\xd7]\xca\x94\x9f*\x02\x80!\nC\xee9\xf4\ -\x14\xf7\x1e\xfa\xf9\x9dD\x95\x1f=\xbf\x10\x01\xa5\xfe\xea\xdb\xbf}\xf4H\xec\ -\x06I\xa4\x9b\x0f\x907L\x05c\xac\xa9\xd6\xb7\xe1\xdc\xd6\xbe\xd4\xeb\xe7&\ -\xbc\xa3\x1a\xd7^\xba\xb6^e\xd26HII0X\x0f\xdf=\xf8\x88G\xfc\x9d\x8b\x96\x15D\ -\xa7\xf6\x9e:t\xc7\xc1\x93M\x02\xad\xc9\xb9\xcf\xe8\xaa6k\xebu\x85\xf7\x9b\ -\xfaQ\xb1O`\x9e\x81\xa0t\x9e\x0e\x1d\x1d\xdf\xc5H\x8aQ\x06\xe3<\xe3\xdd\xce\ -\tD\xedY\x92\x7f9\xb0\ -\x94\x0c\xfb\x02\x02\x13H%\xc5HZ\x98\xe2lEr\x10^ \x9fn\xf3y\xa9\x16\x94Y/\ -\x1b\xf0I\x88\xb3\x1e\x15\x80\x89[\x1crG\xe8X\x83F\x9f\xc9p\xa7\x99\xcc\xc4\ -\x90\xc9\x0b\t\x8c\x9c\xb1\x04\x83\xa0\xe6<|\xae\xff8P\x8e\r\xb2\x91\xf2\xe8\ -\x08O\x1c\x18\xef\xec;1z\xa8\x9b\xa5\x9dZ\\\xaam[\xb3\xf6\x82\xcd\x9b\xd6\ -\xa9c+\xf6q\xd8\x1e\x01\x9f\xe7\xe2\xc5\xd0\xcc2\xe1\xbc\x97\xfenL1\x9d\xce6\ -\x98cF\xb3FYYv\xf8\x97\xb0\xfb\xa7\x1d\xee\x7f\xfa\xfe\x7f\xf5\xde|\n\xad\ -\x9f\x02I\xc7\xba\x93\xa5\x83\xe3\xcf\\\x1e\xed+\xff\xed\x9b\xb6m\x7f\xfd\ -\xa5WTx\xd8>B\xe4\xa3\x99\xfb\xe7\xc9LI\xb1K4\xc5%\x97-\xbd\xc4\xd7\x14&\x99\ -\x17\x993\xad--\xce\xf7\x9bxhw\x92\xfd\xf4\xa9\'\xfe\xc4\x07\xfe\x1d\x84\xd1\ ->\x946(\xe5\xd1\xbaC\x18=dTv\xc3\xd7\xf7\xfc\xecS\x13\x8f\xad\xe4\xe2\xf0\ -\x02Z\xd2\x99\x96\x99\x0f\xdd\x8c\xcc\x04C\xb6\xc4\x0f[\xd3{\x05\x01\x01\xd6\ -\xb9\xa2\xba\xc9\xf2\x87\xbb\x0c\xbcx\xe7=\x91Dh\xc5i`\xcaJQ\x16\x9d\xb7\xe2\ -X\xfc\\\xf1\xde\xa5\xe02>\xfc\xe2[\xf8\xc1\xae\xdbx\xdb\x86W\xcd\x04\x8f\xa1\ -\xa8\xc6\xad;\xde\xcb\xdf]\xf5~b\x15\x805,h\x9a\xb3\x810o\xbf\xd0\xfc\x83@\ -\xda\xe6\xca\x95\x97\xf1\x8d\xeb\xff\x9e\xd5\x95a\xb0\x1d\x04(\x89\xa2\xa4d\ -\x06Laz%\xd13\xfd\x02Xx&S\xb4\t5]\xe2\x9f\xaf\xfe\x08\x1f\xbf\xf2]\x0c\x86U`\ -\xd6\x04\xed\x8b7\xfc\x1f\xda\xfav^\xber\x0b7\xde\xf7\xd7\x9ch=\x0bau\x16]\ -\xcf\x01j\xa1=\xd0\xb1\t\xdbV]\x9e\xdd\xf5\x9aO\xb3:\x1eb\xa4\xba\x8a7\xfc\ -\xdf\x07l\xe6\xed\x1cv\x02\x84@\x84@)\xc2^_\x84P\x14\xa2\xdc\xc2>\x96\xb6X_\ -\x1b\xe1?\xaf\xfd$;\x87\xe7\xbem\x9asuo\x01\xe5\xba\xd5Wr\xf7\xae\xdbx\xf1\ -\xf0VH\x17H\xf9\x16\xf0\xa9\x85\x9a\x13\x8f\x88\xf0\x89\xed\xef\xde\xba:\x1c\ -\xba\xcc\x18\xf3\xa2\xab\x96_z\xe9\x87\xb7\xbfk\x93\xb1)%Q\xd3&X\x99\xe3SE\ -\xf0(\x98\xab(M4\xdf\x14\xcd\x14\xaf\x1d\xb9\x86\x9f\xdc\xf0%v\x0eo\xc5\xcf\ -\x8b\rgL\xa9\xb6\x0f]\xc4\xf7v\xdd\xc6\x9b\xef\xf9K\x1ex\xe6A@Ci`f(\x16J\x7f\ -\xe6\x1d\xd7J\x88t(\xc7\xf6\x1e\x1c\xf9\xc5A\xd5\xed8\x13\r\xe8R\xb7\xd1\x90\xed>\xb57\x17\x9e\x17\xcf\x0b\x9a\xa0\x00\ -Z\xf2\t\xad\xa2\x02\x9c\xf5\xf2\x1f\x8f|\xef\xa2\x9f\xd8\xc1r\x8a\x0b#\xb4\ -\xd9\x1b\x9e\xd8\xa8^\xa1(\xab\x80\xb2\xe4>\xd53\xbd@f\x9b\xa2"\x14A\xab\xfc\ -\xbdK\xa4Bw\xe5\xca\xcd\xbcf\xddN\xfe\xe1\xc5\xef\xc9\xad\xc2-\x9c\xba=o\x12\ -\\\xd6\x11\xef\xdd\xfc\xfb\xdc\xbc\xe9\x8d[\xae\xf8\xee\xcdq\xc7\xdb\x05}I\ -\x04\x02\x99\x19u\xb0\x04\xde\xb3}d\xa5:p\xdd\xd8\xfb\x0f\xabg\x11\xc9\xff\ -\xa73h\x85\xcd\xabVq\x18OE)b\xd1\xd3L\x05"\x04\xa89\xbf5\x1a\xe3\x12\xae^\ -\xb9m\xe5\xd7\xae\xfd\xf8 0\tg\x06u\x1a\xb0YtF"Ru\xceU\xad\xb55o\xddUGN\x8d\xb6\x84\ -\x1b9/.\x11\xf9`\xc6\x07z\x0e\xaf\x04=\xcb\x8cr\xff\x10B\xa5\x08\n\x8659@M\ -\xce\x8c.\xda\xe9\xa9\xc0\xec\xf0\xed(\xf9\x01\x8cX\xdd\xedt\x9e\x9el5\x8e\ -\xd5\xea5]*\x95T\xa9T\x92R\xa9$q\x1c\xfb8\x8em\x18\x86\x13\xc0\xa8\xf8\xfc%\ -\x1e@\xd997\x94\xa6i\xd9\x183\x90$\xc9`\xb7\xdb\xad\xb4\xdb\xed\xb85\xd5R&1\ -\xfa\x0b\x8d\xbbnzB\xff\xfa\xf5\x95(\x0e\x05\x01\xe7g\xe6\x0f\xef\xe7\x0c\ -\xb4\xf4z\x02\xd2\xfb\xd7\xac\xe4g\xe6\xc4\x1e\x99\x03J$wt\x11\x11z\xcd{\xe7\ -&Mbn\x90W}\xe9\xcd\x03/\xf9~X\x8d\x83J\xa5\x92V*\x95N\x1c\xc7SQ\x14M\x86a\ -\xd8\t\xc3\xb0\xa9\x94\x1a\xf7\xde\xfbi`\xb3\'\xb8\\\x98\x87\xbc\x9c\x8c\x9d\ -seA\xa241\xe1c\x13\x07\xd7g\xdeV\xc51d\xad\xad\xa7Y6`\x12S\xeb&\xddJ\x92$a\ -\x92\x18mR#i\x9ab3+\xd6fX\xe7\xe6\xc8W"(\xad\t\x82\x80 \x08|\x18\x86>\x8a"\ -\x17\xc7\xb1\x8d\xe38)\x94m*\xa5\xa6\xb4\xd6\xe3\x99\xb8F=\xa8\xb4/\x1f\xdax\ -\xc4k\xb1\xa2\xa4\x0bt\x94Rf\xb6\xee\xbd\x81\x008\r\xd8\xec\xbd\xf7y\xe6\xe0\ -\x9c#\x08\x02lf\tu\x98\x87\xc2\xccA\xa0f\x87\xfc*\x8e\xaa\xcf\xec\x80s\xae\ -\x92eY\xd9Z\x1b9\xe7\x94sN\x9cs\xd2{\xb8R\xca+\xa5\x9cR\xcaj\xad;A\x10t\x95\ -\xd6-D\x9ahZ\x90\xaf\x8ezc\x11\xa5 \x10|j\xb12W75\xaf\xacVJM\x03\xfb\x7f\xee\ -r\xc9\xfc\x835!h\x00\x00\x00\x00IEND\xaeB`\x82`\xcd|Q' ) - -def getBitmap(): - return BitmapFromImage(getImage()) - -def getImage(): - stream = cStringIO.StringIO(getData()) - return ImageFromStream(stream) - -def getIcon(): - icon = EmptyIcon() - icon.CopyFromBitmap(getBitmap()) - return icon - rmfile ./src/allmydata/gui/amdlogo.py hunk ./src/allmydata/gui/confwiz.py 1 - -DEFAULT_SERVER_URL = 'https://www.allmydata.com/' - -BACKEND = 'native_client.php' -ACCOUNT_PAGE = 'account' -WELCOME_PAGE = 'welcome_install' -TAHOESVC_NAME = 'Tahoe' -WINFUSESVC_NAME = 'Allmydata SMB' - -CONVERGENCE_DOMAIN_TAG = "allmydata_root_cap_to_convergence_domain_tag_v1" - -import os -import re -import socket -import sys -#import time -import traceback -import urllib2 -from urllib import urlencode -import webbrowser -import wx - -from allmydata.util.assertutil import precondition -from allmydata.util import hashutil, base32 -from allmydata import uri -import allmydata -from allmydata.gui import amdlogo - -from foolscap.api import Tub -from twisted.python import usage - -class AuthError(Exception): - pass - -def unicode_to_utf8(uobj): - assert precondition(isinstance(uobj, unicode)) - return uobj.encode('utf-8') - - -def post(url, args): - argstr = urlencode(args) - conn = urllib2.urlopen(url, argstr) - return conn.read() - -def get_root_cap(url, user, passwd): - args = { - 'action': 'authenticate', - 'email': unicode_to_utf8(user), - 'passwd': unicode_to_utf8(passwd), - } - root_cap = post(url, args) - if root_cap == '0': - raise AuthError() - elif not uri.is_uri(root_cap): - raise ValueError('%r is not a URI' % (root_cap,)) - else: - return root_cap - -def create_account(url, user, passwd, subscribe): - args = { - 'action': 'create_account', - 'email': unicode_to_utf8(user), - 'passwd': unicode_to_utf8(passwd), - 'subscribe': subscribe and 'true' or 'false', - } - result_code = post(url, args) - return result_code - -def record_install(url, user, passwd, nodeid, nickname): - args = { - 'action': 'record_install', - 'email': unicode_to_utf8(user), - 'passwd': unicode_to_utf8(passwd), - 'nodeid': nodeid, - 'moniker': nickname, - } - result_code = post(url, args) - return result_code - -def record_uninstall(url, nodeid): - args = { - 'action': 'record_uninstall', - 'nodeid': nodeid, - } - result_code = post(url, args) - return result_code - -def get_introducer_furl(url): - return post(url, { 'action': 'getintroducerfurl' }) - -def get_config(url, user, passwd): - args = { - 'action': 'get_config', - 'email': unicode_to_utf8(user), - 'passwd': unicode_to_utf8(passwd), - } - config = post(url, args) - return config - -def get_basedir(): - if sys.platform == 'win32': - from allmydata.windows import registry - return registry.get_base_dir_path() - else: - return os.path.expanduser('~/.tahoe') - -def write_config_file(filename, contents): - basedir = get_basedir() - path = os.path.join(basedir, filename) - dirname = os.path.dirname(path) - if not os.path.exists(dirname): - os.makedirs(dirname) - iff = file(path, 'wb') - iff.write(contents) - iff.close() - -def write_root_cap(root_cap): - write_config_file('private/root_dir.cap', root_cap+'\n') - convergence = base32.b2a(hashutil.tagged_hash(CONVERGENCE_DOMAIN_TAG, root_cap)) - write_config_file('private/convergence', convergence+'\n') - -def get_nodeid(): - CERTFILE = "node.pem" - certfile = os.path.join(get_basedir(), "private", CERTFILE) - tub = Tub(certFile=certfile) - return tub.getTubID() - -def get_nickname(): - nick = None - nnfile = os.path.join(get_basedir(), 'nickname') - if os.path.exists(nnfile): - try: - fh = file(nnfile, 'rb') - nick = fh.read().strip() - fh.close() - except: - DisplayTraceback('Failed to read existing nickname file %s' % (nnfile,)) - if not nick: - nick = socket.gethostname() - return nick - -def maybe_write_file(filename, contents): - fname = os.path.join(get_basedir(), filename) - try: - if not os.path.exists(fname): - fh = file(fname, 'wb') - fh.write(contents) - fh.write('\n') - fh.close() - except: - DisplayTraceback('Failed to write file %s' % (fname,)) - -def configure(backend, user, passwd): - _config_re = re.compile('^([^:]*): (.*)$') - config = get_config(backend, user, passwd) - config_dict = {} - for line in config.split('\n'): - if line: - m = _config_re.match(line) - if m: - fname, contents = m.groups() - config_dict[fname] = contents - for fname, contents in config_dict.items(): - write_config_file(fname, contents+'\n') - -def start_windows_service(svc_name): - try: - import win32service - import win32serviceutil as wsu - if wsu.QueryServiceStatus(svc_name)[1] != win32service.SERVICE_RUNNING: - wsu.StartService(svc_name) - except: - DisplayTraceback('Failed to start windows service "%s"' % (svc_name,)) - -def maybe_start_services(): - if sys.platform == 'win32': - start_windows_service(TAHOESVC_NAME) - start_windows_service(WINFUSESVC_NAME) - -def DisplayTraceback(message): - xc = traceback.format_exception(*sys.exc_info()) - wx.MessageBox(u"%s\n (%s)"%(message,''.join(xc)), 'Error') - -class ConfWizApp(wx.App): - def __init__(self, server, open_welcome_page=False): - self.server = server - self.show_welcome = open_welcome_page - wx.App.__init__(self, 0) - - def get_backend(self): - return self.server + BACKEND - - def open_welcome_page(self): - if self.show_welcome: - args = {'v': str(allmydata.__version__), - 'plat': sys.platform, - } - webbrowser.open(self.server + WELCOME_PAGE + '?' + urlencode(args)) - - def OnInit(self): - try: - wx.InitAllImageHandlers() - - self.login_frame = WizardFrame(self, LoginPanel) - self.login_frame.CenterOnScreen() - self.SetTopWindow(self.login_frame) - #self.SetExitOnFrameDelete(True) - self.login_frame.Show(True) - - return True - except: - DisplayTraceback('config wizard init threw an exception') - - def swap_to_register_frame(self): - try: - self.login_frame.Show(False) - self.regiser_frame = WizardFrame(self, RegisterPanel) - self.regiser_frame.CenterOnScreen() - self.SetTopWindow(self.regiser_frame) - self.SetExitOnFrameDelete(True) - self.regiser_frame.Show(True) - except: - DisplayTraceback('config wizard threw an exception') - -class WizardFrame(wx.Frame): - def __init__(self, app, panel_class): - #title = 'Allmydata Config Wizard' - title = 'Setup - Allmydata' - wx.Frame.__init__(self, None, -1, title) - self.app = app - self.SetIcon(amdlogo.getIcon()) - self.Bind(wx.EVT_CLOSE, self.close) - - self.SetSizeHints(500, 360, 600, 800) - - banner = wx.Panel(self, -1) - banner.SetSize((496,58)) - banner.SetBackgroundColour(wx.WHITE) - - banner_title = wx.StaticText(banner, -1, panel_class.title) - banner_desc = wx.StaticText(banner, -1, " " + panel_class.description) - font = banner_title.GetFont() - font.SetWeight(wx.FONTWEIGHT_BOLD) - banner_title.SetFont(font) - banner_icon = wx.StaticBitmap(banner, -1, amdlogo.getBitmap()) - banner_label_sizer = wx.BoxSizer(wx.VERTICAL) - banner_label_sizer.Add(banner_title, 0, wx.EXPAND | wx.ALL, 2) - banner_label_sizer.Add(banner_desc, 0, wx.EXPAND | wx.ALL, 2) - - banner_sizer = wx.BoxSizer(wx.HORIZONTAL) - banner_sizer.Add(banner_label_sizer, 1, wx.EXPAND | wx.ALL, 12) - banner_sizer.Add(banner_icon, 0, wx.ALL, 12) - banner.SetSizer(banner_sizer) - banner.SetAutoLayout(True) - - background = wx.Panel(self, -1, style=wx.SIMPLE_BORDER) - background.parent = self - - button_panel = wx.Panel(self, -1) - button_panel.SetSize((496, 64)) - - self.panel = panel_class(background, button_panel, app) - sizer = wx.BoxSizer(wx.VERTICAL) - background_sizer = wx.BoxSizer(wx.VERTICAL) - background_sizer.Add(wx.Size(2,2), 0, wx.EXPAND | wx.ALL, self.panel.padding) - background_sizer.Add(self.panel, 1, wx.ALIGN_CENTER_HORIZONTAL | wx.ALL, 26) - background_sizer.Add(wx.Size(2,2), 0, wx.EXPAND | wx.ALL, self.panel.padding) - background.SetSizer(background_sizer) - - - sizer.Add(banner, 0, wx.EXPAND | wx.HORIZONTAL, 0) - sizer.Add(background, 0, wx.EXPAND | wx.ALL, 0) - sizer.Add(button_panel, 0, wx.EXPAND | wx.HORIZONTAL, 0) - self.SetSizer(sizer) - self.SetAutoLayout(True) - self.Fit() - self.Layout() - - def close(self, event): - self.Show(False) - self.app.ExitMainLoop() - - -class LoginPanel(wx.Panel): - padding = 26 - title = 'Sign in' - description = 'Sign in to your existing account' - - def __init__(self, parent, button_panel, app): - wx.Panel.__init__(self, parent, -1) - self.parent = parent - self.app = app - - self.sizer = wx.BoxSizer(wx.VERTICAL) - - self.user_label = wx.StaticText(self, -1, 'Email') - self.pass_label = wx.StaticText(self, -1, 'Password') - self.user_field = wx.TextCtrl(self, -1, u'', size=(260,-1)) - self.pass_field = wx.TextCtrl(self, -1, u'', size=(260,-1), style=wx.TE_PASSWORD) - self.warning_label = wx.StaticText(self, -1, '') - self.warning_label.SetOwnForegroundColour(wx.RED) - wx.EVT_CHAR(self.user_field, self.on_user_entry) - wx.EVT_CHAR(self.pass_field, self.on_pass_entry) - login_sizer = wx.FlexGridSizer(2, 2, 5, 4) - login_sizer.Add(self.user_label, 0, wx.ALIGN_RIGHT | wx.ALL, 2) - login_sizer.Add(self.user_field, 0, wx.EXPAND | wx.ALL, 2) - login_sizer.Add(self.pass_label, 0, wx.ALIGN_RIGHT | wx.ALL, 2) - login_sizer.Add(self.pass_field, 0, wx.EXPAND | wx.ALL, 2) - self.sizer.Add(login_sizer, 1, wx.EXPAND | wx.ALL, 2) - self.sizer.Add(self.warning_label, 0, wx.CENTER | wx.ALL, 2) - self.SetSizer(self.sizer) - self.SetAutoLayout(True) - - self.reg_label = wx.StaticText(button_panel, -1, "Don't have an account?") - self.reg_button = wx.Button(button_panel, -1, 'Create Account') - self.login_button = wx.Button(button_panel, -1, 'Sign In') - button_panel.Bind(wx.EVT_BUTTON, self.on_reg_button, self.reg_button) - button_panel.Bind(wx.EVT_BUTTON, self.on_login, self.login_button) - btn_sizer = wx.BoxSizer(wx.HORIZONTAL) - btn_sizer.Add(wx.Size(2,2), 1, wx.EXPAND | wx.ALL, 12) - btn_sizer.Add(self.reg_label, 0, wx.ALIGN_RIGHT | wx.ALL, 12) - btn_sizer.Add(self.reg_button, 0, wx.ALIGN_RIGHT | wx.ALL, 12) - btn_sizer.Add(self.login_button, 0, wx.ALIGN_RIGHT | wx.ALL, 12) - button_panel.SetSizer(btn_sizer) - self.button_panel = button_panel - - def on_reg_button(self, event): - self.app.swap_to_register_frame() - - def on_user_entry(self, event): - if event.GetKeyCode() == wx.WXK_RETURN: - self.pass_field.SetFocus() - else: - event.Skip() - - def on_pass_entry(self, event): - if event.GetKeyCode() == wx.WXK_RETURN: - self.on_login(event) - else: - event.Skip() - - def on_login(self, event): - user = self.user_field.GetValue() - passwd = self.pass_field.GetValue() - self.warning_label.SetLabel('Connecting...') - self.Layout() - wx.Yield() - - backend = self.app.get_backend() - - if passwd == '': - self.warning_label.SetLabel('You must enter a password') - self.pass_field.SetFocus() - self.Layout() - return - - try: - root_cap = get_root_cap(backend, user, passwd) - write_root_cap(root_cap) - except AuthError: - self.warning_label.SetLabel('Your email and/or password is incorrect') - self.user_field.SetFocus() - self.Layout() - return - - nodeid = get_nodeid() - nickname = get_nickname() - ret = record_install(backend, user, passwd, nodeid, nickname) - if ret != 'ok': - wx.MessageBox('Error "%s" recording this system (%s)' % (ret, nodeid), 'Error') - - configure(backend, user, passwd) - maybe_start_services() - maybe_write_file('nickname', nickname) - maybe_write_file('accountname', user) - - self.app.open_welcome_page() - - # exit - self.parent.parent.Close() - -class RegisterPanel(wx.Panel): - padding = 7 - title = 'Create account' - description = 'Create a new account on Allmydata' - - def __init__(self, parent, button_panel, app): - wx.Panel.__init__(self, parent, -1) - self.parent = parent - self.app = app - - self.sizer = wx.BoxSizer(wx.VERTICAL) - - self.user_label = wx.StaticText(self, -1, 'Email') - self.pass_label = wx.StaticText(self, -1, 'Password') - self.conf_label = wx.StaticText(self, -1, 'Confirm Password') - self.user_field = wx.TextCtrl(self, -1, u'', size=(260,-1)) - self.pass_field = wx.TextCtrl(self, -1, u'', size=(260,-1), style=wx.TE_PASSWORD) - self.conf_field = wx.TextCtrl(self, -1, u'', size=(260,-1), style=wx.TE_PASSWORD) - self.subscribe_box = wx.CheckBox(self, -1, 'Sign up for our Newsletter') - self.subscribe_box.SetValue(True) - self.warning_label = wx.StaticText(self, -1, '') - self.warning_label.SetOwnForegroundColour(wx.RED) - wx.EVT_CHAR(self.user_field, self.on_user_entry) - wx.EVT_CHAR(self.pass_field, self.on_pass_entry) - wx.EVT_CHAR(self.conf_field, self.on_conf_entry) - login_sizer = wx.FlexGridSizer(3, 2, 5, 4) - login_sizer.Add(self.user_label, 0, wx.ALIGN_RIGHT | wx.ALL, 2) - login_sizer.Add(self.user_field, 0, wx.EXPAND | wx.ALL, 2) - login_sizer.Add(self.pass_label, 0, wx.ALIGN_RIGHT | wx.ALL, 2) - login_sizer.Add(self.pass_field, 0, wx.EXPAND | wx.ALL, 2) - login_sizer.Add(self.conf_label, 0, wx.ALIGN_RIGHT | wx.ALL, 2) - login_sizer.Add(self.conf_field, 0, wx.EXPAND | wx.ALL, 2) - login_sizer.Add(wx.Size(2,2), 0, wx.ALIGN_RIGHT | wx.ALL, 2) - self.sizer.Add(login_sizer, 0, wx.EXPAND | wx.ALL, 2) - self.sizer.Add(self.warning_label, 0, wx.CENTER | wx.ALL, 2) - self.sizer.Add(wx.Size(2,2), 0, wx.EXPAND | wx.ALL, 4) - self.sizer.Add(self.subscribe_box, 0, wx.CENTER | wx.ALL, 2) - self.SetSizer(self.sizer) - self.SetAutoLayout(True) - - self.reg_button = wx.Button(button_panel, -1, 'Create Account') - button_panel.Bind(wx.EVT_BUTTON, self.on_create_account, self.reg_button) - btn_sizer = wx.BoxSizer(wx.HORIZONTAL) - btn_sizer.Add(wx.Size(2,2), 1, wx.EXPAND | wx.ALL, 12) - btn_sizer.Add(self.reg_button, 0, wx.ALIGN_RIGHT | wx.ALL, 12) - button_panel.SetSizer(btn_sizer) - self.button_panel = button_panel - - self.Fit() - - def on_user_entry(self, event): - if event.GetKeyCode() == wx.WXK_RETURN: - self.pass_field.SetFocus() - else: - event.Skip() - - def on_pass_entry(self, event): - if event.GetKeyCode() == wx.WXK_RETURN: - self.conf_field.SetFocus() - else: - event.Skip() - - def on_conf_entry(self, event): - if event.GetKeyCode() == wx.WXK_RETURN: - self.on_create_account(event) - else: - event.Skip() - - def on_create_account(self, event): - user = self.user_field.GetValue() - passwd = self.pass_field.GetValue() - pconf = self.conf_field.GetValue() - subscribe = self.subscribe_box.IsChecked() - self.warning_label.SetLabel('Connecting...') - self.Layout() - wx.Yield() - - if passwd == '': - self.warning_label.SetLabel('You must enter a password') - self.pass_field.SetFocus() - self.Layout() - return - - if passwd != pconf: - self.warning_label.SetLabel("Passwords don't match") - self.pass_field.SetValue('') - self.conf_field.SetValue('') - self.pass_field.SetFocus() - self.Layout() - return - - backend = self.app.get_backend() - - #print 'calling create_account', time.asctime() - result_code = create_account(backend, user, passwd, subscribe) - - if result_code == 'account_exists': - # try and log into it; if valid, use it anyway - try: - #print 'calling get_root_cap (ae)', time.asctime() - root_cap = get_root_cap(backend, user, passwd) - write_root_cap(root_cap) - except AuthError: - self.warning_label.SetLabel('That email address is already registered') - self.user_field.SetFocus() - self.Layout() - return - elif result_code == 'error': - self.warning_label.SetLabel('an error occurred') - self.user_field.SetFocus() - self.Layout() - return - elif result_code == 'ok': - #print 'calling get_root_cap (ok)', time.asctime() - root_cap = get_root_cap(backend, user, passwd) - write_root_cap(root_cap) - else: - self.warning_label.SetLabel('an unexpected error occurred ("%s")' % (result_code,)) - self.user_field.SetFocus() - self.Layout() - return - - nodeid = get_nodeid() - nickname = get_nickname() - ret = record_install(backend, user, passwd, nodeid, nickname) - if ret != 'ok': - wx.MessageBox('Error "%s" recording this system (%s)' % (ret, nodeid), 'Error') - - configure(backend, user, passwd) - maybe_start_services() - maybe_write_file('nickname', nickname) - maybe_write_file('accountname', user) - - self.app.open_welcome_page() - - # exit - self.parent.parent.Close() - -def do_uninstall(server_url): - nodeid = get_nodeid() - ret = record_uninstall(server_url + BACKEND, nodeid) - print ret - if ret != 'ok': - print 'Error "%s" recording uninstall of this system (%s)' % (ret, nodeid) - -class Options(usage.Options): - synopsis = "Usage: confwiz [options]" - - optFlags = [ - ['uninstall', 'u', 'record uninstall'], - ] - optParameters = [ - ['server', 's', DEFAULT_SERVER_URL, 'url of server to contact'], - ] - -def main(argv): - config = Options() - try: - config.parseOptions(argv[1:]) - except usage.error, e: - print config - print "%s: %s" % (sys.argv[0], e) - sys.exit(-1) - - server = config['server'] - if not server.endswith('/'): - server += '/' - - if config['uninstall']: - do_uninstall(server) - else: - app = ConfWizApp(server) - app.MainLoop() - - -if __name__ == '__main__': - main(sys.argv) rmfile ./src/allmydata/gui/confwiz.py hunk ./src/allmydata/gui/macapp.py 1 - -import operator -import os -import stat -from subprocess import Popen, PIPE -import sys -import thread -import threading -import traceback -import urllib -import webbrowser - -import wx -from twisted.internet import reactor -from twisted.python import log, logfile - -import allmydata -from allmydata import client -from allmydata.gui.confwiz import ConfWizApp, ACCOUNT_PAGE, DEFAULT_SERVER_URL -from allmydata.scripts.common import get_aliases -from allmydata.gui import amdicon, amdlogo - -DEFAULT_FUSE_TIMEOUT = 300 - -TRY_TO_INSTALL_TAHOE_SCRIPT = True -TAHOE_SCRIPT = '''#!/bin/bash -if [ "x${*}x" == "xx" ] -then - %(exe)s --help -else - %(exe)s "${@}" -fi -''' - -def run_macapp(): - nodedir = os.path.expanduser('~/.tahoe') - if not os.path.isdir(nodedir): - app_supp = os.path.expanduser('~/Library/Application Support/Allmydata Tahoe/') - if not os.path.isdir(app_supp): - os.makedirs(app_supp) - os.symlink(app_supp, nodedir) - - app_cont = AppContainer(nodedir) - return app_cont.run() - -class MacGuiClient(client.Client): - """ - This is a subclass of the tahoe 'client' node, which hooks into the - client's 'notice something went wrong' mechanism, to display the fact - in a manner sensible for a wx gui app - """ - def __init__(self, nodedir, app_cont): - self.app_cont = app_cont - client.Client.__init__(self, nodedir) - - def _service_startup_failed(self, failure): - wx.CallAfter(self.wx_abort, failure) - log.msg('node service startup failed') - log.err(failure) - - def wx_abort(self, failure): - wx.MessageBox(failure.getTraceback(), 'Fatal Error in Node startup') - self.app_cont.guiapp.ExitMainLoop() - -class AppContainer(object): - """ - This is the 'container' for the mac app, which takes care of initial - configuration concerns - e.g. running the confwiz before going any further - - of launching the reactor, and within it the tahoe node, on a separate thread, - and then lastly of launching the actual wx gui app and waiting for it to exit. - """ - def __init__(self, nodedir): - self.nodedir = nodedir - - def files_exist(self, file_list): - extant_conf = [ os.path.exists(os.path.join(self.nodedir, f)) for f in file_list ] - return reduce(operator.__and__, extant_conf) - - def is_config_incomplete(self): - necessary_conf_files = ['introducer.furl', 'private/root_dir.cap'] - need_config = not self.files_exist(necessary_conf_files) - if need_config: - print 'some config is missing from nodedir (%s): %s' % (self.nodedir, necessary_conf_files) - return need_config - - def run(self): - # handle initial config - if not os.path.exists(os.path.join(self.nodedir, 'webport')): - f = file(os.path.join(self.nodedir, 'webport'), 'wb') - f.write('3456') - f.close() - - if self.is_config_incomplete(): - confwiz = ConfWizApp(DEFAULT_SERVER_URL, open_welcome_page=True) - confwiz.MainLoop() - - if self.is_config_incomplete(): - print 'config still incomplete; confwiz cancelled, exiting' - return 1 - - # set up twisted logging. this will become part of the node rsn. - logdir = os.path.join(self.nodedir, 'logs') - if not os.path.exists(logdir): - os.makedirs(logdir) - lf = logfile.LogFile('tahoesvc.log', logdir) - log.startLogging(lf) - - if TRY_TO_INSTALL_TAHOE_SCRIPT: - self.maybe_install_tahoe_script() - - # actually start up the node and the ui - os.chdir(self.nodedir) - - # start the reactor thread up, launch the tahoe node therein - self.start_reactor() - - try: - # launch the actual gui on the wx event loop, wait for it to quit - self.guiapp = MacGuiApp(app_cont=self) - self.guiapp.MainLoop() - log.msg('gui mainloop exited') - except: - log.err() - - # shutdown the reactor, hence tahoe node, before exiting - self.stop_reactor() - - return 0 - - def start_reactor(self): - self.reactor_shutdown = threading.Event() - thread.start_new_thread(self.launch_reactor, ()) - - def launch_reactor(self): - # run the node itself - #c = client.Client(self.nodedir) - c = MacGuiClient(self.nodedir, app_cont=self) - reactor.callLater(0, c.startService) # after reactor startup - reactor.run(installSignalHandlers=False) - self.reactor_shutdown.set() - - def stop_reactor(self): - # trigger reactor shutdown, and block waiting on it - reactor.callFromThread(reactor.stop) - log.msg('waiting for reactor shutdown') - self.reactor_shutdown.wait() - log.msg('reactor shut down') - - def maybe_install_tahoe_script(self): - path_candidates = ['/usr/local/bin', '~/bin', '~/Library/bin'] - env_path = map(os.path.expanduser, os.environ['PATH'].split(':')) - if not sys.executable.endswith('/python'): - print 'not installing tahoe script: unexpected sys.exe "%s"' % (sys.executable,) - return - for path_candidate in map(os.path.expanduser, env_path): - tahoe_path = path_candidate + '/tahoe' - if os.path.exists(tahoe_path): - print 'not installing "tahoe": it already exists at "%s"' % (tahoe_path,) - return - for path_candidate in map(os.path.expanduser, path_candidates): - if path_candidate not in env_path: - print path_candidate, 'not in', env_path - continue - tahoe_path = path_candidate + '/tahoe' - try: - print 'trying to install "%s"' % (tahoe_path,) - bin_path = (sys.executable[:-6] + 'Allmydata') - script = TAHOE_SCRIPT % { 'exe': bin_path } - f = file(tahoe_path, 'wb') - f.write(script) - f.close() - mode = stat.S_IRUSR|stat.S_IXUSR|stat.S_IRGRP|stat.S_IXGRP|stat.S_IROTH|stat.S_IXOTH - os.chmod(tahoe_path, mode) - print 'installed "%s"' % (tahoe_path,) - return - except: - print 'unable to write %s' % (tahoe_path,) - traceback.print_exc() - else: - print 'no remaining candidate paths for installation of tahoe script' - - -def DisplayTraceback(message): - xc = traceback.format_exception(*sys.exc_info()) - wx.MessageBox(u"%s\n (%s)"%(message,''.join(xc)), 'Error') - -WEBOPEN_ID = wx.NewId() -ACCOUNT_PAGE_ID = wx.NewId() -MOUNT_ID = wx.NewId() - -class SplashFrame(wx.Frame): - def __init__(self): - no_resz = wx.DEFAULT_FRAME_STYLE & ~ (wx.MINIMIZE_BOX|wx.RESIZE_BORDER|wx.MAXIMIZE_BOX) - wx.Frame.__init__(self, None, -1, 'Allmydata', style=no_resz) - - self.SetSizeHints(100, 100, 600, 800) - self.SetIcon(amdicon.getIcon()) - self.Bind(wx.EVT_CLOSE, self.on_close) - - background = wx.Panel(self, -1) - background.parent = self - self.login_panel = SplashPanel(background, self.on_close) - sizer = wx.BoxSizer(wx.VERTICAL) - background_sizer = wx.BoxSizer(wx.VERTICAL) - background_sizer.Add(self.login_panel, 1, wx.ALIGN_CENTER_HORIZONTAL | wx.ALL, 26) - background.SetSizer(background_sizer) - sizer.Add(background, 0, wx.EXPAND | wx.ALL, 0) - self.SetSizer(sizer) - self.SetAutoLayout(True) - self.Fit() - self.Layout() - - def on_close(self, event): - self.Show(False) - -class SplashPanel(wx.Panel): - def __init__(self, parent, on_close): - wx.Panel.__init__(self, parent, -1) - self.parent = parent - - hbox = wx.BoxSizer(wx.HORIZONTAL) - vbox = wx.BoxSizer(wx.VERTICAL) - self.sizer = wx.BoxSizer(wx.VERTICAL) - - self.icon = wx.StaticBitmap(self, -1, amdlogo.getBitmap()) - self.label = wx.StaticText(self, -1, 'Allmydata') - bigfont = self.label.GetFont() - bigfont.SetPointSize(26) - smlfont = self.label.GetFont() - smlfont.SetPointSize(10) - self.label.SetFont(bigfont) - ver = "Version 3.0 (%s)" % (allmydata.__version__,) - self.ver_label = wx.StaticText(self, -1, ver) - self.ver_label.SetFont(smlfont) - copy = u"Copyright \N{COPYRIGHT SIGN} 2004-2008 Allmydata Inc.," - self.copy_label = wx.StaticText(self, -1, copy) - self.copy_label.SetFont(smlfont) - self.res_label = wx.StaticText(self, -1, "All Rights Reserved.") - self.res_label.SetFont(smlfont) - ##self.ok = wx.Button(self, -1, 'Ok') - ##self.Bind(wx.EVT_BUTTON, on_close, self.ok) - hbox.Add(self.icon, 0, wx.CENTER | wx.ALL, 2) - vbox.Add(self.label, 0, wx.CENTER | wx.ALL, 2) - vbox.Add(self.ver_label, 0, wx.CENTER | wx.ALL, 2) - hbox.Add(vbox) - self.sizer.Add(hbox) - self.sizer.Add(wx.Size(8,8), 1, wx.EXPAND | wx.ALL, 2) - self.sizer.Add(self.copy_label, 0, wx.CENTER | wx.ALL, 2) - self.sizer.Add(self.res_label, 0, wx.CENTER | wx.ALL, 2) - #self.sizer.Add(wx.Size(42,42), 1, wx.EXPAND | wx.ALL, 2) - ##self.sizer.Add(self.ok, 0, wx.CENTER | wx.ALL, 2) - self.SetSizer(self.sizer) - self.SetAutoLayout(True) - - -class MountFrame(wx.Frame): - def __init__(self, guiapp): - wx.Frame.__init__(self, None, -1, 'Allmydata Mount Filesystem') - - self.SetSizeHints(100, 100, 600, 800) - self.SetIcon(amdicon.getIcon()) - self.Bind(wx.EVT_CLOSE, self.on_close) - - background = wx.Panel(self, -1) - background.parent = self - self.mount_panel = MountPanel(background, self.on_close, guiapp) - sizer = wx.BoxSizer(wx.VERTICAL) - background_sizer = wx.BoxSizer(wx.VERTICAL) - background_sizer.Add(self.mount_panel, 1, wx.ALIGN_CENTER_HORIZONTAL | wx.ALL, 26) - background.SetSizer(background_sizer) - sizer.Add(background, 0, wx.EXPAND | wx.ALL, 0) - self.SetSizer(sizer) - self.SetAutoLayout(True) - self.Fit() - self.Layout() - - def on_close(self, event): - self.Show(False) - -class MountPanel(wx.Panel): - def __init__(self, parent, on_close, guiapp): - wx.Panel.__init__(self, parent, -1) - self.parent = parent - self.guiapp = guiapp - - self.sizer = wx.BoxSizer(wx.VERTICAL) - - self.label = wx.StaticText(self, -1, 'Allmydata Mount Filesystem') - self.mnt_label = wx.StaticText(self, -1, 'Mount') - self.alias_choice = wx.Choice(self, -1, (120, 64), choices=self.guiapp.aliases.keys()) - root_dir = self.alias_choice.FindString('tahoe') - if root_dir != -1: - self.alias_choice.SetSelection(root_dir) - self.at_label = wx.StaticText(self, -1, 'at') - self.mountpoint = wx.TextCtrl(self, -1, 'choose a mount dir', size=(256,22)) - self.mnt_browse = wx.Button(self, -1, 'Browse') - mount_sizer = wx.BoxSizer(wx.HORIZONTAL) - mount_sizer.Add(self.mnt_label, 0, wx.ALL, 4) - mount_sizer.Add(self.alias_choice, 0, wx.ALL, 4) - mount_sizer.Add(self.at_label, 0, wx.ALL, 4) - mount_sizer.Add(self.mountpoint, 0, wx.ALL, 4) - mount_sizer.Add(self.mnt_browse, 0, wx.ALL, 4) - self.mount = wx.Button(self, -1, 'Mount') - self.Bind(wx.EVT_BUTTON, self.on_mount, self.mount) - #self.Bind(wx.EVT_CHOICE, self.on_choice, self.alias_choice) - self.Bind(wx.EVT_BUTTON, self.on_mnt_browse, self.mnt_browse) - self.sizer.Add(self.label, 0, wx.CENTER | wx.ALL, 2) - self.sizer.Add(wx.Size(28,28), 1, wx.EXPAND | wx.ALL, 2) - self.sizer.Add(mount_sizer, 0, wx.EXPAND | wx.ALL, 0) - self.sizer.Add(wx.Size(28,28), 1, wx.EXPAND | wx.ALL, 2) - self.sizer.Add(self.mount, 0, wx.CENTER | wx.ALL, 2) - self.SetSizer(self.sizer) - self.SetAutoLayout(True) - - def on_mount(self, event): - mountpoint = str(self.mountpoint.GetValue()) - if not os.path.isdir(mountpoint): - wx.MessageBox(u'"%s" is not a directory' % (mountpoint,)) - else: - alias_name = self.alias_choice.GetStringSelection() - self.do_mount(alias_name, mountpoint) - - def on_mnt_browse(self, event): - dlg = wx.DirDialog(self, "Choose a Mountpoint Directory:", - style=wx.DD_DEFAULT_STYLE|wx.DD_NEW_DIR_BUTTON) - if dlg.ShowModal() == wx.ID_OK: - mountpoint = dlg.GetPath() - self.mountpoint.SetValue(mountpoint) - dlg.Destroy() - - def do_mount(self, alias_name, mountpoint): - log.msg('do_mount(%r, %r)' % (alias_name, mountpoint)) - self.guiapp.mount_filesystem(alias_name, mountpoint) - self.parent.parent.Show(False) - -class MacGuiApp(wx.App): - config = { - 'auto-mount': True, - 'auto-open': True, - 'show-webopen': False, - 'daemon-timeout': DEFAULT_FUSE_TIMEOUT, - } - - def __init__(self, app_cont): - self.app_cont = app_cont - self.nodedir = app_cont.nodedir - self.load_config() - self.mounted_filesystems = {} - self.aliases = get_aliases(self.nodedir) - wx.App.__init__(self) - - ## load up setting from gui.conf dir - def load_config(self): - log.msg('load_config') - confdir = os.path.join(self.nodedir, 'gui.conf') - config = {} - config.update(self.config) - for k in self.config: - f = os.path.join(confdir, k) - if os.path.exists(f): - val = file(f, 'rb').read().strip() - if type(self.config[k]) == bool: - if val.lower() in ['y', 'yes', 'true', 'on', '1']: - val = True - else: - val = False - elif type(self.config[k]) == int: - val = int(val) - config[k] = val - self.config = config - - ## GUI wx init - def OnInit(self): - log.msg('OnInit') - try: - self.frame = SplashFrame() - self.frame.CenterOnScreen() - self.frame.Show(True) - self.SetTopWindow(self.frame) - - # self.load_config() - - wx.FutureCall(4096, self.on_timer, None) - - self.mount_frame = MountFrame(guiapp=self) - - self.setup_dock_icon() - menubar = self.setup_app_menu(self.frame) - self.frame.SetMenuBar(menubar) - - return True - except: - DisplayTraceback('exception on startup') - sys.exit() - - ## WX menu and event handling - - def on_timer(self, event): - self.frame.Show(False) - self.perhaps_automount() - - def setup_dock_icon(self): - self.tbicon = wx.TaskBarIcon() - #self.tbicon.SetIcon(amdicon.getIcon(), "Allmydata") - wx.EVT_TASKBAR_RIGHT_UP(self.tbicon, self.on_dock_menu) - - def setup_app_menu(self, frame): - menubar = wx.MenuBar() - file_menu = wx.Menu() - if self.config['show-webopen']: - webopen_menu = wx.Menu() - self.webopen_menu_ids = {} - for alias in self.aliases: - mid = wx.NewId() - self.webopen_menu_ids[mid] = alias - item = webopen_menu.Append(mid, alias) - frame.Bind(wx.EVT_MENU, self.on_webopen, item) - file_menu.AppendMenu(WEBOPEN_ID, 'Open Web UI', webopen_menu) - item = file_menu.Append(ACCOUNT_PAGE_ID, text='Open Account Page') - frame.Bind(wx.EVT_MENU, self.on_account_page, item) - item = file_menu.Append(MOUNT_ID, text='Mount Filesystem') - frame.Bind(wx.EVT_MENU, self.on_mount, item) - item = file_menu.Append(wx.ID_ABOUT, text='About') - frame.Bind(wx.EVT_MENU, self.on_about, item) - item = file_menu.Append(wx.ID_EXIT, text='Quit') - frame.Bind(wx.EVT_MENU, self.on_quit, item) - menubar.Append(file_menu, 'File') - return menubar - - def on_dock_menu(self, event): - dock_menu = wx.Menu() - item = dock_menu.Append(wx.NewId(), text='About') - self.tbicon.Bind(wx.EVT_MENU, self.on_about, item) - if self.config['show-webopen']: - item = dock_menu.Append(WEBOPEN_ID, text='Open Web Root') - self.tbicon.Bind(wx.EVT_MENU, self.on_webopen, item) - item = dock_menu.Append(ACCOUNT_PAGE_ID, text='Open Account Page') - self.tbicon.Bind(wx.EVT_MENU, self.on_account_page, item) - item = dock_menu.Append(MOUNT_ID, text='Mount Filesystem') - self.tbicon.Bind(wx.EVT_MENU, self.on_mount, item) - self.tbicon.PopupMenu(dock_menu) - - def on_about(self, event): - self.frame.Show(True) - - def on_quit(self, event): - self.unmount_filesystems() - self.ExitMainLoop() - - def on_webopen(self, event): - alias = self.webopen_menu_ids.get(event.GetId()) - #log.msg('on_webopen() alias=%r' % (alias,)) - self.webopen(alias) - - def on_account_page(self, event): - webbrowser.open(DEFAULT_SERVER_URL + ACCOUNT_PAGE) - - def on_mount(self, event): - self.mount_frame.Show(True) - - ## Gui App methods - - def perhaps_automount(self): - if self.config['auto-mount']: - mountpoint = os.path.join(self.nodedir, 'mnt/__auto__') - if not os.path.isdir(mountpoint): - os.makedirs(mountpoint) - self.mount_filesystem('tahoe', mountpoint, 'Allmydata') - - def webopen(self, alias=None): - log.msg('webopen: %r' % (alias,)) - if alias is None: - alias = 'tahoe' - root_uri = self.aliases.get(alias) - if root_uri: - nodeurl = file(os.path.join(self.nodedir, 'node.url'), 'rb').read().strip() - if nodeurl[-1] != "/": - nodeurl += "/" - url = nodeurl + "uri/%s/" % urllib.quote(root_uri) - webbrowser.open(url) - - def mount_filesystem(self, alias_name, mountpoint, display_name=None): - log.msg('mount_filesystem(%r,%r,%r)' % (alias_name, mountpoint, display_name)) - log.msg('sys.exec = %r' % (sys.executable,)) - - # first determine if we can find the 'tahoe' binary (i.e. contents of .app) - if not sys.executable.endswith('Allmydata.app/Contents/MacOS/python'): - log.msg("can't find allmydata.app: sys.executable = %r" % (sys.executable,)) - wx.MessageBox("Can't determine location of Allmydata.app") - return False - bin_path = sys.executable[:-6] + 'Allmydata' - log.msg('%r exists: %r' % (bin_path, os.path.exists(bin_path),)) - - # check mountpoint exists - if not os.path.exists(mountpoint): - log.msg('mountpoint %r does not exist' % (mountpoint,)) - return False - - # figure out options for fuse_main - foptions = [] - foptions.append('-olocal') # required to display in Finder on leopard - #foptions.append('-ofstypename=allmydata') # shown in 'get info' - if display_name is None: - display_name = alias_name - foptions.append('-ovolname=%s' % (display_name,)) - timeout = self.config['daemon-timeout'] - foptions.append('-odaemon_timeout=%d' % (timeout,)) - icns_path = os.path.join(self.nodedir, 'private/icons', alias_name+'.icns') - log.msg('icns_path %r exists: %s' % (icns_path, os.path.exists(icns_path))) - if not os.path.exists(icns_path): - icns_path = os.path.normpath(os.path.join(os.path.dirname(sys.executable), - '../Resources/allmydata.icns')) - log.msg('set icns_path=%s' % (icns_path,)) - if os.path.exists(icns_path): - foptions.append('-ovolicon=%s' % (icns_path,)) - - - # actually launch tahoe fuse - command = [bin_path, 'fuse', '--alias', alias_name] + foptions + [mountpoint] - #log.msg('spawning command %r' % (command,)) - #proc = Popen(command, cwd=self.nodedir, stdout=PIPE, stderr=PIPE) - #log.msg('spawned process, pid %s' % (proc.pid,)) - self.async_run_cmd(command) - - # log the outcome, record the fact that we mounted this fs - #wx.FutureCall(4096, self.check_proc, proc, 'fuse') - self.mounted_filesystems[display_name] = mountpoint - - # open finder, if configured to do so - if self.config['auto-open']: - wx.FutureCall(4096, self.sync_run_cmd, ['/usr/bin/open', mountpoint]) - return True - - def unmount_filesystems(self): - # the user may've already unmounted some, but we should ensure that - # anything the gui mounted gets shut down, since they all depend on - # the tahoe node, which is going away - for name, mountpoint in self.mounted_filesystems.items(): - log.msg('unmounting %r (%s)' % (name, mountpoint)) - self.sync_run_cmd(['/sbin/umount', mountpoint]) - - def sync_run_cmd(self, argv): - log.msg('synchronously running command: %r' % (argv,)) - proc = Popen(argv, cwd=self.nodedir, stdout=PIPE, stderr=PIPE) - proc.wait() - self.check_proc(proc) - - def async_run_cmd(self, argv): - log.msg('asynchronously running command: %r' % (argv,)) - proc = Popen(argv, cwd=self.nodedir, stdout=PIPE, stderr=PIPE) - log.msg('spawned process, pid: %s' % (proc.pid,)) - wx.FutureCall(4096, self.check_proc, proc, 'async fuse process:') - - def check_proc(self, proc, description=None): - message = [] - if description is not None: - message.append(description) - message.append('pid: %s retcode: %s' % (proc.pid, proc.returncode,)) - stdout = proc.stdout.read() - if stdout: - message.append('\nstdout:\n%s' % (stdout,)) - stderr = proc.stderr.read() - if stderr: - message.append('\nstdout:\n%s' % (stderr,)) - log.msg(' '.join(message)) - rmfile ./src/allmydata/gui/macapp.py rmdir ./src/allmydata/gui hunk ./mac/COPYING.LGPL2 1 -mac/fuse.py and mac/fuseparts/subbedopts.py are also available (at your option) under LGPL2 as well as under GPL2+|TGPPL1+ - -GNU Lesser General Public License - -Version 2.1, February 1999 - - Copyright (C) 1991, 1999 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. - - [This is the first released version of the Lesser GPL. It also counts as the successor of the GNU Library Public License, version 2, hence the version number 2.1.] - -Preamble - -The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. - -This license, the Lesser General Public License, applies to some specially designated software packages--typically libraries--of the Free Software Foundation and other authors who decide to use it. You can use it too, but we suggest you first think carefully about whether this license or the ordinary General Public License is the better strategy to use in any particular case, based on the explanations below. - -When we speak of free software, we are referring to freedom of use, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish); that you receive source code or can get it if you want it; that you can change the software and use pieces of it in new free programs; and that you are informed that you can do these things. - -To protect your rights, we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it. - -For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link other code with the library, you must provide complete object files to the recipients, so that they can relink them with the library after making changes to the library and recompiling it. And you must show them these terms so they know their rights. - -We protect your rights with a two-step method: (1) we copyright the library, and (2) we offer you this license, which gives you legal permission to copy, distribute and/or modify the library. - -To protect each distributor, we want to make it very clear that there is no warranty for the free library. Also, if the library is modified by someone else and passed on, the recipients should know that what they have is not the original version, so that the original author's reputation will not be affected by problems that might be introduced by others. - -Finally, software patents pose a constant threat to the existence of any free program. We wish to make sure that a company cannot effectively restrict the users of a free program by obtaining a restrictive license from a patent holder. Therefore, we insist that any patent license obtained for a version of the library must be consistent with the full freedom of use specified in this license. - -Most GNU software, including some libraries, is covered by the ordinary GNU General Public License. This license, the GNU Lesser General Public License, applies to certain designated libraries, and is quite different from the ordinary General Public License. We use this license for certain libraries in order to permit linking those libraries into non-free programs. - -When a program is linked with a library, whether statically or using a shared library, the combination of the two is legally speaking a combined work, a derivative of the original library. The ordinary General Public License therefore permits such linking only if the entire combination fits its criteria of freedom. The Lesser General Public License permits more lax criteria for linking other code with the library. - -We call this license the "Lesser" General Public License because it does Less to protect the user's freedom than the ordinary General Public License. It also provides other free software developers Less of an advantage over competing non-free programs. These disadvantages are the reason we use the ordinary General Public License for many libraries. However, the Lesser license provides advantages in certain special circumstances. - -For example, on rare occasions, there may be a special need to encourage the widest possible use of a certain library, so that it becomes a de-facto standard. To achieve this, non-free programs must be allowed to use the library. A more frequent case is that a free library does the same job as widely used non-free libraries. In this case, there is little to gain by limiting the free library to free software only, so we use the Lesser General Public License. - -In other cases, permission to use a particular library in non-free programs enables a greater number of people to use a large body of free software. For example, permission to use the GNU C Library in non-free programs enables many more people to use the whole GNU operating system, as well as its variant, the GNU/Linux operating system. - -Although the Lesser General Public License is Less protective of the users' freedom, it does ensure that the user of a program that is linked with the Library has the freedom and the wherewithal to run that program using a modified version of the Library. - -The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, whereas the latter must be combined with the library in order to run. -TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - -0. This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License (also called "this License"). Each licensee is addressed as "you". - -A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables. - -The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".) - -"Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library. - -Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does. - -1. You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library. - -You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. - -2. You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: - - a) The modified work must itself be a software library. - - b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change. - - c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License. - - d) If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful. - - (For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.) - - These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. - - Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library. - - In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. - -3. You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices. - -Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy. - -This option is useful when you wish to copy part of the code of the Library into a program that is not a library. - -4. You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange. - -If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code. - -5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License. - -However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables. - -When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law. - -If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.) - -Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself. - -6. As an exception to the Sections above, you may also combine or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications. - -You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things: - - a) Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.) - - b) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (1) uses at run time a copy of the library already present on the user's computer system, rather than copying library functions into the executable, and (2) will operate properly with a modified version of the library, if the user installs one, as long as the modified version is interface-compatible with the version that the work was made with. - - c) Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution. - - d) If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place. - - e) Verify that the user has already received a copy of these materials or that you have already sent this user a copy. - -For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the materials to be distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. - -It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute. - -7. You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things: - - a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above. - - b) Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. - -8. You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. - -9. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it. - -10. Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties with this License. - -11. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Library. - -If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances. - -It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. - -This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. - -12. If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. - -13. The Free Software Foundation may publish revised and/or new versions of the Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. - -Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation. - -14. If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. - -NO WARRANTY - -15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - -16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. -END OF TERMS AND CONDITIONS -How to Apply These Terms to Your New Libraries -If you develop a new library, and you want it to be of the greatest possible use to the public, we recommend making it free software that everyone can redistribute and change. You can do so by permitting redistribution under these terms (or, alternatively, under the terms of the ordinary General Public License). - -To apply these terms, attach the following notices to the library. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. - - Copyright (C) - - This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. - - This library 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 Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -Also add information on how to contact you by electronic and paper mail. - -You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the library, if necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the library `Frob' (a library for tweaking knobs) written by James Random Hacker. - - signature of Ty Coon, 1 April 1990 - Ty Coon, President of Vice - -That's all there is to it! rmfile ./mac/COPYING.LGPL2 hunk ./mac/Makefile 1 - -.PHONY: all dist build diskimage upload cleanup clean - -all: build - -dist: build diskimage upload cleanup - -build: - rsync -av ` sw_vers -productVersion | sed -e 's/^\(10\.[0-9]*\)\..*$$/\1/' `/ ./ - ln -sf ../contrib/fuse/impl_c/blackmatch.py tahoefuse.py - python setup.py py2app --no-chdir - -diskimage: - mv dist Allmydata-$(VERSION) - hdiutil create -ov -srcfolder Allmydata-$(VERSION) allmydata-rw.dmg - hdiutil convert -ov allmydata-rw.dmg -format UDRO -o allmydata-ro.dmg - hdiutil convert -ov allmydata-ro.dmg -format UDZO -o Allmydata-$(VERSION).dmg - hdiutil internet-enable -yes Allmydata-$(VERSION).dmg - rm -r Allmydata-$(VERSION) allmydata-rw.dmg allmydata-ro.dmg - -ifdef UPLOAD_DEST_FURLFILE -# N.B.: xfer-client.py requires foolscap, so we hack up PYTHONPATH to improve -# the chances of finding it (using the one that we just built) -# broken. To fix this just use flappclient. --Zooko 2010-06-06 -upload: - chmod a+r Allmydata-$(VERSION).dmg - PYTHONPATH=$(PYTHONPATH):../support/lib/python2.5/site-packages \ - python ../misc/xfer-client.py --furlfile $(UPLOAD_DEST_FURLFILE) \ - Allmydata-$(VERSION).dmg -else -upload: - $(error UPLOAD_DEST_FURLFILE must be set when using upload target. e.g. make upload UPLOAD_DEST_FURLFILE=~/.upload.furl) -endif - -cleanup: - rm Allmydata-$(VERSION).dmg - -clean: - rm -rf build dist rmfile ./mac/Makefile hunk ./mac/README.txt 1 -2009-02-07: - -Zooko wrote this what is in this directory after asking RobK about it: - -wxpython trappings to build a .app bundle which is both a gui app and (when launching the binary from within the .app bundle) a functioning bin/tahoe binary including "tahoe fuse" subcommand - rmfile ./mac/README.txt binary ./mac/allmydata.icns oldhex *69636e73000099af697433320000599f00000000fffffcfffc0000fffc0000ffb6000c0b284b62 *75777677756149280bb60000ffb20014022c6fa3cee1e5e7ebe9e8e9ece8e4e1cda0672a01b200 *00ffb0000a1665b8e2ece2d4cdcac8c780c60ac7c8cacdd5e3ebe2b26011b00000ffae00091776 *d3eddecec7c6c7c786c809c7c7c6c8cedfedd17716ae0000ffac00070363d4ecd7c8c6c78ec806 *c7c6c8d6edcd5dad0000ffab00052db1efd9c8c68ec80bc7c7c6c6c5c4c2c3d7eca925ab0000ff *aa000459dee7cac689c880c703c6c6c5c580c400c380c205c1bec4e3d64baa0000ffa900047cee *d9c6c786c802c7c7c680c500c480c301c2c280c100c080bf05bebcbbd2e771a90000ffa7000406 *91efd1c682c880c701c6c580c400c380c280c105c0c0bfbfbebe80bd07bcbbbbbab7c6ea7ea800 *00ffa7000994f2cdc6c8c7c6c6c5c580c400c380c207c1c1c0c0bfbfbebe80bd05bcbcbbbbbaba *80b905b8b7b4c0e87da70000ffa600087defcbc4c5c4c4c3c381c209c1c1c0bfbfbebcbbbaba82 *b902babab980b801b7b780b605b5b4b2bee76da60000ffa500065aeeccc2c3c2c280c100c080bf *10bebdbcbbbfc7d2dadededdd9cfc3bab5b580b605b5b5b4b4b3b380b203aebee34ba50000ffa4 *00062ddcd3bec1c1c080bf00be80bd14bcbabbc8dedfcfac907d747c92b0d2dddac1b2b1b380b2 *0ab1b1b0b0afafaeaac6d021a40000ffa3000306b6dfbd80be80bd0cbcbbbbbab9b7c8e2d28c45 *11028200070313478fd2ddbeae81af00ae80ad06acacaba9d4a202a30000ffa3000269e9be80bc *0cbbbbbabab9b9b8b5badbd7771a8a00072181d7d3afaaacac80ab07aaaaa9a8a7acdd58a30000 *ffa200081bd3ccb8babab9b9b880b705b6b3bfe4a9278e00052eaddeb2a7a980a880a705a6a6a2 *bdc513a20000ffa2000181e481b780b607b5b5b4b1bee482049000080785dfb3a4a6a6a5a580a4 *04a3a2a2d76fa20000ffa100071ad4c4b4b5b5b4b480b304b2afbbe3679400067bdeada1a3a3a2 *80a105a0a09db4c411a10000ffa100076ce1b2b3b3b2b2b180b003aeb2e07a96000485daa39fa0 *809f069e9d9d9c9cd45da10000ffa0000305b9c9ae80b000af80ae04adaad6a50396000307abc9 *9b809d009c809b049a96bba702a00000ffa0000637dcb4adaeaead80ac04aba8bcd02298000527 *ceac989a9a8099059898969fcd28a00000ffa0000175d981ab80aa04a9a8a8db719a000578cf97 *979897809604959493cb66a00000ff9f000702a8c7a6a9a9a8a880a703a3b8c7149a00041bc8a6 *93958094059392928db696a00000ff9f000d12ccb4a5a7a6a6a5a5a4a3a1d17d9c000686c38f92 *9291918090038ca1bc0b9f0000ff9f000436d2a9a3a480a305a2a2a0a5d4389c00023fcc93808f *078e8e8d8d8c92c7299f0000ff9f000255d2a380a180a0049f9cb0be099c000d10bf9e8b8d8c8c *8b8b8a898cc3459f0000ff9f00056bd19e9f9f9e809d039c98be979d000401a0ac878a80890588 *888786c05e9f0000ff9f00047cc8999d9c809b049a9995c67c9e000485b5838787808604858481 *bd6b9f0000ff9f000389c4969a80990598989795cb6d9e00046fbb81858480830482827cb4749f *0000ff9f000c87c3949897979696959592c96d9e00036abf8082808105807f7f7ab0829f0000ff *9f000386c191958094059392928fc86d9e00026abd7d807f067e7e7d7d77ae819f0000ff9f000c *85bf8e9292919190908f8cc66c9e000c69bb7b7d7d7c7c7b7b7a74ad809f0000ff9f000485be8b *8f8f818e038d8ac46c9e000269b978807a007980780271ab7f9f0000ff9f000584bc888d8d8c80 *8b038a87c36c9e000569b875787777807603756ea87f9f0000ff9f000484b9868b8a8089048887 *84c16c9e000368b6737581740473736ca77f9f0000ff9f000384b8838880870586858582bf6b9e *000468b4707372807104707069a67e9f0000ff9f000283b681808506848383827fbe6b9e000368 *b36d70806f056e6e6d67a47e9f0000ff9f000c83b47e838282818180807cbc6a9e000667b16b6d *6d6c6c806b0264a27d9f0000ff9f000382b37b80807f057e7e7d7aba699e000267b068806a0669 *696868619f7c9f0000ff9f000c82b1797e7d7d7c7c7b7b77b96a9e000c67ad6568686767666665 *5f9e7c9f0000ff9f000581ae767b7b7a8079037874b6699e000266ac6381658064025d9d7c9f00 *00ff9f000481ad737878807704767572b5689e000566ab61646463806203615a9b7c9f0000ff9f *00047dab707675807404737370b4649e000462aa5e61618060045f5e5799779f0000ff98000011 *823c0e3a99a76e737372727171706db08838893b013a3a823b013a3a813b833a033786a75b805e *075d5d5c5c549693388139013c27980000ff9700150699bdb0b1b1b0afb3906d7170706f6f6e6d *6b93b0ab80ac80ab81aa84a981a881a782a60ea5a4a8885a5c5c5b5b5a5a59537da682a002a2b5 *39970000ff97000b0ebb7e7173727271706f6f6e806d006c806b056a6a6b6a6a69806881670066 *80658064056363626261618060015f5e805d055c5b5a5a59598058005780560855565655555450 *a366970000ff9700060db4776d6e6e6d816c806b006a8069016867806680650164648063046262 *616160815f005e805d005c805b045a5a595958815781560d555554545352525150504f4b9c6397 *0000ff9700040db4766b6c806b096a6a696968686767666681658064056363626261618060045f *5e5e5d5d805c055b5b5a5a5959805800578056025555548053805200518050064f4f4e4d499b62 *970000ff9700050db373686969806800678066096565646564646363626280610060805f095e5e *5d5d5c5c5b5b5a5a805900588057015656805500548053005280510050804f804e074d4d4c4b4b *479a62970000ff9700060db17165676666826500648063066262616160605f805e805d0a5c5c5b *5b5a5a5959585857805680550554545353525280510050804f004e804d004c804b804a04494844 *9862970000ff9700040db16e63658064056363626261618060005f805e005d805c005b805a0159 *59805800578056805504545353525280510550504f4f4e4e804d004c804b054a4a494948488047 *0345419761970000ff9700030db06d61806200618060055f5f5e5e5d5d805c005b805a00598058 *005781560d5555545453535252515150504f4f804e004d804c014b4b804a004980480447474646 *45804403433f9561970000ff97000a0db06a5e60605f5e5e5d5d805c055b5b5a5a595980580057 *805602555554805380520a515150504f4f4e4e4d4d4c804b804a05494948484747804600458044 *004380420441403c9361970000ff97000b0dae675c5d5d5c5c5b5b5a5a80590058805701565680 *5500548053005280510050804f014e4e804d004c804b804a044948484747804605454544444343 *804200418040053f3e3d399160970000ff97000b0dad65595b5a5a595958585780568055055454 *5353525280510050804f004e804d014c4b824a0b49494848474746464545444480430042804103 *40403f3f803e063d3c3c3b379060970000ff9700060dac62565858578056805504545353525280 *510550504f4f4e4e804d054c4b4a47444280440e4140424546464545444443434242418040803f *003e803d013c3c803b053a3939348f5f970000ff9700120dab6054565555545453535252515150 *504f4f804e004d804c164b4b4a4a4742495b76899598978d7c644b3e3d414242418040003f803e *003d803c803b0b3a3a39393838373736318d5f970000ff9700040daa5e515380520a515150504f *4f4e4e4d4d4c804b804a1649494846415282a5a88e756261616b819fa890613e3a3f803e003d80 *3c803b043a393938388037083636353534332e8a5f970000ff9700040da95b4f50804f014e4e80 *4d004c804b804a0e49484847474645404a84ae8d49150283001609336fa79c57353a3c3b3b3a3a *3939383837373636353580340033803203312c895e970000ff9700030da7584c804d004c814b09 *4a4a4949484847474646804505433d60a992368a00071569ae7b39353938803708363635353434 *33333280318030042f2e29885e970000ff9700080da756494b4b4a4a49804880470e4646454544 *44434342403b70b35c038d00082b9b953b31353534348033003280318030092f2e2e2d2d2c2b27 *865d970000ff9700030da65347804800478046004580440143438042074140403f3874af3c9000 *05118b9a382f3381311130302f2f2e2e2d2d2c2c2b2b2a2a2824855d970000ff9700060da55144 *46464580440043804205414140403f3f803e033664b1339200050b8b8f2e2e2f802e802d0e2c2c *2b2b2a2a29292828272621835d970000ff9700050da44e4243438042084140403f3f3e3e3d3d81 *3c03374baf4a940003109c6f26802c002b802a012929802800278026052524231f815d970000ff *97000e0da34c3f4140403f3f3e3e3d3d3c3c803b003a80390235947a9600052da743252a298028 *05272726262525802406232222211c805c970000ff9700060da2493c3e3e3d803c803b003a8039 *0038803703305ba51697000b6f8924272726262524242323812207212120201e197e5b970000ff *9700030da1463a803b053a3a39393838803707363535343330946198000518a03d1e222282230c *222120201f1e1e1d1d1c177c5b970000ff9700040da04437398038003780360b35353434333332 *322d47a3199900166e5e010306080a0e101316191b1c1d1d1c1b1b19147b5b970000ff9700040d *9f42353680358034023333328031803002276e839a000239850485000b0103070b0e1216171712 *795b970000ff9700030d9e3f328033003280318030082f2f2e2e2f2e298a549a0002108f1a8b00 *0501040807745a970000ff9700160d9d3c2f313130302f2f2e2e2d2d2e2e2d2820130f822f9a00 *02027e3a8f00016b57970000ff9700080d9d3a2d2f2e2e2d2d802c0a2d2c261b0f0400000a8c1a *9b00016d4e8f00016b57970000ff9700070d9c382a2c2c2b2a802b03261b0e03820002178c0c9b *00016a588f00016b57970000ff9700030d9b35288029042a271e10048500021b8d0b9b00016b58 *8f00016b57970000ff9700080d9a322528282316088800020d8d139b00016a538f00016b579700 *00ff9700060d9831241f11048a00020888289b000176418f00016b57970000ff9700040d99280d *028c00020176459a0002088a268f00016b57970000ff9700020d8f0d8f00015a6c9a00022a8c08 *8f00016b57970000ff9700020c890b8f00022a8e0b9900015d6b9000016b58970000ff9700020c *8a0c8f00020386439800020a8d2f9000016c59970000ff9700020c8a0c9000024289059700024d *83038d00040102006f59970000ff9700020c8a0c90000206874f9600021696318c000601020405 *02725a970000ff9700020c8a0c9100022a9822950001796b8b000801020507080906745a970000 *ff9700020c8a0c920002538e139300025e8a0b89000a01030407090a0c0d0a765b970000ff9700 *020c8a0c930002698c1591000257931d88000c01030407090b0d0e0f110e7a5c970000ff970002 *0c8a0c930003046592298e00030b6b911e87000e01040506080b0d0f10111315127c5d970000ff *9700020c8a0c9500034d9957098b00032b87791486001001030608090a0d0f111214151819167e *5d970001ff079600020c8a0c96000225973f8b00017c6885001301020305080a0b0c0f11131415 *181a1c1d1a815e970003ffd386469400020c8b0c97000176468b0001794183001501020306080a *0c0d0e10131516171a1c1e20211d845e9500010d0f80ff02fa7f059200020c8b0c97000178458b *0001794581001701020406070a0c0e1011121517181a1b1e2021222421855f930003147fe8f082 *ff01b9459100020c8b0c97000179458b0001794580001802050708090c0e1012121517191b1c1d *2022242526282689609200014eea86ff01f94e9000020c8b0c97000179458b001d794500030407 *090a0c0d1012131416191b1d1e1f22242627282b2c2a8c6090000505b0fffffefe83ff04feffff *b0068e00020c8b0c97000179458b001d79470007090b0d0e0f12141517181b1d1f202223262829 *2a2c2f302d8e618f000145b980ff01fefe83ff00fe80ff01b2148d00020c8b0c97000179458200 *0206b15683001d794a000b0d0f1011131618191a1d1f21222326282a2c2d2e3133343190628e00 *074cf9fffffefffefe83ff06fefffdffffea4d8c00020c8c0c970001794581000406b3fff94c82 *001d7a4d040f11121415181a1b1c1e21232425282a2c2e2f30333537373592628c0009077ff8ff *fefffefffefe83ff07fefffdfffdfff84d8b00020c8c0c970001794580000106b380ff01f94c81 *001d7c5008131415181a1c1d1f2023252628292c2e3031333537393a3b3995638b000106b380ff *05fefffefffefe83ff09fefffdfffdfdffffb0068900020c8c0c9700057945000006b382ff01f9 *4c80001d7d530c16171a1c1e2021222527282a2b2e3031333437393b3c3d3f3d98648a000b14b1 *fffefdfffefffefffefe83ff05fefffdfffdfd80ff01b3068800020c8c0c97000479450033b384 *ff21f93f00007d5710191b1e2021222527292b2c2d3032343536393b3d3e404143419b6489000c *4deafffffefdfffefffefffefe83ff0bfefffdfffdfdfffdffffb1148700020c8c0c9700047945 *008a38851220660e007f5a141d2022232426292b2d2e2f31343637383a3d3f4041444647459d65 *88000d4bf8fffcfffefdfffefffefffefe83ff07fefffdfffdfdfffd80ff01ea4d8600020c8c0c *9700067944002388000080fb23000010915600805c1722242627282b2d2f3032333638393b3c3f *41424345484a4b49a06586000f077ff7fffdfcfffefdfffefffefffefe83ff0dfefffdfffdfdff *fdfffffcfff94c8500020c8c0c960005017a4400f9fb84872198cc4e0081601c2628292a2d2f31 *323336383a3c3d3e41434446474a4c4e4f4ca26685000106b380ff0bfdfcfffefdfffefffefffe *fe83ff0efefffdfffdfdfffdfffffcfdfff84b8400020c8c0c9400070102057c4500d89b843421 *457341008263202a2b2c2e31333435383a3c3e3f4142454748494c4e50515251a56784001106b2 *fffdfcfffdfcfffefdfffefffefffefe83ff10fefffdfffdfdfffdfffffcfdfffff77e06820002 *0c8c0c92000a01030606087f4600b946eb82e822ebf82638008366242e2f3033353738393c3e3f *40434547494a4b4d505253545655a76783001214b1fffffdfcfffdfcfffefdfffefffefffefe83 *ff18fefffdfffdfdfffdfffffcfdfffeffffba80791600000c8c0c8f000d010203060809090d81 *470089945782552257617f290084692830333537393a3b3e4042434447494b4c4e4f5254555758 *5a59a9678100140f4fe9fffefffdfcfffdfcfffefdfffefffefffefe83ff0ffefffdfffdfdfffd *fffffcfdfffefbfc80ff05f2aa060a8c0c8e000d020306080a0c0d0d1183460004098607380000 *846b2b3437393b3c3d3f42444546494b4d4e5052545658595a5d5e5dac69002278b8f0fffffbfe *fffdfcfffdfcfffefdfffefffefffefe83ff0ffefffdfffdfdfffdfffffcfdfffefbfc80ff0500 *000c088d0d8b000f01020405070a0c0e0f101115864d06058704220607896e2f393b3d3e404144 *4647484a4d4f50515456585a5b5c5f616260ae6900110080ff12fcfbfefffdfcfffdfcfffefdff *fefffefffefe83ff18fefffdfffdfdfffdfffffcfdfffefbfcffff78765f0a088d0d8900540102 *050608090c0e101113141518809b898b8b8c8c8d8e8e8f9090919192ae69333d3f40414446484a *4b4c4f51525355585a5c5d5f6163656561ae6800e2600cfffffcfbfefffdfcfffdfcfffefdfffe *fffefffefe83ff18fefffdfffdfdfffdfffffcfdfffefbfdff61d8e93e0a088d0d870036010205 *07090a0b0e1012131417191b1c2f3c3f4142434547494a4c4d4f51535452443e41424346484a4c *4d4e51535556575a5c5e5f606381651b61ae6800d6360029fffdfbfefffdfcfffdfcfffefdfffe *fffefffefe83ff18fefffdfffdfdfffdffff009f0e09c7cf00ebd9ce7c09098d0d850037010305 *06090b0c0d0f12141516191b1d1f201e1f22232526292b2c2e2f32343637393a40434446474a4c *4e4f5153555758595c5e6061636482651b61ae6800b4fad700ac3f2b28df2a00fffdfcfffefdff *fefffefffefe83ff18fefffdff7f0094ce35227f16efc8b159a2938c8f4e08098d0d8300360203 *0407090b0d0e1011141617181a1d1f21212426282a2b2c2f31333435383a3c3e3f404345474849 *4c4e4f51525557595a5c5d60626385651b61ae68009fb18f92bb89b4d0f827ab5d932bb24800ff *fefffefffefe83ff1800df69d7a81de3b2a4a59d93877484e7827b6e6e3107098d0d8100360103 *0607080b0d0f1112131618191b1c1f21222425282a2c2d2e3033353637393c3e3f40434547494a *4b4d5052535457595b5c5e60626487651b61ae6800918c707d8a227f778796969da7baef2be33f *6e15fffffefe81ff531200ba03ccb2b4b2a29b8879695a4a373ab86661535218060a8d0c000001 *030608090a0d0f11121316181a1c1d1e21232526272a2c2e2f31323537393a3b3e404142444749 *4b4c4d4f52545556585b5d5e5f626489657161ae6800866e56636fe4333b4a5a697c8b9ba2b5b4 *b5d5190433bffeffff007f19d0cccdc3b1a18f7f6f5d4d3b281806fbc55e5044410a060a8d0d00 *0305080a0b0c0e11131415171a1c1e1f2022252728292b2e3031323537393b3c3d404244454649 *4b4d4e5051545657595a5d5f6062648b656f61ae68007f5d46516bdefb091b2b3b4d606f8292a4 *b4c7cdc3d855aa7fff45bbece6d3c0ae9e8f7c69574734250f00efdcd27949403c05050a8e1003 *080a0c0e0f1013151718191c1e2021232427292a2c2d3032333436393b3d3e4041444647484b4d *4f50515456585a5b5c5f6162648d656d61ae68007c55404e8fd8dfef03152537475d6c7c8fa1b4 *c3d3e6def0aeff9e00d5ddd6c3b19e8f7f6c5a4a37281503f2dfcfb96944410c060a9012050a0c *0e0f1013151718191c1e2021222527292b2c2d30323335363a3c3d3e4042454748494b4e505152 *5457595a5c5d5f62638f646d60ae6900805a457fc5d0e3f206182b3b4a5d6f7f92a4b4c3d6e0d0 *6355ffff000800c4c3c1b2a798887663534431220f00ecdfcd7f5b1d06099722101617181a1d1f *2022232527292a2c2e3032343536393b3d3e3f42444647484b4d4f5052535658595b5c5f616263 *6567696a6a8269896a6a6966b66b00867e93d5dcef0312253444576976889babb5bcbacf1dbb75 *fefffffefe00f8f213d7afa6a39f9085766657473728180c00d368170177988d8f8f9192939495 *9696979899999b9c9d9e9e9fa1a1a2a3a4a4a6a6a7a8a9a9ababacadaeafb0b0b1b2b3b4b5b5b6 *86b789b81ab7babc3300b1180309182837475a697988909f9fa6b2e33533000080fe01ffff80fe *00fd800015f2685f0cdcae988e8a7f7a6b5f57474d778500052f33833281338134833583368437 *83389a39163b1b0014ea5e4a5a5f6e7a828d9190b7e810a3ad8ce80083fe01ffff80fe80fd14fc *fdfeaa00e8e96368bc33fbdcb69a7c7888828105c500153379bc7b7f9abedf0045eaa8c3838c5f *7ffdfafcfdfd82fe01ffff80fe80fd08fcfdfdfbfefcf9fcfe80002835e3dbbdef47f2de498d85 *7c603b200d0400fffaf5f2ede8e5e0ddd8d5d0cdcac8c4c3c1bebcbbbbb980b700b680b736b9bb *bbbcc0c1c3c8c6caced2d5d8dde2e5e8edf3f7fa0000040f224468808a87f1815d561f00439c00 *c6bf00fefcf9fcfbf9fcfafcfdfd82fe01ffff80fe80fd11fcfdfdfbfefcf9fbfdf9f8fdfbf9f7 *fcfffc8000207f66eef06707b3d8ea662100e6cccbc3b1aaa79e95918b88817a7773716f6d6b6b *8369366b6d6f7375777c81888d91979ea7abb3c6cdd1ee022d7f120024ef94df75bf00fe0000fc *fdf7f7fafdfaf7f9fdfbf9fcfbf9fcfafcfdfd82fe01ffff80fe80fd35fcfdfdfbfefcf9fbfdf9 *f8fdfbf9f7fbfefbfaf7f5f9fdfbf9f8f7f6fbff0075005b9bcc35e6c9af7b595758503e30302b *262121242482213724242121262b303341595d5c5e89afd4ef53f6f9b3743800fdf5f6f6f8f9fb *fdfaf5f8f9fbfcf7f7fafdfaf7f9fdfbf9fcfbf9fcfafcfdfd82fe01ffff80fe80fd34fcfdfdfb *fefcf9fbfdf9f8fdfbf9f7fbfefbfaf7f5f9fdfbf9f8f7f6fafefafefcf9fefd55009995b3c305 *5fea98452f1e0d09f5e884e536e800090d1a3370aa0c7825061538005f00fcfef9fbfefbfcf5f6 *f6f8f9fbfdfaf5f8f9fbfcf7f7fafdfaf7f9fdfbf9fcfbf9fcfafcfdfd82fe01ffff80fe80fd34 *fcfdfdfbfefcf9fbfdf9f8fdfbf9f7fbfefbfaf7f5f9fdfbf9f8f7f6fafefafefcf9fdfcfafefd *fbf9fc5500d4aa72ce55d708c0f2840c07f21d08dff4ced4c880002bfdfafcfdfbf9fbfdf9fbfe *fbfcf5f6f6f8f9fbfdfaf5f8f9fbfcf7f7fafdfaf7f9fdfbf9fcfbf9fcfafcfdfd82fefffffcff *b5a30ecc4ef25c1600ded8e2011665134eccb5a300ffb2a307004e6bf5bda59e9e829d079e9fa6 *bdf5759900b2a300ffb0a30a0c4ec6a29ea2a7b2bfc8cf80d00acfc7bfb2a7a19da3cf59a0b0a3 *00ffaea31cbefba79ea3b3cde1f1f9fbfcfefefdfefefcfbf9f1dfcab3a29eaa065faea300ffac *a30c2701a19eabc9e9fafdfbf7f5f480f300f280f30cf4f5f7fbfef9e6c7a99ea50bc3aca300ff *aaa30b0065ad9eabcff3fefaf5f3f28af30af2f3f5fafef3cfaa9eb386aba300ffa9a30960e09f *a3c8f3fef8f3f290f309f2f3f8fff1c6a2a0ecc8a9a300ffa8a3066ab89fb3e6fef898f306f9fe *e4b09ebecaa8a300ffa7a306c6a69fc5f7fcf49af306f4fdf5bf9eabe1a7a300ffa6a305b8a3a1 *d2fdf99ef305f9fdcea0a3c6a6a300ffa5a305cca3a4dbfef6a0f305f7ffd4a0a4e7a5a300ffa4 *a30550a5a0dbfff59ef381f405f6ffd4a0abcaa4a300ffa3a305c3b2a0d3fef48ef382f287f384 *f405f6ffce9fb97aa3a300ffa2a30500da9ec6fef68cf303f4f6f9fc80fd03fcf9f6f482f387f4 *05f7fdc19de900a2a300ffa2a304629fb4f8f88bf310f7fdfbf4e6dbd3ced3dbe8f5fcfcf6f3f3 *89f404faf5b0a07fa2a300ffa1a30427a9a4e9fc8af312f7fdf5d9bdaaa3a09e9c9ea0a4aabedb *f6fef78af404fde4a2af39a1a300ffa1a304f49ecbfff488f316f4fcf7d1ac9f9fb0e125465646 *1fdaae9e9faed5f9fcf588f404f5fec69e06a1a300ffa0a305f1a0adf5f7f287f308f5fee5b19e *a3f3060084a30886e1eda09eb4e8fff688f404f9f2aba5c3a0a300ffa0a303f09ed5fe88f306f6 *fed6a39fe5f18aa306bedc9fa4d8fef688f403fed09e06a0a300ff9fa30499a2aef6f787f305f5 *fdcc9fa57f8ea30559a1a0d4fef685f406f5f5f9f3aaa6e79fa300ff9fa303309ecdfe87f305f4 *fed39fac5090a304f2aaa0d8ff83f482f503fec99e569fa300ff9ea3053fbda5ecf9f286f304fc *e4a2a55892a306f8a3a4e8fcf4f485f504fbe7a2c7669ea300ff9ea304919fb9fbf486f304f7f6 *b09f7f94a3055f9fb3f8f7f485f504f6f9b3a03d9ea300ff9ea303469ed1fe87f303fed09dea95 *a30400da9ed4fe87f503fecd9e6e9ea300ff9da30400dfa3e6fa86f304f8f3aba5c396a304f1a1 *aef6f886f503fce1a1f19ea300ff9da3047fb2aaf5f686f303fdd59e0198a303ee9fdafe86f504 *f8f3a7b63f9da300ff9da3044e9fb9faf485f304f4fbba9e7d98a3040c9fbcfcf685f504f7f9b4 *a4e79da300ff9da303f89ec5fc86f304f7f0a7bb3f98a30487b1aaf4f786f503fbbf9f509da300 *ff9da3038a9dcdfd83f380f403fbe1a2f79aa303e2a3e6fa86f503feca9db89da300ff9da30446 *9ed5fdf280f382f403fdd59f419aa30323a0dafd84f505f6f6ffd09d7f9da300ff9da30543a0da *fcf2f384f403ffcf9d9e9aa303629ed1ff82f581f603ffd49e439da300ff9da30443a0d9fcf385 *f403ffcf9da69aa305a29dcffff5f584f603fedaa0439da300ff9da30343a0d9fd86f403ffcf9d *a29aa304a29dcffff585f603fedaa0439da300ff9da30343a0d9fd86f403ffcf9da29aa303a29d *d0ff86f603fedaa0439da300ff9da30343a0d9fd86f403ffcf9da29aa303a29dd0ff86f603feda *a0439da300ff9da30343a0d9fd86f403ffcf9da29aa303a29dd0ff86f603fedaa0439da300ff9d *a30343a0d9fd86f403ffcf9da29aa303a29dd0ff86f603fedaa0439da300ff9da30343a0d9fd86 *f403ffcf9da29aa303a29dd0ff86f603fedaa0439da300ff9da30343a0d9fd86f403ffcf9da29a *a303a29dd0ff84f605f7f7ffdaa0439da300ff9da30343a0d9fd85f404f5ffcf9da29aa303a29d *d0ff82f681f703ffdaa0439da300ff9da30343a0d9fd82f481f503ffcf9da29aa303a29dd0ff80 *f683f703ffdaa0439da300ff9da30343a0d9fd80f483f503ffcf9da29aa304a29dd0fff685f703 *ffdaa0439da300ff9da30453a0d9fdf385f503ffcf9dc29aa303c29dd0ff86f703ffdaa0539da3 *00ff98a308e758373f61fba0d9fd86f504ffcf9d2158983f0458219dd0ff86f709ffdaa0fb613f *3f370e6697a300ff96a3023f1ba8829f029cd8fd86f502ffcd999c9f0299ceff86f702ffd99c82 *9f02a1c99996a300ff96a3024ea2aa82bc02bae3fc86f502fddcb89cbc02b8ddfe86f702fde4ba *81bc04bdb5a2be1f95a300ff95a30400c1a4e7fd82fa01f9f786f500f885fa98fb00f986f700f9 *83fb04fcfbbe9fe795a300ff95a304cca9a8f7f882f68af582f690f786f88af701f8f881f903ff *d19d9695a300ff95a304ccaaa8f5f791f591f695f783f803ffd09da295a300ff95a304ccaaa8f5 *f78ef591f695f786f803ffd09da295a300ff95a304ccaaa8f5f78cf591f695f788f803ffd09da2 *95a300ff95a304ccaaa8f5f78af590f696f78af803ffd09da295a300ff95a304ccaaa8f5f788f5 *90f696f78cf803ffd09da295a300ff95a304ccaaa8f5f786f590f696f78ef803ffd09da295a300 *ff95a304ccaaa8f5f784f590f695f791f803ffd09da295a300ff95a304ccaaa8f5f781f591f695 *f793f803ffd09da295a300ff95a306ccaaa8f5f7f5f591f695f795f803ffd09da295a300ff95a3 *05ccaaa8f5f7f590f695f796f804f9ffd09da295a300ff95a304ccaaa8f6f88ff689f701f9fd82 *ff02fdfaf880f794f881f903ffd09da295a300ff95a304ccaaa8f6f88cf689f70ef8fdfef7e7d9 *d0d0cfd4e0f2fcfffb93f883f903ffd09da295a300ff95a304ccaaa8f6f88af689f712f8fefde5 *c5ada39f9d9d9c9ea2a7bad7f5fffb8ff885f903ffd09da295a300ff95a304ccaaa8f6f888f68a *f714f9ffe8bca29eaadc2678a69e50fabb9f9eacd3fafe8cf887f903ffd09da295a300ff95a304 *ccaaa8f6f886f68bf707fbfccea39ec686c884a3080061fba39eb6eefff988f889f903ffd09da2 *95a300ff95a304ccaaa8f6f884f68cf706fbf8bf9eac6e0089a306cad89ea9e5fff985f88bf903 *ffd09da295a300ff95a304ccaaa8f6f882f68df705fafabb9dc44e8ca3050026a0a7e5ff82f88e *f903ffd09da295a300ff95a304ccaaa8f6f880f68ef705f8fec69dc6668fa306659fabf0fdf8f8 *90f903ffd09da295a300ff95a305ccaaa8f6f8f690f704ffdea0b63991a305169eb9fbfaf890f9 *03ffd09da295a300ff95a304ccaaa8f6f990f704fbf5ae9f1a92a30424cd9fd9ff91f903ffd09d *a295a300ff95a304ccaaa8f6f990f703ffd19efa94a3097da1aff8f9f7f8f8f9f982fa86f903ff *d09da295a300ff95a304ccaaa8f6f98ff704f9f8afa37195a30fe6a0d9f1e2e4e7e8eaeceff1f4 *f6f8f984fa03ffd09da295a300ff95a304ccaaa8f6f98ef704f8fee3a1e196a304ec9fbef4e381 *e280e30ee4e5e7eaedf0f4f8fafbfbffd09da295a300ff95a304ccaaa8f6f98bf707f8f9faf8fe *cb9e7896a30586aeabf0e7e383e401e5e580e409e5e6e7eaeff2fed09da295a300ff95a304ccaa *a8f6f988f70af8f9f9f6f0eae4f0b99fe397a304dba4e3ece380e482e585e604e5f6ce9da295a3 *00ff95a304ccaaa8f6f986f70cf9f8f6eee6dfdcdbdeefb0a75c97a30516a1d8f0e3e482e582e6 *83e703f7ce9da295a300ff95a304ccaaa8f6f983f70ff8f8f5eee5dedbdbdcdddce1eea8b70097 *a30446a0d5f1e481e581e682e780e804e7f7ce9da295a300ff95a304ccaaa8f6f980f708f8f8f7 *f0e7dfdbdadc80dd06dedce3eda7bf2497a30648a0d6f2e4e5e581e682e783e803f8ce9da295a3 *00ff95a30eccaaa8f6f9f7f8f8f5ece2dcdadbdc80dd81de04e1eeacabcc97a3042ea0d7f2e481 *e682e782e880e903f8ce9da295a300ff95a30bccaaa8f6faf9f3e9dfdbdbdc81dd83de04e0f0b6 *a3da97a306f3a3e0f0e5e6e682e782e882e903f8ce9da295a300ff95a309ccaaa9f7f4e7dedbdb *dc81dd82de81df03f1c39ec696a30524baa6ecebe682e782e882e905eae9f8ce9da295a300ff95 *a307ccaba9f0e0dadcdc81dd82de82df04deefd7a00196a304f19fb7f4e881e782e881e981ea04 *e9f8ce9da295a300ff95a305ccaba8ebdfdc81dd82de82df07e0e0dfe7eca8aebf95a306189fd1 *f5e6e7e782e881e984ea03f9ce9da295a300ff95a304ccaba8ede080dd82de82df82e004e1f4c3 *9e4694a3050faaa8ecede681e882e982ea81eb03f9ce9da295a300ff95a305ccaba8ede0dd82de *81df82e080e105e0ebe7a5aec393a303069dc9f881e882e982ea81eb05ececf9cf9da295a300ff *95a304ccaba8ede181de81df82e083e105e3f5ca9ee17f91a306cc9faef0eee7e882e982ea82eb *80ec03facf9da295a300ff95a305ccaba8ede1de82df82e082e180e205e1e9f3b49e1d90a30661 *aba1dff5e7e881e983ea81eb00ec81ed03fbcf9da295a300ff95a304ccaba8ede181df82e082e1 *82e207e3e2efe9ac9f18008da30630ab9fd1f9eae880e983ea04ebebecebec80ed06eeedeefbcf *9da295a300ff95a306ccaba8ede2dfdf82e082e182e282e305f3e8ac9eda998aa3092456a3a1ce *f8ece8e9e983ea01ebeb80ec80ed80ee05efeffccf9da295a300ff95a304ccaba8ede282e082e1 *81e282e381e406f2ecb79ea923b687a30773ce9fa7d8faece884ea01ebeb80ec81ed80ee06efef *f0fccf9da295a301ffa294a304ccaba8eee380e082e181e282e384e405f0f5cea7a23787a306ff *a1b8e9f7ebe881ea81eb80ec81ed00ee80ef81f003fccf9da295a303ffa69d9f92a305ccaba8ee *e3e081e182e282e382e481e505e4ebfac39e3787a30506a3e2f8e9e980ea81eb80ec81ed00ee80 *ef80f006f1f0f1fdcf9da293a307a1a1ffefd4bb9ba290a304ccaba8eee480e182e282e382e482 *e506e6e6e5f5c59e3f87a30606a3e0f3e9eaea82eb80ec80ed00ee80ef80f080f105f2f2fecf9d *a291a303a19ea8a980ff03fdd0a49d8fa305ccaba8eee4e182e282e382e482e581e604e7f5c49e *3f87a30406a3e0f3e982eb80ec00ed80ee80ef81f080f180f203fecf9da28fa305a29faad1f7f9 *82ff03e6b99da28da304ccaba8eee481e282e382e481e582e680e703f5c49e3f87a30406a3e0f3 *ea80eb03ecedeced80ee81ef80f000f180f280f304f4ffcf9da28ea303a19fbff886ff03fdbf9f *a18ca306ccaba8efe5e2e282e382e481e582e682e703f6c49e3f81a300a282a30606a3e1f4ebeb *ec80ed81ee80ef03f0f1f0f180f281f305f4f4ffcf9da28da3069da3e2fffffefe83ff05feffff *e2a3a08ba304ccaba8efe581e382e482e582e683e704e8f6c49e3f80a302a1a2a181a30406a3e1 *f4eb80ed81ee03eff0eff080f180f281f300f480f503ffd09da28ca3029db9e680ff01fefe83ff *06fefffeffe3a79f8aa306ccaba8efe6e3e382e482e582e682e781e80af6c49e3fa3a3a0a3e3c2 *9c80a30606a3e1f4eceded80ee00ef80f080f181f280f300f482f503ffd09da28aa309a29abefd *fffffefffefe83ff08fefffdfffff7be9ca288a305ccaba8efe6e381e482e582e682e782e814e9 *f6c49e3fa3a0a3e4fffcbe9ca3a306a3e1f6ecee80ef80f080f181f200f380f480f580f604f7ff *d09da289a30aa0a5cffcfffefffefffefe83ff09fefffdfffdfffdbe9fa187a304ccaba8efe680 *e482e582e682e781e881e906f6c49e3fa0a3e480ff0afdbe9ca306a3e1f6eeefef80f080f181f2 *00f380f480f581f605f7f7ffd09da288a30ba0a2e3fffefffefffefffefe83ff0afefffdfffdfd *ffffe2a3a086a305ccaba8efe6e482e582e682e781e882e906eaf7c49e35a3e482ff07fdbe9d06 *a3e1f6ee80f081f180f200f380f480f581f607f7f8f7f8ffd09da287a30c9fa7e2fffefdfffeff *fefffefe83ff0bfefffdfffdfdfffeffe4a2a085a304ccaba8efe781e581e682e782e882e980ea *04f7c49d57e484ff08fdb900a3e1f7eff0f080f100f280f380f481f580f600f780f805f9f8ffd0 *9da286a30d9cbef7fffffefdfffefffefffefe83ff0cfefffdfffdfdfffdffffe2a79f84a306cc *aba8f0e7e5e581e682e782e882e982ea04f7c49890388512096606a2e2f8eff1f2f1f280f381f4 *80f500f680f780f880f904faffd09da284a30fa29abdfdfffcfffefdfffefffefffefe83ff07fe *fffdfffdfdfffd80ff02f7bf9c83a304ccaba8f0e881e682e782e882e982ea08ebebf8c59ba072 *000080fb0a00000c7bfc9fe2f8f1f2f281f380f403f5f6f5f680f781f880f905fafaffd19da283 *a310a0a5cffbfffdfcfffefdfffefffefffefe83ff0efefffdfffdfdfffdfffffcfffdbe9c82a3 *06ccaba8f0e8e6e682e782e882e983ea07ebebecf8c59c75d984870695cceea0e2f9f281f303f4 *f5f4f580f681f780f80af9faf9fafbfafbffd19da282a311a0a3e4fffdfffdfcfffefdfffefffe *fffefe83ff10fefffdfffdfdfffdfffffcfdfffcbc9aa280a304ccaba8f0e882e782e882e983ea *09ebebecebecf8c59d557c8434094273e3a2e2faf2f3f3f480f580f681f703f8f9f8f980fa80fb *05fcfbffd19da281a312a0a2e3fffdfcfffdfcfffefdfffefffefffefe83ff18fefffdfffdfdff *fdfffffcfdfffffacfa49b9da1bbaba8f0e980e782e881e982ea03ebeaebeb80ec07ededf9c59e *371ce282df08e2eb1bd9a3e3faf4f480f580f681f700f880f980fa80fb80fc1bfdffd19da2a3a2 *a19fa7e1fffffdfcfffdfcfffefdfffefffefffefe83ff19fefffdfffdfdfffdfffffcfdfffefc *ffe6ceceabbbaaa8f0e9e782e881e982ea81eb80ec81ed05f9c59f0d916f826c096f7695cba4e3 *faf4f5f580f681f700f880f980fa81fb80fc1cfdfdffd19d9f9ca3a5bff7fffefffdfcfffdfcff *fefdfffefffefffefe83ff0ffefffdfffdfdfffdfffffcfdfffefbfc80ff05fabfaaa8f0ea80e8 *82e982ea82eb80ec80ed06eeeff9c49dabaf82ae08adaeaeb0a5a2e2fbf581f680f700f880f980 *fa81fb03fcfdfcfd80fe1affd19cbccce5f9fffefbfefffdfcfffdfcfffefdfffefffefffefe83 *ff0ffefffdfffdfdfffdfffffcfdfffefbfc80ff060008ada7f1eae882e982ea82eb80ec0aedee *edeeefeeeffac7a1a687a703a5a5e4fb80f600f780f880f981fa80fb00fc80fd80fe80ff03d197 *c20080ff12fcfbfefffdfcfffdfcfffefdfffefffefffefe83ff18fefffdfffdfdfffdfffffcfd *fffefbfcffff786f77aba7f1eb81e983ea81eb80ec00ed80ee80ef04f0f0f7f1ea81eb86ec03f8 *f9f6f780f881f980fa00fb80fc80fd80fe82ff19d1975d600cfffffcfbfefffdfcfffdfcfffefd *fffefffefffefe83ff1afefffdfffdfdfffdfffffcfdfffefbfdff61d8e058aba7f1ebe9e983ea *81eb00ec80ed80ee81ef80f003f2f5f6f680f781f880f901fafb83f880f900fa80fb80fc81fd01 *fefe84ff19d19853190029fffdfbfefffdfcfffdfcfffefdfffefffefffefe83ff18fefffdfffd *fdfffdffff009f0e09c7cf00ebd9c88ea8a7f1eb83ea01ebeb80ec80ed81ee80ef00f080f181f2 *80f380f401f5f580f680f780f803f9faf9fa80fb81fc80fd00fe87ff19d19917e4d700ac3f2b28 *df2a00fffdfcfffefdfffefffefffefe83ff18fefffdff7f0094ce35227f16efc8b159a2938c89 *5ea7a8f1ec81ea01ebeb80ec81ed80ee00ef80f080f181f280f300f480f580f681f780f800f980 *fa80fb81fc03fdfefdfe89ff19d19a029e8f92bb89b4d0f827ab5d932bb24800fffefffefffefe *83ff1c00df69d7a81de3b2a4a59d93877484e7827b6e6942a5a8f1eceaeaebeb80ec81ed03eeef *eeef80f080f181f200f380f480f580f681f700f880f980fa80fb81fc00fd80fe8bff19d19bf378 *707d8a227f778796969da7baef2be33f6e15fffffefe81ff1c1200ba03ccb2b4b2a29b8879695a *4a373ab86661534c28a5a8f2edebeb80ec81ed00ee80ef80f080f181f200f380f480f580f681f7 *00f880f980fa81fb80fc00fd80fe8dff38d19ce85b56636fe4333b4a5a697c8b9ba2b5b4b5d519 *0433bffeffff007f19d0cccdc3b1a18f7f6f5d4d3b281806fbc55e50443c1aa4a8f2ed81ec80ed *00ee80ef80f081f180f200f380f480f581f680f700f880f980fa81fb03fcfdfcfd80fe8fff3ed1 *9ce04646516bdefb091b2b3b4d606f8292a4b4c7cdc3d855aa7fff45bbece6d3c0ae9e8f7c6957 *4734250f00efdcd27949403618a4a8f2eeececedeeedee80ef81f080f103f2f3f2f380f481f580 *f600f780f880f981fa80fb00fc80fd80fe91ff3ad19cdf42404e8fd8dfef03152537475d6c7c8f *a1b4c3d3e6def0aeff9e00d5ddd6c3b19e8f7f6c5a4a37281503f2dfcfb969443d1da4a8f2eeed *ed80ee80ef80f080f101f2f280f380f480f503f6f7f6f781f880f980fa00fb80fc80fd80fe93ff *3ad19ce148457fc5d0e3f206182b3b4a5d6f7f92a4b4c3d6e0d06355ffff000800c4c3c1b2a798 *887663534431220f00ecdfcd7f562ea5a8f5f1efef80f080f101f2f280f381f480f503f6f6f7f7 *81f880f980fa80fb01fcfc80fd80fe97ff38d29be96a93d5dcef0312253444576976889babb5bc *bacf1dbb75fefffffefe00f8f213d7afa6a39f9085766657473728180c00cd74b1a3e1fa80f885 *f984fa80fb85fc82fd84fe9aff18faba9e18fb0309182837475a697988909f9fa6b2e335330000 *80fe01ffff80fe00fd800014f2685f0cdcae988e8a7f7a6b5f57474a620f9fa6ba87bb8dbc9dbd *88bc16bdb09ebb0e554a5a5f6e7a828d9190b7e810a3ad8ce80083fe01ffff80fe80fd14fcfdfe *aa00e8e96368bc33fbdcb69a7c78828213ab809e019f9f8b9e019d9e9e9d899e1b9f9f9e9e9da1 *d0caa87b7f9abedf0045eaa8c3838c5f7ffdfafcfdfd82fe01ffff80fe80fd08fcfdfdfbfefcf9 *fcfe80002835e3dbbdef47e6c685fcf5e1ab7c5c453b3a36352f2c2924211c1614110c09060401 *00fffaf8f6f6f584f336f5f6f6f8fbff00040406090e1116191e2124292f323539383e495f85b9 *e8f5fa49853e561f00439c00c6bf00fefcf9fcfbf9fcfafcfdfd82fe01ffff80fe80fd11fcfdfd *fbfefcf9fbfdf9f8fdfbf9f7fcfffc81001e66ddb438e292c1d85513f2dac0bfb7a49e9b928886 *807c756f6b6766646260845e3660626266696b71757c82868b929b9ea7babfc3e1f6216d00e605 *bf5f9f75bf7ff90000fcfdf7f7fafdfaf7f9fdfbf9fcfbf9fcfafcfdfd82fe01ffff80fe80fd35 *fcfdfdfbfefcf9fbfdf9f8fdfbf9f7fbfefbfaf7f5f9fdfbf9f8f7f6fbff0075005b9bcc35e6c9 *af7b595758503e30302b262121242482213724242121262b303341595d5c5e89afd4ef53f6f9b3 *743800fdf5f6f6f8f9fbfdfaf5f8f9fbfcf7f7fafdfaf7f9fdfbf9fcfbf9fcfafcfdfd82fe01ff *ff80fe80fd34fcfdfdfbfefcf9fbfdf9f8fdfbf9f7fbfefbfaf7f5f9fdfbf9f8f7f6fafefafefc *f9fefd55009995b3c3055fea98452f1e0d09f5e884e536e800090d1a3370aa0c7825061538005f *00fcfef9fbfefbfcf5f6f6f8f9fbfdfaf5f8f9fbfcf7f7fafdfaf7f9fdfbf9fcfbf9fcfafcfdfd *82fe01ffff80fe80fd34fcfdfdfbfefcf9fbfdf9f8fdfbf9f7fbfefbfaf7f5f9fdfbf9f8f7f6fa *fefafefcf9fdfcfafefdfbf9fc5500d4aa72ce55d708c0f2840c07f21d08dff4ced4c880002bfd *fafcfdfbf9fbfdf9fbfefbfcf5f6f6f8f9fbfdfaf5f8f9fbfcf7f7fafdfaf7f9fdfbf9fcfbf9fc *fafcfdfd82fefffffcffb53d0e0039b880675e5250545f6783c43900b53d00ffb23d070039865a *42393433823207333439425a895500b23d00ffb03d0a7f7b4738333a455872839080910a908270 *59453933384b7fb6b03d00ffae3d1c045d3a343d5c8cb0cdd7d8d7d8d5d3d5d9d7d8d8cdae865a *3c343c613fae3d00ffac3d0e895f38344c85bedadacec0b7b4b1b080af0eb0b2b4b7c0cfdad9ba *8148343963c3ac3d00ffaa3d0e00833e344c91d1decab8b1afb0b1b184b20db1b1b0afb1b9ccdd *d0914a344090ab3d00ffa93d0a9e53363e82d2dcc3b2afb18eb20ab1afb2c2dccd7f3b375724a9 *3d00ffa83d08e443345abae1c4b1b08cb201b1b280b10bb0afafacaec4dfb454334508a83d00ff *a73d07a83a367bd9d4b5af88b201b1b280b103b0b0afaf80ae00ad80ac07a8afd1d271343db1a7 *3d00ffa63d07a2393894e2c6afb186b280b103b0afb0af80ae00ad80ac00ab81aa08a9a8a6c0dc *8b383aa8a63d00ffa53d06aa393ea4e1bdaf80b201b1b280b100b081af07aeaeadadacacabab80 *aa01a9a980a880a707a6a2b3dc96383ab7a53d00ffa43d07da3a39a6e1b8afb280b100b080af02 *aeaead80ac04abaaabaaaa80a980a805a7a7a6a6a5a580a407a39faedb95383d08a43d00ffa33d *09c3413796e0b6aeb0afaf80ae00ad80ac07abaaaaa9a7a6a5a581a482a580a401a3a380a208a1 *a19dabd98a354466a33d00ffa23d080050347ce1b9abaead80ac01abab80aa10a9a9a6a6abb4bf *c7cbcacac6bcafa6a1a080a201a1a180a00a9f9f9e9e9aacd771335600a23d00ffa23d0782365c *d7bfa9abab80aa80a980a814a5a6b4ccd4ccb4a1948c94a3b6cdd2c9af9e9d9f9f819e0a9d9d9c *9c9b97b5cb53378da23d00ffa13d05893d3fbccda780a981a818a7a7a6a4a2b4d2ce9e6b493d38 *343234383e4a6ea1cdcdac9a819c009b809a0899999795c3ae3b40eea13d00ffa13d095a3487da *aba7a8a7a7a680a51ca4a4a1a6c9d28f4c35353e516a787e78684e3e35365197d1c29c97999981 *98809705949ad17b3461a13d00ffa03d05173750d0baa380a580a40ca3a3a29facd6b45533395a *bf55843d0a28b15637345ab5d0a0949780960195958094058facc44a3964a03d00ffa03d045835 *97d2a281a30ca2a2a1a1a09cabd7983c3755178a3d150451363e9ad2a291949493939292919190 *8fc88a3560a03d00ff9f3d0555384fcfb19f80a100a0809f079e9ba9d685363b8d8e3d097f3837 *92d19c8f9291918090078f8e8ba3c2493bd09f3d00ff9f3d04703489d09e809f019e9e809d069b *9fd293353eda903d09b83c3799cb918d8f8e8e808d068c8b8bc77d357e9f3d00ff9e3d057f4440 *bdb79a809d009c809b069997c5af3b3add923d0aba393eb2b98a8c8c8b8c8b808a0585abb03d49 *009e3d00ff9e3d08f23764d1a19a9b9b9a8099069895abcb54378d943d12813658c89c878a8a89 *89888887858ec65937339e3d00ff9e3d0478348ec79781988097059696cc8b3356953d12005035 *90c186878786858685858482bc8334879e3d00ff9d3d1200513db1b5939797969695959491a7c5 *4b3a64963d05173850c396828184078383827da7a23b579e3d00ff9d3d11003f4ac8a293959493 *939292918fc193345f983d04583699b37f8082098180807f7d92ba45427f9d3d00ff9d3d063936 *63c9969292819106908f93ca6435eb983d04c13668c283807f817e057c82c05939d09d3d00ff9d *3d08ba3578c59190908f8f808e058b9fbd44437f983d07874048bd8e7b7e7d807c067b7a7cb86c *36da9d3d00ff9d3d05913387c08c8e818d068c8c87aea53b5a9a3d05533ea99c787b807a077979 *7877b27d34a29d3d00ff9d3d05783593b7878c808b078a8a8984b59336769a3d05693897a57479 *80780777777672ae86338d9d3d00ff9d3d0475389bb4858089088888878683ba8733999a3d0482 *3489ab72807600758074046ea48c35779d3d00ff9d3d0575389ab3828780860785858481b98833 *9c9a3d059a3385af717480738072046ca29538759d3d00ff9d3d04753899b1808184078383827f *b888339a9a3d059a3485ae6f72807180700469a09438759d3d00ff9d3d04753899af7e80820881 *80807f7cb687339a9a3d049a3485ad6d806f006e806d04669f9338759d3d00ff9d3d04753898ad *7b807f817e047bb587339a9a3d069a3484aa6a6d6d816c056b649c9338759d3d00ff9d3d107538 *98ac797e7e7d7d7c7c7b78b387339a9a3d109a3484a9686b6b6a6a696968629b9338759d3d00ff *9d3d06753897aa777c7b807a06797976b186339a9a3d069a3484a866686880670666665f999238 *759d3d00ff9d3d06753896a8757979807806777773b086339a9a3d069a3483a663666680650664 *645e989138759d3d00ff9d3d05753896a6727780760775747471af86349a9a3d109a3483a46264 *6463636262615b959138759d3d00ff9d3d04753896a56f807408737372726fad85349a9a3d049a *3482a25f80610860605f5f59949038759d3d00ff9d3d04753896a46d807208717170706cab8434 *9a9a3d049a3481a15c805f085e5e5d5d56939038759d3d00ff9d3d10753895a26b70706f6f6e6e *6d6aaa84349a9a3d109a34819f5a5d5d5c5c5b5a5a53908f38759d3d00ff9d3d047b3894a06880 *6d806c056b68a88434a69a3d07a634819e575a5b5a815904518f8f387b9d3d00ff983d16d0ddd1 *d4e15b38939e666c6b6b6a6a696965a683346add98d417dd6a34819c55595858575756564e8d8e *385be1d4d4d12100973d00ff963d027f683c81370f3632919d636969686867676663a5802e8e37 *8b38052e7d9b52565680550654544c8c8c32378238014a55963d00ff963d047b3b486666806504 *62a59a606780660765656461a3985f65826401656582640165658b640763635d95995054548053 *055251498a9f6081630464563c46bf953d00ff953d0500463fa1b1a680a704a6aa856165806405 *6362625f89a682a281a182a0829f819e809d819c809b039f7e5052805105504f4f49739d809806 *979698ac6138b7953d00ff953d10003d47b5716566666564646363626261618060825f005e805d *015c5c805b015a5a805901585880570156568155005480530652525150504f4f804e0e4d4c4d4c *4b4c4c4b4a4a46947f3596953d00ff953d08003d46b06b616262618260805f805e015d5c805b00 *5a805980580157578056005581548053095252515150504f4f4e4e804d044e4d4d4c4c804b014a *49804807474746428f7d359a953d00ff953d07003d46af695e6060815f0d5e5e5d5d5c5c5b5b5a *5a595a59598058005780568055015454805301525280510050804f804e004d814c014b4b804a03 *49484948804780460545418e7d359a953d00ff953d07003d46ae675d5e5e805d005c805b015a5a *8059805800578056805580548053005280510050804f804e804d004c804b804a03494948488147 *0d4646454544444343423e8c7c359a953d00ff953d07003d46ae655a5c5b805a81598058025756 *56805581540353535252805102504f4f804e044d4d4c4d4c804b804a0649484847484747804600 *4580440343434242804105403c8b7c359a953d00ff953d05003d46ac6258815900588057015656 *80558054015353805200518050014f4f804e034d4c4d4c814b054a4a4949484880478046054545 *4444434380428041014040803f053d39897b359a953d00ff953d09003d46ac6056575756568155 *0154548053045252515150804f814e034d4d4c4c804b024a4a4980488147804604454444434380 *4280418040043f3f3e3e3d803c053b37887b359a953d00ff953d09003d46ab5e53555554548053 *01525280510050804f804e004d814c014b4b804a03494849488147004680450544444343424280 *418040013f3f803e003d803c803b073a3a3935867b359a953d00ff953d08003d46a95c51535352 *80510050804f804e804d004c804b804a0349494848814705464645454444804301424280410340 *403f3f803e003d803c803b803a80390738373633847a359a953d00ff953d09003d46a9594f5150 *4f4f804e044d4d4c4d4c804b804a06494848474847478046004580440043804281410940403f3f *3e3e3d3d3c3c803b813a0f393938383737363635353430837a359a953d00ff953d0b003d46a857 *4c4e4e4d4c4d4c814b054a4a494948488047804609454544444343413f3c39803c0639383a3d3e *3e3d803c803b013a3a80398038003780360135358034073333322e8179359a953d00ff953d0600 *3d46a7554a4c804b024a4a49804881478046044544444343804213413e3a41526b7c878b8a8071 *5a4336363a3b3a3a8039003880370436363536358034803309323131302f2b8079369a953d00ff *953d0a003d46a652484a494849488147004680450544444343424280411540403e394a769aa395 *887c7b7a818e9f9f83583733388037003680358134053333323231318030802f052e297f79369a *953d00ff953d05003d46a55045804705464645454444804301424280410e40403f3f3e3e384279 *a4966b4a3d3980350c373b425c83a3904e2f343534348033003280318130012f2f802e082d2d2c *2b277c78369a953d00ff953d06003d46a34e444580440043804281412240403f3f3e3e3d3d3c3b *35579d9a5f3b363c506d8b9c997c5b433837497ea571322f3280318030012f2f802e012d2d802c *002b802a0528247b78369a953d00ff953d05003d46a24c4180420141418040803f023e3e3d803c *803b093a3466aa773d37489024843d09aae15d3a36579e89352c802f802e002d802c002b802a80 *2980280527227a78369a953d00ff953d05003d46a14a3f8040003f803e003d803c813b0c3a3a39 *3938326aa961363e87aa893d0808503745948e332a2d802c022b2a2a8029042828272827802606 *25241f7877369a953d00ff953d08003d46a0483c3e3e3d803c013b3b803a80390138388037062f *5ba85d3548398c3d08006d3942948328292a8029032827282780260125258024072322221d7776 *369a953d00ff953d05003d469f453a803b803a0539393838373780368035063043a36b3649008f *3d058339469d652180270526262525242480238122072121201b7475369a953d00ff953d0e003d *469e43383a393938383737363681350a34343333322e87893844ee913d0a6737599e3c20252424 *2323822200218020081f1f1e1d187375369a953d00ff953d0b003d469d41353737363635358034 *80330032803106302a53a24b39c6923d0f914c38817e1f22232222212120201f1f801e091d1d1c *1c1b167175369a953d00ff953d06003d469b3e33358034053333323231318030802f052e2b897a *365c943d05eb384c99371b841f011e1d801c091b1b1a1a18147074369a953d00ff953d07003d46 *9b3d31333280318030012f2f802e802d05283f9d4c3a46953d1a55397d5501030507090c0e1114 *1718191a1a19181816116e74369a953d00ff953d05003d469a3a2e8030012f2f802e002d802c00 *2b802a0422638d3b52963d04b6395d7b0385000d010306090c10131414106d74369a953d00ff95 *3d09003d4699382c2e2e2d2d802c002b802a8029062a28247d70378b963d0428404689188b0007 *010407076973369a953d00ff953d07003d4598362a2c2b802a80298028092928241c110d7a5838 *12973d03503e82348f00035f70379a953d00ff953d1a003d459633272929282827282727282722 *170e04000008854d3cb9973d03673b7b458f00035f70379a953d00ff953d07003d459530252727 *802605272621170c0382000415874543aa973d03783a7b4f8f00035f70379a953d00ff953d0d00 *3d45952e2325242425221a0e048500041988434691973d03793a7b4f8f00035f70379a953d00ff *953d0a003d45942c2123231f14078800040b86493d00973d036f3a7a4a8f00035f70379a953d00 *ff953d08003d45932b201c0f038a0004077f54396d973d035a3d7f398f00035f70379a953d00ff *953d06003d4592230c028d00036c6538a8963d0491444288238f00035f70379a953d00ff953d04 *003d458a0b8f0003507b395f963d0417385583078f00035f70379a953d00ff953d04003e45830a *8f0004258b443f7f953d03683974609000035f70379a953d00ff953d04003e45840a8f0004037a *643878943d04df3d438a2a9000035f70379a953d00ff953d04003e45840a9000043b8b3f3fc393 *3d0460376a77039000036070379a953d00ff953d04003e45840a900005057b6b385500913d04aa *39498f2c8d00800104006171379a953d00ff953d04003e45840a910004258f513869903d04e13e *3b825f8c000001810204006271379a953d00ff953d04003e45840a9200054b8c473968008d3d05 *ce3e38737c0a8a000b01010202030403006371379a953d00ff953d04003e45840a9300055e8d48 *3850558a3d06917e3a3a6f861a89000d010102030304040505016472379a953d00ff953d04003e *45840a930007045b8e54373e6bda873d06e74c39417a831b870010010102020303040405050605 *026572379a953d01ff3a943d04003e45840a950005458e6c403cd1873d055d3b53886c12860006 *0101020203040480050806060707036572379a953d04ff4231343e913d04003e45840a96000420 *876138d1873d03603d825b86000201010280030604040505060607800804046672379a933d073a *3affdea3702b3a903d04003e45840a9700036a6638d4873d03603d803984000201010280030804 *0405060607070808800904056772379a913d033932474980ff04fb9c40323e8e3d04003e45840a *9700036c6538d4873d03603d803d8200000180020c03030404050606070708080909800a040767 *72379a8f3d053c354b9eeef382ff03ca6b303c8d3d04003e45840a9700036c6538d4873d03603d *803d80000001800207030304050506060780080009800a070b0c0b076772379a8e3d03393578f0 *86ff03fb7735398c3d04003e45840a9700036c6538d4813d003c823d21603d803d000101020203 *0404050506060707080809090a0a0b0c0c0d0d096972379a8c3d073e323bc2fffffefe83ff05fe *ffffc23c368b3d04003e45840a9700036c6538d4803d02393a38813d0c603d803d000203030404 *0506068007110808090a0a0b0b0c0c0d0d0e0e0a6a73379a8c3d02306bcb80ff01fefe83ff00fe *80ff02c546358a3d04003e45840a97000a6c6538d43d3d383ec37e2f803d15603d803e00030404 *0505060607070808090a0a0b0c0c800d080e0e0f0f0b6a73379a8a3d093a2a75fbfffffefffefe *83ff08fefffdfffff0772f3c883d04003e45840a9700126c6538d43d383bc5fffa752f3d3d603d *803f00800511060607080809090a0a0b0b0c0c0d0d0e0e0f8010040c6b73369a893d0a38419cfa *fffefffefffefe83ff09fefffdfffdfffa773539873d04003e45840a9700066c6538d4383bc680 *ff11fa752f3d603d80400005060607080809090a800b080c0c0d0e0e0f0f10108011040d6c7336 *9a883d02363bc580ff05fefffefffefe83ff0afefffdfffdfdffffc23c38863d04003e45840a97 *00056c6538c23bc682ff0efa7530623d8141000707080809090a800b070c0c0d0e0e0f0f108011 *8012040f6c74369a873d0c3545c5fffefdfffefffefffefe83ff05fefffdfffdfd80ff02c63b36 *853d04003e45840a9700046c6536e9c684ff16fa6b503d824200080809090a0a0b0b0c0d0d0e0e *0f0f1080110912121314130f6e74369a863d0d2f77effffffefdfffefffefffefe83ff0cfefffd *fffdfdfffdffffc54535843d04003e45840a9700046c652bef3885122266613b82430009090a0a *0b0c0c0d0d0e0e0f0f1010111112131314141515116e74369a843d0f3a2a75fafffcfffefdfffe *fffefffefe83ff07fefffdfffdfdfffd80ff02ef772f833d04003e45840a9700066c6431537d00 *0080fb100000108a96368243010a0a0b0c0c0d0e0e800f0910101112121313141415801604126e *74369a833d1038419bf9fffdfcfffefdfffefffefffefe83ff0efefffdfffdfdfffdfffffcfffb *752f823d04003e45840a9700046c643228f184871798cc8b378345030b0c0c0d0d0e0e0f0f1010 *11121213141480150016801704137075369a823d02383bc680ff0bfdfcfffefdfffefffefffefe *83ff10fefffdfffdfdfffdfffffcfdfffa742b3a803d04003e45840a960005026d6434078d8434 *0642737e38824604800d0b0e0e0f10101111121213131480150a161617171818147175369a813d *12363bc5fffdfcfffdfcfffefdfffefffefffefe83ff18fefffdfffdfdfffdfffffcfdfffff89b *402c3039dd3e45840a92000a01010201026e6534e935e882e510e8f52275398347050d0e0e0f10 *1011111280130814141515161717181880191b167174369a3d3b3a3546c4fffffdfcfffdfcfffe *fdfffefffefffefe83ff18fefffdfffdfdfffdfffffcfdfffefeffca97994eee3b45840a90000c *010102030302046f6536ba9460825d0e606789673b8347060f0f10101111128013091414151616 *1717181919811a1b16727536952e3c4178effffefffdfcfffdfcfffefdfffefffefffefe83ff0f *fefffdfffdfdfffdfffffcfdfffefbfc80ff05f5153d43840a8e00020101028003060403057065 *37428747383d3c834807101011111212131314151516161717181819191a1a1b1b1c18727534bc *93c9f2fffffbfefffdfcfffdfcfffefdfffefffefffefe83ff0ffefffdfffdfdfffdfffffcfdff *fefbfc80ff0500004941840a8c0002010202800308040405050672693c4188400441874a081180 *1207131414151516161780180e19191a1b1b1c1c1d1d1973742a540080ff12fcfbfefffdfcfffd *fcfffefdfffefffefffefe83ff18fefffdfffdfdfffdfffffcfdfffefbfcffff786f674742840a *8a0000018002040303040405800603076b8e82818382848085098696450a121213141415801600 *1780180719191a1b1b1c1c1d801e1b1973742b10600cfffffcfbfefffdfcfffdfcfffefdfffeff *fefffefe83ff18fefffdfffdfdfffdfffffcfdfffefbfdff61d8e6434742840a88001601010202 *03040405050606070708081a2425252626272780280b29292a2b2b2a1b111314141580160b1717 *1818191a1a1b1b1c1c1d811e1c1d1973752c03300029fffdfbfefffdfcfffdfcfffefdfffefffe *fffefe83ff18fefffdfffdfdfffdffff009f0e09c7cf00ebd9cc834542840a8600090101020303 *040405050680070a0808090a07060707080909800a0a0b0c0c0d0d0e0f1214151580160c171718 *19191a1a1b1b1c1c1d1d821e1c1d1973742ed9f2d700ac3f2b28df2a00fffdfcfffefdfffefffe *fffefe83ff18fefffdff7f0094ce35227f16efc8b159a2938c8d554442840a8400090101020303 *04040505068007070808090a0a0b0b0c800d0b0e0e0f1010111112121313148015091616171718 *19191a1b1b801c011d1d841e1c1d1973742fc5aa8f92bb89b4d0f827ab5d932bb24800fffefffe *fffefe83ff1800df69d7a81de3b2a4a59d93877484e7827b6e6c384343840a8100130101020203 *0304040505060607070809090a0a0b800c1c0d0d0e0e0f10101111121213131414151516171718 *1819191a1a1b1b1c801d861e1c1d19737430b686707d8a227f778796969da7baef2be33f6e15ff *fffefe81ff231200ba03ccb2b4b2a29b8879695a4a373ab8666153501f4243840a000001010203 *030404800514060607080809090a0a0b0b0c0c0d0d0e0f0f101011801200138014071516161717 *181819801a041b1b1c1d1d891e3e1d19737530aa6956636fe4333b4a5a697c8b9ba2b5b4b5d519 *0433bffeffff007f19d0cccdc3b1a18f7f6f5d4d3b281806fbc55e50443f0f4143840a00010280 *030b040405050606070808090a0a800b180c0c0d0e0e0f0f101011111212131314151516161717 *181819801a041b1b1c1d1d8b1e3c1d19737531a35546516bdefb091b2b3b4d606f8292a4b4c7cd *c3d855aa7fff45bbece6d3c0ae9e8f7c69574734250f00efdcd27949403a0c4143840b00800316 *04040506060707080809090a0a0b0b0c0c0d0e0e0f101080111512121314141515161617171818 *19191a1b1b1c1c1d1d8d1e3c1d19737531a24f404e8fd8dfef03152537475d6c7c8fa1b4c3d3e6 *def0aeff9e00d5ddd6c3b19e8f7f6c5a4a37281503f2dfcfb969443f134143840a008002050304 *050506068007070809090a0a0b0c0c800d0b0e0f0f101011111213131414801509161717181819 *1a1a1b1b901c421b17727531a454457fc5d0e3f206182b3b4a5d6f7f92a4b4c3d6e0d06355ffff *000800c4c3c1b2a798887663534431220f00ecdfcd7f58224243881706090a0a0b0c0c800d090e *0f0f1010111212131380140915161617171818191a1a801b001c801d031e1e1f20802192223c21 *1e787630ac7693d5dcef0312253444576976889babb5bcbacf1dbb75fefffffefe00f8f213d7af *a6a39f9085766657473728180c00d06c513a7b847b807d807e827f828001818181828283018484 *8285008682870188889789198a955633d70f0309182837475a697988909f9fa6b2e33533000080 *fe01ffff80fe00fd800016f2685f0cdcae988e8a7f7a6b5f57474d70b8313f5759598058895983 *5a8f5b015c5c975b165c4a3252f65b4a5a5f6e7a828d9190b7e810a3ad8ce80083fe01ffff80fe *80fd1afcfdfeaa00e8e96368bc33fbdcb69a7c788582b8423536363a3a398a3802373738a13785 *381b3a393635353a6b97b57b7f9abedf0045eaa8c3838c5f7ffdfafcfdfd82fe01ffff80fe80fd *08fcfdfdfbfefcf9fcfe80002835e3dbbdef47ead660b8afa07c5435231915120f0c0904fffbf6 *f2eeeae6e3e0dddbd9d6d5d3d1d1d080ce00cc80ce36d0d1d1d5d6d6d9dddee2e3e8ebf0f5f8fa *0004090c0f12151b25395c87a7b1b1128550561f00439c00c6bf00fefcf9fcfbf9fcfafcfdfd82 *fe01ffff80fe80fd11fcfdfdfbfefcf9fbfdf9f8fdfbf9f7fcfffc80001f7f66eef05500a5d0e1 *5f1cf8e0c8c7bfaba6a39a918d88847d77736f6d6b69678466366769696d7173787d82888d939a *a1a6afc2c7cbea0026770cf61ad77fdf75bf00fc0000fcfdf7f7fafdfaf7f9fdfbf9fcfbf9fcfa *fcfdfd82fe01ffff80fe80fd35fcfdfdfbfefcf9fbfdf9f8fdfbf9f7fbfefbfaf7f5f9fdfbf9f8 *f7f6fbff0075005b9bcc35e6c9af7b595758503e30302b262121242482213724242121262b3033 *41595d5c5e89afd4ef53f6f9b3743800fdf5f6f6f8f9fbfdfaf5f8f9fbfcf7f7fafdfaf7f9fdfb *f9fcfbf9fcfafcfdfd82fe01ffff80fe80fd34fcfdfdfbfefcf9fbfdf9f8fdfbf9f7fbfefbfaf7 *f5f9fdfbf9f8f7f6fafefafefcf9fefd55009995b3c3055fea98452f1e0d09f5e884e536e80009 *0d1a3370aa0c7825061538005f00fcfef9fbfefbfcf5f6f6f8f9fbfdfaf5f8f9fbfcf7f7fafdfa *f7f9fdfbf9fcfbf9fcfafcfdfd82fe01ffff80fe80fd34fcfdfdfbfefcf9fbfdf9f8fdfbf9f7fb *fefbfaf7f5f9fdfbf9f8f7f6fafefafefcf9fdfcfafefdfbf9fc5500d4aa72ce55d708c0f2840c *07f21d08dff4ced4c880002bfdfafcfdfbf9fbfdf9fbfefbfcf5f6f6f8f9fbfdfaf5f8f9fbfcf7 *f7fafdfaf7f9fdfbf9fcfbf9fcfafcfdfd82fe74386d6b00004008000000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *000000000000000000000000000000000000000000000000000000000f31537794a2babfb6a194 *744e310f0000000000000000000000000000000000000000000000000000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000063172 *a7d9f5fefffffffffffffffdf3d9a76f2d03000000000000000000000000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *000000000000287ccffafffffffffffffffffffffffffffffffffff8c678230000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *0000000000000000000000000000003ba4f4ffffffffffffffffffffffffffffffffffffffffff *fffff09d3000000000000000000000000000000000000000000000000000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *00000000000000000000000000000000000000000000000027a1fdffffffffffffffffffffffff *fffffffffffffffffffffffffffffff79a22000000000000000000000000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *0000000000000000000000000000000000000000000000000000000000000000000274ecffffff *ffffffffffffffffffffffffffffffffffffffffffffffffffffffffe56a000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *0000000025b8ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff *ffffaf1c0000000000000000000000000000000000000000000000000000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *000000000000000000000000000043dfffffffffffffffffffffffffffffffffffffffffffffff *ffffffffffffffffffffffffffffd93a0000000000000000000000000000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *0000000000000000000000000000000000000000000000005bf7ffffffffffffffffffffffffff *ffffffffffffffffffffffffffffffffffffffffffffffffffffef560000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000005efaffffff *fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa *5b0000000000000000000000000000000000000000000000000000000000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *00000000005af9ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff *fffffffffffffffffffffff9550000000000000000000000000000000000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *00000000000000000000000000000046f8ffffffffffffffffffffffffffffffffffffffffffff *fffffffffffffffffffffffffffffffffffffffffffffff03a0000000000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *0000000000000000000000000000000000000000000000000022e6ffffffffffffffffffffffff *ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdd190000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000006bdffff *ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff *ffffffffffffffffb1020000000000000000000000000000000000000000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *0000000000000075ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff *ffffffffffffffffffffffffffffffffffffffff6c000000000000000000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *000000000000000000000000000000000027f2ffffffffffffffffffffffffffffffffffffffff *ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffea1f000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *00000000000000000000000000000000000000000000000000000000a9ffffffffffffffffffff *ffffffffffffffffffffffffe7b68d7f797f90bceaffffffffffffffffffffffffffffffffffff *ffffffff9d00000000000000000000000000000000000000000000000000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000037 *fcfffffffffffffffffffffffffffffffffffffffaaa5012000000000000001356aefdffffffff *fffffffffffffffffffffffffffffff72b00000000000000000000000000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *00000000000000000000acffffffffffffffffffffffffffffffffffffffb43700000000000000 *0000000000003bbbffffffffffffffffffffffffffffffffffffff9e0000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *00000000000000000000000000000000000000002dfbffffffffffffffffffffffffffffffffff *f66c000000000000000000000000000000000078fcfffffffffffffffffffffffffffffffffff5 *210000000000000000000000000000000000000000000000000000000000000000000000000000 *0000000000000000000000000000000000000000000000000000000000000088ffffffffffffff *ffffffffffffffffffffee460000000000000000000000000000000000000053f0ffffffffffff *ffffffffffffffffffffff79000000000000000000000000000000000000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *000008d9fffffffffffffffffffffffffffffffff7450000000000000000000000000000000000 *0000000052faffffffffffffffffffffffffffffffffce05000000000000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *000000000000000000000000003fffffffffffffffffffffffffffffffffff6c00000000000000 *0000000000000000000000000000000076fffffffffffffffffffffffffffffffffc3200000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *0000000000000000000000000000000000000000000000007fffffffffffffffffffffffffffff *ffffb000000000000000000000000000000000000000000000000001bdffffffffffffffffffff *ffffffffffff710000000000000000000000000000000000000000000000000000000000000000 *0000000000000000000000000000000000000000000000000000000000000000000001b8ffffff *fffffffffffffffffffffffff62b00000000000000000000000000000000000000000000000000 *37fbffffffffffffffffffffffffffffffab000000000000000000000000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *0000000000000ce6ffffffffffffffffffffffffffffffa1000000000000000000000000000000 *000000000000000000000000adffffffffffffffffffffffffffffffdf08000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *000000000000000000000000000000000031fcfffffffffffffffffffffffffffffe4100000000 *00000000000000000000000000000000000000000000004fffffffffffffffffffffffffffffff *f72100000000000000000000000000000000000000000000000000000000000000000000000000 *0000000000000000000000000000000000000000000000000000000052ffffffffffffffffffff *ffffffffffdb0800000000000000000000000000000000000000000000000000000011e7ffffff *ffffffffffffffffffffffff460000000000000000000000000000000000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *69ffffffffffffffffffffffffffffffa600000000000000000000000000000000000000000000 *00000000000000b5ffffffffffffffffffffffffffffff5e000000000000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *00000000000000000000007fffffffffffffffffffffffffffffff810000000000000000000000 *0000000000000000000000000000000000008effffffffffffffffffffffffffffff6c00000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *0000000000000000000000000000000000000000000080ffffffffffffffffffffffffffffff64 *000000000000000000000000000000000000000000000000000000000075ffffffffffffffffff *ffffffffffff800000000000000000000000000000000000000000000000000000000000000000 *00000000000000000000000000000000000000000000000000000000000000000080ffffffffff *ffffffffffffffffffff6200000000000000000000000000000000000000000000000000000000 *0063ffffffffffffffffffffffffffffff80000000000000000000000000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *000000000080ffffffffffffffffffffffffffffff630000000000000000000000000000000000 *00000000000000000000000063ffffffffffffffffffffffffffffff8000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *0000000000000000000000000000000080ffffffffffffffffffffffffffffff63000000000000 *000000000000000000000000000000000000000000000063ffffffffffffffffffffffffffffff *800000000000000000000000000000000000000000000000000000000000000000000000000000 *00000000000000000000000000000000000000000000000000000080ffffffffffffffffffffff *ffffffff63000000000000000000000000000000000000000000000000000000000063ffffffff *ffffffffffffffffffffff80000000000000000000000000000000000000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000080 *ffffffffffffffffffffffffffffff630000000000000000000000000000000000000000000000 *00000000000063ffffffffffffffffffffffffffffff8000000000000000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *0000000000000000000080ffffffffffffffffffffffffffffff63000000000000000000000000 *000000000000000000000000000000000063ffffffffffffffffffffffffffffff800000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *00000000000000000000000000000000000000000080ffffffffffffffffffffffffffffff6300 *0000000000000000000000000000000000000000000000000000000063ffffffffffffffffffff *ffffffffff80000000000000000000000000000000000000000000000000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000080ffffffffffff *ffffffffffffffffff630000000000000000000000000000000000000000000000000000000000 *63ffffffffffffffffffffffffffffff8000000000000000000000000000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *0000000080ffffffffffffffffffffffffffffff63000000000000000000000000000000000000 *000000000000000000000063ffffffffffffffffffffffffffffff800000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *00000000000000000000000000000080ffffffffffffffffffffffffffffff6300000000000000 *0000000000000000000000000000000000000000000063ffffffffffffffffffffffffffffff80 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *000000000000000000000000000000000000000000000000000080ffffffffffffffffffffffff *ffffff63000000000000000000000000000000000000000000000000000000000063ffffffffff *ffffffffffffffffffff8000000000000000000000000000000000000000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000007aff *ffffffffffffffffffffffffffff5c000000000000000000000000000000000000000000000000 *00000000005cffffffffffffffffffffffffffffff7a0000000000000000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *000000002145494844a4ffffffffffffffffffffffffffffff8f45484848484848484848484848 *484848484848484848484848484848458fffffffffffffffffffffffffffffffa4444848493505 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *000000000000000000000000000892f2ffffffffffffffffffffffffffffffffffffffffffffff *ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff *fffffffffffffffffffbcd2d000000000000000000000000000000000000000000000000000000 *0000000000000000000000000000000000000000000000007cffffffffffffffffffffffffffff *ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff *ffffffffffffffffffffffffffffffffffffffffffffd910000000000000000000000000000000 *0000000000000000000000000000000000000000000000000000000000000000000006d4ffffff *ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff *ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff5500000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *0000000000000ff1ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff *ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff *ffffffffffff660000000000000000000000000000000000000000000000000000000000000000 *00000000000000000000000000000000000ff0ffffffffffffffffffffffffffffffffffffffff *ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff *ffffffffffffffffffffffffffffffffff63000000000000000000000000000000000000000000 *000000000000000000000000000000000000000000000000000000000ff0ffffffffffffffffff *ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff *ffffffffffffffffffffffffffffffffffffffffffffffffffffffff6300000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *0ff0ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff *ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff *630000000000000000000000000000000000000000000000000000000000000000000000000000 *00000000000000000000000ff0ffffffffffffffffffffffffffffffffffffffffffffffffffff *ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff *ffffffffffffffffffffff63000000000000000000000000000000000000000000000000000000 *000000000000000000000000000000000000000000000ff0ffffffffffffffffffffffffffffff *ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff *ffffffffffffffffffffffffffffffffffffffffffff6300000000000000000000000000000000 *0000000000000000000000000000000000000000000000000000000000000000000ff0ffffffff *ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff *ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff630000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *00000000000ff0ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff *ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff *ffffffffff63000000000000000000000000000000000000000000000000000000000000000000 *000000000000000000000000000000000ff0ffffffffffffffffffffffffffffffffffffffffff *ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff *ffffffffffffffffffffffffffffffff6300000000000000000000000000000000000000000000 *0000000000000000000000000000000000000000000000000000000ff0ffffffffffffffffffff *ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff *ffffffffffffffffffffffffffffffffffffffffffffffffffffff630000000000000000000000 *00000000000000000000000000000000000000000000000000000000000000000000000000000f *f0ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff *ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff63 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *000000000000000000000ff0ffffffffffffffffffffffffffffffffffffffffffffffffffffff *ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff *ffffffffffffffffffff6300000000000000000000000000000000000000000000000000000000 *0000000000000000000000000000000000000000000ff0ffffffffffffffffffffffffffffffff *ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff *ffffffffffffffffffffffffffffffffffffffffff630000000000000000000000000000000000 *00000000000000000000000000000000000000000000000000000000000000000ff0ffffffffff *ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff *ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff63000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *000000000ff0ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff *f0ba8c6e62647ba4dbffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff *ffffffff6300000000000000000000000000000000000000000000000000000000000000000000 *0000000000000000000000000000000ff0ffffffffffffffffffffffffffffffffffffffffffff *ffffffffffffffffffcf6a1c000000000000000944a4f9ffffffffffffffffffffffffffffffff *ffffffffffffffffffffffffffffff630000000000000000000000000000000000000000000000 *00000000000000000000000000000000000000000000000000000ff0ffffffffffffffffffffff *ffffffffffffffffffffffffffffffffffffee71090000000000000000000000003abfffffffff *ffffffffffffffffffffffffffffffffffffffffffffffffffff63000000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000ff0 *ffffffffffffffffffffffffffffffffffffffffffffffffffffffffd231000000000000000000 *000000000000068cffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6300 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *0000000000000000000ff0ffffffffffffffffffffffffffffffffffffffffffffffffffffffd0 *1e00000000000000000000000000000000000074ffffffffffffffffffffffffffffffffffffff *ffffffffffffffffff630000000000000000000000000000000000000000000000000000000000 *00000000000000000000000000000000000000000ff0ffffffffffffffffffffffffffffffffff *ffffffffffffffffffe11f000000000000000000000000000000000000000094ffffffffffffff *ffffffffffffffffffffffffffffffffffffffff63000000000000000000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000ff0ffffffffffff *fffffffffffffffffffffffffffffffffffffffe4d000000000000000000000000000000000000 *00000007c9ffffffffffffffffffffffffffffffffffffffffffffffffffff6300000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *0000000ff0ffffffffffffffffffffffffffffffffffffffffffffffffffa50000000000000000 *00000000000000000000000000000041fbffffffffffffffffffffffffffffffffffffffffffff *ffffff630000000000000000000000000000000000000000000000000000000000000000000000 *00000000000000000000000000000ff0ffffffffffffffffffffffffffffffffffffffffffffff *fffa2f000000000000000000000000000000000000000000000000b3ffffffffffffffffffffff *ffffffffffffffffffffffffffff63000000000000000000000000000000000000000000000000 *000000000000000000000000000000000000000000000000000ff0ffffffffffffffffffffffff *ffffffffffffffffffffffffb70000000000000000000000000000000000000000000000000054 *ffffffffffffffffffffffffffffffffffffffffffffffffff6300000000000000000000000000 *0000000000000000000000000000000000000000000000000000000000000000000000000ff0ff *ffffffffffffffffffffffffffffffffffffffffffffff6e000000000000000000000000000000 *0000000000000000000013ebffffffffffffffffffffffffffffffffffffffffffffffff630000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *00000000000000000ff0fffffffffffffffffffffffffffffffffffffffffffffffc3800000000 *00000000000000000000000000000000000000000000bbffffffffffffffffffffffffffffffff *ffffffffffffffff63000000000000000000000000000000000000000000000000000000000000 *000000000000000000000000000000000000000ff0ffffffffffffffffffffffffffffffffffff *fffffffffff416000000000000000000000000000000000000000000000000000094ffffffffff *ffffffffffffffffffffffffffffffffffffff6300000000000000000000000000000000000000 *0000000000000000000000000000000000000000000000000000000000000ff0ffffffffffffff *ffffffffffffffffffffffffffffffffe009000000000000000000000000000000000000000000 *00000000007fffffffffffffffffffffffffffffffffffffffffffffffff630000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *00000ff0ffffffffffffffffffffffffffffffffffffffffffffffd60700000000000000000000 *000000000000000000000000000000007effffffffffffffffffffffffffffffffffffffffffff *ffff63000000000000000000000000000000000000000000000000000000000000000000000000 *000000000000000000000000000ff0ffffffffffffffffffffffffffffffffffffffffffffffef *0f000000000000000000000000000000000000000000000000000089ffffffffffffffffffffff *ffffffffffffffffffffffffff6300000000000000000000000000000000000000000000000000 *0000000000000000000000000000000000000000000000000ff0ffffffffffffffffffffffffff *fffffffffffffffffffff82a0000000000000000000000000000000000000000000000000000aa *ffffffffffffffffffffffffffffffffffffffffffffffff630000000000000000000000000000 *00000000000000000000000000000000000000000000000000000000000000000000000ff0ffff *ffffffffffffffffffffffffffffffffffffffffffff5b00000000000000000000000000000000 *00000000000000000007dcffffffffffffffffffffffffffffffffffffffffffffffff63000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *000000000000000ff0ffffffffffffffffffffffffffffffffffffffffffffffffa00000000000 *000000000000000000000000000000000000000037fcffffffffffffffffffffffffffffffffff *ffffffffffffff6300000000000000000000000000000000000000000000000000000000000000 *0000000000000000000000000000000000000ff0ffffffffffffffffffffffffffffffffffffff *ffffffffffea1800000000000000000000000000000000000000000000000093ffffffffffffff *ffffffffffffffffffffffffffffffffffff630000000000000000000000000000000000000000 *00000000000000000000000000000000000000000000000000000000000ff0ffffffffffffffff *ffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000 *000020f0ffffffffffffffffffffffffffffffffffffffffffffffffff63000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *000ff0ffffffffffffffffffffffffffffffffffffffffffffffffffea22000000000000000000 *000000000000000000000000009effffffffffffffffffffffffffffffffffffffffffffffffff *ff6300000000000000000000000000000000000000000000000000000000000000000000000000 *0000000000000000000000000ff0ffffffffffffffffffffffffffffffffffffffffffffffffff *ffb70400000000000000000000000000000000000000005afeffffffffffffffffffffffffffff *ffffffffffffffffffffffff630000000000000000000000000000000000000000000000000000 *00000000000000000000000000000000000000000000000ff0ffffffffffffffffffffffffffff *ffffffffffffffffffffffffff910000000000000000000000000000000000000044f0ffffffff *ffffffffffffffffffffffffffffffffffffffffffffff63000000000000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000ff0ffffff *ffffffffffffffffffffffffffffffffffffffffffffffffff9306000000000000000000000000 *000000004aefffffffffffffffffffffffffffffffffffffffffffffffffffffffff6300000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *0000000000000ff0ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbd2d *000000000000000000000000000779f9ffffffffffffffffffffffffffffffffffffffffffffff *ffffffffffff630000000000000000000000000000000000000000000000000000000000000000 *00000000000000000000000000000000000ff0ffffffffffffffffffffffffffffffffffffffff *fffffffffffffffffffff28e150000000000000000000042c8ffffffffffffffffffffffffffff *ffffffffffffffffffffffffffffffffff63000000000000000000000000000000000000000000 *000000000000000000000000000000000000000000000000000000000ff0ffffffffffffffffff *ffffffffffffffffffffffffffffffffffffffffffffff4900000000000000000000a3ffffffff *ffffffffffffffffffffffffffffffffffffffffffffffffffffffff6300000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *0ff0ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff4900000000 *0000000000009cffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff *630000000000000000000000000000000000000000000000000000000000000000000000000000 *00000000000000000000000ff0ffffffffffffffffffffffffffffffffffffffffffffffffffff *ffffffffffff48000000000000000000009cffffffffffffffffffffffffffffffffffffffffff *ffffffffffffffffffffff63000000000000000000000000000000000000000000000000000000 *000000000000000000000000000000000000000000000ff0ffffffffffffffffffffffffffffff *ffffffffffffffffffffffffffffffffff48000000000000000000009cffffffffffffffffffff *ffffffffffffffffffffffffffffffffffffffffffff6300000000000000000000000000000000 *0000000000000000000000000000000000000000000000000000000000000000000ff0ffffffff *ffffffffffffffffffffffffffffffffffffffffffffffffffffffff4800000000000000000000 *9cffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff630000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *00000000000ff0ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff *48000000000000000000009cffffffffffffffffffffffffffffffffffffffffffffffffffffff *ffffffffff63000000000000000000000000000000000000000000000000000000000000000000 *000000000000000000000000000000000ff0ffffffffffffffffffffffffffffffffffffffffff *ffffffffffffffffffffff48000000000000000000009cffffffffffffffffffffffffffffffff *ffffffffffffffffffffffffffffffff6300000000000000000000000000000000000000000000 *0000000000000000000000000000000000000000000000000000000ff0ffffffffffffffffffff *ffffffffffffffffffffffffffffffffffffffffffff48000000000000000000009cffffffffff *ffffffffffffffffffffffffffffffffffffffffffffffffffffff630000000000000000000000 *00000000000000000000000000000000000000000000000000000000000000000000000000000f *f0ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff480000000000 *00000000009cffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff63 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *000000000000000000000ff0ffffffffffffffffffffffffffffffffffffffffffffffffffffff *ffffffffff48000000000000000000009cffffffffffffffffffffffffffffffffffffffffffff *ffffffffffffffffffff6300000000000000000000000000000000000000000000000000000000 *0000000000000000000000000000000000000000000ff0ffffffffffffffffffffffffffffffff *ffffffffffffffffffffffffffffffff48000000000000000000009cffffffffffffffffffffff *ffffffffffffffffffffffffffffffffffffffffff630000000000000000000000000000000000 *00000000000000000000000000000000000000000000000000000000000000000ff0ffffffffff *ffffffffffffffffffffffffffffffffffffffffffffffffffffff46000000000000000000009c *ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff63000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *000000000ff0ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff51 *090e0e0e0e0e0e0e0e059dffffffffffffffffffffffffffffffffffffffffffffffffffffffff *ffffffff6300000000000000000000000000000000000000000000000000000000000000000000 *0000000000000000000000000000000ff0ffffffffffffffffffffffffffffffffffffffffffff *ffffffffffffffffffff8147505050505050504f46b9ffffffffffffffffffffffffffffffffff *ffffffffffffffffffffffffffffff630000000000000000000000000000000000000000000000 *00000000000000000000000000000000000000000000000000000ff0ffffffffffffffffffffff *ffffffffffffffffffffffffffffffffffffffffff844b53535353535353524cbcffffffffffff *ffffffffffffffffffffffffffffffffffffffffffffffffffff63000000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000ff0 *ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff834a5252525252 *5252514bbbffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6300 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *0000000000000000000ff0ffffffffffffffffffffffffffffffffffffffffffffffffffffffff *ffffffff8148505050505050504f49baffffffffffffffffffffffffffffffffffffffffffffff *ffffffffffffffffff630000000000000000000000000000000000000000000000000000000000 *00000000000000000000000000000000000000000ff0ffffffffffffffffffffffffffffffffff *ffffffffffffffffffffffffffffff864f575757575757575650bdffffffffffffffffffffffff *ffffffffffffffffffffffffffffffffffffffff63000000000000000000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000cf0ffffffffffff *ffffffffffffffffffffffffffffffffffffffffffffffffffffeae0e2e2e2e2e2e2e2e2e0f3ff *ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *00000b3ef5ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff *ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff *ffffff760100000000000000000000000000000000000000000000000000000000000000000000 *000000000000000000000000224960f5ffffffffffffffffffffffffffffffffffffffffffffff *ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff *ffffffffffffffffffffffffffff983a1500000000000000000000000000000000000000000000 *000000000000000000000000000000000000000000002f575462f6ffffffffffffffffffffffff *ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff *ffffffffffffffffffffffffffffffffffffffffffffffffff984f531f00000000000000000000 *00000000000000000000000000000000000000000000000000000308121c252b538081838ff8ff *ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff *ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffb67d82 *7b44282319100602000000000000000000000000000000000000000000000002091825303c464e *515455618d8e8c8992f8ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff *ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff *ffffffffffffffffb9848c8f85595553504d43392d231407010000000000000000000000000002 *102234444e53575755545353534f6c8d8a8a8891f8ffffffffffffffffffffffffffffffffffff *ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff *ffffffffffffffffffffffffffffffffffffffb8838a8a8a5f5053535355565756524d40301e0c *00000000000000000e2a43515657555353525252525252524e6d8e8a8a8891f8ffffffffffffff *ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff *ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffb8838a8a8b60505252 *525252525253535557554f3e23080000000b2e50575553525252525252525252525252505d8a8b *8a8891f8ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff *ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff *ffffb8838a8c8355515252525252525252525252525356564b2104003b5b535252525252525252 *525252525252525250738e8a8891f8ffffffffffffffffffffffffffffffffffffffffffffffff *ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff *ffffffffffffffffffffffffffb8838b8c674f5252525252525252525252525252525255552600 *2d5356535252525252525252525252525252525154798d8991f8ffffffffffffffffffffffffff *ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff *ffffffffffffffffffffffffffffffffffffffffffffffffb8858c6c5052525252525252525252 *52525252525253574a1b0000153e52575553535252525252525252525252525152708894f8ffff *ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff *ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbc7f6650 *52525252525252525252525252535456564f350d0000000000122a3f4f54575654535352525252 *5252525251505d7debffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff *ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff *ffffffffffffff9b534f5252525252525252525353555657534c3b240c00000000000000000001 *091c2a38484f52565756555453535352524f4ba0ffffffffffffffffffffffffffffffffffffff *ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff *ffffffffffffffffffffffffffffffffffde564e52525353535455565855514e43352617070000 *000000000000000000000000000000030b17242e38414b4f51545658575452a9f1fbfbfcfffffd *fcfcfcfcfcfcfcfcfcfcfcfcfcfcfcfcfcfcfcfcfcfcfcfcfcfcfcfcfcfcfcfcfcfcfcfcfcfcfc *fcfcfcfcfcfcfcfcfcfcfcfcfcfcfcfcfcfcfcfcfdfffffbfbfcfad16f5057585653514f493e35 *2b2114080200000000000000000000000000000000000000000000000000000001040b131c242b *32393e3f5a6c6d7181919da5a7a5a3a2a1a0a0a09f9f9f9f9f9f9f9f9f9e9e9e9e9e9e9e9e9e9e *9e9e9e9e9e9e9e9e9e9e9e9e9e9f9f9f9f9f9f9f9fa0a0a0a0a1a2a3a6a7a39b8d7c6f6d6d6143 *39383029221a120904010000000000000000000000000000000000000000000000000000000000 *00000000000000000000000000010201040a0f111b243642576873797d82808084848384858585 *85868787878787878787878787878787878787878787878685858585848384837f80817b787164 *523f312018100d0802000101000000000000000000000000000000000000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000020d1c *2736414c5355575d61605f5f62646363636363626262626262626262636363636364615e5f6061 *5b575452493e322518090100000000000000000000000000000000000000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *0000000000000000000000000000030b141d252b31383e43494b4c4d4d4f505050505050505050 *4e4d4d4c4b46423c373029231b1208030000000000000000000000000000000000000000000000 *000000000000000000000000000000000000000000000000000000000000000000000000000000 *0000000000000000000000000000000000000000000000000000000000000003070c0f14151b20 *1f252a292929292929292a231f201915120e0a0702000000000000000000000000000000000000 *00000000000000000000000000000000000000000000000000000000000000 newhex * rmfile ./mac/allmydata.icns hunk ./mac/allmydata_tahoe.py 1 -from allmydata.util import pkgresutil # override the pkg_resources zip provider for py2app deployment -pkgresutil.install() # this is done before nevow is imported by depends -import depends # import dependencies so that py2exe finds them -_junk = depends # appease pyflakes - -import sys - -from twisted.python import usage - -class ReplOptions(usage.Options): - pass - -def repl(config, stdout, stderr): - import code - return code.interact() - -class DbgRunnerExtension(object): - subCommands = [ - ["dbgrepl", None, ReplOptions, "Open a python interpreter"], - ] - dispatch = { - "dbgrepl": repl, - } - -class FuseOptions(usage.Options): - def parseOptions(self, args): - self.args = args - -def fuse(config, stdout, stderr): - import tahoefuse - tahoefuse.main(config.args) - -class FuseRunnerExtension(object): - subCommands = [ - ["fuse", None, FuseOptions, "Mount a filesystem via fuse"], - ] - dispatch = { - "fuse": fuse, - } - -def main(argv): - if len(argv) == 1: - # then we were given no args; do default mac node startup - from allmydata.gui.macapp import run_macapp - sys.exit(run_macapp()) - else: - # given any cmd line args, do 'tahoe' cli behaviour - from allmydata.scripts import runner - #runner_extensions = [DbgRunnerExtension, FuseRunnerExtension, ] - runner_extensions = [FuseRunnerExtension, ] - sys.exit(runner.runner(argv[1:], - install_node_control=False, - additional_commands=runner_extensions, - )) - -if __name__ == '__main__': - main(sys.argv) - rmfile ./mac/allmydata_tahoe.py hunk ./mac/depends.py 1 - -# nevow requires all these for its voodoo module import time adaptor registrations -from nevow import accessors, appserver, static, rend, url, util, query, i18n, flat -from nevow import guard, stan, testutil, context -from nevow.flat import flatmdom, flatstan, twist -from formless import webform, processors, annotate, iformless -from decimal import Decimal - - -#if sys.platform in ['darwin', ]: -from nevow.flat import flatsax -from xml.parsers import expat -from xml.sax import expatreader -junk = [ flatsax, expat, expatreader, ] - -try: - # these build hints are needed for nevow/xml on otto's 10.4 / py2.4 - # environment. they are broken on zandr's 10.5/py2.5 env, but are - # also unnecessary. - from xml.sax import sax2exts - from xml.sax.drivers2 import drv_pyexpat, drv_xmlproc - junk = [ sax2exts, drv_pyexpat, drv_xmlproc, ] -except: - pass - - - -import allmydata.web - -# junk to appease pyflakes's outrage at py2exe's needs -junk = [ - accessors, appserver, static, rend, url, util, query, i18n, flat, guard, stan, testutil, - context, flatmdom, flatstan, twist, webform, processors, annotate, iformless, Decimal, - allmydata, - ] - rmfile ./mac/depends.py hunk ./mac/fuse.py 1 -# -# Copyright (C) 2001 Jeff Epler -# Copyright (C) 2006 Csaba Henk -# -# This program can be distributed under the terms of the GNU LGPL. -# See the file COPYING. -# -# On 2009-09-21 Csaba Henk granted permission for this file to be -# licensed under the same terms as Tahoe-LAFS itself. -# - - -# suppress version mismatch warnings -try: - import warnings - warnings.filterwarnings('ignore', - 'Python C API version mismatch', - RuntimeWarning, - ) -except: - pass - -from string import join -import sys -from errno import * -from os import environ -import re -from fuseparts import __version__ -from fuseparts._fuse import main, FuseGetContext, FuseInvalidate -from fuseparts._fuse import FuseError, FuseAPIVersion -from fuseparts.subbedopts import SubOptsHive, SubbedOptFormatter -from fuseparts.subbedopts import SubbedOptIndentedFormatter, SubbedOptParse -from fuseparts.subbedopts import SUPPRESS_HELP, OptParseError -from fuseparts.setcompatwrap import set - - -########## -### -### API specification API. -### -########## - -# The actual API version of this module -FUSE_PYTHON_API_VERSION = (0, 2) - -def __getenv__(var, pattern = '.', trans = lambda x: x): - """ - Fetch enviroment variable and optionally transform it. Return `None` if - variable is unset. Bail out if value of variable doesn't match (optional) - regex pattern. - """ - - if var not in environ: - return None - val = environ[var] - rpat = pattern - if not isinstance(rpat, type(re.compile(''))): - rpat = re.compile(rpat) - if not rpat.search(val): - raise RuntimeError("env var %s doesn't match required pattern %s" % \ - (var, `pattern`)) - return trans(val) - -def get_fuse_python_api(): - if fuse_python_api: - return fuse_python_api - elif compat_0_1: - # deprecated way of API specification - return (0,1) - -def get_compat_0_1(): - return get_fuse_python_api() == (0, 1) - -# API version to be used -fuse_python_api = __getenv__('FUSE_PYTHON_API', '^[\d.]+$', - lambda x: tuple([int(i) for i in x.split('.')])) - -# deprecated way of API specification -compat_0_1 = __getenv__('FUSE_PYTHON_COMPAT', '^(0.1|ALL)$', lambda x: True) - -fuse_python_api = get_fuse_python_api() - -########## -### -### Parsing for FUSE. -### -########## - - - -class FuseArgs(SubOptsHive): - """ - Class representing a FUSE command line. - """ - - fuse_modifiers = {'showhelp': '-ho', - 'showversion': '-V', - 'foreground': '-f'} - - def __init__(self): - - SubOptsHive.__init__(self) - - self.modifiers = {} - self.mountpoint = None - - for m in self.fuse_modifiers: - self.modifiers[m] = False - - def __str__(self): - return '\n'.join(['< on ' + str(self.mountpoint) + ':', - ' ' + str(self.modifiers), ' -o ']) + \ - ',\n '.join(self._str_core()) + \ - ' >' - - def getmod(self, mod): - return self.modifiers[mod] - - def setmod(self, mod): - self.modifiers[mod] = True - - def unsetmod(self, mod): - self.modifiers[mod] = False - - def mount_expected(self): - if self.getmod('showhelp'): - return False - if self.getmod('showversion'): - return False - return True - - def assemble(self): - """Mangle self into an argument array""" - - self.canonify() - args = [sys.argv and sys.argv[0] or "python"] - if self.mountpoint: - args.append(self.mountpoint) - for m, v in self.modifiers.iteritems(): - if v: - args.append(self.fuse_modifiers[m]) - - opta = [] - for o, v in self.optdict.iteritems(): - opta.append(o + '=' + v) - opta.extend(self.optlist) - - if opta: - args.append("-o" + ",".join(opta)) - - return args - - def filter(self, other=None): - """ - Same as for SubOptsHive, with the following difference: - if other is not specified, `Fuse.fuseoptref()` is run and its result - will be used. - """ - - if not other: - other = Fuse.fuseoptref() - - return SubOptsHive.filter(self, other) - - - -class FuseFormatter(SubbedOptIndentedFormatter): - - def __init__(self, **kw): - if not 'indent_increment' in kw: - kw['indent_increment'] = 4 - SubbedOptIndentedFormatter.__init__(self, **kw) - - def store_option_strings(self, parser): - SubbedOptIndentedFormatter.store_option_strings(self, parser) - # 27 is how the lib stock help appears - self.help_position = max(self.help_position, 27) - self.help_width = self.width - self.help_position - - -class FuseOptParse(SubbedOptParse): - """ - This class alters / enhances `SubbedOptParse` so that it's - suitable for usage with FUSE. - - - When adding options, you can use the `mountopt` pseudo-attribute which - is equivalent with adding a subopt for option ``-o`` - (it doesn't require an option argument). - - - FUSE compatible help and version printing. - - - Error and exit callbacks are relaxed. In case of FUSE, the command - line is to be treated as a DSL [#]_. You don't wanna this module to - force an exit on you just because you hit a DSL syntax error. - - - Built-in support for conventional FUSE options (``-d``, ``-f`, ``-s``). - The way of this can be tuned by keyword arguments, see below. - - .. [#] http://en.wikipedia.org/wiki/Domain-specific_programming_language - - Keyword arguments for initialization - ------------------------------------ - - standard_mods - Boolean [default is `True`]. - Enables support for the usual interpretation of the ``-d``, ``-f`` - options. - - fetch_mp - Boolean [default is `True`]. - If it's True, then the last (non-option) argument - (if there is such a thing) will be used as the FUSE mountpoint. - - dash_s_do - String: ``whine``, ``undef``, or ``setsingle`` [default is ``whine``]. - The ``-s`` option -- traditionally for asking for single-threadedness -- - is an oddball: single/multi threadedness of a fuse-py fs doesn't depend - on the FUSE command line, we have direct control over it. - - Therefore we have two conflicting principles: - - - *Orthogonality*: option parsing shouldn't affect the backing `Fuse` - instance directly, only via its `fuse_args` attribute. - - - *POLS*: behave like other FUSE based fs-es do. The stock FUSE help - makes mention of ``-s`` as a single-threadedness setter. - - So, if we follow POLS and implement a conventional ``-s`` option, then - we have to go beyond the `fuse_args` attribute and set the respective - Fuse attribute directly, hence violating orthogonality. - - We let the fs authors make their choice: ``dash_s_do=undef`` leaves this - option unhandled, and the fs author can add a handler as she desires. - ``dash_s_do=setsingle`` enables the traditional behaviour. - - Using ``dash_s_do=setsingle`` is not problematic at all, but we want fs - authors be aware of the particularity of ``-s``, therefore the default is - the ``dash_s_do=whine`` setting which raises an exception for ``-s`` and - suggests the user to read this documentation. - - dash_o_handler - Argument should be a SubbedOpt instance (created with - ``action="store_hive"`` if you want it to be useful). - This lets you customize the handler of the ``-o`` option. For example, - you can alter or suppress the generic ``-o`` entry in help output. - """ - - def __init__(self, *args, **kw): - - self.mountopts = [] - - self.fuse_args = \ - 'fuse_args' in kw and kw.pop('fuse_args') or FuseArgs() - dsd = 'dash_s_do' in kw and kw.pop('dash_s_do') or 'whine' - if 'fetch_mp' in kw: - self.fetch_mp = bool(kw.pop('fetch_mp')) - else: - self.fetch_mp = True - if 'standard_mods' in kw: - smods = bool(kw.pop('standard_mods')) - else: - smods = True - if 'fuse' in kw: - self.fuse = kw.pop('fuse') - if not 'formatter' in kw: - kw['formatter'] = FuseFormatter() - doh = 'dash_o_handler' in kw and kw.pop('dash_o_handler') - - SubbedOptParse.__init__(self, *args, **kw) - - if doh: - self.add_option(doh) - else: - self.add_option('-o', action='store_hive', - subopts_hive=self.fuse_args, help="mount options", - metavar="opt,[opt...]") - - if smods: - self.add_option('-f', action='callback', - callback=lambda *a: self.fuse_args.setmod('foreground'), - help=SUPPRESS_HELP) - self.add_option('-d', action='callback', - callback=lambda *a: self.fuse_args.add('debug'), - help=SUPPRESS_HELP) - - if dsd == 'whine': - def dsdcb(option, opt_str, value, parser): - raise RuntimeError, """ - -! If you want the "-s" option to work, pass -! -! dash_s_do='setsingle' -! -! to the Fuse constructor. See docstring of the FuseOptParse class for an -! explanation why is it not set by default. -""" - - elif dsd == 'setsingle': - def dsdcb(option, opt_str, value, parser): - self.fuse.multithreaded = False - - elif dsd == 'undef': - dsdcb = None - else: - raise ArgumentError, "key `dash_s_do': uninterpreted value " + str(dsd) - - if dsdcb: - self.add_option('-s', action='callback', callback=dsdcb, - help=SUPPRESS_HELP) - - - def exit(self, status=0, msg=None): - if msg: - sys.stderr.write(msg) - - def error(self, msg): - SubbedOptParse.error(self, msg) - raise OptParseError, msg - - def print_help(self, file=sys.stderr): - SubbedOptParse.print_help(self, file) - print >> file - self.fuse_args.setmod('showhelp') - - def print_version(self, file=sys.stderr): - SubbedOptParse.print_version(self, file) - self.fuse_args.setmod('showversion') - - def parse_args(self, args=None, values=None): - o, a = SubbedOptParse.parse_args(self, args, values) - if a and self.fetch_mp: - self.fuse_args.mountpoint = a.pop() - return o, a - - def add_option(self, *opts, **attrs): - if 'mountopt' in attrs: - if opts or 'subopt' in attrs: - raise OptParseError( - "having options or specifying the `subopt' attribute conflicts with `mountopt' attribute") - opts = ('-o',) - attrs['subopt'] = attrs.pop('mountopt') - if not 'dest' in attrs: - attrs['dest'] = attrs['subopt'] - - SubbedOptParse.add_option(self, *opts, **attrs) - - - -########## -### -### The FUSE interface. -### -########## - - - -class ErrnoWrapper(object): - - def __init__(self, func): - self.func = func - - def __call__(self, *args, **kw): - try: - return apply(self.func, args, kw) - except (IOError, OSError), detail: - # Sometimes this is an int, sometimes an instance... - if hasattr(detail, "errno"): detail = detail.errno - return -detail - - -########### Custom objects for transmitting system structures to FUSE - -class FuseStruct(object): - - def __init__(self, **kw): - for k in kw: - setattr(self, k, kw[k]) - - -class Stat(FuseStruct): - """ - Auxiliary class which can be filled up stat attributes. - The attributes are undefined by default. - """ - - def __init__(self, **kw): - self.st_mode = None - self.st_ino = 0 - self.st_dev = 0 - self.st_nlink = None - self.st_uid = 0 - self.st_gid = 0 - self.st_size = 0 - self.st_atime = 0 - self.st_mtime = 0 - self.st_ctime = 0 - - FuseStruct.__init__(self, **kw) - - -class StatVfs(FuseStruct): - """ - Auxiliary class which can be filled up statvfs attributes. - The attributes are 0 by default. - """ - - def __init__(self, **kw): - - self.f_bsize = 0 - self.f_frsize = 0 - self.f_blocks = 0 - self.f_bfree = 0 - self.f_bavail = 0 - self.f_files = 0 - self.f_ffree = 0 - self.f_favail = 0 - self.f_flag = 0 - self.f_namemax = 0 - - FuseStruct.__init__(self, **kw) - - -class Direntry(FuseStruct): - """ - Auxiliary class for carrying directory entry data. - Initialized with `name`. Further attributes (each - set to 0 as default): - - offset - An integer (or long) parameter, used as a bookmark - during directory traversal. - This needs to be set it you want stateful directory - reading. - - type - Directory entry type, should be one of the stat type - specifiers (stat.S_IFLNK, stat.S_IFBLK, stat.S_IFDIR, - stat.S_IFCHR, stat.S_IFREG, stat.S_IFIFO, stat.S_IFSOCK). - - ino - Directory entry inode number. - - Note that Python's standard directory reading interface is - stateless and provides only names, so the above optional - attributes doesn't make sense in that context. - """ - - def __init__(self, name, **kw): - - self.name = name - self.offset = 0 - self.type = 0 - self.ino = 0 - - FuseStruct.__init__(self, **kw) - - -class Flock(FuseStruct): - """ - Class for representing flock structures (cf. fcntl(3)). - - It makes sense to give values to the `l_type`, `l_start`, - `l_len`, `l_pid` attributes (`l_whence` is not used by - FUSE, see ``fuse.h``). - """ - - def __init__(self, name, **kw): - - self.l_type = None - self.l_start = None - self.l_len = None - self.l_pid = None - - FuseStruct.__init__(self, **kw) - - -class Timespec(FuseStruct): - """ - Cf. struct timespec in time.h: - http://www.opengroup.org/onlinepubs/009695399/basedefs/time.h.html - """ - - def __init__(self, name, **kw): - - self.tv_sec = None - self.tv_nsec = None - - FuseStruct.__init__(self, **kw) - - -class FuseFileInfo(FuseStruct): - - def __init__(self, **kw): - - self.keep = False - self.direct_io = False - - FuseStruct.__init__(self, **kw) - - - -########## Interface for requiring certain features from your underlying FUSE library. - -def feature_needs(*feas): - """ - Get info about the FUSE API version needed for the support of some features. - - This function takes a variable number of feature patterns. - - A feature pattern is either: - - - an integer (directly referring to a FUSE API version number) - - a built-in feature specifier string (meaning defined by dictionary) - - a string of the form ``has_foo``, where ``foo`` is a filesystem method - (refers to the API version where the method has been introduced) - - a list/tuple of other feature patterns (matches each of its members) - - a regexp (meant to be matched against the builtins plus ``has_foo`` - patterns; can also be given by a string of the from "re:*") - - a negated regexp (can be given by a string of the form "!re:*") - - If called with no arguments, then the list of builtins is returned, mapped - to their meaning. - - Otherwise the function returns the smallest FUSE API version number which - has all the matching features. - - Builtin specifiers worth to explicit mention: - - ``stateful_files``: you want to use custom filehandles (eg. a file class). - - ``*``: you want all features. - - while ``has_foo`` makes sense for all filesystem method ``foo``, some - of these can be found among the builtins, too (the ones which can be - handled by the general rule). - - specifiers like ``has_foo`` refer to requirement that the library knows of - the fs method ``foo``. - """ - - fmap = {'stateful_files': 22, - 'stateful_dirs': 23, - 'stateful_io': ('stateful_files', 'stateful_dirs'), - 'stateful_files_keep_cache': 23, - 'stateful_files_direct_io': 23, - 'keep_cache': ('stateful_files_keep_cache',), - 'direct_io': ('stateful_files_direct_io',), - 'has_opendir': ('stateful_dirs',), - 'has_releasedir': ('stateful_dirs',), - 'has_fsyncdir': ('stateful_dirs',), - 'has_create': 25, - 'has_access': 25, - 'has_fgetattr': 25, - 'has_ftruncate': 25, - 'has_fsinit': ('has_init'), - 'has_fsdestroy': ('has_destroy'), - 'has_lock': 26, - 'has_utimens': 26, - 'has_bmap': 26, - 'has_init': 23, - 'has_destroy': 23, - '*': '!re:^\*$'} - - if not feas: - return fmap - - def resolve(args, maxva): - - for fp in args: - if isinstance(fp, int): - maxva[0] = max(maxva[0], fp) - continue - if isinstance(fp, list) or isinstance(fp, tuple): - for f in fp: - yield f - continue - ma = isinstance(fp, str) and re.compile("(!\s*|)re:(.*)").match(fp) - if isinstance(fp, type(re.compile(''))) or ma: - neg = False - if ma: - mag = ma.groups() - fp = re.compile(mag[1]) - neg = bool(mag[0]) - for f in fmap.keys() + [ 'has_' + a for a in Fuse._attrs ]: - if neg != bool(re.search(fp, f)): - yield f - continue - ma = re.compile("has_(.*)").match(fp) - if ma and ma.groups()[0] in Fuse._attrs and not fp in fmap: - yield 21 - continue - yield fmap[fp] - - maxva = [0] - while feas: - feas = set(resolve(feas, maxva)) - - return maxva[0] - - -def APIVersion(): - """Get the API version of your underlying FUSE lib""" - - return FuseAPIVersion() - - -def feature_assert(*feas): - """ - Takes some feature patterns (like in `feature_needs`). - Raises a fuse.FuseError if your underlying FUSE lib fails - to have some of the matching features. - - (Note: use a ``has_foo`` type feature assertion only if lib support - for method ``foo`` is *necessary* for your fs. Don't use this assertion - just because your fs implements ``foo``. The usefulness of ``has_foo`` - is limited by the fact that we can't guarantee that your FUSE kernel - module also supports ``foo``.) - """ - - fav = APIVersion() - - for fea in feas: - fn = feature_needs(fea) - if fav < fn: - raise FuseError( - "FUSE API version %d is required for feature `%s' but only %d is available" % \ - (fn, str(fea), fav)) - - -############# Subclass this. - -class Fuse(object): - """ - Python interface to FUSE. - - Basic usage: - - - instantiate - - - add options to `parser` attribute (an instance of `FuseOptParse`) - - - call `parse` - - - call `main` - """ - - _attrs = ['getattr', 'readlink', 'readdir', 'mknod', 'mkdir', - 'unlink', 'rmdir', 'symlink', 'rename', 'link', 'chmod', - 'chown', 'truncate', 'utime', 'open', 'read', 'write', 'release', - 'statfs', 'fsync', 'create', 'opendir', 'releasedir', 'fsyncdir', - 'flush', 'fgetattr', 'ftruncate', 'getxattr', 'listxattr', - 'setxattr', 'removexattr', 'access', 'lock', 'utimens', 'bmap', - 'fsinit', 'fsdestroy'] - - fusage = "%prog [mountpoint] [options]" - - def __init__(self, *args, **kw): - """ - Not much happens here apart from initializing the `parser` attribute. - Arguments are forwarded to the constructor of the parser class almost - unchanged. - - The parser class is `FuseOptParse` unless you specify one using the - ``parser_class`` keyword. (See `FuseOptParse` documentation for - available options.) - """ - - if not fuse_python_api: - raise RuntimeError, __name__ + """.fuse_python_api not defined. - -! Please define """ + __name__ + """.fuse_python_api internally (eg. -! -! (1) """ + __name__ + """.fuse_python_api = """ + `FUSE_PYTHON_API_VERSION` + """ -! -! ) or in the enviroment (eg. -! -! (2) FUSE_PYTHON_API=0.1 -! -! ). -! -! If you are actually developing a filesystem, probably (1) is the way to go. -! If you are using a filesystem written before 2007 Q2, probably (2) is what -! you want." -""" - - def malformed(): - raise RuntimeError, \ - "malformatted fuse_python_api value " + `fuse_python_api` - if not isinstance(fuse_python_api, tuple): - malformed() - for i in fuse_python_api: - if not isinstance(i, int) or i < 0: - malformed() - - if fuse_python_api > FUSE_PYTHON_API_VERSION: - raise RuntimeError, """ -! You require FUSE-Python API version """ + `fuse_python_api` + """. -! However, the latest available is """ + `FUSE_PYTHON_API_VERSION` + """. -""" - - self.fuse_args = \ - 'fuse_args' in kw and kw.pop('fuse_args') or FuseArgs() - - if get_compat_0_1(): - return self.__init_0_1__(*args, **kw) - - self.multithreaded = True - - if not 'usage' in kw: - kw['usage'] = self.fusage - if not 'fuse_args' in kw: - kw['fuse_args'] = self.fuse_args - kw['fuse'] = self - parserclass = \ - 'parser_class' in kw and kw.pop('parser_class') or FuseOptParse - - self.parser = parserclass(*args, **kw) - self.methproxy = self.Methproxy() - - def parse(self, *args, **kw): - """Parse command line, fill `fuse_args` attribute.""" - - ev = 'errex' in kw and kw.pop('errex') - if ev and not isinstance(ev, int): - raise TypeError, "error exit value should be an integer" - - try: - self.cmdline = self.parser.parse_args(*args, **kw) - except OptParseError: - if ev: - sys.exit(ev) - raise - - return self.fuse_args - - def main(self, args=None): - """Enter filesystem service loop.""" - - if get_compat_0_1(): - args = self.main_0_1_preamble() - - d = {'multithreaded': self.multithreaded and 1 or 0} - d['fuse_args'] = args or self.fuse_args.assemble() - - for t in 'file_class', 'dir_class': - if hasattr(self, t): - getattr(self.methproxy, 'set_' + t)(getattr(self,t)) - - for a in self._attrs: - b = a - if get_compat_0_1() and a in self.compatmap: - b = self.compatmap[a] - if hasattr(self, b): - c = '' - if get_compat_0_1() and hasattr(self, a + '_compat_0_1'): - c = '_compat_0_1' - d[a] = ErrnoWrapper(self.lowwrap(a + c)) - - try: - main(**d) - except FuseError: - if args or self.fuse_args.mount_expected(): - raise - - def lowwrap(self, fname): - """ - Wraps the fname method when the C code expects a different kind of - callback than we have in the fusepy API. (The wrapper is usually for - performing some checks or transfromations which could be done in C but - is simpler if done in Python.) - - Currently `open` and `create` are wrapped: a boolean flag is added - which indicates if the result is to be kept during the opened file's - lifetime or can be thrown away. Namely, it's considered disposable - if it's an instance of FuseFileInfo. - """ - fun = getattr(self, fname) - - if fname in ('open', 'create'): - def wrap(*a, **kw): - res = fun(*a, **kw) - if not res or type(res) == type(0): - return res - else: - return (res, type(res) != FuseFileInfo) - elif fname == 'utimens': - def wrap(path, acc_sec, acc_nsec, mod_sec, mod_nsec): - ts_acc = Timespec(tv_sec = acc_sec, tv_nsec = acc_nsec) - ts_mod = Timespec(tv_sec = mod_sec, tv_nsec = mod_nsec) - return fun(path, ts_acc, ts_mod) - else: - wrap = fun - - return wrap - - def GetContext(self): - return FuseGetContext(self) - - def Invalidate(self, path): - return FuseInvalidate(self, path) - - def fuseoptref(cls): - """ - Find out which options are recognized by the library. - Result is a `FuseArgs` instance with the list of supported - options, suitable for passing on to the `filter` method of - another `FuseArgs` instance. - """ - - import os, re - - pr, pw = os.pipe() - pid = os.fork() - if pid == 0: - os.dup2(pw, 2) - os.close(pr) - - fh = cls() - fh.fuse_args = FuseArgs() - fh.fuse_args.setmod('showhelp') - fh.main() - sys.exit() - - os.close(pw) - - fa = FuseArgs() - ore = re.compile("-o\s+([\w\[\]]+(?:=\w+)?)") - fpr = os.fdopen(pr) - for l in fpr: - m = ore.search(l) - if m: - o = m.groups()[0] - oa = [o] - # try to catch two-in-one options (like "[no]foo") - opa = o.split("[") - if len(opa) == 2: - o1, ox = opa - oxpa = ox.split("]") - if len(oxpa) == 2: - oo, o2 = oxpa - oa = [o1 + o2, o1 + oo + o2] - for o in oa: - fa.add(o) - - fpr.close() - return fa - - fuseoptref = classmethod(fuseoptref) - - - class Methproxy(object): - - def __init__(self): - - class mpx(object): - def __init__(self, name): - self.name = name - def __call__(self, *a, **kw): - return getattr(a[-1], self.name)(*(a[1:-1]), **kw) - - self.proxyclass = mpx - self.mdic = {} - self.file_class = None - self.dir_class = None - - def __call__(self, meth): - return meth in self.mdic and self.mdic[meth] or None - - def _add_class_type(cls, type, inits, proxied): - - def setter(self, xcls): - - setattr(self, type + '_class', xcls) - - for m in inits: - self.mdic[m] = xcls - - for m in proxied: - if hasattr(xcls, m): - self.mdic[m] = self.proxyclass(m) - - setattr(cls, 'set_' + type + '_class', setter) - - _add_class_type = classmethod(_add_class_type) - - Methproxy._add_class_type('file', ('open', 'create'), - ('read', 'write', 'fsync', 'release', 'flush', - 'fgetattr', 'ftruncate', 'lock')) - Methproxy._add_class_type('dir', ('opendir',), - ('readdir', 'fsyncdir', 'releasedir')) - - - def __getattr__(self, meth): - - m = self.methproxy(meth) - if m: - return m - - raise AttributeError, "Fuse instance has no attribute '%s'" % meth - - - -########## -### -### Compat stuff. -### -########## - - - - def __init_0_1__(self, *args, **kw): - - self.flags = 0 - multithreaded = 0 - - # default attributes - if args == (): - # there is a self.optlist.append() later on, make sure it won't - # bomb out. - self.optlist = [] - else: - self.optlist = args - self.optdict = kw - - if len(self.optlist) == 1: - self.mountpoint = self.optlist[0] - else: - self.mountpoint = None - - # grab command-line arguments, if any. - # Those will override whatever parameters - # were passed to __init__ directly. - argv = sys.argv - argc = len(argv) - if argc > 1: - # we've been given the mountpoint - self.mountpoint = argv[1] - if argc > 2: - # we've received mount args - optstr = argv[2] - opts = optstr.split(",") - for o in opts: - try: - k, v = o.split("=", 1) - self.optdict[k] = v - except: - self.optlist.append(o) - - - def main_0_1_preamble(self): - - cfargs = FuseArgs() - - cfargs.mountpoint = self.mountpoint - - if hasattr(self, 'debug'): - cfargs.add('debug') - - if hasattr(self, 'allow_other'): - cfargs.add('allow_other') - - if hasattr(self, 'kernel_cache'): - cfargs.add('kernel_cache') - - return cfargs.assemble() - - - def getattr_compat_0_1(self, *a): - from os import stat_result - - return stat_result(self.getattr(*a)) - - - def statfs_compat_0_1(self, *a): - - oout = self.statfs(*a) - lo = len(oout) - - svf = StatVfs() - svf.f_bsize = oout[0] # 0 - svf.f_frsize = oout[lo >= 8 and 7 or 0] # 1 - svf.f_blocks = oout[1] # 2 - svf.f_bfree = oout[2] # 3 - svf.f_bavail = oout[3] # 4 - svf.f_files = oout[4] # 5 - svf.f_ffree = oout[5] # 6 - svf.f_favail = lo >= 9 and oout[8] or 0 # 7 - svf.f_flag = lo >= 10 and oout[9] or 0 # 8 - svf.f_namemax = oout[6] # 9 - - return svf - - - def readdir_compat_0_1(self, path, offset, *fh): - - for name, type in self.getdir(path): - de = Direntry(name) - de.type = type - - yield de - - - compatmap = {'readdir': 'getdir'} rmfile ./mac/fuse.py hunk ./mac/fuseparts/__init__.py 1 -__version__ = "0.2" rmfile ./mac/fuseparts/__init__.py hunk ./mac/fuseparts/setcompatwrap.py 1 -try: - set() - set = set -except: - from sets import Set as set rmfile ./mac/fuseparts/setcompatwrap.py hunk ./mac/fuseparts/subbedopts.py 1 -# -# Copyright (C) 2006 Csaba Henk -# -# This program can be distributed under the terms of the GNU LGPL. -# See the file COPYING. -# -# On 2009-09-21 Csaba Henk granted permission for this file to be -# licensed under the same terms as Tahoe-LAFS itself. -# - -from optparse import Option, OptionParser, OptParseError, OptionConflictError -from optparse import HelpFormatter, IndentedHelpFormatter, SUPPRESS_HELP -from fuseparts.setcompatwrap import set - -########## -### -### Generic suboption parsing stuff. -### -########## - - - -class SubOptsHive(object): - """ - Class for collecting unhandled suboptions. - """ - - def __init__(self): - - self.optlist = set() - self.optdict = {} - - def _str_core(self): - - sa = [] - for k, v in self.optdict.iteritems(): - sa.append(str(k) + '=' + str(v)) - - ra = (list(self.optlist) + sa) or ["(none)"] - ra.sort() - return ra - - def __str__(self): - return "< opts: " + ", ".join(self._str_core()) + " >" - - def canonify(self): - """ - Transform self to an equivalent canonical form: - delete optdict keys with False value, move optdict keys - with True value to optlist, stringify other values. - """ - - for k, v in self.optdict.iteritems(): - if v == False: - self.optdict.pop(k) - elif v == True: - self.optdict.pop(k) - self.optlist.add(v) - else: - self.optdict[k] = str(v) - - def filter(self, other): - """ - Throw away those options which are not in the other one. - Returns a new instance with the rejected options. - """ - - self.canonify() - other.canonify() - - rej = self.__class__() - rej.optlist = self.optlist.difference(other.optlist) - self.optlist.difference_update(rej.optlist) - for x in self.optdict.copy(): - if x not in other.optdict: - self.optdict.pop(x) - rej.optdict[x] = None - - return rej - - def add(self, opt, val=None): - """Add a suboption.""" - - ov = opt.split('=', 1) - o = ov[0] - v = len(ov) > 1 and ov[1] or None - - if (v): - if val != None: - raise AttributeError, "ambiguous option value" - val = v - - if val == False: - return - - if val in (None, True): - self.optlist.add(o) - else: - self.optdict[o] = val - - - -class SubbedOpt(Option): - """ - `Option` derivative enhanced with the attribute of being a suboption of - some other option (like ``foo`` and ``bar`` for ``-o`` in ``-o foo,bar``). - """ - - ATTRS = Option.ATTRS + ["subopt", "subsep", "subopts_hive"] - ACTIONS = Option.ACTIONS + ("store_hive",) - STORE_ACTIONS = Option.STORE_ACTIONS + ("store_hive",) - TYPED_ACTIONS = Option.TYPED_ACTIONS + ("store_hive",) - - def __init__(self, *opts, **attrs): - - self.subopt_map = {} - - if "subopt" in attrs: - self._short_opts = [] - self._long_opts = [] - self._set_opt_strings(opts) - self.baseopt = self._short_opts[0] or self._long_opts[0] - opts = () - - Option.__init__(self, *opts, **attrs) - - def __str__(self): - pf = "" - if hasattr(self, "subopt") and self.subopt: - pf = " %s...,%s,..." % (self.baseopt, self.subopt) - return Option.__str__(self) + pf - - def _check_opt_strings(self, opts): - return opts - - def _check_dest(self): - try: - Option._check_dest(self) - except IndexError: - if self.subopt: - self.dest = "__%s__%s" % (self.baseopt, self.subopt) - self.dest = self.dest.replace("-", "") - else: - raise - - def get_opt_string(self): - if hasattr(self, 'subopt'): - return self.subopt - else: - return Option.get_opt_string(self) - - def take_action(self, action, dest, opt, value, values, parser): - if action == "store_hive": - if not hasattr(values, dest) or getattr(values, dest) == None: - if hasattr(self, "subopts_hive") and self.subopts_hive: - hive = self.subopts_hive - else: - hive = parser.hive_class() - setattr(values, dest, hive) - for o in value.split(self.subsep or ","): - oo = o.split('=') - ok = oo[0] - ov = None - if (len(oo) > 1): - ov = oo[1] - if ok in self.subopt_map: - self.subopt_map[ok].process(ok, ov, values, parser) - else: - getattr(values, dest).add(*oo) - return - Option.take_action(self, action, dest, opt, value, values, parser) - - def register_sub(self, o): - """Register argument a suboption for `self`.""" - - if o.subopt in self.subopt_map: - raise OptionConflictError( - "conflicting suboption handlers for `%s'" % o.subopt, - o) - self.subopt_map[o.subopt] = o - - CHECK_METHODS = [] - for m in Option.CHECK_METHODS: - #if not m == Option._check_dest: - if not m.__name__ == '_check_dest': - CHECK_METHODS.append(m) - CHECK_METHODS.append(_check_dest) - - - -class SubbedOptFormatter(HelpFormatter): - - def format_option_strings(self, option): - if hasattr(option, "subopt") and option.subopt: - res = '-o ' + option.subopt - if option.takes_value(): - res += "=" - res += option.metavar or 'FOO' - return res - - return HelpFormatter.format_option_strings(self, option) - - - -class SubbedOptIndentedFormatter(IndentedHelpFormatter, SubbedOptFormatter): - - def format_option_strings(self, option): - return SubbedOptFormatter.format_option_strings(self, option) - - - -class SubbedOptParse(OptionParser): - """ - This class alters / enhances `OptionParser` with *suboption handlers*. - - That is, calling `sop.add_option('-x', subopt=foo)` installs a handler - which will be triggered if there is ``-x foo`` in the command line being - parsed (or, eg., ``-x foo,bar``). - - Moreover, ``-x`` implicitly gets a handler which collects the unhandled - suboptions of ``-x`` into a `SubOptsHive` instance (accessible post festam - via the `x` attribute of the returned Values object). (The only exception - is when ``-x`` has *explicitly* been added with action ``store_hive``. - This opens up the possibility of customizing the ``-x`` handler at some - rate.) - - Suboption handlers have all the nice features of normal option handlers, - eg. they are displayed in the automatically generated help message - (and can have their own help info). - """ - - def __init__(self, *args, **kw): - - if not 'formatter' in kw: - kw['formatter'] = SubbedOptIndentedFormatter() - if not 'option_class' in kw: - kw['option_class'] = SubbedOpt - if 'hive_class' in kw: - self.hive_class = kw.pop('hive_class') - else: - self.hive_class = SubOptsHive - - OptionParser.__init__(self, *args, **kw) - - def add_option(self, *args, **kwargs): - if 'action' in kwargs and kwargs['action'] == 'store_hive': - if 'subopt' in kwargs: - raise OptParseError( - """option can't have a `subopt' attr and `action="store_hive"' at the same time""") - if not 'type' in kwargs: - kwargs['type'] = 'string' - elif 'subopt' in kwargs: - o = self.option_class(*args, **kwargs) - - oo = self.get_option(o.baseopt) - if oo: - if oo.action != "store_hive": - raise OptionConflictError( - "can't add subopt as option has already a handler that doesn't do `store_hive'", - oo) - else: - self.add_option(o.baseopt, action='store_hive', - metavar="sub1,[sub2,...]") - oo = self.get_option(o.baseopt) - - oo.register_sub(o) - - args = (o,) - kwargs = {} - - return OptionParser.add_option(self, *args, **kwargs) rmfile ./mac/fuseparts/subbedopts.py rmdir ./mac/fuseparts hunk ./mac/setup.py 1 -#!/usr/bin/env python - -from setuptools import setup -import py2app - -import glob -import os -import sys - -# pull in formless, as best way to grab its .css file depenedency -import formless - -def find_formless_css(): - fpath = formless.__path__[0] - # first look for it from a regular package install - f = os.path.join(fpath, 'freeform-default.css') - if os.path.exists(f): - return f - # then try looking within .egg structured files - pyver = 'python%s.%s' % (sys.version_info[0], sys.version_info[1]) - f = os.path.join(fpath, '../lib', pyver, 'site-packages/formless/freeform-default.css') - if os.path.exists(f): - return f - raise RuntimeError("Can't find formless .css file") - -data_files = [ - ('pkg_resources/allmydata/web', glob.glob('../src/allmydata/web/*')), - ('pkg_resources/formless', [find_formless_css()]), - ] - -from setuptools import find_packages - -packages = find_packages('../src') - -py2app_options = { - 'argv_emulation': True, - 'iconfile': 'allmydata.icns', - 'plist': { 'CFBundleIconFile': 'allmydata.icns', }, - } - -setup_args = { - 'name': 'Allmydata', - 'description': 'The various parts of the Allmydata Tahoe system', - 'author': 'Allmydata, Inc.', - 'app': [ 'allmydata_tahoe.py' ], - 'options': { 'py2app': py2app_options }, - 'data_files': data_files, - 'setup_requires': [ 'py2app', 'macholib>=1.2' ], - 'packages': packages, -} - - -if __name__ == '__main__': - if not os.path.exists('allmydata'): - os.symlink('../src/allmydata', 'allmydata') - setup(**setup_args) - -junk = [formless, py2app] -del junk - - - - rmfile ./mac/setup.py rmdir ./mac } [NEWS: remove unmaintained Mac GUI app. refs #1282 david-sarah@jacaranda.org**20101226020858 Ignore-this: 40474a07f4a550b48563d35350be7ab5 ] hunk ./NEWS 3 User visible changes in Tahoe-LAFS. -*- outline; coding: utf-8 -*- +* Trunk, post-1.8.1 + +** Removals + + - The unmaintained GUI application for Mac OS X has been removed. (#1282) + + * Release 1.8.1 (2010-10-28) ** Bugfixes and Improvements Context: [docs/architecture.rst: correct rst syntax. david-sarah@jacaranda.org**20101212202003 Ignore-this: 3fbe12feb28bec6f1c63aedbc79aad21 ] [docs/architecture.rst: formatting. david-sarah@jacaranda.org**20101212201719 Ignore-this: 305fa5dfc2939355eaf6d0d2161eb1ff ] [docs: linkification, wording improvements. david-sarah@jacaranda.org**20101212201234 Ignore-this: 4e67287f527a8bc728cfbd93255d2aae ] [docs: formatting. david-sarah@jacaranda.org**20101212201115 Ignore-this: 2e0ed394ac7726651d3a4f2c4b0d3798 ] [docs/configuration.rst: more formatting tweaks; which -> that. david-sarah@jacaranda.org**20101212195522 Ignore-this: a7becb7021854ca5a90edd892b36fdd7 ] [docs/configuration.rst: more changes to formatting. david-sarah@jacaranda.org**20101212194511 Ignore-this: 491aac33e5f5268d224359f1447d10be ] [docs/configuration.rst: changes to formatting (mainly putting commands and filenames in monospace). david-sarah@jacaranda.org**20101212181828 Ignore-this: 8a1480e2d5f43bee678476424615b50f ] [scripts/backupdb.py: more accurate comment about path field. david-sarah@jacaranda.org**20101212170320 Ignore-this: 50e47a2228a85207bbcd188a78a0d4e6 ] [scripts/cli.py: fix missing 'put' in usage example for 'tahoe put'. david-sarah@jacaranda.org**20101212170207 Ignore-this: 2cbadf066fff611fc03d3c0ff97ce6ec ] [docs/frontends/CLI.rst: changes to formatting (mainly putting commands and filenames in monospace), and to command syntax to reflect that DIRCAP/... is accepted. Clarify the syntax of 'tahoe put' and other minor corrections. Tahoe -> Tahoe-LAFS. david-sarah@jacaranda.org**20101212165800 Ignore-this: a123ef6b564aa8624d1e79c97068ea12 ] [docs/frontends/CLI.rst: Unicode arguments to 'tahoe' work on Windows as of v1.7.1. david-sarah@jacaranda.org**20101212063740 Ignore-this: 3977a99dfa86ac33a44171deaf43aaab ] [docs/known_issues.rst: fix title and linkify another URL. refs #1225 david-sarah@jacaranda.org**20101212062817 Ignore-this: cc91287f7fb51c23440b3d2fe79c449c ] [docs/known_issues.rst: fix an external link. refs #1225 david-sarah@jacaranda.org**20101212062435 Ignore-this: b8cbf12f353131756c358965c48060ec ] [Fix a link from uri.rst to dirnodes.rst. refs #1225 david-sarah@jacaranda.org**20101212054502 Ignore-this: af6205299f5c9a33229cab259c00f9d5 ] [Fix a link from webapi.rst to FTP-and-SFTP.rst. refs #1225 david-sarah@jacaranda.org**20101212053435 Ignore-this: 2b9f88678c3447ea860d6b61e8799858 ] [More specific hyperlink to architecture.rst from helper.rst. refs #1225 david-sarah@jacaranda.org**20101212052607 Ignore-this: 50424c768fca481252fabf58424852dc ] [Update hyperlinks between docs, and linkify some external references. refs #1225 david-sarah@jacaranda.org**20101212051459 Ignore-this: cd43a4c3d3de1f832abfa88d5fc4ace1 ] [docs/specifications/dirnodes.rst: fix references to mutable.rst. refs #1225 david-sarah@jacaranda.org**20101212012720 Ignore-this: 6819b4b4e06e947ee48b365e840db37d ] [docs/specifications/mutable.rst: correct the magic string for v1 mutable containers. refs #1225 david-sarah@jacaranda.org**20101212011400 Ignore-this: 99a5fcdd40cef83dbb08f323f6cdaaca ] [Move .txt files in docs/frontends and docs/specifications to .rst. refs #1225 david-sarah@jacaranda.org**20101212010251 Ignore-this: 8796d35d928370f7dc6ad2dafdc1c0fe ] [Convert docs/frontends and docs/specifications to reStructuredText format (not including file moves). david-sarah@jacaranda.org**20101212004632 Ignore-this: e3ceb2d832d73875abe48624ddbb5622 ] [scripts/cli.py: remove the disclaimer in the help for 'tahoe cp' that it does not handle non-ASCII filenames well. (At least, we intend to handle them.) david-sarah@jacaranda.org**20101130002145 Ignore-this: 94c003efaa20b9eb4a83503d79844ca ] [relnotes.txt: fifth -> sixth labor-of-love release zooko@zooko.com**20101129045647 Ignore-this: 21c245015268b38916e3a138d256c09d ] [Makefile: BB_BRANCH is set to the empty string for trunk, not the string 'trunk'. david-sarah@jacaranda.org**20101128233512 Ignore-this: 5a7ef8eb10475636d21b91e25b56c369 ] [relnotes.txt: eleventh -> twelfth release. david-sarah@jacaranda.org**20101128223321 Ignore-this: 1e26410156a665271c1170803dea2c0d ] [relnotes.tst: point to known_issues.rst, not known_issues.txt. david-sarah@jacaranda.org**20101128222918 Ignore-this: 60194eb4544cac446fe4f60b3e34b887 ] [quickstart.html: fix link to point to allmydata-tahoe-1.8.1.zip. david-sarah@jacaranda.org**20101128221728 Ignore-this: 7b3ee86f8256aa12f5d862f689f3ee29 ] [TAG allmydata-tahoe-1.8.1 david-sarah@jacaranda.org**20101128212336 Ignore-this: 9c18bdeaef4822f590d2a0d879e00621 ] Patch bundle hash: 9a441e14649b127d6fddbd88cc7ebfb4e935f86e