Commit 73fb83db authored by Amos Latteier's avatar Amos Latteier

Added getId and removed 'id' attribute.

parent d710e24f
...@@ -91,14 +91,6 @@ class ObjectManagerItem: ...@@ -91,14 +91,6 @@ class ObjectManagerItem:
Attributes Attributes
'id' -- The id of the object.
This is the unique name of the object within its parent
object manager. This should be a string, and can contain
letters, digits, underscores, dashes, commas, and spaces.
This attribute should not be changed directly.
'title' -- The title of the object. 'title' -- The title of the object.
This is an optional one-line string description of the object. This is an optional one-line string description of the object.
...@@ -116,6 +108,19 @@ class ObjectManagerItem: ...@@ -116,6 +108,19 @@ class ObjectManagerItem:
This object is acquired and should not be set. This object is acquired and should not be set.
""" """
def getId(self):
"""
Returns the object's id.
The 'id' is the unique name of the object within its parent
object manager. This should be a string, and can contain
letters, digits, underscores, dashes, commas, and spaces.
This method replaces direct access to the 'id' attribute.
Permission -- Always available
"""
def title_or_id(self): def title_or_id(self):
""" """
If the title is not blank, return it, otherwise If the title is not blank, return it, otherwise
......
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