Skip to content

Commit

Permalink
Merge branch '5.0' of github.com:plone/buildout.coredev into 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gotcha committed Jun 24, 2015
2 parents 1866d82 + f0c0e4f commit 6fef2f0
Show file tree
Hide file tree
Showing 8 changed files with 273 additions and 80 deletions.
32 changes: 9 additions & 23 deletions checkouts.cfg
Original file line number Diff line number Diff line change
@@ -1,38 +1,24 @@
[buildout]
#always-checkout = force
always-checkout = force
auto-checkout =
Products.CMFFormController
Products.CMFPlone
Products.CMFQuickInstallerTool
Products.contentmigration
Products.PortalTransforms
Products.TinyMCE
mockup
plone.app.collection
plone.app.content
plone.app.contentrules
plone.app.contenttypes
plone.app.controlpanel
plone.app.discussion
plone.app.caching
plone.app.dexterity
plone.app.event
plone.app.iterate
plone.app.layout
plone.app.contentlisting
plone.app.contentrules
plone.app.controlpanel
plone.app.locales
plone.app.multilingual
plone.app.portlets
plone.app.testing
plone.app.textfield
plone.app.theming
plone.app.upgrade
plone.app.users
plone.app.vocabularies
plone.dexterity
plone.formwidget.recurrence
plone.portlet.collection
plone.schemaeditor
plonetheme.barceloneta
plone.outputfilters
# test fixes only
Products.ATContentTypes
plone.app.caching
plone.app.discussion
plone.app.lockingbehavior
plone.locking
plone.app.z3cform
1 change: 0 additions & 1 deletion jenkins-package-dependencies.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ parts +=
jenkins-package-dependencies-grok-imports

auto-checkout = *
git-clone-depth = 10

versions = versions

Expand Down
244 changes: 223 additions & 21 deletions last_commit.txt
Original file line number Diff line number Diff line change
@@ -1,28 +1,230 @@
Repository: plone.app.event
Repository: Products.PortalTransforms


Branch: refs/heads/master
Date: 2015-06-24T11:00:09+02:00
Author: Godefroid Chapelle (gotcha) <gotcha@bubblenet.be>
Commit: https://github.com/plone/Products.PortalTransforms/commit/9aafffdec8cc031206d8785139a4927d67cce256

fix safe_html with entities after a &lt;script&gt; tag

Files changed:
M CHANGES.rst
M Products/PortalTransforms/tests/test_transforms.py
M Products/PortalTransforms/transforms/safe_html.py

diff --git a/CHANGES.rst b/CHANGES.rst
index 8450ec6..bc9c368 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -4,6 +4,9 @@ Changelog
2.1.7 (unreleased)
------------------

+- fix safe_html with entities after a <script> tag
+ [gotcha]
+
- Remove CMFDefault dependency
[tomgross]

diff --git a/Products/PortalTransforms/tests/test_transforms.py b/Products/PortalTransforms/tests/test_transforms.py
index 1dce9ef..98e214c 100644
--- a/Products/PortalTransforms/tests/test_transforms.py
+++ b/Products/PortalTransforms/tests/test_transforms.py
@@ -1,3 +1,4 @@
+# -*- coding: utf8 -*-
import os
import copy
import logging
@@ -214,12 +215,63 @@ def test_script(self):
data = self.pt.convertTo(target_mimetype='text/x-html-safe', orig=orig)
self.assertEqual(data.getData(), orig)

+ def test_unicode_in_script(self):
+ orig = ('<script type="text/javascript">'
+ ' $("h1 > ul").attr("alt", "Officiële");'
+ '</script>'
+ )
+ data = self.pt.convertTo(target_mimetype='text/x-html-safe', orig=orig)
+ self.assertEqual(data.getData(), orig)
+
def test_entities(self):
orig = "<code>a > 0 && b < 1</code>"
escaped = "<code>a &gt; 0 &amp;&amp; b &lt; 1</code>"
data = self.pt.convertTo(target_mimetype='text/x-html-safe', orig=orig)
self.assertEqual(data.getData(), escaped)

