From 4a6ad9b04a62e785530a38c08d9eb9de59edc584 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Fri, 11 Feb 2011 23:58:49 +0000 Subject: move collaboration init to menu item --- (limited to 'turtleart.py') diff --git a/turtleart.py b/turtleart.py index be8e5b3..10820d3 100755 --- a/turtleart.py +++ b/turtleart.py @@ -1,6 +1,7 @@ #!/usr/bin/env python #Copyright (c) 2007-8, Playful Invention Company -#Copyright (c) 2008-10, Walter Bender +#Copyright (c) 2008-11, Walter Bender +#Copyright (c) 2011 Collabora Ltd. #Permission is hereby granted, free of charge, to any person obtaining a copy #of this software and associated documentation files (the "Software"), to deal @@ -94,7 +95,7 @@ class TurtleMain(): def _run_plugins(self): self._uploader.set_tw(self.tw) self._collab_plugin.set_tw(self.tw) - self._collab_plugin.setup() + # self._collab_plugin.setup() def _mkdir_p(self, path): '''Create a directory in a fashion similar to `mkdir -p`''' @@ -145,8 +146,8 @@ class TurtleMain(): self.tw.save_folder = os.path.expanduser('~') def _init_vars(self): - # If we are invoked to start a project from Gnome, we should make - # sure our current directory is TA's source dir. + """ If we are invoked to start a project from Gnome, we should make + sure our current directory is TA's source dir. """ os.chdir(os.path.dirname(__file__)) self.ta_file = None @@ -184,10 +185,8 @@ class TurtleMain(): if not os.path.exists(self.ta_file): assert False, ('%s: %s' % (self.ta_file, _('File not found'))) - """ - make sure Sugar paths are present - """ def _ensure_sugar_paths(self): + """ Make sure Sugar paths are present. """ tapath = os.path.join(os.environ['HOME'], '.sugar', 'default', 'org.laptop.TurtleArtActivity') map(self._makepath, (os.path.join(tapath, 'data/'), -- cgit v0.9.1