Permalink
Browse files

fix tests; fix issue where sharer wouldn't be shown if no document ac…

…tions were active

svn path=/collective.sharerizer/trunk/; revision=108318
  • Loading branch information...
1 parent 4d8cc06 commit 8109f48a2887ece3de366f3fbf726a63410e7c2b @davisagli davisagli committed Jan 8, 2010
@@ -4,11 +4,14 @@ Changelog
1.0 - Unreleased
----------------
+* Make sure the code is rendered even if there are no other active document
+ actions.
+ [davisagli]
+
* Make sure our browser layer takes precedence over Plone default in Plone 3.3
[davisagli]
* Added checkbox to enable document action icons
[Josh Boese]
* Initial implementation
-
@@ -1,2 +0,0 @@
-collective.sharerizer
-====================
@@ -1,7 +1,8 @@
<div class="visualClear"><!-- --></div>
<div i18n:domain="plone"
class="documentActions">
- <tal:docactions tal:condition="view/actions">
+ <tal:docactions tal:define="code view/getShareCode"
+ tal:condition="python:view.actions or code">
<h5 class="hiddenStructure" i18n:translate="heading_document_actions">Document Actions</h5>
@@ -21,7 +22,6 @@
</li>
</tal:actions>
<li id="document-action-sharerizer" class="last-action"
- tal:define="code view/getShareCode"
tal:condition="code">
<tal:code replace="structure code">
Code (as configured in the configlet) goes here
@@ -8,7 +8,7 @@
def load_zcml():
import collective.sharerizer
zcml.load_config('configure.zcml', collective.sharerizer)
- ztc.installPackage('collective.weightedportlets')
+ ztc.installPackage('collective.sharerizer')
load_zcml()
ptc.setupPloneSite(products=['collective.sharerizer'])
View
@@ -1,43 +0,0 @@
-collective.sharerizer Installation
-----------------------------------
-
-To install collective.sharerizer into the global Python environment (or a workingenv),
-using a traditional Zope 2 instance, you can do this:
-
-* When you're reading this you have probably already run
- ``easy_install collective.sharerizer``. Find out how to install setuptools
- (and EasyInstall) here:
- http://peak.telecommunity.com/DevCenter/EasyInstall
-
-* Create a file called ``collective.sharerizer-configure.zcml`` in the
- ``/path/to/instance/etc/package-includes`` directory. The file
- should only contain this::
-
- <include package="collective.sharerizer" />
-
-
-Alternatively, if you are using zc.buildout and the plone.recipe.zope2instance
-recipe to manage your project, you can do this:
-
-* Add ``collective.sharerizer`` to the list of eggs to install, e.g.:
-
- [buildout]
- ...
- eggs =
- ...
- collective.sharerizer
-
-* Tell the plone.recipe.zope2instance recipe to install a ZCML slug:
-
- [instance]
- recipe = plone.recipe.zope2instance
- ...
- zcml =
- collective.sharerizer
-
-* Re-run buildout, e.g. with:
-
- $ ./bin/buildout
-
-You can skip the ZCML slug if you are going to explicitly include the package
-from another package's configure.zcml file.

0 comments on commit 8109f48

Please sign in to comment.