Ñò |š:Zc@stddklZddklZlZddklZeiƒZei ƒd„ƒZ dei fd„ƒYZ dS(iÿÿÿÿ(ttemplate(tresolve_variabletNodeList(tGroupcCsœy|iƒ\}}Wn"tj otidƒ‚nX|idƒ}|iƒ}|idjo|idƒ}|iƒn tƒ}t |||ƒS(ss Check to see if the currently logged in user belongs to a specific group. Requires the Django authentication contrib app and middleware. Usage: {% ifusergroup Admins %} ... {% endifusergroup %}, or {% ifusergroup Admins|Group1|"Group 2" %} ... {% endifusergroup %}, or {% ifusergroup Admins %} ... {% else %} ... {% endifusergroup %} s&Tag 'ifusergroup' requires 1 argument.telsetendifusergroup(selseR(R( tsplit_contentst ValueErrorRtTemplateSyntaxErrortparset next_tokentcontentstdelete_first_tokenRtGroupCheckNode(tparserttokenttagtgroupt nodelist_truetnodelist_false((sS/opt/public_html/controlPacientesSuicidio_test/principal/templatetags/extra_tags.pyt ifusergroups   R cBseZd„Zd„ZRS(cCs||_||_||_dS(N(RRR(tselfRRR((sS/opt/public_html/controlPacientesSuicidio_test/principal/templatetags/extra_tags.pyt__init__$s  cCsátd|ƒ}|iƒp|ii|ƒSx¡|iidƒD]}|idƒo|idƒo|dd!n|}y:ti i d|ƒ|i i ƒjo|i i|ƒSWq@tij oq@Xq@W|ii|ƒS(Ntusert|t"iiÿÿÿÿtname(Rtis_authenticatedRtrenderRtsplitt startswithtendswithRtobjectstgettgroupstallRt DoesNotExist(RtcontextRR((sS/opt/public_html/controlPacientesSuicidio_test/principal/templatetags/extra_tags.pyR)s 4% (t__name__t __module__RR(((sS/opt/public_html/controlPacientesSuicidio_test/principal/templatetags/extra_tags.pyR #s N( tdjangoRtdjango.templateRRtdjango.contrib.auth.modelsRtLibrarytregisterRRtNodeR (((sS/opt/public_html/controlPacientesSuicidio_test/principal/templatetags/extra_tags.pyts