Ejemplo n.º 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
Ejemplo n.º 2
0
 def hiddenhitme(self, *args, **kw):
     return ' '.join(
         (self.mount_point, dispatched_controller().mount_point))
Ejemplo n.º 3
0
 def hitme(self):
     return '@'.join(
         (self.mount_point, dispatched_controller().mount_point))
Ejemplo n.º 4
0
 def index(self):
     return '-'.join(
         (self.mount_point, dispatched_controller().mount_point))
Ejemplo n.º 5
0
 def hiddenhitme(self, *args, **kw):
     return ' '.join((self.mount_point, dispatched_controller().mount_point))
Ejemplo n.º 6
0
 def hitme(self):
     return '@'.join((self.mount_point, dispatched_controller().mount_point))
Ejemplo n.º 7
0
 def index(self):
     return '-'.join((self.mount_point, dispatched_controller().mount_point))