+ def test_script_with_entities_and_unicode(self):
+ orig = ('<script type="text/javascript">'
+ ' var el = "test";'
+ '</script>'
+ '<p>(KU&nbsp;Loket) Officiële inschrijvingen </p>'
+ )
+ data = self.pt.convertTo(target_mimetype='text/x-html-safe', orig=orig)
+ self.assertEqual(data.getData(), orig)
+
+ def test_script_with_entities(self):
+ orig = ('<script type="text/javascript">'
+ ' var el = "test";'
+ '</script>'
+ '<p>(KU&nbsp;Loket)</p>'
+ )
+ data = self.pt.convertTo(target_mimetype='text/x-html-safe', orig=orig)
+ self.assertEqual(data.getData(), orig)
+
+ def test_entities_with_script(self):
+ orig = ('<p>(KU&nbsp;Loket)</p>'
+ '<script type="text/javascript">'
+ ' var el = "test";'
+ '</script>'
+ )
+ data = self.pt.convertTo(target_mimetype='text/x-html-safe', orig=orig)
+ self.assertEqual(data.getData(), orig)
+
+ def test_script_with_unicode(self):
+ orig = ('<script type="text/javascript">'
+ ' var el = "test";'
+ '</script>'
+ '<p>Officiële inschrijvingen </p>'
+ )
+ data = self.pt.convertTo(target_mimetype='text/x-html-safe', orig=orig)
+ self.assertEqual(data.getData(), orig)
+
+ def test_entities_and_unicode(self):
+ orig = '<p>(KU&nbsp;Loket) Officiële inschrijvingen </p>'
+ data = self.pt.convertTo(target_mimetype='text/x-html-safe', orig=orig)
+ self.assertEqual(data.getData(), orig)
+
+
+
class WordTransformsTest(ATSiteTestCase):

def afterSetUp(self):
diff --git a/Products/PortalTransforms/transforms/safe_html.py b/Products/PortalTransforms/transforms/safe_html.py
index e5e243c..8fed210 100644
--- a/Products/PortalTransforms/transforms/safe_html.py
+++ b/Products/PortalTransforms/transforms/safe_html.py
@@ -2534,9 +2534,9 @@ def unknown_starttag(self, tag, attrs):
pass

def unknown_endtag(self, tag):
+ self.inside_script = False
if tag in self.nasty and not tag in self.valid:
self.suppress = False
- self.inside_script = False
if self.suppress:
return
if safeToInt(self.valid.get(tag)):


Repository: Products.PortalTransforms


Branch: refs/heads/master
Date: 2015-06-24T12:01:28+02:00
Author: Godefroid Chapelle (gotcha) <gotcha@bubblenet.be>
Commit: https://github.com/plone/Products.PortalTransforms/commit/f2f3721c236611c0145dc7213eb611ccca436ff4

tune manifest

Files changed:
M MANIFEST.in

diff --git a/MANIFEST.in b/MANIFEST.in
index f220fc4..6442174 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -1,4 +1,5 @@
include *
+exclude .installed.cfg

recursive-include docs *
recursive-include Products *


Repository: Products.PortalTransforms


Branch: refs/heads/master
Date: 2015-06-24T12:01:42+02:00
Author: Godefroid Chapelle (gotcha) <gotcha@bubblenet.be>
Commit: https://github.com/plone/Products.PortalTransforms/commit/021a27c72864dd43605f0682682646d15e8528f2

Preparing release 2.1.7

Files changed:
M CHANGES.rst
M setup.py

diff --git a/CHANGES.rst b/CHANGES.rst
index bc9c368..87bc302 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -1,7 +1,7 @@
Changelog
=========

-2.1.7 (unreleased)
+2.1.7 (2015-06-24)
------------------

- fix safe_html with entities after a <script> tag
diff --git a/setup.py b/setup.py
index 705ac4d..0df2a04 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,6 @@
from setuptools import setup, find_packages

-version = '2.1.7.dev0'
+version = '2.1.7'

