Changeset 5c0fe8482f8ffbc92b3814afa47c79ee6fdb549a


Ignore:
Timestamp:
26/11/10 10:55:30 (2 years ago)
Author:
Dererk <dererk@…>
Children:
945ee719561fdc5edb101c445e7866a7b92a4c48
Parents:
9ea879ca47f5af142f112157d73c56ccc4d30e31
git-committer:
Dererk <dererk@…> (26/11/10 10:55:30)
Message:

Funcion polimorfica del cuadrado de un trinomio, resuelto por el teorema de Cauchy-Swartz con variante dererkiana.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arma2/frontend/org.py

    r60563b6 r5c0fe84  
    44from common import log 
    55 
    6 def checkORG(): 
    7     return None 
    86 
    97def checkORGQuota(): 
    108    return None 
     9 
     10def checkORG(ORG): 
     11    l=anonymousLDAPbind() 
     12 
     13    if '.' in ORG: 
     14        return ORG in [entry[1]['o'][0] for entry in l.search_s(ldapBASE,1,'o='+'*')] 
     15    else: 
     16        return ORG in [entry[1]['ou'][0] for entry in l.search_s(ldapBASE,1,'ou='+'*')] 
     17 
    1118 
    1219def anonymousLDAPbind(): 
Note: See TracChangeset for help on using the changeset viewer.