def _mount_point(self): try: mount_point = self.mount_point if not mount_point: #non statically mounted, we are probably used from tgext.admin which pluralizes things mount_point = '%s/%ss' % (tg.dispatched_controller().mount_point, self.model.__name__.lower()) except: #Old TurboGears, fallback to old url generation method mount_point = '../%ss' % (self.model.__name__.lower()) return mount_point
def hiddenhitme(self, *args, **kw): return ' '.join( (self.mount_point, dispatched_controller().mount_point))
def hitme(self): return '@'.join( (self.mount_point, dispatched_controller().mount_point))
def index(self): return '-'.join( (self.mount_point, dispatched_controller().mount_point))
def hiddenhitme(self, *args, **kw): return ' '.join((self.mount_point, dispatched_controller().mount_point))
def hitme(self): return '@'.join((self.mount_point, dispatched_controller().mount_point))
def index(self): return '-'.join((self.mount_point, dispatched_controller().mount_point))