[Products.SilvaExternalSources][Sylvain Viollon] Fix source asse...
[email protected] Wed, 09 Oct 2013 17:15:26 +0200
| Newsgroups | gmane.comp.web.zope.silva.cvs |
|---|---|
| Message-ID | <[email protected]> |
author: Sylvain Viollon
date: Wed Oct 09 17:03:52 2013 +0200
revision: 1120:b555beff226d in Products.SilvaExternalSources
branch: 2.4
details: https://hg.infrae.com/Products.SilvaExternalSources?cmd=changeset;node=b555beff226d
modified: Products/SilvaExternalSources/ExternalSource.py Products/SilvaExternalSources/SourceAsset.py
added:
removed:
log: Fix source asset edit form that didn't display the proper fields and
actions.
Subject: [Products.SilvaExternalSources][Sylvain Viollon] Tag 3.0.2.
author: Sylvain Viollon
date: Wed Oct 09 17:14:40 2013 +0200
revision: 1121:06c4e9c92edf in Products.SilvaExternalSources
branch: 2.4
details: https://hg.infrae.com/Products.SilvaExternalSources?cmd=changeset;node=06c4e9c92edf
modified: MANIFEST.in Products/SilvaExternalSources/HISTORY.txt Products/SilvaExternalSources/README.txt setup.py
added:
removed:
log: Tag 3.0.2.
Subject: [Products.SilvaExternalSources][Sylvain Viollon] Added tag SilvaExternalSources-3.0.2 for changeset 06c4e9c92edf
author: Sylvain Viollon
date: Wed Oct 09 17:14:48 2013 +0200
revision: 1122:1f823c7167b7 in Products.SilvaExternalSources
branch: 2.4
details: https://hg.infrae.com/Products.SilvaExternalSources?cmd=changeset;node=1f823c7167b7
modified: .hgtags
added:
removed:
log: Added tag SilvaExternalSources-3.0.2 for changeset 06c4e9c92edf
Subject: [Products.SilvaExternalSources][Sylvain Viollon] Bump version.
author: Sylvain Viollon
date: Wed Oct 09 17:15:22 2013 +0200
revision: 1123:08f9903b91b5 in Products.SilvaExternalSources
branch: 2.4
details: https://hg.infrae.com/Products.SilvaExternalSources?cmd=changeset;node=08f9903b91b5
modified: Products/SilvaExternalSources/HISTORY.txt setup.py
added:
removed:
log: Bump version.
diffstat:
.hgtags | 1 +
MANIFEST.in | 2 +-
Products/SilvaExternalSources/ExternalSource.py | 3 ++
Products/SilvaExternalSources/HISTORY.txt | 29 ++++++++++++++++++++++++-
Products/SilvaExternalSources/README.txt | 7 ++++++
Products/SilvaExternalSources/SourceAsset.py | 11 +++++----
setup.py | 2 +-
7 files changed, 47 insertions(+), 8 deletions(-)
diffs (131 lines):
diff -r 2cb199d6d811 -r 08f9903b91b5 .hgtags
--- a/.hgtags Tue Oct 01 17:37:39 2013 +0200
+++ b/.hgtags Wed Oct 09 17:15:22 2013 +0200
@@ -41,3 +41,4 @@
1cc7546594abf71311d8d7537fbbb3f64f5cff09 SilvaExternalSources-3.0c1
75e1efdc58b6c5595f265a4e34d4d09cddd286bb SilvaExternalSources-3.0
f21664ea7c8d3c757b8a4c26f2a7c7b5a98ec461 SilvaExternalSources-3.0.1
+06c4e9c92edff0a77e83897cbead972061db6629 SilvaExternalSources-3.0.2
diff -r 2cb199d6d811 -r 08f9903b91b5 MANIFEST.in
--- a/MANIFEST.in Tue Oct 01 17:37:39 2013 +0200
+++ b/MANIFEST.in Wed Oct 09 17:15:22 2013 +0200
@@ -1,1 +1,1 @@
-recursive-include Products *.cpt *.css *.csv *.ini *.js *.mo *.png *.po *.pot *.pt *.py *.silvaxml *.swf *.txt *.xml *.zcml *.zpt
+recursive-include Products *.cpt *.css *.csv *.dtml *.ini *.js *.mo *.png *.po *.pot *.pt *.py *.silvaxml *.swf *.txt *.xml *.zcml *.zpt
diff -r 2cb199d6d811 -r 08f9903b91b5 Products/SilvaExternalSources/ExternalSource.py
--- a/Products/SilvaExternalSources/ExternalSource.py Tue Oct 01 17:37:39 2013 +0200
+++ b/Products/SilvaExternalSources/ExternalSource.py Wed Oct 09 17:15:22 2013 +0200
@@ -297,10 +297,13 @@
fields = source.get_parameters_form()
if fields is not None:
self.parameterFields = silvaforms.Fields(fields)
+ # This doesn't work because authentication is not done
+ # when __init__ is called.
if checkPermission(SETTINGS_PERMISSION, manager.context):
self.settingFields += TextField(
identifier="source_template",
title="Source template",
+ description="<!-- source output --> will be replaced by the HTML code generated by the source.",
constrainValue=validateSourceTemplate,
required=False)
dataManager.append(
diff -r 2cb199d6d811 -r 08f9903b91b5 Products/SilvaExternalSources/HISTORY.txt
--- a/Products/SilvaExternalSources/HISTORY.txt Tue Oct 01 17:37:39 2013 +0200
+++ b/Products/SilvaExternalSources/HISTORY.txt Wed Oct 09 17:15:22 2013 +0200
@@ -1,11 +1,38 @@
ChangeLog
=========
-3.0.2 (unreleased)
+3.0.3 (unreleased)
------------------
- ...
+3.0.2 (2013/10/09)
+------------------
+
+- Add a twitter code source.
+
+- Add the cs_copyright code source, that is the example created in the
+ `Silva technical documentation <http://docs.silvacms.org/latest/code_source/index.html>`_
+
+- Improve CKEditor plugin to work better in non-Firefox browsers.
+
+- A new field only accessible to manager let them warp the HTML
+ generated by a source with custom HTML code.
+
+- Add various helpers function accessible to code source in order to
+ expose Silva API.
+
+- Add a feature to dump code sources modified in ZODB back to the
+ filesystem.
+
+- Add a feature to dump all code sources to the filesystem, even if
+ they don't exists there yet (``manage_export_codesources``).
+
+- Improve code source service in order to be able to manage large
+ amount of code sources.
+
+- Add and improves more tests.
+
3.0.1 (2013/05/24)
------------------
diff -r 2cb199d6d811 -r 08f9903b91b5 Products/SilvaExternalSources/README.txt
--- a/Products/SilvaExternalSources/README.txt Tue Oct 01 17:37:39 2013 +0200
+++ b/Products/SilvaExternalSources/README.txt Wed Oct 09 17:15:22 2013 +0200
@@ -41,3 +41,10 @@
fields. We are working on adding facilities to Formulator to
improve this.
+Code repository
+===============
+
+You can find the code of this extension in Mercurial:
+https://hg.infrae.com/Products.SilvaExternalSources/.
+
+
diff -r 2cb199d6d811 -r 08f9903b91b5 Products/SilvaExternalSources/SourceAsset.py
--- a/Products/SilvaExternalSources/SourceAsset.py Tue Oct 01 17:37:39 2013 +0200
+++ b/Products/SilvaExternalSources/SourceAsset.py Wed Oct 09 17:15:22 2013 +0200
@@ -247,14 +247,14 @@
actions = silvaforms.Actions(silvaforms.CancelEditAction())
readOnly = False
- def __init__(self, context, request):
- editable = context.get_editable()
+ def update(self):
+ editable = self.context.get_editable()
if editable is not None:
- self.controller = editable.get_controller(request)
+ self.controller = editable.get_controller(self.request)
else:
- self.controller = context.get_viewable().get_controller(request)
+ self.controller = self.context.get_viewable().get_controller(
+ self.request)
self.readOnly = True
- super(SourceAssetEditForm, self).__init__(context, request)
def updateWidgets(self):
super(SourceAssetEditForm, self).updateWidgets()
@@ -273,6 +273,7 @@
def isEditable(self):
return (self.controller is not None and
+ not self.readOnly and
self.controller.mode != silvaforms.DISPLAY)
@silvaforms.action(
diff -r 2cb199d6d811 -r 08f9903b91b5 setup.py
--- a/setup.py Tue Oct 01 17:37:39 2013 +0200
+++ b/setup.py Wed Oct 09 17:15:22 2013 +0200
@@ -5,7 +5,7 @@
from setuptools import setup, find_packages
import os
-version = '3.0.2dev'
+version = '3.0.3dev'
tests_require = [
'silva.app.document [test]',