Commits

David Chambers  committed 9aac8cb

Underscored-prefixed `Document#apt` because I don't want to document it!

  • Participants
  • Parent commits 2a9e392

Comments (0)

Files changed (1)

         if parent is None:
             self.convert()
 
-    def apt(self, if_update, if_master=''):
+    def _apt(self, if_update, if_master=''):
         return if_update if self._parent else if_master
 
     def convert(self, contents=None):
             if 'zone' in self.meta:
                 tz = pytz.timezone(canonicalize(self.meta['zone'], TIME_ZONES))
                 if self.meta['zone'] != tz.zone:
-                    pattern = RE[self.apt('update_zone', 'zone')]
+                    pattern = RE[self._apt('update_zone', 'zone')]
                     update_post(pattern, r'\2zone:\3%s\n' % tz.zone)
             else:
                 tz = pytz.timezone(settings.TIME_ZONE)
-                pattern = RE[self.apt('update_time', 'time')]
+                pattern = RE[self._apt('update_time', 'time')]
                 update_post(pattern, r'\1\2zone:\3%s\n' % tz.zone)
 
             dt_format = u'%s %s' % (MARKDOWN_DATE_FORMAT, MARKDOWN_TIME_FORMAT)
         return self.__unicode__().encode('utf-8')
 
     def __unicode__(self):
-        return u''.join((getattr(self.master(), 'title', 'Untitled Document'), self.apt(' (update)')))
+        return u''.join((getattr(self.master(), 'title', 'Untitled Document'), self._apt(' (update)')))
 
 
 class Excerpt(Document):