[Commits] (alecf) fix bug 2394 - add a command line option to
delete the soup root on startup so that the UI can be
refreshed without rebuilding the repository
commits at osafoundation.org
commits at osafoundation.org
Tue Feb 1 14:07:00 PST 2005
Commit by: alecf
Modified files:
chandler/Chandler.py 1.58 1.59
chandler/application/Application.py 1.294 1.295
Log message:
fix bug 2394 - add a command line option to delete the soup root on startup so that the UI can be refreshed without rebuilding the repository
(note that this still leaves some unreferenced items in the repository, but that requires clould deletion to clean up)
ViewCVS links:
http://cvs.osafoundation.org/index.cgi/chandler/Chandler.py.diff?r1=text&tr1=1.58&r2=text&tr2=1.59
http://cvs.osafoundation.org/index.cgi/chandler/application/Application.py.diff?r1=text&tr1=1.294&r2=text&tr2=1.295
Index: chandler/Chandler.py
diff -u chandler/Chandler.py:1.58 chandler/Chandler.py:1.59
--- chandler/Chandler.py:1.58 Fri Jan 28 18:33:23 2005
+++ chandler/Chandler.py Tue Feb 1 14:06:58 2005
@@ -1,5 +1,5 @@
-__version__ = "$Revision: 1.58 $"
-__date__ = "$Date: 2005/01/29 02:33:23 $"
+__version__ = "$Revision: 1.59 $"
+__date__ = "$Date: 2005/02/01 22:06:58 $"
__copyright__ = "Copyright (c) 2003-2005 Open Source Applications Foundation"
__license__ = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
@@ -70,6 +70,7 @@
'nocatch': ('-n', '--nocatch', 'b', False, None, ''),
'wing': ('-w', '--wing', 'b', False, None, ''),
'komodo': ('-k', '--komodo', 'b', False, None, ''),
+ 'refreshui': ('-u', '--refresh-ui', 'b', False, None, 'Refresh the UI from the repository during startup'),
}
from optparse import OptionParser
Index: chandler/application/Application.py
diff -u chandler/application/Application.py:1.294 chandler/application/Application.py:1.295
--- chandler/application/Application.py:1.294 Fri Jan 28 14:31:02 2005
+++ chandler/application/Application.py Tue Feb 1 14:06:58 2005
@@ -1,5 +1,5 @@
-__version__ = "$Revision: 1.294 $"
-__date__ = "$Date: 2005/01/28 22:31:02 $"
+__version__ = "$Revision: 1.295 $"
+__date__ = "$Date: 2005/02/01 22:06:58 $"
__copyright__ = "Copyright (c) 2003-2004 Open Source Applications Foundation"
__license__ = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
@@ -263,6 +263,14 @@
isn't found then make a copy into the soup with the right name.
"""
mainViewRoot = self.UIRepositoryView.findPath('//userdata/MainViewRoot')
+
+ """
+ But first, blow away the soup if --refresh-ui is specified
+ """
+ if Globals.options.refreshui and mainViewRoot:
+ mainViewRoot.delete(True)
+ mainViewRoot = None
+
if not mainViewRoot:
template = self.UIRepositoryView.findPath ("//parcels/osaf/views/main/MainViewRoot")
assert (template)
More information about the Commits
mailing list