Ignore:
Timestamp:
09/10/08 09:36:23 (13 years ago)
Author:
cbyrom
Message:

Add new utility methods for adding/removing/retrieving online reference data
+ improve compare methods on atom subtype objects + extend test suite to test
new methods.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • exist/trunk/python/ndgUtils/models/MolesEntity.py

    r4240 r4314  
    4646 
    4747    def __cmp__(self, link): 
    48         logging.debug("Comparing link objects") 
     48        if not link: 
     49            return -1 
     50         
    4951        if isinstance(link, DeploymentLink): 
    5052            if link.url == self.url and \ 
    5153                link.vocabUrl == self.vocabUrl and \ 
    5254                link.title == self.title: 
    53                 logging.debug("- links are equal") 
    5455                return 0 
    5556 
    56         logging.debug("- links are not equal") 
    5757        return 1 
    5858     
Note: See TracChangeset for help on using the changeset viewer.