Пример #1
0
 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
Пример #2
0
 def hiddenhitme(self, *args, **kw):
     return ' '.join(
         (self.mount_point, dispatched_controller().mount_point))
Пример #3
0
 def hitme(self):
     return '@'.join(
         (self.mount_point, dispatched_controller().mount_point))
Пример #4
0
 def index(self):
     return '-'.join(
         (self.mount_point, dispatched_controller().mount_point))
Пример #5
0
 def hiddenhitme(self, *args, **kw):
     return ' '.join((self.mount_point, dispatched_controller().mount_point))
Пример #6
0
 def hitme(self):
     return '@'.join((self.mount_point, dispatched_controller().mount_point))
Пример #7
0
 def index(self):
     return '-'.join((self.mount_point, dispatched_controller().mount_point))