;ò
\µa@c           @   sß   d  k  Z  d  k Z d  k Z d  k Z d  k Z d  k Z d  k Z d  k Z d  k Z d  k	 Z	 d  k
 Z
 d Z d k l Z l Z e i i e d ƒ e i i e i i ƒ Z e i i e i i ƒ Z d „  Z d f  d „  ƒ  YZ d  S(   Ns	   printconf(   s   _s   N_s   /usr/share/localec         C   sV   t  i |  d t  i t  i | ƒ } | i |  ƒ | i t  i	 ƒ | i
 ƒ  | i ƒ  d S(   s   Put up an error dialog.i    N(   s   gtks   MessageDialogs   windows   MESSAGE_ERRORs
   BUTTONS_OKs   msgs   ds   set_transient_fors   set_positions   WIN_POS_CENTER_ON_PARENTs   runs   destroy(   s   windows   msgs   d(    (    s%   /usr/share/printconf/util/addQueue.pys   complain+   s     !
s   addQueuec           B   s…  t  Z d  Z d „  Z d „  Z d „  Z d „  Z d „  Z e d „ Z	 d „  Z
 d „  Z d	 „  Z d
 „  Z d „  Z d „  Z d „  Z e d „ Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z  d „  Z! d „  Z" d  „  Z# d! „  Z$ d" „  Z% d# „  Z& d$ „  Z' d% „  Z( d& „  Z) d' „  Z* d( „  Z+ d) „  Z, RS(*   s6   The GNOME druid implementation for adding a new queue.c         C   s$  | |  _  | |  _ | i d ƒ |  _ | i d ƒ |  _ | i d ƒ |  _ | i d ƒ |  _ | i d ƒ |  _ | i d ƒ |  _	 | i d ƒ |  _
 | i d ƒ |  _ | i d	 ƒ |  _ | i d
 ƒ |  _ | i d ƒ |  _ | i d ƒ |  _ | i d ƒ |  _ | i d ƒ |  _ | i d ƒ |  _ | i d ƒ |  _ | i d ƒ |  _ | i d ƒ |  _ | i d ƒ |  _ | i d ƒ |  _ | i d ƒ |  _ | i d ƒ |  _ | i d ƒ |  _ | i d ƒ |  _ | i d ƒ |  _ | i d ƒ |  _ | i d ƒ |  _ | i d ƒ |  _ | i d ƒ |  _  | i d ƒ |  _! t" i# t$ t$ ƒ |  _% |  i% i& d t" i' ƒ |  i
 i( |  i% ƒ |  i
 i) d ƒ t" i* t+ d  ƒ t" i, ƒ  d! d ƒ} | i. t" i/ ƒ | i& d ƒ |  i
 i0 | ƒ t" i* t+ d" ƒ t" i, ƒ  d! d# ƒ} | i. t" i/ ƒ | i& d# ƒ |  i
 i0 | ƒ t" i# t$ t$ t1 i2 t$ t$ ƒ |  _3 |  i i( |  i3 ƒ |  i% i& d t" i' ƒ t" i* t+ d$ ƒ t" i, ƒ  d! d ƒ} | i. t" i/ ƒ | i& d ƒ |  i i0 | ƒ t" i* t+ d% ƒ t" i, ƒ  d! d# ƒ} |  i i0 | ƒ t" i# t$ t1 i2 ƒ |  _4 |  i  i( |  i4 ƒ t" i* t+ d& ƒ t" i, ƒ  d! d ƒ} | i. t" i/ ƒ | i& d ƒ |  i  i0 | ƒ |  i  i5 ƒ  } | i7 |  i8 ƒ |  i i9 d' |  i: ƒ | i; d( |  i< ƒ | i; d) |  i: ƒ | i; d* |  i= ƒ | i; d+ |  i> ƒ | i; d, |  i? ƒ | i; d- |  i@ ƒ | i; d. |  iA ƒ | i; d/ |  iB ƒ | i; d0 |  iC ƒ | i; d1 |  iD ƒ | i; d2 |  iE ƒ | i; d3 |  iF ƒ | i; d4 |  iG ƒ | i; d5 |  iH ƒ | i; d6 |  iI ƒ | i; d7 |  iJ ƒ | i; d8 |  iK ƒ | i; d9 |  iL ƒ | i; d: |  iM ƒ |  i iM iN t+ d; ƒ ƒ d  S(<   Ns   addQueueWindows   add_queue_druids   add_queue_type_menus   add_queue_type_notebooks   add_queue_name_entrys   add_queue_description_entrys   add_queue_device_views   customDeviceDialogs   device_entrys   add_queue_ipp_server_entrys   add_queue_ipp_path_entrys   add_queue_lpd_server_entrys   add_queue_lpd_queue_entrys   add_queue_smb_views   passwdDialogs   smb_workgroup_entrys   smb_server_entrys   smb_share_entrys   smb_user_entrys   smb_passwd_entrys   add_queue_ncp_server_entrys   add_queue_ncp_user_entrys   add_queue_ncp_queue_entrys   add_queue_ncp_passwd_entrys   add_queue_jd_printer_entrys   add_queue_jd_port_entrys   add_queue_model_labels   add_queue_mfr_menus   add_queue_printer_views   add_queue_notes_buttoni    s   Devices   texts   Descriptioni   s   Shares   Comments   Models   destroys   on_add_queue_start_page_prepares   on_add_queue_druid_cancels   on_add_queue_druid_helps"   on_add_queue_rescan_button_clickeds"   on_add_queue_custom_button_clickeds   on_add_queue_type_menu_changeds!   on_add_queue_notes_button_clickeds   on_add_queue_name_page_prepares   on_add_queue_name_page_nexts   on_add_queue_type_page_prepares#   on_add_queue_smb_view_row_activateds"   on_add_queue_smb_view_row_expandeds    on_add_queue_smb_specify_clickeds   on_add_queue_type_page_nexts   on_add_queue_model_page_prepares   on_add_queue_mfr_menu_changeds   on_add_queue_model_page_nexts    on_add_queue_finish_page_prepares   on_add_queue_finish_page_finishs   Finish(O   s   parents   selfs   xmls
   get_widgets   windows   druids	   type_menus   notebooks
   name_entrys
   desc_entrys   device_views   custom_dialogs   custom_device_entrys   ipp_server_entrys   ipp_path_entrys   lpd_server_entrys   lpd_queue_entrys   smb_views   passwd_dialogs   smb_workgroup_entrys   smb_server_entrys   smb_share_entrys   smb_user_entrys   smb_passwd_entrys   ncp_server_entrys   ncp_user_entrys   ncp_queue_entrys   ncp_passwd_entrys   jd_printer_entrys   jd_port_entrys   select_model_labels   mfr_menus   printer_views   notes_buttons   gtks	   TreeStores   strs   device_stores   set_sort_column_ids   SORT_ASCENDINGs	   set_models   set_search_columns   TreeViewColumns   _s   CellRendererTexts   cols   set_resizables   TRUEs   append_columns   gobjects   TYPE_PYOBJECTs	   smb_stores   printer_stores   get_selections   slcts   set_select_functions   printer_select_functions   connects   destroys   signal_connects   prepare_start_pages   helps   rescan_button_clickeds   custom_button_clickeds   type_menu_changeds   notes_button_clickeds   prepare_name_pages   validate_name_pages   prepare_type_pages   smb_view_row_activateds   smb_view_row_expandeds   smb_specify_clickeds   validate_type_pages   prepare_model_pages   mfr_menu_changeds   validate_model_pages   prepare_finish_pages   finishs	   set_label(   s   selfs   parents   xmls   slcts   col(    (    s%   /usr/share/printconf/util/addQueue.pys   __init__6   sÖ    				
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
c         C   s,   |  i i ƒ  |  i i o t i ƒ  n d S(   s&   Callback for the window being deleted.N(   s   selfs   windows   hides   parents   hiddens   gtks   mainquit(   s   selfs   druid(    (    s%   /usr/share/printconf/util/addQueue.pys   destroy¼   s     c         C   sI   |  i i t i ƒ |  i i i t ƒ x t i ƒ  o t i ƒ  q) Wd S(   s!   Set the druid window insensitive.N(	   s   selfs   windows   set_sensitives   gtks   FALSEs
   set_cursors   busy_cursors   events_pendings   mainiteration(   s   self(    (    s%   /usr/share/printconf/util/addQueue.pys   busyÆ   s      c         C   s*   |  i i i t ƒ |  i i t i ƒ d S(   s   Set the druid window sensitive.N(   s   selfs   windows
   set_cursors   ready_cursors   set_sensitives   gtks   TRUE(   s   self(    (    s%   /usr/share/printconf/util/addQueue.pys   readyÍ   s     c         C   s   d } d } |  i i i ƒ  \ } } xZ | i | | ƒ p | i | | ƒ o1 | d j o
 d } q' t	 t
 | ƒ d ƒ } q' W| | Sd S(   s   Make up a name to start with.s   printers    s   1i   N(   s   bases   exts   selfs   parents   confs
   get_queuess   name_dict_dicts   alias_dict_dicts   has_keys   strs   int(   s   selfs   alias_dict_dicts   exts   bases   name_dict_dict(    (    s%   /usr/share/printconf/util/addQueue.pys   make_up_nameÕ   s      (
c         C   sõ  |  i i |  i i d ƒ ƒ d |  _ |  i i |  i ƒ  ƒ |  i	 i d ƒ |  i
 i d ƒ |  i |  i
 ƒ |  i ƒ  |  i i d ƒ |  i i d ƒ |  i i ƒ  |  i i d ƒ |  i i d ƒ |  i i ƒ  t i |  _ |  i i d ƒ |  i i d ƒ |  i i d ƒ |  i i d ƒ |  i i ƒ  |  i i d ƒ |  i i d ƒ |  i i ƒ  |  i i |  i ƒ |  _ h  |  _  |  i i! |  i" d |  i  d |  i# i# ƒ|  i" } | i% | i& ƒ  ƒ } |  i( i) d ƒ } |  i( i+ | | t i, d	 d ƒ |  i- i. t i ƒ | o§| i0 d
 ƒ o“d } d }	 t3 i4 | ƒ } t3 i4 |	 ƒ } | i7 | ƒ }
 |
 o" |
 i8 ƒ  \ } } } } t= } n6 | i7 | ƒ }
 |
 o |
 i8 ƒ  \ } } } } } n |
 o d Sn | o | i? d ƒ } n | o | i? d ƒ } n |  i i@ iA |  i iB i@ iC ƒ } |  i
 i | ƒ |  i
 iE ƒ  } | | j o d Sn |  iG } d } x— | D] } | iJ | i' ƒ } | iL | d ƒ iM ƒ  | iM ƒ  j oR | iL | d ƒ } | p& | d p | d iM ƒ  | iM ƒ  j o
 d } n Pq]q]W| oz x4 | iO | ƒ o# | iP | d ƒ } | iR | ƒ qúW| iL | d ƒ } | d o! | | d <| iS | d | ƒ qÊnZ tT iU | ƒ } | o | | d <n | iV t= ƒ } | iS | d | ƒ | iS | d | ƒ | iV | ƒ } | iS | d | ƒ | iS | d tX d ƒ ƒ | iS | d | ƒ | iS | d | ƒ |  iY } d |  _[ | i\ | i% | ƒ t i, ƒ |  `[ | i] ƒ  i^ | ƒ | i) d ƒ } | i+ | i% | ƒ | t i, d	 d ƒ q®n |  i# i_ |  i i` ƒ |  i# ia t ib ƒ |  i ic ƒ  |  i# id ƒ  d S(   s   Run the druid.s   add_queue_start_pages   printconf-local-printer.htmls    i    s   /printers/queue1s   9100s   id_dicts   windowf0.5s   smb:s)   ^smb://([^:]+:)?([^@]+@)?([^/]+)/([^/]+)$s1   ^smb://([^:]+:)?([^@]+@)?([^/]+)/([^/]+)/([^/]+)$Ns   :s   @i   s   GROUPi   s   (Specified)i   i   (e   s   selfs   druids   set_pages   xmls
   get_widgets	   help_pages
   name_entrys   set_texts   make_up_names
   desc_entrys	   type_menus   set_historys   type_menu_changeds   populate_device_views   ipp_server_entrys   ipp_path_entrys
   grab_focuss   lpd_server_entrys   lpd_queue_entrys   gtks   FALSEs
   smb_forceds   ncp_server_entrys   ncp_user_entrys   ncp_queue_entrys   ncp_passwd_entrys   jd_printer_entrys   jd_port_entrys   parents   populate_mfr_optionmenus   mfr_menus   mfr_lists
   id_to_iters   populate_model_stores   printer_stores   windows   stores   get_paths   get_iter_firsts   paths   printer_views
   get_columns   cols   scroll_to_cells   TRUEs   notes_buttons   set_sensitives   urls
   startswiths   type1s   type2s   res   compiles   type1_res   type2_res   matchs   groupss   users   passwords   servers   shares   Nones	   workgroups   rstrips   queue_typess   indexs   confs   smbs   smb_types   get_historys   ts	   smb_stores   founds   rows   get_iters   server_iters	   get_values   lowers   dicts   iter_has_childs   iter_nth_childs   is   removes	   set_values   pysmbs   get_host_infos   appends   iters   _s   smb_views   views   expanding_rows
   expand_rows   get_selections   select_iters   set_transient_fors   toplevels   set_positions   WIN_POS_NONEs   readys   show_all(   s   selfs   urls   shares   type1s   rows   server_iters   type2_res   dicts   smb_types   type2s   matchs	   workgroups   type1_res   users   paths   passwords   stores   iters   servers   is   ts   founds   cols   view(    (    s%   /usr/share/printconf/util/addQueue.pys   addQueueDruidç   sÆ     	
			
!	 %1
	 
		c         C   s*   t  i d |  i i i i |  i f ƒ d S(   s5   Help button handler.  Shows help page self.help_page.s   file://%s/%sN(   s   gnomes   url_shows   selfs   parents   confs   printconf_help_dirs	   help_page(   s   selfs   druid(    (    s%   /usr/share/printconf/util/addQueue.pys   helpz  s     c         C   s   d |  _ d S(   s.   Prepare the start page.  Set the help context.s   printconf-local-printer.htmlN(   s   selfs	   help_page(   s   selfs   pages   druid(    (    s%   /usr/share/printconf/util/addQueue.pys   prepare_start_pageƒ  s     c         C   s   d |  _ |  i i ƒ  d S(   s-   Prepare the name page.  Set the help context.s   printconf-local-printer.htmlN(   s   selfs	   help_pages
   name_entrys
   grab_focus(   s   selfs   pages   druid(    (    s%   /usr/share/printconf/util/addQueue.pys   prepare_name_pageŠ  s     	c         C   só   |  i i ƒ  } |  i i i | ƒ o. t |  i t	 d ƒ ƒ |  i i
 ƒ  t i Sn |  i i i ƒ  \ } } | i | ƒ o. t |  i t	 d ƒ ƒ |  i i
 ƒ  t i Sn | i | ƒ o. t |  i t	 d ƒ ƒ |  i i
 ƒ  t i Sn t i Sd S(   sj   
        Validate the name page.

        Return value: whether there is a problem with the page.
        s   Invalid names(   There is already a queue with that name.s,   An existing queue has an alias of that name.N(   s   selfs
   name_entrys   get_texts   names   parents   confs   valid_queue_names   complains   windows   _s
   grab_focuss   gtks   TRUEs
   get_queuess   name_dict_dicts   alias_dict_dicts   has_keys   FALSE(   s   selfs   pages   druids   alias_dict_dicts   names   name_dict_dict(    (    s%   /usr/share/printconf/util/addQueue.pys   validate_name_page  s$     		c         C   s   d |  _ d S(   s-   Prepare the type page.  Set the help context.s   printconf-local-printer.htmlN(   s   selfs	   help_page(   s   selfs   pages   druid(    (    s%   /usr/share/printconf/util/addQueue.pys   prepare_type_page±  s     c         C   s   |  i d d ƒ d S(   s   Handler for the rescan button.s   forcei   N(   s   selfs   populate_device_view(   s   selfs   button(    (    s%   /usr/share/printconf/util/addQueue.pys   rescan_button_clickedµ  s     c         C   sX  |  i } |  i i d ƒ | i |  i ƒ | i t i	 ƒ | i
 ƒ  } |  i i ƒ  } | i ƒ  | t i j p | o d Sn t i | t i ƒ o" t |  i t d ƒ | ƒ d Sn |  i i t ƒ } |  i i | d | ƒ |  i i | d t d ƒ ƒ |  i i ƒ  i | ƒ |  i i | ƒ } |  i i d ƒ } |  i i! | | t i" d d ƒ d S(   s    Handle the custom device button.s    Ns(   '%s' does not exist, or is not writable.i    i   s   Custom devicef0.5(#   s   selfs   custom_dialogs   dialogs   custom_device_entrys   set_texts   set_transient_fors   windows   set_positions   gtks   WIN_POS_CENTER_ON_PARENTs   runs   responses   get_texts   devices   hides   RESPONSE_OKs   oss   accesss   W_OKs   complains   _s   device_stores   appends   Nones   iters	   set_values   device_views   get_selections   select_iters   get_paths   paths
   get_columns   cols   scroll_to_cells   TRUE(   s   selfs   buttons   iters   responses   cols   dialogs   devices   path(    (    s%   /usr/share/printconf/util/addQueue.pys   custom_button_clicked¹  s*     	
	c   
      C   sk  |  i i i | ƒ |  _ |  i }	 g  } |	 i	 ƒ  x¼ |  i i
 ƒ  D]« } |	 i t ƒ } |	 i | d | ƒ yH |  i | d } | i d ƒ } | o d | d | d f } n Wn d } n X|	 i | d | ƒ | o | i | ƒ qA qA Wt | ƒ d j od | d } |  i i ƒ  i | ƒ |	 i | ƒ } |  i i d ƒ } |  i i | | t i d	 d ƒ n d
 S(   s:   Find local printer devices and populate self.device_store.i    s   autos   descs   %s %ss   manufacturers   models    i   f0.5N(   s   selfs   parents   confs   scan_local_printer_devicess   forces
   local_devss   device_stores   stores   autoiters   clears   keyss   devs   appends   Nones   iters	   set_values   autos   gets   descriptions   lens   device_views   get_selections   select_iters   get_paths   paths
   get_columns   cols   scroll_to_cells   gtks   TRUE(
   s   selfs   forces   descriptions   autoiters   autos   iters   devs   paths   cols   store(    (    s%   /usr/share/printconf/util/addQueue.pys   populate_device_viewÒ  s2     	
  

c         C   s  |  i i ƒ  } |  i i | |  _ |  i i | ƒ | |  i i	 j o½ |  i i
 | } | i ƒ  o‘ t i |  i d t i t i | i ƒ } | i |  i ƒ | i t i ƒ | i ƒ  } | i ƒ  | t i j o t i |  _ qô |  i i d ƒ n |  i ƒ  n d S(   s|   
        Handler for the type optionmenu.  Set the notepad page appropriately,
        as well as the help context.
        i    N(   s   selfs	   type_menus   get_historys   whichs   parents   queue_type_help_pagess	   help_pages   notebooks   set_current_pages   smb_page_indexs   queue_typess
   type_spaces   checks   gtks   MessageDialogs   windows   MESSAGE_WARNINGs   BUTTONS_YES_NOs   messages   asks   set_transient_fors   set_positions   WIN_POS_CENTER_ON_PARENTs   runs   responses   destroys   RESPONSE_YESs   TRUEs
   smb_forceds   set_historys   browse_smb_hosts(   s   selfs
   optionmenus   responses   whichs   asks
   type_space(    (    s%   /usr/share/printconf/util/addQueue.pys   type_menu_changedñ  s$     
c      
   C   só  |  i i |  i i ƒ  } | |  i i i i j o |  i o | i	 ƒ  o‰ t
 i |  i d t
 i t
 i | i ƒ } | i |  i ƒ | i t
 i ƒ | i ƒ  } | i ƒ  | t
 i j o |  i i ƒ  t
 i SqÔ n |  i i i } | | i j o |  i ƒ  o t
 i SqënÝ | | i j o |  i ƒ  o t
 i Sqën± | | i j o |  i  ƒ  o t
 i Sqën… | | i j o |  i! ƒ  o t
 i SqënY | | i" j o |  i# ƒ  o t
 i Sqën- | | i$ j o |  i% ƒ  o t
 i Sqën | | i$ j oH |  i& ƒ  |  i' |  i( i) ƒ  ƒ }
 |  i+ ƒ  |
 t, j o t
 i- Sqünº | | i j o¢ |  i. i/ ƒ  } | i1 ƒ  \ } } | i4 | d ƒ } yZ |  i6 | d } t8 i9 | d ƒ } t8 i9 | d ƒ } |  i i i< i= | | f i* }
 Wqüt
 i- SqüXn t
 i- S|  i i i< i> |
 i? } |  i@ iA |  iB iC | ƒ ƒ h  |  _D |  i iE |  iF d |  iD d | d |
 d |  i i ƒ} |  iG i/ ƒ  iH | ƒ |  iF iI | ƒ } |  iG iK d ƒ }	 |  iG iM | |	 t
 i d	 d ƒ x t
 iN ƒ  o t
 iO ƒ  qÌWt
 i- Sd
 S(   sj   
        Validate the type page.

        Return value: whether there is a problem with the page.
        i    s   autos   manufacturers   models   id_dicts   mfrs   ids   windowf0.5N(P   s   selfs   parents   queue_typess	   type_menus   get_historys
   type_spaces   confs   smbs
   smb_forceds   checks   gtks   MessageDialogs   windows   MESSAGE_WARNINGs   BUTTONS_YES_NOs   messages   asks   set_transient_fors   set_positions   WIN_POS_CENTER_ON_PARENTs   runs   responses   destroys   RESPONSE_YESs
   grab_focuss   TRUEs   typess   locals   validate_local_types   ipps   validate_ipp_types   lpds   validate_lpd_types   validate_smb_types   ncps   validate_ncp_types	   jetdirects   validate_jetdirect_types   busys   detect_snmp_printers   jd_printer_entrys   get_texts   ids   readys   Nones   FALSEs   device_views   get_selections	   selections   get_selecteds   stores   iters	   get_values   devs
   local_devss   autos   strings   lowers   mfrs   mdls   foomatics   autodetect_dicts   id_dicts   makes   mfr_menus   set_historys   mfr_lists   indexs
   id_to_iters   populate_model_stores   printer_stores   printer_views   select_iters   get_paths   paths
   get_columns   cols   scroll_to_cells   events_pendings   mainiteration(   s   selfs   pages   druids	   selections   mdls   autos   devs   iters   mfrs   cols   ids   stores   asks   paths   responses
   type_spaces   types(    (    s%   /usr/share/printconf/util/addQueue.pys   validate_type_page  s‚     2


#		 c         C   sU   |  i i ƒ  } | i ƒ  \ } } | o! t |  i t	 d ƒ ƒ t
 i Sn t
 i Sd S(   sj   
        Validate the local type data.
        
        Return value: whether there is a problem.
        s   You must select a device.N(   s   selfs   device_views   get_selections	   selections   get_selecteds   stores   iters   complains   windows   _s   gtks   TRUEs   FALSE(   s   selfs	   selections   iters   store(    (    s%   /usr/share/printconf/util/addQueue.pys   validate_local_typeh  s     c         C   s•   |  i i ƒ  } |  i i ƒ  } | o. t |  i t d ƒ ƒ |  i i	 ƒ  t
 i Sn | o. t |  i t d ƒ ƒ |  i i	 ƒ  t
 i Sn t
 i Sd S(   s_   Validate the IPP type data.
        
        Return value: whether there is a problem.
        s   You must specify a server.s   You must specify a path.N(   s   selfs   ipp_server_entrys   get_texts
   ipp_servers   ipp_path_entrys   ipp_paths   complains   windows   _s
   grab_focuss   gtks   TRUEs   FALSE(   s   selfs   ipp_paths
   ipp_server(    (    s%   /usr/share/printconf/util/addQueue.pys   validate_ipp_typew  s     c         C   s•   |  i i ƒ  } |  i i ƒ  } | o. t |  i t d ƒ ƒ |  i i	 ƒ  t
 i Sn | o. t |  i t d ƒ ƒ |  i i	 ƒ  t
 i Sn t
 i Sd S(   s_   Validate the LPD type data.
        
        Return value: whether there is a problem.
        s   You must specify a server.s   You must specify a queue.N(   s   selfs   lpd_server_entrys   get_texts
   lpd_servers   lpd_queue_entrys	   lpd_queues   complains   windows   _s
   grab_focuss   gtks   TRUEs   FALSE(   s   selfs	   lpd_queues
   lpd_server(    (    s%   /usr/share/printconf/util/addQueue.pys   validate_lpd_typeŒ  s     c         C   sß  |  i i ƒ  i ƒ  \ }
 } | o! t |  i t d ƒ ƒ t	 i
 Sn |
 i | ƒ } | o! t |  i t d ƒ ƒ t	 i
 Sn d |
 i | d ƒ |
 i | d ƒ f } | o. t |  i t d ƒ ƒ |  i i ƒ  t	 i
 Sn y |
 i | d ƒ d } Wn d } n X|
 i | d	 ƒ } |
 i | d
 ƒ } | } |
 i | d ƒ } |
 i | d ƒ } |  i i | ƒ |  i i | ƒ |  i i t	 i ƒ |  i i | ƒ |  i i d ƒ |  i i d ƒ | o |  i i | ƒ n | o |  i i | ƒ n |  i i |  i ƒ |  i i  t	 i! ƒ xÂn oº|  i" o t	 i
 } Pn |  i i i$ t% ƒ x t	 i& ƒ  o t	 i' ƒ  qIWt( i) | d | d | d | ƒ} |  i i i$ t* ƒ | o Pn | o |  i i ƒ  n |  i i ƒ  |  i i+ ƒ  } |  i i- ƒ  | t	 i. j p | t	 i/ j o Pn |  i i0 ƒ  } | | j o3 |
 i | d ƒ }	 | |	 d <|
 i2 | d |	 ƒ n |  i i0 ƒ  } |
 i2 | d | ƒ d | | f } |  i i0 ƒ  } |  i i0 ƒ  } |
 i2 | d	 | ƒ |
 i2 | d
 | ƒ qW| Sd S(   sc   
        Validate the SMB data.
        
        Return value: whether there is a problem.
        s)   You must choose an SMB share to print to.s$   You must choose a share, not a host.s   //%s/%si    s*   You must specify an SMB share to print to.i   s   GROUPs    i   i   i   s   groups   users   passwdN(4   s   selfs   smb_views   get_selections   get_selecteds   stores   iters   complains   windows   _s   gtks   TRUEs   iter_parents   parent_iters	   get_values	   smb_shares   smb_share_entrys
   grab_focuss   groups   users   passwds
   orig_groups   servers
   orig_shares   smb_workgroup_entrys   set_texts   smb_server_entrys   set_editables   FALSEs   smb_user_entrys   smb_passwd_entrys   passwd_dialogs   set_transient_fors   set_positions   WIN_POS_CENTER_ON_PARENTs
   smb_forceds
   accessibles
   set_cursors   busy_cursors   events_pendings   mainiterations   pysmbs   printer_share_accessibles   ready_cursors   runs   responses   hides   RESPONSE_CANCELs   RESPONSE_DELETE_EVENTs   get_texts   dicts	   set_values	   sharename(   s   selfs
   accessibles	   smb_shares   groups   passwds	   sharenames   iters
   orig_groups
   orig_shares   dicts   stores   parent_iters   responses   servers   user(    (    s%   /usr/share/printconf/util/addQueue.pys   validate_smb_type¡  s”     		(	
 
	 	 
c         C   s•   |  i i ƒ  } |  i i ƒ  } | o. t |  i t d ƒ ƒ |  i i	 ƒ  t
 i Sn | o. t |  i t d ƒ ƒ |  i i	 ƒ  t
 i Sn t
 i Sd S(   s_   
        Validate NCP data.
        
        Return value: whether there is a problem.
        s+   You must specify an NCP server to print to.s+   You must specify a queue on the NCP server.N(   s   selfs   ncp_server_entrys   get_texts
   ncp_servers   ncp_queue_entrys	   ncp_queues   complains   windows   _s
   grab_focuss   gtks   TRUEs   FALSE(   s   selfs
   ncp_servers	   ncp_queue(    (    s%   /usr/share/printconf/util/addQueue.pys   validate_ncp_type  s     		c         C   s£   |  i i ƒ  } |  i i ƒ  } | o. t |  i t d ƒ ƒ |  i i	 ƒ  t
 i Sn y t | ƒ } Wn1 t |  i t d ƒ ƒ |  i i	 ƒ  t
 i Sn Xt
 i Sd S(   se   
        Validate JetDirect data.
        
        Return value: Whether there is a problem.
        s1   You must specify a JetDirect printer to print to.s#   You must specify an IP port number.N(   s   selfs   jd_printer_entrys   get_texts   jetdirect_ips   jd_port_entrys   ports   complains   windows   _s
   grab_focuss   gtks   TRUEs   ints   jetdirect_ports   FALSE(   s   selfs   jetdirect_ports   ports   jetdirect_ip(    (    s%   /usr/share/printconf/util/addQueue.pys   validate_jetdirect_type  s     	c         C   sí   |  i } | i ƒ  y |  i i i t ƒ Wn n Xx t i ƒ  o t i	 ƒ  q7 Wt
 i ƒ  } xf | i ƒ  D]X } | | } | i t ƒ } | i | d | d ƒ | i | d | ƒ | i | ƒ } ql Wy |  i i i t ƒ Wn n Xd S(   s   Initialise the SMB tree store.i    s   NAMEi   N(   s   selfs	   smb_stores   stores   clears   windows
   set_cursors   busy_cursors   gtks   events_pendings   mainiterations   pysmbs   get_host_lists   hostss   keyss   hosts   hs   appends   Nones   iters	   set_values   dummys   ready_cursor(   s   selfs   dummys   hs   iters   hosts   hostss   store(    (    s%   /usr/share/printconf/util/addQueue.pys   browse_smb_hosts;  s,     	
  
c         C   sl   |  i } | i | ƒ } | i | ƒ o d Sn | i | ƒ o | i	 | ƒ n |  i
 | | | ƒ d Sd S(   s*   Handle double-clicks in the SMB tree view.N(   s   selfs	   smb_stores   stores   get_iters   paths   iters
   iter_depths   views   row_expandeds   collapse_rows   smb_view_row_expanded(   s   selfs   views   paths   columns   iters   store(    (    s%   /usr/share/printconf/util/addQueue.pys   smb_view_row_activatedT  s     	c   	      C   sj  y |  i o d Sn Wn d |  _ n X|  i } | i | d ƒ } | o|  i i i t	 ƒ x t
 i ƒ  o t
 i ƒ  qa Wt i | ƒ } x4 | i | ƒ o# | i | d ƒ } | i | ƒ q Wxs | i ƒ  D]e } | i | ƒ } | i | d | ƒ | i | d | | ƒ | i | d d ƒ | i | d d ƒ qÐ W|  i i i t ƒ n | i | d ƒ |  ` d S(   s1   Handler for expanding a row in the SMB tree view.Ni   i   i    i   s    i   (   s   selfs   expanding_rows	   smb_stores   stores	   get_values   iters   hosts   windows
   set_cursors   busy_cursors   gtks   events_pendings   mainiterations   pysmbs   get_printer_lists   printerss   iter_has_childs   iter_nth_childs   is   removes   keyss   printers   appends	   set_values   ready_cursors   views
   expand_rows   path(	   s   selfs   views   iters   paths   printers   is   hosts   printerss   store(    (    s%   /usr/share/printconf/util/addQueue.pys   smb_view_row_expandedc  s8     
	   c         C   s  t  i d ƒ } |  i i d ƒ |  i i d ƒ |  i i t i	 ƒ |  i
 i d ƒ |  i i d ƒ |  i i d ƒ |  i
 i ƒ  |  i i |  i ƒ |  i i t i ƒ xcn o[|  i i ƒ  } |  i i ƒ  | t i j p | t i j o Pn |  i i ƒ  } |  i i ƒ  } |  i
 i ƒ  } |  i i ƒ  } |  i i ƒ  } | i d d ƒ } | i d d ƒ } | i | ƒ } | o d | d | } n |  i i i  t! ƒ x t i" ƒ  o t i# ƒ  q¢Wt$ i% | d	 | d
 | d | ƒ} |  i i i  t' ƒ | p |  i( o| i | ƒ } | i) ƒ  \ }	 } |  i, } d } xD | D]< } | i0 | i1 ƒ } | i3 | d ƒ |	 j o d } Pq:q:W| o; x¡ | i4 | ƒ o# | i5 | d ƒ } | i7 | ƒ q„Wnj t$ i8 |	 ƒ }
 | o	 |
 d o | d |
 d <n | i: t; ƒ } | i< | d |	 ƒ | i< | d |
 ƒ | i: | ƒ } | i< | d | ƒ | i< | d t> d ƒ ƒ | i< | d | ƒ | i< | d | ƒ |  i? } d |  _A | iB | iC | ƒ t i	 ƒ |  `A | iD ƒ  iE | ƒ | iF d ƒ } | iH | iC | ƒ | t i	 d d ƒ Pq¨ q¯ Wt i	 Sd S(   s$   Allow the user to specify the share.s   ^//([^/]+)/(.*)$s    s   MACHINEs   sharei   s   \s   /s   //s   groups   users   passwdi    s   GROUPi   s   (Specified)i   i   f0.5N(I   s   res   compiles   share_res   selfs   smb_workgroup_entrys   set_texts   smb_server_entrys   set_editables   gtks   TRUEs   smb_share_entrys   smb_user_entrys   smb_passwd_entrys
   grab_focuss   passwd_dialogs   set_transient_fors   windows   set_positions   WIN_POS_CENTER_ON_PARENTs   runs   responses   hides   RESPONSE_CANCELs   RESPONSE_DELETE_EVENTs   get_texts   groups   servers   shares   users   passwds   replaces   matchs
   set_cursors   busy_cursors   events_pendings   mainiterations   pysmbs   printer_share_accessibles
   accessibles   ready_cursors
   smb_forceds   groupss   machines	   sharenames	   smb_stores   stores   founds   rows   get_iters   paths   parent_iters	   get_values   iter_has_childs   iter_nth_childs   is   removes   get_host_infos   dicts   appends   Nones	   set_values   iters   _s   smb_views   views   expanding_rows
   expand_rows   get_paths   get_selections   select_iters
   get_columns   cols   scroll_to_cell(   s   selfs   buttons
   accessibles   shares   iters   share_res   rows   groups	   sharenames   machines   dicts   stores   passwds   users   responses   is   parent_iters   servers   matchs   founds   cols   view(    (    s%   /usr/share/printconf/util/addQueue.pys   smb_specify_clicked„  s’        		 	 		
c         C   sq   d |  _ t d ƒ } |  i i |  i i ƒ  } |  i i	 i } | | i j o t d ƒ } n |  i i | ƒ d S(   s.   Prepare the model page.  Set the help context.s   printconf-select-model.htmls*   Select the printer manufacturer and model.s–   Select the printer manufacturer and model. Depending on how the remote queue is configured, you may need to select the generic PostScript option here.N(   s   selfs	   help_pages   _s   labels   parents   queue_typess	   type_menus   get_historys
   type_spaces   confs   typess   lpds   select_model_labels   set_text(   s   selfs   pages   druids   labels   typess
   type_space(    (    s%   /usr/share/printconf/util/addQueue.pys   prepare_model_pageÚ  s     	c         C   s”   y |  i | i ƒ  } Wn d Sn Xh  |  _ |  i i |  i d |  i d | d |  i	 i	 ƒ|  i
 i d ƒ } |  i
 i d f | t i d d ƒ d S(   s   Update the model list.Ns   id_dicts   mfrs   windowi    f0.5(   s   selfs   mfr_lists   menus   get_historys   mfrs
   id_to_iters   parents   populate_model_stores   printer_stores   windows   printer_views
   get_columns   cols   scroll_to_cells   gtks   TRUE(   s   selfs   menus   mfrs   col(    (    s%   /usr/share/printconf/util/addQueue.pys   mfr_menu_changedê  s     		c         C   so   |  i i | ƒ } |  i i | d ƒ \ } } | o t i	 } n
 t i } |  i i | ƒ |  i i | ƒ Sd S(   s9   Don't allow this path to be selected unless it is a leaf.i   N(   s   selfs   printer_stores   get_iters   paths   iters	   get_values   ds   ids   gtks   TRUEs   notes_availables   FALSEs   notes_buttons   set_sensitives   iter_has_child(   s   selfs   paths   ds   iters   notes_availables   id(    (    s%   /usr/share/printconf/util/addQueue.pys   printer_select_functionù  s     	c         C   s²   |  i i ƒ  } | i ƒ  \ } } | o d Sn | i | d ƒ \ } } | o^ y |  i
 i i i | i } Wn$ |  i
 i i i | i d } n X|  i
 i | | |  ƒ n d S(   s   Handler for the notes button.Ni   i    (   s   selfs   printer_views   get_selections	   selections   get_selecteds   stores   iters	   get_values   types
   printer_ids   parents   confs   foomatics   id_dicts   drivers   driverss
   show_notes(   s   selfs   buttons	   selections   drivers   iters
   printer_ids   types   store(    (    s%   /usr/share/printconf/util/addQueue.pys   notes_button_clicked  s     !c         C   sŠ  |  i i ƒ  } | i ƒ  \ } } | o! t |  i t	 d ƒ ƒ t
 i Sn | i | d ƒ \ } }
 | |  i i i i j o t
 i Sn |  i i i i } y | |
 i } Wn | |
 i d } n X|  i i i } y | i | }	 Wn t
 i Sn X|	 i ƒ  o| t
 i |  i d t
 i t
 i |	 i ƒ } | i  |  i ƒ | i! t
 i" ƒ | i# ƒ  } | i% ƒ  | t
 i& j o t
 i Sqn t
 i Sd S(   sY   
        Validate model page.

        Return value: whether there is a problem.
        s    You must select a printer model.i   i    N('   s   selfs   printer_views   get_selections	   selections   get_selecteds   stores   iters   complains   windows   _s   gtks   TRUEs	   get_values   drivers   ids   parents   confs   driverss   foomatics   FALSEs   id_dicts   foomatic_drivers   driver_blacklists	   blacklists   dicts   blacks   checks   MessageDialogs   MESSAGE_WARNINGs   BUTTONS_YES_NOs   messages   asks   set_transient_fors   set_positions   WIN_POS_CENTER_ON_PARENTs   runs   responses   destroys   RESPONSE_YES(   s   selfs   pages   druids	   selections   foomatic_drivers   drivers   iters	   blacklists   asks   blacks   ids   id_dicts   responses   store(    (    s%   /usr/share/printconf/util/addQueue.pys   validate_model_page  s:     
c         C   s|   d |  _ t d ƒ } | t d ƒ 7} |  i i ƒ  } |  i i | |  _	 | |  i	 i
 d 7} | |  i ƒ  7} | i | ƒ d S(   s/   Prepare finish page text, and set context help.s/   printconf-select-model.html#S2-PRINTING-CONFIRMs&   About to create the following queue:

s   Type: s   
N(   s   selfs	   help_pages   _s   texts	   type_menus   get_historys
   type_indexs   parents   queue_typess   queue_type_spaces   long_pretty_names   pulls   pageedges   set_text(   s   selfs   pageedges   druids   texts
   type_index(    (    s%   /usr/share/printconf/util/addQueue.pys   prepare_finish_pageB  s     	c         C   s  |  i i i } d }	 d } t i i	 d ƒ oÏ t i d } | d d !d j p% | d d !d j p | d d !d j o
 d }	 n | d d !d j o
 d	 } n | d d !d j o
 d
 } n | d d !d j o
 d } n | d d !d j o
 d } qý n h  } h  d d <d |	 <d |	 <}
 |
 | d <| d j o | | d <n |  i i ƒ  | d <|  i i ƒ  | d <|  i | i j o |  i | ƒ } n¿ |  i | i j o |  i | ƒ } n™ |  i | i j o |  i | ƒ } ns |  i | i j o |  i | ƒ } nM |  i | i j o |  i | ƒ } n' |  i | i j o |  i | ƒ } n | d t d ƒ 7} |  i i  ƒ  } | i" ƒ  \ } } | i% | d ƒ \ } } | | f |  _( | o2 |  i i i) i* | } | | i, d | i- 7} n | | i. 7} | |  _/ | Sd S(   s3   Pull in the (validated) data from all of the pages.i    s   Cs   LANGi   s   zhs   kos   jai   s   ja_JPs   ko_KRi   s   zh_CNs   zh_TWs   convert_text_to_Postscripts   assume_data_is_texts   rerender_Postscripts   mf_flagss   filter_locales
   queue_names   queue_descriptions   
s	   Printer: s    N(0   s   selfs   parents   confs   queue_typess   typess   rerenders   locales   oss   environs   has_keys   langs   datas   flagss
   name_entrys   get_texts
   desc_entrys   queue_type_spaces   locals
   pull_locals   texts   ipps   pull_ipps   lpds   pull_lpds   smbs   pull_smbs   ncps   pull_ncps	   jetdirects   pull_jetdirects   _s   printer_views   get_selections	   selections   get_selecteds   stores   iters	   get_values   drivers   ids   driver_tuples   foomatics   id_dicts   fs   makes   models   labels
   queue_data(   s   selfs   langs	   selections   drivers   fs   locales   datas   stores   iters   rerenders   flagss   texts   ids   types(    (    s%   /usr/share/printconf/util/addQueue.pys   pullN  s\     <



!
	c         C   sO   |  i i ƒ  } | i ƒ  \ } } | i | d ƒ } | | d <t
 d ƒ | Sd S(   s   Pull local data.i    s   local_printer_devices   Device: N(   s   selfs   device_views   get_selections	   selections   get_selecteds   stores   iters	   get_values   devs   datas   _(   s   selfs   datas	   selections   devs   iters   store(    (    s%   /usr/share/printconf/util/addQueue.pys
   pull_localŽ  s     
c         C   sW   |  i i ƒ  | d <d | d <|  i i ƒ  | d <d | d | d | d f } | Sd S(   s   Pull IPP data.s
   ipp_servers   631s   ipp_ports   ipp_paths   ipp://%s:%s%sN(   s   selfs   ipp_server_entrys   get_texts   datas   ipp_path_entrys   text(   s   selfs   datas   text(    (    s%   /usr/share/printconf/util/addQueue.pys   pull_ipp—  s     
c         C   sN   |  i i ƒ  | d <|  i i ƒ  | d <t d ƒ | d d | d } | Sd S(   s   Pull LPD data.s
   lpd_servers	   lpd_queues   Queue: s   @N(   s   selfs   lpd_server_entrys   get_texts   datas   lpd_queue_entrys   _s   text(   s   selfs   datas   text(    (    s%   /usr/share/printconf/util/addQueue.pys   pull_lpd¢  s
      c   	      C   sö   |  i i ƒ  i ƒ  \ } } | i | ƒ } d | i | d ƒ | i | d ƒ f } | i | d ƒ } | i | d ƒ } | i | d ƒ } | | d <| d | d <| i d	 ƒ o | d	 | d
 <n d | d
 <| | d <| | d <t d ƒ | d Sd S(   s   Pull SMB data.s   //%s/%si    i   i   i   s	   smb_shares   IPs   smb_ips   GROUPs   smb_workgroups    s   smb_users   smb_passwords   Share: N(   s   selfs   smb_views   get_selections   get_selecteds   stores   iters   iter_parents   parent_iters	   get_values	   smb_shares   hs   smb_users
   smb_passwds   datas   has_keys   _(	   s   selfs   datas
   smb_passwds   hs	   smb_shares   smb_users   parent_iters   iters   store(    (    s%   /usr/share/printconf/util/addQueue.pys   pull_smbª  s     (



c         C   sn   |  i i ƒ  | d <|  i i ƒ  | d <|  i i ƒ  | d <|  i i ƒ  | d <t d ƒ | d d | d Sd S(   s   Pull NCP data.s
   ncp_servers	   ncp_queues   ncp_users   ncp_passwords   Queue: s   @N(   s   selfs   ncp_server_entrys   get_texts   datas   ncp_queue_entrys   ncp_user_entrys   ncp_passwd_entrys   _(   s   selfs   data(    (    s%   /usr/share/printconf/util/addQueue.pys   pull_ncp¿  s     c         C   sH   |  i i ƒ  | d <|  i i ƒ  | d <t d ƒ | d d | d Sd S(   s   Pull JetDirect data.s   jetdirect_ips   jetdirect_ports   Port: s   :N(   s   selfs   jd_printer_entrys   get_texts   datas   jd_port_entrys   _(   s   selfs   data(    (    s%   /usr/share/printconf/util/addQueue.pys   pull_jetdirectÈ  s     c         C   s½  |  i \ } } t } | |  i i i i	 j oP |  i i i	 i
 } | | } y | i } Wn | i d } n X| | f } n | | f } |  i i i |  i |  i | ƒ |  i i }	 |	 i t ƒ } |  i d } |	 i | d | ƒ |	 i | d |  i d ƒ |  i i i ƒ  \ |  i _ |  i _ |	 i | d |  i i | ƒ |  i i i ƒ  i | ƒ |  i i i ƒ  |  i _ |  i i ƒ  |  i i |  i i ƒ |  i i t  i! ƒ |  i" i# ƒ  t$ i% d t$ i& ƒ oð |  i i' o |  i i( ƒ  t) d ƒ } n t) d	 ƒ } t  i+ |  i i, d t  i- t  i. | ƒ }
 |
 i0 |  i i, ƒ |
 i1 t  i2 ƒ |
 i3 ƒ  } |
 i5 ƒ  | t  i6 j oF |  i i' o |  i i( ƒ  n t7 i8 d
 ƒ |  i i9 |  i i: ƒ q¹n d S(   s.   Handler for the finish button.  Add the queue.i    s
   queue_namei   i   s   queue_descriptioni   s!   /usr/share/cups/data/testprint.pss$   Would you like to print a test page?sr   Would you like to print a test page?
Answering 'yes' will apply all changes
and print a test page to this printer.i
   N(;   s   selfs   driver_tuples   drivers   ids   Nones   foomatic_tuples   parents   confs   driverss   foomatics   id_dicts   printers   foomatic_drivers   construct_queues   queue_type_spaces
   queue_datas   queue_stores   appends   iters   names	   set_values
   get_queuess	   name_dicts
   alias_dicts
   queue_views   get_selections   select_iters   get_default_queue_names   default_queue_names   fix_default_markers   queue_chosens   need_to_apply_changess   gtks   TRUEs   windows   hides   oss   accesss   R_OKs   hiddens   applys   _s   msgs   MessageDialogs   toplevels   MESSAGE_QUESTIONs   BUTTONS_YES_NOs   ds   set_transient_fors   set_positions   WIN_POS_CENTER_ON_PARENTs   runs   responses   destroys   RESPONSE_YESs   times   sleeps   tests	   cups_test(   s   selfs   pageedges   druids   printers   foomatic_drivers   names   drivers   iters   driver_tuples   queue_stores   ds   msgs   id_dicts   responses   ids   foomatic_tuple(    (    s%   /usr/share/printconf/util/addQueue.pys   finishÓ  sX     
$	
c         C   s¥  d „  } t } d } | | d ƒ }	 t } d } x< |	 D]4 } | i	 | ƒ o | t
 | ƒ i d ƒ } Pq7 q7 W| oO| | | ƒ }	 d } x7|	 D]+} | i	 | ƒ o q’ n | i d ƒ d j o q’ n | t
 | ƒ i d ƒ i d	 ƒ } |  i i i | ƒ } yP | d
 i ƒ  i d ƒ | d i ƒ  i d ƒ f } |  i i i i | i } PWn d G| GHn XyK | d } x: | i d ƒ D]) }
 |
 i ƒ  i ƒ  d j o
 d } q…q…WWq’ q’ Xq’ Wn | oŒ | | d ƒ }	 d } xt |	 D]h } | i	 | ƒ o qén | t
 | ƒ i d ƒ } y |  i i i i | i } PWqéd | GHqéXqéWn | o | o5 y' |  i i i i } | d d i } WqqXn | Sd S(   s   Detect an SNMP printer by name.c         C   s]   d } d | } |  t i d <| t i d <t i t i t i ƒ t i	 | ƒ } | i ƒ  Sd  S(   Ns   -v 1 -c public -Ovs0   /usr/bin/snmpwalk %s "$AGENT" "$OID" 2>/dev/nulls   AGENTs   OID(   s   optss   cs   agents   oss   environs   oids   signals   SIGCHLDs   SIG_DFLs   popens   fs	   readlines(   s   agents   oids   cs   fs   opts(    (    s%   /usr/share/printconf/util/addQueue.pys   snmpwalk  s    
i    s   system.sysObjectID.0s   OID: s   
s   STRING: s   ;iÿÿÿÿs   "s   manufacturers    s   models   No IEEE 1284 match:s   cmdsets   ,s
   postscripti   s!   HOST-RESOURCES-MIB::hrDeviceDescrs   No SNMP match: '%s's   Generics   PostScript PrinterN(   s   snmpwalks   Nones   ids
   ps_capables   agents   lss   oids   lookfors   ls
   startswiths   lens   rstrips   finds   strips   selfs   parents   confs   parse_ieee1284_deviceids   deviceids   lowers   tuples   foomatics   autodetect_dicts   cmdsets   splits   eachs   descrs	   snmp_dicts   make_model_dict_dicts
   make_model(   s   selfs   agents   descrs   deviceids
   ps_capables   oids   ls   tuples
   make_models   lss   eachs   snmpwalks   ids   cmdsets   lookfor(    (    s%   /usr/share/printconf/util/addQueue.pys   detect_snmp_printer  sr     		 	 "2
  (-   s   __name__s
   __module__s   __doc__s   __init__s   destroys   busys   readys   make_up_names   Nones   addQueueDruids   helps   prepare_start_pages   prepare_name_pages   validate_name_pages   prepare_type_pages   rescan_button_clickeds   custom_button_clickeds   populate_device_views   type_menu_changeds   validate_type_pages   validate_local_types   validate_ipp_types   validate_lpd_types   validate_smb_types   validate_ncp_types   validate_jetdirect_types   browse_smb_hostss   smb_view_row_activateds   smb_view_row_expandeds   smb_specify_clickeds   prepare_model_pages   mfr_menu_changeds   printer_select_functions   notes_button_clickeds   validate_model_pages   prepare_finish_pages   pulls
   pull_locals   pull_ipps   pull_lpds   pull_smbs   pull_ncps   pull_jetdirects   finishs   detect_snmp_printer(    (    (    s%   /usr/share/printconf/util/addQueue.pys   addQueue3   sT    	†	
			“					"					[				f					!	V					,		@									?(   s   gettexts   gnomes   gtks	   gtk.glades   gobjects   oss   res   signals   strings   times   pysmbs   domains   rhpl.translates   _s   N_s   glades   bindtextdomains   gdks   Cursors   WATCHs   busy_cursors   LEFT_PTRs   ready_cursors   complains   addQueue(   s   domains   gnomes   signals   gtks   ready_cursors   gettexts   complains   res   addQueues   times   pysmbs   gobjects   busy_cursors   oss   N_s   _s   string(    (    s%   /usr/share/printconf/util/addQueue.pys   ?   s"   												