server/sources/native.py
branch3.5
changeset 3041 782fa7566a22
parent 2967 e7d348134006
child 3240 8604a15995d1
equal deleted inserted replaced
3040:e4dc22040f5f 3041:782fa7566a22
   266             return not rtype in NONSYSTEM_RELATIONS
   266             return not rtype in NONSYSTEM_RELATIONS
   267         # due to current multi-sources implementation, the system source
   267         # due to current multi-sources implementation, the system source
   268         # can't claim not supporting a relation
   268         # can't claim not supporting a relation
   269         return True #not rtype == 'content_for'
   269         return True #not rtype == 'content_for'
   270 
   270 
       
   271     def may_cross_relation(self, rtype):
       
   272         return True
       
   273 
   271     def authenticate(self, session, login, password):
   274     def authenticate(self, session, login, password):
   272         """return CWUser eid for the given login/password if this account is
   275         """return CWUser eid for the given login/password if this account is
   273         defined in this source, else raise `AuthenticationError`
   276         defined in this source, else raise `AuthenticationError`
   274 
   277 
   275         two queries are needed since passwords are stored crypted, so we have
   278         two queries are needed since passwords are stored crypted, so we have