Commits

Anonymous committed 2c6dca3

Rename url to tracklr_url

Comments (0)

Files changed (1)

 
     def _get_url(self):
         try:
-            return '%s%s/' % (self.parent.url, self.tid)
+            return '%s%s/' % (self.parent.tracklr_url, self.tid)
         except AttributeError:
             return 'https://tracklr.com/t/'
-    url = property(_get_url)
+    tracklr_url = property(_get_url)
 
 class TracklrChildrenBase(TracklrBase):
     def __init__(self, obj_type, tid, name, parent):
     TRACKLR = Tracklr('andrew', PASSWD)
 
     for COMPANY in TRACKLR.companies:
-        print COMPANY, COMPANY.url
+        print COMPANY, COMPANY.tracklr_url
         for CLIENT in COMPANY.clients:
-            print ' %s' % CLIENT, CLIENT.url
+            print ' %s' % CLIENT, CLIENT.tracklr_url
             for PROJECT in CLIENT.projects:
-                print '  %s' % PROJECT, PROJECT.url
+                print '  %s' % PROJECT, PROJECT.tracklr_url
                 for TASK in PROJECT.tasks:
-                    print '   %s' % TASK, TASK.url
+                    print '   %s' % TASK, TASK.tracklr_url
                     for EVENT in TASK.events:
                         print '    %s start: %s end: %s' % (EVENT, EVENT.start,
                           EVENT.stop)
-                        print '   ', EVENT.length, EVENT.url
+                        print '   ', EVENT.length, EVENT.tracklr_url
 
     # You can also use pytraclkr like a dict, e.g.
     # TRACKLR['company']['client']['project']['task']['event']