Exemplo n.º 1
0
    def dialog( self, title="", message="", collection=None ):
        """ 
            A shorthand for the dialog template. 
            'dialog.html' is a generic template that displays various data
            and takes three agruments, just like this function.
            
            @param title        the title to be placed in the title-tag of the 
                                page
            @param message      the contents of the textual part of the dialog
            @param collection   a collection to be represented as a list in the
                                dialog's unordered list part
        """

        context = {
            'title':    title,
            'message':  message,
            'set':      collection,
        }

        return builtin_render( self.request, "dialog.html", context )
Exemplo n.º 2
0
    def dialog(self, title="", message="", collection=None):
        """ 
            A shorthand for the dialog template. 
            'dialog.html' is a generic template that displays various data
            and takes three agruments, just like this function.
            
            @param title        the title to be placed in the title-tag of the 
                                page
            @param message      the contents of the textual part of the dialog
            @param collection   a collection to be represented as a list in the
                                dialog's unordered list part
        """

        context = {
            'title': title,
            'message': message,
            'set': collection,
        }

        return builtin_render(self.request, "dialog.html", context)
Exemplo n.º 3
0
 def render( self, template_name, context ):
     context['person'] = self.person
     context['rules'] = rules
     return builtin_render( self.request, template_name, context )
Exemplo n.º 4
0
 def render(self, template_name, context):
     context['person'] = self.person
     context['rules'] = rules
     return builtin_render(self.request, template_name, context)