Actually the error I see is slightly different, looks like the `User` object is 
what is missing `shortname`

```
File '/var/local/allura/ForgeActivity/forgeactivity/main.py', line 227 in index
  'activity_name': data['followee'].shortname,
AttributeError: 'User' object has no attribute 'shortname'
```

Comparing to other places that use `_get_activities_data` results, I'm gussing 
`activity_name` would be better to use instead of `shortname`.


---

** [tickets:#8092] REST API for User Activity does not work due to missing 
attribute**

**Status:** open
**Milestone:** unreleased
**Labels:** api 
**Created:** Mon Jun 20, 2016 12:32 PM UTC by Rohan Verma
**Last Updated:** Mon Jun 20, 2016 12:32 PM UTC
**Owner:** Rohan Verma


Eg. https://forge-allura.apache.org/rest/u/brondsem/activity returns 500

This is due to line 227 since shortname attribute is not set for Profile tool. 
What should I do to solve it?

I'm not sure what needs to be done.

~~~
 'following': data['following'],
                   'followee': {
                       'activity_name': data['followee'].shortname,
                       'activity_url': data['followee'].url(),
                       'activity_extras': {},
~~~


---

Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed 
to https://forge-allura.apache.org/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://forge-allura.apache.org/p/allura/admin/tickets/options.  Or, if this is 
a mailing list, you can unsubscribe from the mailing list.

Reply via email to