From wiggy at codespeak.net Wed Apr 2 10:53:54 2008 From: wiggy at codespeak.net (wiggy at codespeak.net) Date: Wed, 2 Apr 2008 10:53:54 +0200 (CEST) Subject: [kupu-checkins] r53252 - in kupu/branch/kupu-1.4: doc plone/kupu_plone_layer Message-ID: <20080402085354.E6C311684DB@codespeak.net> Author: wiggy Date: Wed Apr 2 10:53:51 2008 New Revision: 53252 Modified: kupu/branch/kupu-1.4/doc/CHANGES.txt kupu/branch/kupu-1.4/plone/kupu_plone_layer/emptypage.pt Log: Update emptypage.pt to include a hint for deliverance that edited pages should not be themed. Modified: kupu/branch/kupu-1.4/doc/CHANGES.txt ============================================================================== --- kupu/branch/kupu-1.4/doc/CHANGES.txt (original) +++ kupu/branch/kupu-1.4/doc/CHANGES.txt Wed Apr 2 10:53:51 2008 @@ -2,6 +2,11 @@ Kupu changes ============ +- x.y.z + + - Update emptypage.pt to include a hint for deliverance that edited + pages should not be themed. + - 1.4.9 - Manage anchors didn't add an anchor correctly if there was an Modified: kupu/branch/kupu-1.4/plone/kupu_plone_layer/emptypage.pt ============================================================================== --- kupu/branch/kupu-1.4/plone/kupu_plone_layer/emptypage.pt (original) +++ kupu/branch/kupu-1.4/plone/kupu_plone_layer/emptypage.pt Wed Apr 2 10:53:51 2008 @@ -1,6 +1,7 @@ Kupu contentarea + From wiggy at codespeak.net Thu Apr 3 10:17:45 2008 From: wiggy at codespeak.net (wiggy at codespeak.net) Date: Thu, 3 Apr 2008 10:17:45 +0200 (CEST) Subject: [kupu-checkins] r53279 - kupu/branch/kupu-1.4/plone/kupu_plone_layer Message-ID: <20080403081745.541BB16A05C@codespeak.net> Author: wiggy Date: Thu Apr 3 10:17:43 2008 New Revision: 53279 Modified: kupu/branch/kupu-1.4/plone/kupu_plone_layer/kupu_kjax_support.xml.pt Log: Remove bogus leading whitespace Modified: kupu/branch/kupu-1.4/plone/kupu_plone_layer/kupu_kjax_support.xml.pt ============================================================================== --- kupu/branch/kupu-1.4/plone/kupu_plone_layer/kupu_kjax_support.xml.pt (original) +++ kupu/branch/kupu-1.4/plone/kupu_plone_layer/kupu_kjax_support.xml.pt Thu Apr 3 10:17:43 2008 @@ -18,7 +18,7 @@ length python:len(context.portal_catalog.searchResults(**query));" id="query_length" kj:mode="replace"> -
+
From hannosch at codespeak.net Sat Apr 5 15:54:59 2008 From: hannosch at codespeak.net (hannosch at codespeak.net) Date: Sat, 5 Apr 2008 15:54:59 +0200 (CEST) Subject: [kupu-checkins] r53391 - kupu/branch/kupu-1.4/plone/tests Message-ID: <20080405135459.7C19E16A9C9@codespeak.net> Author: hannosch Date: Sat Apr 5 15:54:59 2008 New Revision: 53391 Added: kupu/branch/kupu-1.4/plone/tests/test_i18n.py (contents, props changed) Log: Added i18n test script. Added: kupu/branch/kupu-1.4/plone/tests/test_i18n.py ============================================================================== --- (empty file) +++ kupu/branch/kupu-1.4/plone/tests/test_i18n.py Sat Apr 5 15:54:59 2008 @@ -0,0 +1,60 @@ +import os + +from Testing import ZopeTestCase +from Globals import package_home + +HAS_I18NDUDE = True +try: + from Products.i18ntestcase import PotTestCase, PoTestCase + from Products.i18ntestcase.I18NTestCase import getPoFiles, getPotFiles, getProductFromPath + from i18ndude import catalog +except ImportError: + HAS_I18NDUDE = False + +if HAS_I18NDUDE: + GLOBALS = globals() + PACKAGE_HOME = os.path.normpath(os.path.join(package_home(GLOBALS), '..', '..')) + + head, tail = os.path.split(PACKAGE_HOME) + if tail == 'tests': + PACKAGE_HOME = os.path.join(PACKAGE_HOME, '..') + + i18ndir = os.path.normpath(PACKAGE_HOME) + + tests=[] + products=[] + pots={} + pot_catalogs={} + pot_lens={} + + for potFile in getPotFiles(path=i18ndir): + product = getProductFromPath(potFile) + if product not in products: + products.append(product) + if product not in pot_catalogs: + cat = catalog.MessageCatalog(filename=potFile) + cat_len = len(cat) + pots.update({product: potFile}) + pot_catalogs.update({product: cat}) + pot_lens.update({product: cat_len}) + + for product in products: + class TestOnePOT(PotTestCase.PotTestCase): + product = product + pot = pots[product] + tests.append(TestOnePOT) + + for poFile in getPoFiles(path=i18ndir, product=product): + class TestOnePoFile(PoTestCase.PoTestCase): + po = poFile + product = product + pot_cat = pot_catalogs[product] + pot_len = pot_lens[product] + tests.append(TestOnePoFile) + + import unittest + def test_suite(): + suite = unittest.TestSuite() + for test in tests: + suite.addTest(unittest.makeSuite(test)) + return suite From hannosch at codespeak.net Sun Apr 6 11:43:29 2008 From: hannosch at codespeak.net (hannosch at codespeak.net) Date: Sun, 6 Apr 2008 11:43:29 +0200 (CEST) Subject: [kupu-checkins] r53424 - in kupu/branch/kupu-1.4: common/kupudrawers doc plone Message-ID: <20080406094329.83BDF16A69E@codespeak.net> Author: hannosch Date: Sun Apr 6 11:43:29 2008 New Revision: 53424 Modified: kupu/branch/kupu-1.4/common/kupudrawers/drawer.xsl kupu/branch/kupu-1.4/doc/CHANGES.txt kupu/branch/kupu-1.4/plone/kupu_config.pt kupu/branch/kupu-1.4/plone/zmi_toolbar.pt Log: Fixed #8003. Kupu translation msgids containing html. Modified: kupu/branch/kupu-1.4/common/kupudrawers/drawer.xsl ============================================================================== --- kupu/branch/kupu-1.4/common/kupudrawers/drawer.xsl (original) +++ kupu/branch/kupu-1.4/common/kupudrawers/drawer.xsl Sun Apr 6 11:43:29 2008 @@ -511,10 +511,12 @@ target="kupu_upload_form_target" enctype="multipart/form-data" style="margin: 0; border: 0;"> -