403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python2.6/site-packages/orca/scripts/toolkits/Gecko/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.6/site-packages/orca/scripts/toolkits/Gecko/bookmarks.pyo
Ñò
y#ÝJc@s‡dZdZdZdZdZdZddkZddkZddki	Z	ddk
iZddkl
Z
d	eifd
„ƒYZdS(sÀCustom script for Gecko toolkit.
Please refer to the following URL for more information on the AT-SPI
implementation in Gecko:
http://developer.mozilla.org/en/docs/Accessibility/ATSPI_Support
s$Id$s
$Revision$s$Date$s-Copyright (c) 2005-2008 Sun Microsystems Inc.tLGPLiÿÿÿÿN(t_tGeckoBookmarkscBs}eZd„Zd„Zdd„Zd„Zd„Zd„Zd„Z	dd„Z
dd„Zd	„Zd
„Z
d„ZRS(
cCs tii||ƒh|_dS(N(t	bookmarkst	Bookmarkst__init__t_currentbookmarkindex(tselftscript((sI/usr/lib/python2.6/site-packages/orca/scripts/toolkits/Gecko/bookmarks.pyR.scCs…|i|iƒf}|iiƒ\}}|iƒ}||f|i|<tdƒg}|i|iii	|ƒƒt
i|ƒdS(sQ Add an in-page accessible object bookmark for this key and
        webpage URI. sentered bookmarkN(thw_codet	getURIKeyt_scripttgetCaretContextt
_objToPatht
_bookmarksRtextendtspeechGeneratortgenerateSpeechtspeechtspeak(Rt
inputEventtindextobjtcharacterOffsettpatht
utterances((sI/usr/lib/python2.6/site-packages/orca/scripts/toolkits/Gecko/bookmarks.pytaddBookmark3scCsÙ|p|i|iƒf}y|i|\}}Wn!tj
o|iiƒdSX|i|ƒ}|o[|ii||ƒ|ii|ƒ|ii	|ii
||ƒƒ|d|i|d<n|iiƒdS(s< Go to the bookmark indexed at this key and this page's URI Nii(R	R
RtKeyErrorRt
systemBeept	pathToObjtsetCaretPositiont
updateBraillet
speakContentstgetObjectContentsAtOffsetR(RRRRRR((sI/usr/lib/python2.6/site-packages/orca/scripts/toolkits/Gecko/bookmarks.pytgoToBookmarkBs
	c
Csz|i|iƒf}y&|i|\}}|i|ƒ}Wn!tj
o|iiƒdSX|iiƒ\}}|ii||ƒot	i
tdƒƒdS|ii|i|iƒot	i
tdƒƒdSg}|i}	x"|	o|i
|	ƒ|	i}	qèW|i}	xM|	oE|i|	ƒdjo"t	i
tdƒ|	iƒƒdS|	i}	qWt	i
tdƒƒdS(se Report "Where am I" information for this bookmark relative to the 
        current pointer location.Nsbookmark is current objects,bookmark and current object have same parentisshared ancestor %sscomparison unknown(R	R
RRRRRRtisSameObjectRRRtparenttappendtcounttgetRole(
RRRRRRtcur_objtcur_characterOffsettbookmark_ancestorstp((sI/usr/lib/python2.6/site-packages/orca/scripts/toolkits/Gecko/bookmarks.pytbookmarkCurrentWhereAmIYs8
	
	cCsªh}x5|iiƒD]$\}}|d|df||<qWy$|i|ƒtitdƒƒWn&tj
otitdƒƒnXx|iD]
}|ƒq•WdS(s% Save the bookmarks for this script. iisbookmarks savedsbookmarks could not be savedN(Rt	iteritemstsaveBookmarksToDiskRRRtIOErrort_saveObservers(RRtsavedRtbookmarkto((sI/usr/lib/python2.6/site-packages/orca/scripts/toolkits/Gecko/bookmarks.pyt
saveBookmarksŒs

cCsG|iiƒ}|iƒ}g}x4|D],}|d|jo|i|dƒq(q(W|iƒt|ƒdjo|iiƒdSt|ƒdjp||ijo"|i	dd|d|fƒdSy;|i|i|ƒ}|i	dd||d|fƒWn9tt
tfj
o$|i	dd|d|fƒnXdS(su Go to the next bookmark location.  If no bookmark has yet to be
        selected, the first bookmark will be used.  iiNR(RtkeysR
R%tsorttlenRRRR"tNoneRt
ValueErrorRt
IndexError(RRtbm_keystcurrent_uritthispage_hwkeystbm_keyR((sI/usr/lib/python2.6/site-packages/orca/scripts/toolkits/Gecko/bookmarks.pytgoToNextBookmark¤s,

cCsG|iiƒ}|iƒ}g}x4|D],}|d|jo|i|dƒq(q(W|iƒt|ƒdjo|iiƒdSt|ƒdjp||ijo"|i	dd|d|fƒdSy;|i|i|ƒ}|i	dd||d|fƒWn9tt
tfj
o$|i	dd|d|fƒnXdS(sy Go to the previous bookmark location.  If no bookmark has yet to be
        selected, the first bookmark will be used.  iiNR(RR5R
R%R6R7RRRR"R8RR9RR:(RRR;R<R=R>R((sI/usr/lib/python2.6/site-packages/orca/scripts/toolkits/Gecko/bookmarks.pytgoToPrevBookmarkÉs,

cCs|id|ƒS(sôGiven an object, return it's saving (pickleable) format.  In this 
        case, the obj path is determined relative to the document frame and is 
        returned as a list.  If obj is not provided, the current caret context
        is used.  t	start_obj(R
(RR((sI/usr/lib/python2.6/site-packages/orca/scripts/toolkits/Gecko/bookmarks.pyt_objToPickleêscCsÂ|p|iiƒ\}}n|djp|iƒtijogSg}|i|iƒƒ|i}xM|oE|iƒtijo|i	ƒ|S|i|iƒƒ|i}qmWgSdS(sGiven an object, return it's path from the root accessible.  If obj 
        is not provided, the current caret context is used. N(
RRR8R'tpyatspitROLE_DOCUMENT_FRAMER%tgetIndexInParentR$treverse(RRARRR+((sI/usr/lib/python2.6/site-packages/orca/scripts/toolkits/Gecko/bookmarks.pyR
ñs 
	
cCs
|i|ƒS(sKReturn the s with the given path (relative to the
        document frame). (R(RR((sI/usr/lib/python2.6/site-packages/orca/scripts/toolkits/Gecko/bookmarks.pyt_pickleToObjscCsI|iiƒ}x3|D]+}y||}Wqtj
odSXqW|S(sPReturn the object with the given path (relative to the
        document frame). N(RtgetDocumentFrameR:R8(RRt	returnobjtchildnumber((sI/usr/lib/python2.6/site-packages/orca/scripts/toolkits/Gecko/bookmarks.pyRs
cCsB|iiƒ}|o$ti|ƒ}di|dd!ƒSdSdS(sqReturns the URI key for a given page as a URI stripped of 
        parameters?query#fragment as seen in urlparse.tiiN(RtgetDocumentFrameURIturlparsetjoinR8(Rturit
parsed_uri((sI/usr/lib/python2.6/site-packages/orca/scripts/toolkits/Gecko/bookmarks.pyR
s
N(t__name__t
__module__RRR8R"R,R4R?R@RBR
RGRR
(((sI/usr/lib/python2.6/site-packages/orca/scripts/toolkits/Gecko/bookmarks.pyR-s			3		%	!		(t__doc__t__id__t__version__t__date__t
__copyright__t__license__RCRMtorca.speechRtorca.bookmarksRtorca.orca_i18nRRR(((sI/usr/lib/python2.6/site-packages/orca/scripts/toolkits/Gecko/bookmarks.pyt<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit