matthijs/upstream/mobilegtd.git
15 years agoExtract some common view stuff into a View class.
Matthijs Kooijman [Mon, 17 Aug 2009 22:03:55 +0000 (00:03 +0200)]
Extract some common view stuff into a View class.

This class forms a superclass to ListView, and does all the
non-list-specific stuff. This also moves some code from classes below
ListView into View, since that code really shouldn't be where it was.

15 years agomake all *View classes call their parent constructors.
Matthijs Kooijman [Mon, 17 Aug 2009 21:45:43 +0000 (23:45 +0200)]
make all *View classes call their parent constructors.

This includes the top level classes that inherit from object, and
ensures that all constructors will be called in multiple inheritance
situations. This removes the need for the explicit call to
KeyBindingView's constructor.

15 years agoRemove the entry_filters argument from *View constructors.
Matthijs Kooijman [Mon, 17 Aug 2009 21:41:08 +0000 (23:41 +0200)]
Remove the entry_filters argument from *View constructors.

15 years agoMerge branch 'master' of git://gitorious.org/mobilegtd/mobilegtd
Matthijs Kooijman [Mon, 17 Aug 2009 20:17:00 +0000 (22:17 +0200)]
Merge branch 'master' of git://gitorious.org/mobilegtd/mobilegtd

* 'master' of git://gitorious.org/mobilegtd/mobilegtd:
  Added documentation to action.py and project.py

15 years agoFix the project detail menu, by passing the default actions config.
Matthijs Kooijman [Mon, 17 Aug 2009 20:14:40 +0000 (22:14 +0200)]
Fix the project detail menu, by passing the default actions config.

15 years agoMake sure the gtd base path has a trailing slash.
Matthijs Kooijman [Mon, 17 Aug 2009 20:14:09 +0000 (22:14 +0200)]
Make sure the gtd base path has a trailing slash.

15 years agoRemove the title argument from the *View classes constructors.
Matthijs Kooijman [Mon, 17 Aug 2009 19:47:11 +0000 (21:47 +0200)]
Remove the title argument from the *View classes constructors.

15 years agoRemove the binding_map argument from KeyBindingView.__init__.
Matthijs Kooijman [Mon, 17 Aug 2009 18:54:34 +0000 (20:54 +0200)]
Remove the binding_map argument from KeyBindingView.__init__.

This prepares for making the constructors involved in the View object
hierarchy all argumentless so they can properly be called in the normal
way.

15 years agoAdded documentation to action.py and project.py
Martin.Mauch [Mon, 17 Aug 2009 18:36:06 +0000 (20:36 +0200)]
Added documentation to action.py and project.py

15 years agoMake the base path an absolute path.
Matthijs Kooijman [Fri, 14 Aug 2009 18:00:11 +0000 (20:00 +0200)]
Make the base path an absolute path.

This fixes loading of files when running on systems where "C:\..." is
not an absolute path.

15 years agoUse compat.sorted.
Matthijs Kooijman [Fri, 14 Aug 2009 15:00:35 +0000 (17:00 +0200)]
Use compat.sorted.

15 years agoAdd compat module with a sorted function.
Matthijs Kooijman [Fri, 14 Aug 2009 14:58:47 +0000 (16:58 +0200)]
Add compat module with a sorted function.

The sorted builtin function was not available in python 2.2 yet (pys60
1.4.x), so we add our own version.

15 years agoClean up and improve error reporting.
Matthijs Kooijman [Wed, 12 Aug 2009 21:09:37 +0000 (23:09 +0200)]
Clean up and improve error reporting.

This removes some unused stuff and tries to make the error reporting a
bit more clear and concise.

15 years agoMake the exit button on an error window work.
Matthijs Kooijman [Wed, 12 Aug 2009 20:33:24 +0000 (22:33 +0200)]
Make the exit button on an error window work.

The exit button appeared to work already on my device, but didn't work
with pys60-compat library yet.

15 years agoClean up the main run() function a bit.
Matthijs Kooijman [Wed, 12 Aug 2009 20:31:01 +0000 (22:31 +0200)]
Clean up the main run() function a bit.

15 years agoAdd getfilesystemencoding() for python < 2.3.
Matthijs Kooijman [Wed, 12 Aug 2009 20:19:58 +0000 (22:19 +0200)]
Add getfilesystemencoding() for python < 2.3.

15 years agoMake error reporting work for errors in logger.
Matthijs Kooijman [Wed, 12 Aug 2009 20:04:54 +0000 (22:04 +0200)]
Make error reporting work for errors in logger.

Previously, errors in the logger initialization would cause the
exception handling to barf.

15 years agoCatch more exceptions at top level.
Matthijs Kooijman [Wed, 12 Aug 2009 18:58:56 +0000 (20:58 +0200)]
Catch more exceptions at top level.

Previously, a bunch of intialization code was outside of the try,
so any exceptions there would not be shown at all.

15 years agoAlways call run() from main.py.
Matthijs Kooijman [Wed, 12 Aug 2009 18:52:40 +0000 (20:52 +0200)]
Always call run() from main.py.

Previously, run() was only called when main.py was the main module, but
this is never the case (since default.py is the main module).

15 years agoImport sys before using it in default.py
Matthijs Kooijman [Wed, 12 Aug 2009 16:38:51 +0000 (18:38 +0200)]
Import sys before using it in default.py

15 years agoAdd files from the old svn, r101.
Matthijs Kooijman [Wed, 12 Aug 2009 16:31:19 +0000 (18:31 +0200)]
Add files from the old svn, r101.

The directory structure was changed and the files were converted to unix
line endings, but no other changes were made. The contents of the files
is still unmodified. This means it (still) doesn't work currently.

15 years agoEmpty initial commit.
Matthijs Kooijman [Thu, 13 Aug 2009 09:00:12 +0000 (11:00 +0200)]
Empty initial commit.