KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /proc/21573/root/usr/lib/python2.4/site-packages/setroubleshoot/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21573/root/usr/lib/python2.4/site-packages/setroubleshoot/email_dialog.pyo
m๒
3ิUc@sฝdgZdkTdkZdkZdkZeidƒdkZdkZdkZdk	Z	dk
Z
dkTdkTdkTdk
TdkTdZeeƒ\ZZZdefd„ƒYZdS(tEmailDialog(t*Ns2.0icBstZdd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„Zd„Z
d„Zd
„Zd„Zd„Zd„Zdd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z RS(NcCs–titdƒ|ddƒ|_|iiddƒ|iii	t
ƒtidtiƒ|_
|i
id|iƒ|iii|i
ƒtidtiƒ|_|iid|iƒ|iii|iƒ|iitiƒtidtiƒ|_|iid|iƒ|iitƒtidtiƒ|_|iid|iƒ|iit
ƒtitdƒƒ|_|iid|i ƒ|iit
ƒti!ƒ|_"|i"id|i#ƒ|i"id|i$ƒ|i%|ƒ|iii'|i(ttdƒti)t
ƒ}|iii'|t
tdƒ|i'|ittdƒ|i'|ittdƒ|i'|ittdƒ|i'|i"ttdƒdS(	Ns Setroubleshoot Email Preferencesii,tstocktclickedtAddtchangedtactivate(+tgtktDialogt_tparenttNonetselftdlgtset_default_sizetvboxtset_homogeneoustFalsetButtontSTOCK_CANCELt
cancel_buttontconnectton_cancel_button_clickedtaction_areataddtSTOCK_OKt	ok_buttonton_ok_button_clickedtset_default_responsetRESPONSE_OKt
STOCK_HELPthelp_email_buttonton_help_email_button_clickedt
set_sensitivetTruetSTOCK_DELETEtdelete_email_buttonton_delete_email_button_clickedtadd_email_buttonton_add_email_button_clickedtEntrytadd_email_entryton_add_email_entry_changedton_add_email_entry_activatetinit_list_viewt
recipient_sett
pack_startt
email_listtHBoxthbox(RR-R
R1((t?/usr/lib/python2.4/site-packages/setroubleshoot/email_dialog.pyt__init__3s<!
cCsU|iiƒ|iiƒ|_|iiƒ|itijo|iƒSndSdS(N(
RR
tshow_alltruntresponsetdestroyRRtget_recipient_setR(R((R2R5as

cCshg}|i}|iƒ}x:|o2|i|tƒ}|i	|ƒ|i
|ƒ}qWt|ƒ}|S(N(
trecipient_listRtemail_list_modeltmodeltget_iter_firsttitert	get_valuetPYOBJECT_COLUMNt	recipienttappendt	iter_nexttSEEmailRecipientSetR-(RR9R-R=R@R;((R2R8ks	
cCs#tdƒ}t|d|iƒdS(NseThis is a list of email addresses to whom alerts will be
sent.

To add an email address type the addess in the
input box and click the Add button. Duplicate addresses
are not permitted.

To delete one or more email addresses select the addresses
in the list and click the Delete button or use the Delete key.
Or your may edit the address and clear its value.

To edit an address click the address to begin editing.

To sort the list differently click on the column heading.

To change the filtering option click on the filter type and
pick from the list. The filter applies to all alerts for this
email address.

R
(R	t	help_texttdisplay_helpRR
(RtbuttonRD((R2R vscCs|i|iƒƒdS(N(Rtdelete_recipientstget_selected_recipients(RRF((R2R%ŽscCs|iƒdS(N(Rtcommit_email_entry(RRF((R2R'‘scCsA|iƒiƒ}|o|iitƒn|iitƒdS(N(	tentrytget_texttstripttextRR&R!R"R(RRJRM((R2R*”scCs|iitiƒtS(N(RR
R6RtRESPONSE_CANCELR"(RRF((R2R›scCs(|iƒo|iitiƒntS(N(RRIR
R6RRR"(RRF((R2RŸs
cCs$|iitƒ|iidƒdS(Nt(RR&R!RR)tset_text(R((R2tclear_email_entryจscCs|iƒdS(N(RRI(RRJ((R2R+ฌscCs1|iiƒiƒ}|ptSn|i|ƒS(N(RR)RKRLRMR"t	add_email(RRM((R2RIฏscCsณtotid|ƒn|iƒ}|ptSnt|ƒptd|ƒtSn|iƒ|i	|ƒdj	o#totid|ƒntSn|it|ƒƒt
S(Nsadd_email: address='%s'sinvalid email address = '%s's'add_email: address='%s' already in list(tdebugtlog_guitaddressRLRtvalid_email_addresst
display_errorRRQtfind_recipientRt
new_model_rowtSEEmailRecipientR"(RRU((R2RRตs

c
Csttiƒ|_|iid|iƒtititi	ti
ƒ|_ti|iƒ|_
|ii|i
ƒ|ii|i
ƒtiƒ}	|	itƒ|ii|	ƒtititi
ƒ}d}xItttgD]8}t|}t|t|ƒƒ}|i||fƒqุW|ii ƒ}|i"|i#ƒƒ}|d7}t%i&|i'ƒ|ƒ}ti)ƒ}|i+d|ƒ|i+dtƒ|i+dt,ƒ|i+ddƒ|id|i-|i
|ƒtit.d	ƒ|ƒ}	|	i/ti0ƒ|	i1|ƒ|	i2||i3t4ƒ|	i5t4ƒ|i
i6t4|i7t4ƒ|ii|	ƒti8ƒ}|id|i9ƒ|i+dt,ƒtit.d
ƒ|dt:ƒ}	|	i2||i;t:ƒ|	i5t:ƒ|i
i6t:|i7t:ƒ|ii|	ƒ|ii<t,ƒ|ii=ƒ|_>|i>i?ti@ƒ|i>id|iAƒ|i>iBdƒ|i>iCƒ\}}
|i
i5t:tiFƒ|iG|ƒdS(
Ntkey_press_eventiiR;s	has-entryteditablestext-columnteditedsFilter Types
Email AddressRMR(IRtTreeViewRR/Rton_key_presst	ListStoretgobjectt
TYPE_PYOBJECTtTYPE_BOOLEANtTYPE_STRINGR:t
TreeModelSorttemail_list_model_sortt	set_modeltTreeViewColumnt	tv_columntset_visibleRt
append_columntTYPE_INTtfilter_modeltmax_string_lentFILTER_AFTER_FIRSTtFILTER_NEVERt
FILTER_ALWAYStfilter_typetfilter_textt
filter_stringtmaxtlenRAtget_pango_contexttcontexttget_metricstget_font_descriptiontmetricstpangotPIXELStget_approximate_char_widthtfilter_column_widthtCellRendererCombotcelltset_propertyR"tfilter_type_editedR	t
set_sizingtTREE_VIEW_COLUMN_FIXEDtset_fixed_widthtset_cell_data_functfilter_type_cell_datatFILTER_TYPE_COLUMNtset_sort_column_idt
set_sort_functmodel_sort_functCellRendererTextton_address_editedtADDRESS_COLUMNttext_cell_datatset_rules_hintt
get_selectiontemail_list_selectiontset_modetSELECTION_MULTIPLEton_selection_changedtselect_pathtget_selected_rowsR;t	row_pathstSORT_ASCENDINGtinit_recipientsR-(
RR-RRRmRtRrRnR{RiR™RxR;((R2R,ษsh





cCs^|iiƒ\}}g}x<|D]4}|i|ƒ}|i	|t
ƒ}|i|ƒq"W|S(N(
RR“R˜R;R™tinfostpathtget_iterR=R>R?R@RA(RR=R™RRœR@R;((R2RH"scCsR|djodSnx6|D].}|i|iƒ\}}}|i|ƒqWdS(N(	t
recipientsRR@RRXRUR;R=tremove(RRŸR=R;R@((R2RG+s
cCs‡|djo
|i}n|iƒ}|iƒ}xN|oF|i|t	ƒ}|i|jo|||fSn|i|ƒ}q5WdS(N(R;RRR:RURLR<R=R>R?R@RB(RRUR;R=R@((R2RX2s

cCsyto=tidg}|iƒdD]}||dq%~ƒn|iƒo|ii	t
ƒn|ii	tƒt
S(Ns$on_selection_changed(): selection=%sii(RSRTt_[1]t	selectionR˜txtcount_selected_rowsRR$R!R"R(RRขRกRฃ((R2R–?s=
cCs-|i|tƒ}|idt|iƒdS(NRM(	R;R>R=R?R@RR‚RsRr(RtcolumnRR;R=tcolumn_indexR@((R2RˆKsc
Csd|i|ƒ}|i|tƒ}d}x-|D]%}	||	djo|	d}q.q.W||_dS(Nii(ttv_modelRžRR=R>R?R@RRrtcombo_modeltrowtnew_text(
RRRRชRงRจR=RrR@Rฉ((R2RƒPs	cCs|ii|t|ƒdS(N(RR:tsetR=R?R@(RR=R@((R2tupdate_model_row\scCs#|iiƒ}|i||ƒ|S(N(RR:RAR=RฌR@(RR@R=((R2RY_scCs%x|iD]}|i|ƒq
WdS(N(R-R9R@RRY(RR-R@((R2R›ds
cCsed}|i|tƒ}|djodSn|tjo
|i	}n|t
jo
|i}n|S(N(RtdataR;R>R=R?R@RฆRRUR‰Rr(RR;R=RฆR@Rญ((R2t
get_cell_datahs




cCs)|i|||ƒ}|id|ƒdS(NRM(RRฎR;R=RฆRMRR‚(RRฅRR;R=RฆRM((R2RuscCs7|i|||ƒ}|i|||ƒ}t||ƒS(N(	RRฎR;titer1Rฆtdata1titer2tdata2tcmp(RR;RฏRฑRฆRฐRฒ((R2RŒzscCs(|ii|ƒ}|ii|ƒ}|S(N(RRftconvert_path_to_child_patht	view_patht	base_pathR:RžR=(RRตR=Rถ((R2tget_base_iter_from_view_pathscCsR|ii||ƒ}|djodSn|ii|ƒ}|i	i
|ƒ}|S(N(RRftget_path_at_posRฃtyRตRRดRถR:RžR=(RRฃRนRถR=Rต((R2tget_base_iter_from_x_y„s
cCsจ|iƒ}totid||ƒn|o't|ƒptd|ƒdSqXn|i	|ƒ}|ii|t
ƒ}|p|ii|ƒdSn||_dS(Ns$on_address_edited: path=%s text='%s'sinvalid email address = '%s'(RMRLtnew_addressRSRTRRVRWRRทR=R:R>R?R@R RU(Rt
cell_rendererRRMRปR=R@((R2RŽŒs
cCsAtii|iƒ}|djo|i|iƒƒt	Snt
S(NtDelete(Rtgdktkeyval_nameteventtkeyvaltkeynameRRGRHR"R(RtwidgetRภRย((R2R_žs

(!t__name__t
__module__RR3R5R8R R%R'R*RRRQR+RIRRR,RHRGRXR–RˆRƒRฌRYR›RฎRRŒRทRบRŽR_(((R2R2s<.	
													Y			
							
					(t__all__tsetroubleshoot.gui_utilstostsystpygtktrequireRR|tret	tracebackRatsetroubleshoot.errcodetsetroubleshoot.signaturetsetroubleshoot.utiltsetroubleshoot.logtNUM_COLUMNStrangeR?R‰RtobjectR(RRอRฦRR‰RสRษRฬRRาRaR|RศR?((R2t?s$				
					

Anon7 - 2021