Skip to content

Commit

Permalink
tags are now added via constructor not text scraping
Browse files Browse the repository at this point in the history
  • Loading branch information
gyst committed Mar 12, 2015
1 parent 699e2dd commit 4dea197
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/plonesocial/suite/setuphandlers.py
Expand Up @@ -135,8 +135,8 @@ def demo(context):
text += " #%s" % random.choice(tags)
if userid in workspace_users:
# workspace
text += ' #girlspace'
status = StatusUpdate(text, context=portal.workspace)
status = StatusUpdate(text, context=portal.workspace,
tags=['girlspace'])
else:
# global
status = StatusUpdate(text)
Expand All @@ -155,7 +155,7 @@ def demo(context):
'Local activitystreams show only local status updates. '
'Microblog updates will show globally only for users who '
'have the right permissions. This demo has a #girlspace workspace.')
s0 = StatusUpdate(t0, context=portal.workspace)
s0 = StatusUpdate(t0, context=portal.workspace, tags=['girlspace'])
s0.userid = workspace_users[0] # clare
s0.creator = " ".join([x.capitalize() for x in s0.userid.split("_")])
microblog.add(s0)
Expand All @@ -172,7 +172,7 @@ def demo(context):
s2.creator = " ".join([x.capitalize() for x in s2.userid.split("_")])
microblog.add(s2)
t3 = 'The #demo hashtag demonstrates that you can filter on topic'
s3 = StatusUpdate(t3)
s3 = StatusUpdate(t3, tags=['demo'])
s3.userid = s2.userid # kurt
s3.creator = s2.creator
microblog.add(s3)
Expand Down

0 comments on commit 4dea197

Please sign in to comment.