~amachattie/gtg/patch_one

« back to all changes in this revision

Viewing changes to GTG/core/tag.py

  • Committer: Nimit Shah
  • Date: 2014-03-10 03:37:32 UTC
  • mfrom: (1360.2.18 test-cleanup)
  • Revision ID: nimit.svnit@gmail.com-20140310033732-n4od1z8npybs4ooc
Rework of test-suite, by Izidor Matušov

Show diffs side-by-side

added added

removed removed

Lines of Context:
120
120
        """
121
121
        modified = False
122
122
        if att_name == "name":
123
 
            raise Set_Name_Attribute_Error(
 
123
            raise KeyError(
124
124
                "The name of tag cannot be set manually")
125
125
        elif att_name == "parent":
126
126
            self.add_parent(att_value)
246
246
 
247
247
    def __str__(self):
248
248
        return "Tag: %s" % self.get_name()
249
 
 
250
 
 
251
 
class Set_Name_Attribute_Error(Exception):
252
 
    """Exception raised when try to set attribute to name"""
253
 
    pass