[packaging] finish renaming astream to activitystream to fix packaging
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>
Fri, 05 Aug 2011 18:17:54 +0200
changeset 11 2dd810ae668e
parent 10 60979f9af2af
child 12 37c203352b77
[packaging] finish renaming astream to activitystream to fix packaging
__init__.py
data/cubes.activitystream.css
data/cubes.astream.css
debian/cubicweb-activitystream.prerm
debian/cubicweb-astream.prerm
debian/rules
entities.py
migration/postcreate.py
test/data/bootstrap_cubes
test/test_astream.py
views.py
--- a/__init__.py	Fri Aug 05 18:07:48 2011 +0200
+++ b/__init__.py	Fri Aug 05 18:17:54 2011 +0200
@@ -1,4 +1,4 @@
-"""cubicweb-astream application package
+"""cubicweb-activitystream application package
 
 activity streams
 """
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/data/cubes.activitystream.css	Fri Aug 05 18:17:54 2011 +0200
@@ -0,0 +1,21 @@
+div.activitystream {
+  clear: both;
+}
+
+div.activitystream span.author {
+  margin: 0 10px 5px 0;
+  float: left;
+}
+
+div.activitystream span.msgtxt {
+  margin: 0 0 10px 0;
+}
+
+div.activitystream span.meta {
+  color: #999;
+  display: block;
+}
+
+div.activitystream span.meta a {
+  color: #999;
+}
\ No newline at end of file
--- a/data/cubes.astream.css	Fri Aug 05 18:07:48 2011 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,21 +0,0 @@
-div.activitystream {
-  clear: both;
-}
-
-div.activitystream span.author {
-  margin: 0 10px 5px 0;
-  float: left;
-}
-
-div.activitystream span.msgtxt {
-  margin: 0 0 10px 0;
-}
-
-div.activitystream span.meta {
-  color: #999;
-  display: block;
-}
-
-div.activitystream span.meta a {
-  color: #999;
-}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/cubicweb-activitystream.prerm	Fri Aug 05 18:17:54 2011 +0200
@@ -0,0 +1,27 @@
+#!/bin/sh -e
+
+delete_pyo_pyc () {
+  find /usr/share/cubicweb/cubes/activitystream -name "*.pyc" | xargs rm -f
+  find /usr/share/cubicweb/cubes/activitystream -name "*.pyo" | xargs rm -f
+}
+
+
+case "$1" in
+    failed-upgrade|abort-install|abort-upgrade|disappear)
+    ;;
+    upgrade)
+    delete_pyo_pyc
+    ;;
+    remove)
+    delete_pyo_pyc
+    ;;
+    purge)
+    ;;
+
+    *)
+        echo "postrm called with unknown argument \`$1'" >&2
+        exit 1
+
+esac
+
+#DEBHELPER#
--- a/debian/cubicweb-astream.prerm	Fri Aug 05 18:07:48 2011 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,27 +0,0 @@
-#!/bin/sh -e
-
-delete_pyo_pyc () {
-  find /usr/share/cubicweb/cubes/astream -name "*.pyc" | xargs rm -f
-  find /usr/share/cubicweb/cubes/astream -name "*.pyo" | xargs rm -f
-}
-
-
-case "$1" in
-    failed-upgrade|abort-install|abort-upgrade|disappear)
-    ;;
-    upgrade)
-    delete_pyo_pyc
-    ;;
-    remove)
-    delete_pyo_pyc
-    ;;
-    purge)
-    ;;
-
-    *)
-        echo "postrm called with unknown argument \`$1'" >&2
-        exit 1
-
-esac
-
-#DEBHELPER#
--- a/debian/rules	Fri Aug 05 18:07:48 2011 +0200
+++ b/debian/rules	Fri Aug 05 18:17:54 2011 +0200
@@ -23,9 +23,9 @@
 	dh_testroot
 	dh_clean -k
 	dh_installdirs -i
-	NO_SETUPTOOLS=1 python setup.py -q install --no-compile --prefix=debian/cubicweb-astream/usr/
+	NO_SETUPTOOLS=1 python setup.py -q install --no-compile --prefix=debian/cubicweb-activitystream/usr/
 	# remove generated .egg-info file
-	rm -rf debian/cubicweb-astream/usr/lib/python*
+	rm -rf debian/cubicweb-activitystream/usr/lib/python*
 
 
 # Build architecture-independent files here.
--- a/entities.py	Fri Aug 05 18:07:48 2011 +0200
+++ b/entities.py	Fri Aug 05 18:17:54 2011 +0200
@@ -13,7 +13,7 @@
 #
 # You should have received a copy of the GNU Lesser General Public License along
 # with this program. If not, see <http://www.gnu.org/licenses/>.
-"""cubicweb-astream adapters"""
+"""cubicweb-activitystream adapters"""
 
 from cubicweb.selectors import is_instance, adaptable
 from cubicweb.view import EntityAdapter
--- a/migration/postcreate.py	Fri Aug 05 18:07:48 2011 +0200
+++ b/migration/postcreate.py	Fri Aug 05 18:17:54 2011 +0200
@@ -14,7 +14,7 @@
 # You should have received a copy of the GNU Lesser General Public License along
 # with this program. If not, see <http://www.gnu.org/licenses/>.
 
-"""cubicweb-astream postcreate script, executed at instance creation time or when
+"""cubicweb-activitystream postcreate script, executed at instance creation time or when
 the cube is added to an existing instance.
 
 You could setup site properties or a workflow here for example.
--- a/test/data/bootstrap_cubes	Fri Aug 05 18:07:48 2011 +0200
+++ b/test/data/bootstrap_cubes	Fri Aug 05 18:17:54 2011 +0200
@@ -1,1 +1,1 @@
-astream
+activitystream
--- a/test/test_astream.py	Fri Aug 05 18:07:48 2011 +0200
+++ b/test/test_astream.py	Fri Aug 05 18:17:54 2011 +0200
@@ -14,7 +14,7 @@
 # You should have received a copy of the GNU Lesser General Public License along
 # with this program. If not, see <http://www.gnu.org/licenses/>.
 
-"""cubicweb-astream automatic tests
+"""cubicweb-activitystream automatic tests
 
 
 uncomment code below if you want to activate automatic test for your cube:
--- a/views.py	Fri Aug 05 18:07:48 2011 +0200
+++ b/views.py	Fri Aug 05 18:17:54 2011 +0200
@@ -19,7 +19,7 @@
     __select__ = EntityView.__select__ & adaptable('IActivityStreamItem')
 
     def cell_call(self, row, col):
-        self._cw.add_css('cubes.astream.css')
+        self._cw.add_css('cubes.activitystream.css')
         entity = self.cw_rset.get_entity(row, col)
         activity = entity.cw_adapt_to('IActivityStreamItem')
         self.w(u'<div class="activitystream">'