dabo Commit Revision 7298 Date: 2012-12-29 18:32:38 -0800 (Sat, 29 Dec 2012) Author: Paul Trac: http://trac.dabodev.com/changeset/7298
Changed: U trunk/dabo/settings.py U trunk/ide/ClassDesignerPropSheet.py Log: First in a series of 3 commits. This one should have zero effect on the current state of things as all it does is add 2 new names and removes 2 unused names in settings.py. Added: implicitImports = True which will have the historical behavior of importing subpackages into the dabo namespace automatically. Set to False for faster 'import dabo' time when your app is specialized and only wants to run a report and doesn't need dApp, dPref, ui, biz, db, etc., for example. localizeDabo = True Removed: verboseLogging which was only referenced in one place. mainLogLevel which wasn't referenced anywhere. Diff: Modified: trunk/dabo/settings.py =================================================================== --- trunk/dabo/settings.py 2012-12-29 02:13:04 UTC (rev 7297) +++ trunk/dabo/settings.py 2012-12-30 02:32:38 UTC (rev 7298) @@ -30,9 +30,6 @@ ### Settings - begin -# Do we write info-level messages to stdout? -verboseLogging = False - # Event logging is turned off globally by default for performance reasons. # Set to True (and also set LogEvents on the object(s)) to get logging. eventLogging = False @@ -42,7 +39,7 @@ # because it is very expensive from a performance standpoint. allNativeEventInfo = False -# Set dabo.fastNameSet to True to bypass Dabo's checking to make sure siblings +# Set fastNameSet to True to bypass Dabo's checking to make sure siblings # have unique names, greatly speeding up instantiation of many objects. If you # do this, your code takes responsibility for ensuring that sibling names are # in fact unique. We recommend you leave fastNameSet to False here, and wrap @@ -54,8 +51,7 @@ # dabo.fastNameSet = False fastNameSet = False - -# dabo.autoBindEvents is a global flag which determines if events are bound +# autoBindEvents specifies whether events are bound # automatically to callback functions when the object is instantiated. E.g., # where you used to have to have code like: # @@ -73,7 +69,6 @@ # autoBindEvents = True - # If you set MDI to True, then dFormMain and dForm will default to being MDI # parent and MDI child, respectively. IOW, you don't have to change your dForm # and dFormMain subclasses to inherit from dFormChildMDI, etc., but it comes at @@ -193,7 +188,6 @@ webupdate_urlbase = "http://daboserver.com/webupdate" # Logging settings -mainLogLevel = logging.DEBUG mainLogQualName = "dabo.mainLog" # Set the main log file to None initially mainLogFile = None @@ -239,6 +233,16 @@ copyStringSeparator= '"' copyLineSeparator = "\n" +# 2012-12-14: Reworked dabo's packaging to no longer import a bunch of subpackages and modules +# if implicitImports is False. Eventually, implicitImports will default to False, +# but for now it is True to allow appdevs time to test it with their setup before +# being forced to make changes. +implicitImports = True + +# 2012-12-14: Setting to determine if we call dLocalize.install("dabo") when dabo is imported. +# This will remain defaulted to True but appdevs can turn if off if desired. +localizeDabo = True + ### Settings - end Modified: trunk/ide/ClassDesignerPropSheet.py =================================================================== --- trunk/ide/ClassDesignerPropSheet.py 2012-12-29 02:13:04 UTC (rev 7297) +++ trunk/ide/ClassDesignerPropSheet.py 2012-12-30 02:32:38 UTC (rev 7298) @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- import os import pydoc -import dabo +import dabo.ui if __name__ == "__main__": dabo.ui.loadUI("wx") from dabo.dLocalize import _ @@ -766,11 +766,7 @@ pd = self.getPropDictForRow(row) if not isinstance(pd, dict): - if pd is None: - if dabo.verboseLogging: - # Not technically logging, but this is such a non-event... - print _("None PROP DICT:, ROW="), row, col, typ - else: + if pd is not None: print _("BAD PROP DICT:"), pd, type(pd), _("ROW="), row else: if pd["type"] == "multi": _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-dev Searchable Archives: http://leafe.com/archives/search/dabo-dev This message: http://leafe.com/archives/byMID/[email protected]
