Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(19)  |  Call(13)  |  Derive(0)  |  Import(6)

src/s/y/synnefo-HEAD/snf-astakos-app/astakos/im/views/im.py   synnefo(Download)
    extra_context = extra_context or {}
    context.update(extra_context)
    content = branding.render_to_string(template_name, context,
                                        RequestContext(request))
    response = HttpResponse(content_type=content_type)

src/s/y/synnefo-HEAD/snf-astakos-app/astakos/im/functions.py   synnefo(Download)
from django.db.models import Q
 
from synnefo_branding.utils import render_to_string
 
from synnefo.lib import join_urls
    url = join_urls(settings.BASE_HOST,
                    user.get_activation_url(nxt=reverse('index')))
    message = render_to_string(template_name, {
                               'user': user,
                               'url': url,
        context['user'] = user
 
    message = render_to_string(template_name, context)
    sender = settings.SERVER_EMAIL
    recipient_list = [e[1] for e in settings.HELPDESK +
    """
    message = render_to_string(
        template_name,
        {'user': user}
    )
    url = '%s?code=%d' % (join_urls(settings.BASE_HOST,
                                    reverse('index')), invitation.code)
    message = render_to_string(template_name, {
                               'invitation': invitation,
                               'url': url,

src/s/y/synnefo-HEAD/snf-astakos-app/astakos/im/widgets.py   synnefo(Download)
from django.utils.safestring import mark_safe
from django.utils import simplejson as json
from synnefo_branding.utils import render_to_string
 
from astakos.im import settings
                          'var RecaptchaOptions = %s'
                          '</script>') % json.dumps(conf)
        custom_widget_html = render_to_string("im/captcha.html",
                                              {'conf': 'Bob'})
        return mark_safe(

src/s/y/synnefo-HEAD/snf-astakos-app/astakos/im/templatetags/astakos_tags.py   synnefo(Download)
from django.template import TemplateSyntaxError, Variable
from django.utils.translation import ugettext as _
from synnefo_branding.utils import render_to_string
from django.template import RequestContext
from django.core.urlresolvers import reverse
    })
 
    content = render_to_string(template, tpl_context)
    return content
 

src/s/y/synnefo-HEAD/snf-cyclades-app/synnefo/ui/views.py   synnefo(Download)
from django.utils.translation import get_language
from django.utils import simplejson as json
from synnefo_branding.utils import render_to_string
from django.core.urlresolvers import reverse
from django.template import RequestContext
        }
 
        rdp_file_data = render_to_string("synnefo-windows.rdp", rdp_context)
        response = HttpResponse(rdp_file_data, mimetype='application/x-rdp')
 

src/s/y/synnefo-HEAD/snf-astakos-app/astakos/im/notifications.py   synnefo(Download)
from django.core.mail import send_mail, get_connection
from django.utils.translation import ugettext as _
from synnefo_branding.utils import render_to_string
 
import astakos.im.messages as astakos_messages
        self.recipients = recipients
        self.subject = subject
        self.message = message or render_to_string(template, dictionary)
 
    def send(self):

src/s/y/synnefo-HEAD/snf-astakos-app/astakos/im/forms.py   synnefo(Download)
 
from synnefo.util import units
from synnefo_branding.utils import render_to_string
from synnefo.lib import join_urls
from astakos.im.fields import EmailField
                'support': settings.CONTACT_EMAIL
            }
            message = render_to_string(email_template_name, c)
            from_email = settings.SERVER_EMAIL
            send_mail(_(astakos_messages.PASSWORD_RESET_EMAIL_SUBJECT),