예제 #1
0
파일: controller.py 프로젝트: mbbui/Jminee
 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
파일: root.py 프로젝트: TurboGears/tg2
 def hiddenhitme(self, *args, **kw):
     return ' '.join((self.mount_point, dispatched_controller().mount_point))
예제 #6
0
파일: root.py 프로젝트: TurboGears/tg2
 def hitme(self):
     return '@'.join((self.mount_point, dispatched_controller().mount_point))
예제 #7
0
파일: root.py 프로젝트: TurboGears/tg2
 def index(self):
     return '-'.join((self.mount_point, dispatched_controller().mount_point))