equal
deleted
inserted
replaced
795 def match_condition(self, session, eidfrom, eidto): |
795 def match_condition(self, session, eidfrom, eidto): |
796 return len(self.exec_query(session, eidfrom, eidto)) <= 1 |
796 return len(self.exec_query(session, eidfrom, eidto)) <= 1 |
797 |
797 |
798 |
798 |
799 class RQLExpression(object): |
799 class RQLExpression(object): |
|
800 |
800 def __init__(self, expression, mainvars, eid): |
801 def __init__(self, expression, mainvars, eid): |
801 self.eid = eid # eid of the entity representing this rql expression |
802 self.eid = eid # eid of the entity representing this rql expression |
802 if not isinstance(mainvars, unicode): |
803 if not isinstance(mainvars, unicode): |
803 mainvars = unicode(mainvars) |
804 mainvars = unicode(mainvars) |
804 self.mainvars = mainvars |
805 self.mainvars = mainvars |