-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of git://github.com/collective/collective.messa…
…gesviewlet
- Loading branch information
Showing
57 changed files
with
804 additions
and
279 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ include = | |
omit = | ||
*/test* | ||
*/upgrades/* | ||
*/upgrades.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,3 +23,5 @@ output.xml | |
*.html | ||
*.komodoproject | ||
share/ | ||
local/ | ||
pip-selfcheck.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,29 @@ | ||
language: python | ||
|
||
python: | ||
- 2.7 | ||
|
||
sudo: false | ||
cache: | ||
pip: true | ||
directories: | ||
- buildout-cache/downloads | ||
- buildout-cache/eggs | ||
|
||
- eggs | ||
- downloads | ||
python: | ||
- 2.7 | ||
env: | ||
- PLONE_VERSION=4.3 | ||
- PLONE_VERSION=5.1 | ||
install: | ||
- mkdir -p buildout-cache/{eggs,downloads} | ||
- python bootstrap-buildout.py --version=2.10.0 -c travis.cfg | ||
- bin/buildout -Nc travis.cfg | ||
|
||
- sed -ie "s#5-latest#$PLONE_VERSION-latest#" buildout.cfg | ||
- python bootstrap-buildout.py --version=2.11.4 | ||
- bin/buildout -N buildout:download-cache=downloads code-analysis:return-status-codes=True annotate | ||
- bin/buildout -N buildout:download-cache=downloads code-analysis:return-status-codes=True | ||
before_script: | ||
- export DISPLAY=:99.0 | ||
- sh -e /etc/init.d/xvfb start | ||
- firefox -v | ||
script: | ||
- bin/test | ||
- bin/coverage run bin/test | ||
|
||
after_success: | ||
- bin/coverage run bin/test | ||
- bin/createcoverage --output-dir htmlcov | ||
- pip install coveralls==0.5 | ||
- coveralls | ||
|
||
notifications: | ||
email: | ||
- devs@imio.be |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/usr/bin/make | ||
# | ||
# plone-path is added when "vhost_path: mount/site" is defined in puppet | ||
plone=$(shell grep plone-path port.cfg|cut -c 14-) | ||
hostname=$(shell hostname) | ||
instance1_port=$(shell grep instance1-http port.cfg|cut -c 18-) | ||
disable=1 | ||
copydata=1 | ||
instance=instance-debug | ||
profile=collective.messagesviewlet:base | ||
|
||
all: run | ||
|
||
.PHONY: bootstrap | ||
bootstrap: | ||
virtualenv-2.7 . | ||
./bin/python bootstrap-buildout.py | ||
|
||
.PHONY: setup | ||
setup: | ||
if [ -f /usr/bin/virtualenv-2.7 ] ; then virtualenv-2.7 .;else virtualenv -p python2.7 .;fi | ||
./bin/pip install --upgrade pip | ||
./bin/pip install -r requirements.txt | ||
|
||
.PHONY: buildout | ||
buildout: | ||
if ! test -f bin/buildout;then make setup;fi | ||
bin/buildout -v | ||
|
||
.PHONY: run | ||
run: | ||
if ! test -f bin/instance1;then make buildout;fi | ||
bin/instance1 fg | ||
|
||
.PHONY: cleanall | ||
cleanall: | ||
rm -fr lib bin/buildout develop-eggs downloads eggs parts .installed.cfg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
==================== | ||
========================== | ||
collective.messagesviewlet | ||
==================== | ||
========================== | ||
|
||
User documentation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
setuptools==38.5.1 | ||
wheel==0.31.1 | ||
zc.buildout==2.11.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
# -*- coding: utf-8 -*- | ||
"""Init and utils.""" | ||
|
||
from plone import api | ||
from zope.i18nmessageid import MessageFactory | ||
|
||
|
||
_ = MessageFactory('collective.messagesviewlet') | ||
|
||
HAS_PLONE_5 = api.env.plone_version().startswith('5') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
src/collective/messagesviewlet/browser/static/messagesviewlet.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
$(document).ready(function(){ | ||
$("#messagesviewlet .close-button").click(function(){ | ||
var m_uids = $.cookie('messagesviewlet'); | ||
var m_uid = $(this).parent().attr('id'); | ||
if (typeof m_uids === "undefined") {m_uids = m_uid;} | ||
else {m_uids += "|" + m_uid;} | ||
$.cookie('messagesviewlet', m_uids, { expires: 60 }); | ||
$(this).parent().hide(); | ||
}); | ||
}); |
Oops, something went wrong.