summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSérgio Almeida <mephx.x@gmail.com>2009-07-28 05:48:23 +0100
committerSérgio Almeida <mephx.x@gmail.com>2009-07-28 05:48:23 +0100
commit818876f0ea8c552345355bfbc1e44caff97ce98e (patch)
tree5e284f431b1ef0f23f9d086e3fdda875053c6869 /uprofile.py
parentAdded output to profile actions (diff)
downloaduselect-818876f0ea8c552345355bfbc1e44caff97ce98e.tar.gz
uselect-818876f0ea8c552345355bfbc1e44caff97ce98e.tar.bz2
uselect-818876f0ea8c552345355bfbc1e44caff97ce98e.zip
Revert "Added output to profile actions"
This reverts commit d2a989526ef7b6b1e6c51d60577cf483e8ad32db.
Diffstat (limited to 'uprofile.py')
-rwxr-xr-xuprofile.py19
1 files changed, 5 insertions, 14 deletions
diff --git a/uprofile.py b/uprofile.py
index cd613f2..3945ebf 100755
--- a/uprofile.py
+++ b/uprofile.py
@@ -20,14 +20,13 @@ from uio import printsystem
verbose = False
printsystem.set_type('profile')
-class Profile(Module):
+class Profile:
def __init__(self, name):
self.name = name
self.author = 'unnamed'
self.version = '0.1'
self.description = 'Empty'
-
self.actions = []
self.actions.append(Action(name = 'set', \
description = 'Set this profile for this folder.', \
@@ -35,10 +34,8 @@ class Profile(Module):
self.actions.append(Action(name = 'default', \
description = 'Set this profile the default profile.', \
type = 'profile'))
- self.parameters = []
- self.output = []
+ return
-
class UniversalProfileTool:
def __init__(self):
@@ -59,7 +56,6 @@ class UniversalProfileTool:
global verbose, version
profile = None
profiles = None
- action = None
printsystem.use_colors(True)
for arg in args:
if arg == '-v':
@@ -69,23 +65,18 @@ class UniversalProfileTool:
elif arg == '-nc':
printsystem.use_colors(False)
args = args[1:]
-
+
if len(args) < 1:
self.get_profiles()
profiles = self.profiles
elif len(args) == 1:
profile = self.get_profile(args[0])
- elif len(args) == 2:
- profile = self.get_profile(args[0])
- action = profile.get_action(args[1])
- action.build()
- action.do_action(args[1:])
if len(args) == 2:
args = None
else:
args = args[2:]
- return [profile, profiles, args, action]
+ return [profile, profiles, args]
def main():
@@ -94,7 +85,7 @@ def main():
list = uprofile.parse_argv(sys.argv[1:])
printsystem.print_ui(profile = list[0], \
- profiles = list[1], action = list[3], args = list[2])
+ profiles = list[1], args = list[2])
except UserWarning, warning:
printsystem.print_exception(warning, True)