hide types, code cleanup, remove artwork, sys path appends not default anymore
authorDhananjay Sathe <dhananjaysathe@gmail.com>
Wed, 10 Aug 2011 18:34:55 +0000 (00:04 +0530)
committerDhananjay Sathe <dhananjaysathe@gmail.com>
Wed, 10 Aug 2011 18:34:55 +0000 (00:04 +0530)
sambagtk/main.py
sambagtk/pygwshare.py
sambagtk/pysrvsvc.py

index 9f679827f0cc16184739c4ee0d56c89afacb1302..f59901e17456e1cf1a341a2ac19442e235145321 100644 (file)
@@ -11,7 +11,9 @@ import gtk.glade
 import os.path
 import getopt
 
-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
+# Uncomment the above line if it is yor your config , else edit it as required
 
 
 import pygwsam
index c1c05516ef8c6c6de3f97a44f315dc40b53b1255..284c98d73c6e154fd3c885696528f798e9160060 100644 (file)
@@ -31,9 +31,9 @@ import getopt
 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 (
@@ -1772,5 +1772,3 @@ if __name__ == "__main__":
     main_window.show_all()
     gtk.main()
 
-#debug test pipe : TODO (remove later)
-# test = srvsvcPipeManager('127.0.0.1',0,'Administrator','Pass#2011')
index e3baa827048bfa06b38c8d1d888ead0cc99f1d44..cc552a782706667ba23579a040e92bd4ccebfb2e 100644 (file)
@@ -414,15 +414,15 @@ class ShareAddEditDialog(gtk.Dialog):
         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
 
@@ -515,12 +515,14 @@ class ShareAddEditDialog(gtk.Dialog):
         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()
@@ -681,15 +683,15 @@ class DeleteDialog(gtk.Dialog):
         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