org.guifications.plugins: 057c1ef7b98bfa246e7f07018bb6330124e5ce04

grim at guifications.org grim at guifications.org
Thu Jul 3 04:15:05 CDT 2008


-----------------------------------------------------------------
Revision: 057c1ef7b98bfa246e7f07018bb6330124e5ce04
Ancestor: 8fb7d6d142b724cd909c4d3456f84ef66a551ccf
Author: grim at guifications.org
Date: 2008-07-03T08:55:38
Branch: org.guifications.plugins

Modified files:
        plugin_pack.py

ChangeLog: 

Cleaning up some documentation inside of plugin_pack.py


-----------------------------------------------------------------
This revision's diffstat output:
 plugin_pack.py |   16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)
-------------- next part --------------
============================================================
--- plugin_pack.py	280c9433d63b1b9909595e9fbf04db1596806e2d
+++ plugin_pack.py	a812e0a5c6626018639c90efffaa84d5b3c11b69
@@ -194,7 +194,17 @@ class PluginPack:
 		except KeyError:
 			print 'command \'%s\' was not found' % args[0]
 		except IndexError:
-			pass
+			print self.help.__doc__
+			print
+			print 'help usage:'
+			print '  help <command>'
+			print
+			print 'Available commands:'
+
+			cmds = self.commands.keys()
+			cmds.remove('help')
+			cmds.sort()
+			print '  %s' % (string.join(cmds, ' '))
 	commands['help'] = help
 
 	def dist_dirs(self, args):
@@ -291,6 +301,8 @@ class PluginPack:
 	commands['build_dirs'] = build_dirs
 	
 	def list_plugins(self, args):
+		"""Displays a list similiar to 'dpkg -l' about the plugin pack"""
+
 		data = {}
 
 		# create an array for the widths, we initialize it to the lengths of
@@ -430,6 +442,7 @@ class PluginPack:
 	commands['dependency_graph'] = dependency_graph
 
 	def debian_description(self, args):
+		"""Outputs the description for the Debian packages"""
 		print 'Description: %d useful plugins for Pidgin, Finch, and Purple' % len(self.plugins)
 		print ' The Plugin Pack is a collection of many simple-yet-useful plugins for Pidgin,'
 		print ' Finch, and Purple.  You will find a summary of each plugin below.  For more'
@@ -445,6 +458,7 @@ class PluginPack:
 			print ' %s: %s' % (plugin.name, plugin.summary)
 
 		print ' .'
+		print ' .'
 		print ' Homepage: %s' % webpage
 	commands['debian_description'] = debian_description
 


More information about the Plugins-commits mailing list