Example #1
0
    def render_view(self, request):
        obj = getattr(self.obj, self.col)
        crud = obj.__warp_crud__(obj)

        module = getNodeByCrudClass(crud)

        return link(crud.name(request),
                    module, "view", [obj.id])
Example #2
0
    def render_view(self, request):
        obj = getattr(self.obj, self.col)

        if obj is None:
            return ""

        crud = getCrudObj(obj)

        node = getCrudNode(crud)

        return link(crud.name(request), node, "view", [obj.id])
Example #3
0
 def render_list_name(self, request):
     return link(
         self.obj.name,
         getNode("people"), 
         "view", [self.obj.id])
Example #4
0
 def linkAsParent(self, request):
     return helpers.link(self.name(request), 
                         helpers.getCrudNode(self), 
                         "view", 
                         [self.obj.id])
Example #5
0
def linkAsParent(request):
    return link("Widgets", getNode("widgets"), "index")
Example #6
0
 def render_list_name(self, request):
     return link(self.name(request), getNode("widgets"), "view", [self.obj.id])