| Index: chrome/common/extensions/docs/server2/docs_server_utils.py
|
| diff --git a/chrome/common/extensions/docs/server2/docs_server_utils.py b/chrome/common/extensions/docs/server2/docs_server_utils.py
|
| index 524137ad9c924d05c17f041372d40bed27066d3c..68fc197ceb91db58cb6230bb30c0513c1afa2584 100644
|
| --- a/chrome/common/extensions/docs/server2/docs_server_utils.py
|
| +++ b/chrome/common/extensions/docs/server2/docs_server_utils.py
|
| @@ -27,3 +27,9 @@ def StringIdentity(string):
|
| '''Creates a small hash of a string.
|
| '''
|
| return b64encode(sha1(string).digest())[:8]
|
| +
|
| +def MarkLast(dicts):
|
| + '''Adds a property 'last' == True to the last element in a list of dicts.
|
| + '''
|
| + if len(dicts) > 0:
|
| + dicts[-1]['last'] = True
|
|
|