Commit 6a1e6f7f authored by Nicolas Chauvat's avatar Nicolas Chauvat
Browse files

[packaging] finish renaming astream to activitystream to fix packaging

parent 60979f9af2af
"""cubicweb-astream application package """cubicweb-activitystream application package
activity streams activity streams
""" """
#!/bin/sh -e #!/bin/sh -e
delete_pyo_pyc () { delete_pyo_pyc () {
find /usr/share/cubicweb/cubes/astream -name "*.pyc" | xargs rm -f find /usr/share/cubicweb/cubes/activitystream -name "*.pyc" | xargs rm -f
find /usr/share/cubicweb/cubes/astream -name "*.pyo" | xargs rm -f find /usr/share/cubicweb/cubes/activitystream -name "*.pyo" | xargs rm -f
} }
......
...@@ -23,9 +23,9 @@ install: build ...@@ -23,9 +23,9 @@ install: build
dh_testroot dh_testroot
dh_clean -k dh_clean -k
dh_installdirs -i 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 # 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. # Build architecture-independent files here.
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
# #
# You should have received a copy of the GNU Lesser General Public License along # 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/>. # 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.selectors import is_instance, adaptable
from cubicweb.view import EntityAdapter from cubicweb.view import EntityAdapter
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
# You should have received a copy of the GNU Lesser General Public License along # 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/>. # 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. the cube is added to an existing instance.
You could setup site properties or a workflow here for example. You could setup site properties or a workflow here for example.
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
# You should have received a copy of the GNU Lesser General Public License along # 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/>. # 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: uncomment code below if you want to activate automatic test for your cube:
......
...@@ -19,7 +19,7 @@ class AStreamItemView(EntityView): ...@@ -19,7 +19,7 @@ class AStreamItemView(EntityView):
__select__ = EntityView.__select__ & adaptable('IActivityStreamItem') __select__ = EntityView.__select__ & adaptable('IActivityStreamItem')
def cell_call(self, row, col): 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) entity = self.cw_rset.get_entity(row, col)
activity = entity.cw_adapt_to('IActivityStreamItem') activity = entity.cw_adapt_to('IActivityStreamItem')
self.w(u'<div class="activitystream">' self.w(u'<div class="activitystream">'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment