--- a/Allura/allura/lib/app_globals.py
+++ b/Allura/allura/lib/app_globals.py
@@ -11,8 +11,8 @@
from urllib import urlencode
from subprocess import Popen, PIPE
+import activitystream
import pkg_resources
-
import pysolr
import markdown
import pygments
@@ -149,6 +149,13 @@
# Zarkov logger
self._zarkov = None
+ @property
+ def director(self):
+ """Return activitystream director"""
+ if not hasattr(self, '_director'):
+ self._director = activitystream.director()
+ return self._director
+
@LazyProperty
def amq_conn(self):
if asbool(config.get('amqp.enabled', 'true')):