equal
deleted
inserted
replaced
396 mainattr, needcheck = self._rest_attr_info() |
396 mainattr, needcheck = self._rest_attr_info() |
397 etype = str(self.e_schema) |
397 etype = str(self.e_schema) |
398 path = etype.lower() |
398 path = etype.lower() |
399 if mainattr != 'eid': |
399 if mainattr != 'eid': |
400 value = getattr(self, mainattr) |
400 value = getattr(self, mainattr) |
401 if value is None: |
401 if value is None or unicode(value) == u'': |
402 mainattr = 'eid' |
402 mainattr = 'eid' |
403 path += '/eid' |
403 path += '/eid' |
404 elif needcheck: |
404 elif needcheck: |
405 # make sure url is not ambiguous |
405 # make sure url is not ambiguous |
406 rql = 'Any COUNT(X) WHERE X is %s, X %s %%(value)s' % ( |
406 rql = 'Any COUNT(X) WHERE X is %s, X %s %%(value)s' % ( |