import gobject
import gtk
-sys.path.append('/usr/local/samba/lib/python2.7/site-packages/')
+#sys.path.append('/usr/local/samba/lib/python2.7/site-packages/')
#for use against the default binaries from default .configure.developer for use on python 2.7
-#TODO remove these entries
+# Unhash the above line if it is yor your config , else edit it as required
from samba import credentials
from samba.dcerpc import (
main_window.show_all()
gtk.main()
-#debug test pipe : TODO (remove later)
-# test = srvsvcPipeManager('127.0.0.1',0,'Administrator','Pass#2011')
self.vbox.pack_start(self.main_box,True,True,0)
#vertical logo
- vbox = gtk.VBox()
- vbox.set_border_width(5)
- samba_image_filename = os.path.join(sys.path[0],'images',
- 'samba-logo-vertical.png')
- samba_image = gtk.Image()
- samba_image.set_from_file(samba_image_filename)
- vbox.pack_end(samba_image, False, True, 0)
+ #vbox = gtk.VBox()
+ #vbox.set_border_width(5)
+ #samba_image_filename = os.path.join(sys.path[0],'images',
+ # 'samba-logo-vertical.png')
+ #samba_image = gtk.Image()
+ #samba_image.set_from_file(samba_image_filename)
+ #vbox.pack_end(samba_image, False, True, 0)
- self.main_box.pack_start(vbox, False, True, 0)
+ #self.main_box.pack_start(vbox, False, True, 0)
# the main form
self.stype_printq_radio_button = gtk.RadioButton(self.stype_disktree_radio_button,'Print Queue')
self.stype_printq_radio_button.set_tooltip_text('Shared Print Queue')
self.stype_printq_radio_button.set_active(self.stype == srvsvc.STYPE_PRINTQ)
- vbox.pack_start(self.stype_printq_radio_button)
+ #vbox.pack_start(self.stype_printq_radio_button)
+ #deactivating this option until samba4 is fixed TODO activate once base is fixed
self.stype_ipc_radio_button = gtk.RadioButton(self.stype_printq_radio_button,'IPC ')
self.stype_ipc_radio_button.set_tooltip_text('Shared Interprocess Communication Pipe (IPC).')
self.stype_ipc_radio_button.set_active(self.stype == srvsvc.STYPE_IPC)
- vbox.pack_start(self.stype_ipc_radio_button)
+ #vbox.pack_start(self.stype_ipc_radio_button)
+ #deactivating this option until samba4 is fixed TODO activate once base is fixed
# Special Share Flags
vbox = gtk.VBox()
self.vbox.pack_start(self.main_box,True,True,0)
#vertical logo
- vbox = gtk.VBox()
- vbox.set_border_width(5)
- samba_image_filename = os.path.join(sys.path[0],'images',
- 'samba-logo-vertical.png')
- samba_image = gtk.Image()
- samba_image.set_from_file(samba_image_filename)
- vbox.pack_end(samba_image, False, True, 0)
-
- self.main_box.pack_start(vbox, False, True, 0)
+ #vbox = gtk.VBox()
+ #vbox.set_border_width(5)
+ #samba_image_filename = os.path.join(sys.path[0],'images',
+ # 'samba-logo-vertical.png')
+ #samba_image = gtk.Image()
+ #samba_image.set_from_file(samba_image_filename)
+ #vbox.pack_end(samba_image, False, True, 0)
+
+ #self.main_box.pack_start(vbox, False, True, 0)
# the main form