setup(name='Products.PortalTransforms',
version=version,


Repository: Products.PortalTransforms


Branch: refs/heads/master
Date: 2015-06-03T23:28:43+02:00
Author: Johannes Raggam (thet) <raggam-nl@adm.at>
Commit: https://github.com/plone/plone.app.event/commit/ff49586286b76efdf3e212203e1f561a8b80b382
Date: 2015-06-24T12:02:09+02:00
Author: Godefroid Chapelle (gotcha) <gotcha@bubblenet.be>
Commit: https://github.com/plone/Products.PortalTransforms/commit/2db3e5d663e878f7e4663b2bd5f63924d7f0d6ea

correct lang in po
Back to development: 2.1.8

Files changed:
M plone/app/event/locales/de/LC_MESSAGES/plone.app.event.po

diff --git a/plone/app/event/locales/de/LC_MESSAGES/plone.app.event.po b/plone/app/event/locales/de/LC_MESSAGES/plone.app.event.po
index f23e4e4..8c028e8 100644
--- a/plone/app/event/locales/de/LC_MESSAGES/plone.app.event.po
+++ b/plone/app/event/locales/de/LC_MESSAGES/plone.app.event.po
@@ -11,8 +11,8 @@ msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0\n"
-"Language-Code: en\n"
-"Language-Name: English\n"
+"Language-Code: de\n"
+"Language-Name: Deutsch\n"
"Preferred-Encodings: utf-8 latin1\n"
"Domain: plone.app.event\n"
M CHANGES.rst
M setup.py

diff --git a/CHANGES.rst b/CHANGES.rst
index 87bc302..d65fbc1 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -1,6 +1,12 @@
Changelog
=========

+2.1.8 (unreleased)
+------------------
+
+- Nothing changed yet.
+
+
2.1.7 (2015-06-24)
------------------

diff --git a/setup.py b/setup.py
index 0df2a04..8c7cc42 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,6 @@
from setuptools import setup, find_packages

-version = '2.1.7'
+version = '2.1.8.dev0'

setup(name='Products.PortalTransforms',
version=version,


1 change: 1 addition & 0 deletions plips/plip-mosaic.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ auto-checkout +=
plone.app.tiles
plone.tiles
collective.dynamicmosaic
plone.formwidget.querystring

test-eggs +=
plone.app.drafts [test]
Expand Down
5 changes: 3 additions & 2 deletions plips/plip13350-edit-member-schema-ttw.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,17 @@ auto-checkout +=
plone.app.users
plone.schemaeditor
plone.app.dexterity
Products.CMFPlone
Products.PlonePAS
plone.app.controlpanel
eggs +=
plone.app.users
Plone

[sources]
plone.app.users = git ${remotes:plone}/plone.app.users.git branch=plip13350-edit-member-schema-ttw-post-z3cform-merge pushurl=${remotes:plone_push}/plone.app.users.git
plone.app.users = git ${remotes:plone}/plone.app.users.git branch=plip13350-edit-member-schema-ttw-rebase pushurl=${remotes:plone_push}/plone.app.users.git
Products.CMFPlone = git ${remotes:plone}/Products.CMFPlone.git branch=plip13350-edit-member-schema-ttw pushurl=${remotes:plone_push}/Products.CMFPlone.git
plone.schemaeditor = git ${remotes:plone}/plone.schemaeditor.git pushurl=${remotes:plone_push}/plone.schemaeditor.git
plone.schemaeditor = git ${remotes:plone}/plone.schemaeditor.git pushurl=${remotes:plone_push}/plone.schemaeditor.git branch=ebr-allow-additional-schemata-in-field-addform
plone.app.dexterity = git ${remotes:plone}/plone.app.dexterity.git pushurl=${remotes:plone_push}/plone.app.dexterity.git
Products.PlonePAS = git ${remotes:plone}/Products.PlonePAS.git pushurl=${remotes:plone_push}/Products.PlonePAS.git
plone.app.controlpanel = git ${remotes:plone}/plone.app.controlpanel.git pushurl=${remotes:plone_push}/plone.app.controlpanel.git
4 changes: 2 additions & 2 deletions plips/plip20114-plone.api-integration.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ auto-checkout +=
Products.CMFPlone

test-eggs +=
plone.api [test]
plone.api

[sources]
plone.api = git ${remotes:plone}/plone.api.git pushurl=${remotes:plone_push}/plone.api.git branch=plip
plone.api = git ${remotes:plone}/plone.api.git pushurl=${remotes:plone_push}/plone.api.git branch=master
Products.CMFPlone = git ${remotes:plone}/Products.CMFPlone.git pushurl=${remotes:plone_push}/Products.CMFPlone.git branch=20114-plone.api-integration
8 changes: 6 additions & 2 deletions tests.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,12 @@ PyGithub = 1.25.2
PyYAML = 3.11
argcomplete = 0.8.3
argh = 0.25.0
bleach = 1.4.1
chardet = 2.3.0
check-manifest = 0.21
configparser = 3.5.0b2
gitdb = 0.6.4
html5lib = 0.99999
httplib2 = 0.9
keyring = 4.0
launchpadlib = 1.10.2
Expand All @@ -169,14 +172,15 @@ oauth = 1.0.1
pathtools = 0.1.2
plone.releaser = 1.2
progress = 1.2
readme = 0.5.1
robotframework-ride = 1.3
smmap = 0.9.0
testresources = 0.2.7
wadllib = 1.3.2
watchdog = 0.8.3
z3c.recipe.scripts = 1.0.1
zest.pocompile = 1.4
zest.releaser = 4.0
zest.releaser = 5.1


[environment]
Expand Down Expand Up @@ -267,7 +271,6 @@ plone_app_testing =
plone.app.contentmenu
plone.app.contentrules
plone.app.contenttypes
plone.app.customerize
plone.app.dexterity
plone.app.discussion
plone.app.event
Expand Down Expand Up @@ -388,6 +391,7 @@ Dexterity =
#
# ----------------------------------------------------------------------------
plone_app_testing_test_isolation_problems =
plone.app.customerize
plone.app.linkintegrity
plone.app.versioningbehavior
plone.app.widgets
Expand Down
Loading

0 comments on commit 6fef2f0

Please sign in to comment.