[Checkins] SVN: Products.GenericSetup/trunk/ don't require description (it's not required in the directive's interface)

David Glick davidglick at onenw.org
Tue Aug 2 11:53:20 EDT 2011


Log message for revision 122443:
  don't require description (it's not required in the directive's interface)

Changed:
  U   Products.GenericSetup/trunk/Products/GenericSetup/tests/test_zcml.py
  U   Products.GenericSetup/trunk/Products/GenericSetup/zcml.py
  U   Products.GenericSetup/trunk/docs/CHANGES.rst

-=-
Modified: Products.GenericSetup/trunk/Products/GenericSetup/tests/test_zcml.py
===================================================================
--- Products.GenericSetup/trunk/Products/GenericSetup/tests/test_zcml.py	2011-08-02 15:28:54 UTC (rev 122442)
+++ Products.GenericSetup/trunk/Products/GenericSetup/tests/test_zcml.py	2011-08-02 15:53:20 UTC (rev 122443)
@@ -188,7 +188,6 @@
       ...     i18n_domain="foo">
       ...   <genericsetup:upgradeDepends
       ...       title="Upgrade Foo Product"
-      ...       description="Upgrades Foo from 1.0 to 1.1."
       ...       source="1.0"
       ...       destination="1.1"
       ...       sortkey="1"

Modified: Products.GenericSetup/trunk/Products/GenericSetup/zcml.py
===================================================================
--- Products.GenericSetup/trunk/Products/GenericSetup/zcml.py	2011-08-02 15:28:54 UTC (rev 122442)
+++ Products.GenericSetup/trunk/Products/GenericSetup/zcml.py	2011-08-02 15:53:20 UTC (rev 122443)
@@ -304,7 +304,7 @@
         args=(step,),
         )
 
-def upgradeDepends(_context, title, profile, description, import_profile=None,
+def upgradeDepends(_context, title, profile, description=None, import_profile=None,
                    import_steps=[], source='*', destination='*',
                    run_deps=False, purge=False, checker=None, sortkey=0):
     step = UpgradeDepends(title, profile, source, destination, description,

Modified: Products.GenericSetup/trunk/docs/CHANGES.rst
===================================================================
--- Products.GenericSetup/trunk/docs/CHANGES.rst	2011-08-02 15:28:54 UTC (rev 122442)
+++ Products.GenericSetup/trunk/docs/CHANGES.rst	2011-08-02 15:53:20 UTC (rev 122443)
@@ -4,6 +4,8 @@
 1.6.4 (unreleased)
 ------------------
 
+- ZCML: Don't require description for the `upgradeDepends` directive.
+
 - PythonScript handler: Newlines are now normalized during import.
 
 - No longer rely on `bobobase_modification_time`.



More information about the checkins mailing list