add some notes
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 09 Nov 2011 18:41:12 +0100
changeset 8074 a7f76e322659
parent 8073 5c4390eb10c3
child 8075 f57ffbfe90fe
add some notes
rqlrewrite.py
server/repository.py
--- a/rqlrewrite.py	Wed Nov 09 17:34:08 2011 +0100
+++ b/rqlrewrite.py	Wed Nov 09 18:41:12 2011 +0100
@@ -54,6 +54,7 @@
             if varname not in newroot.defined_vars or eschema(etype).final:
                 continue
             allpossibletypes.setdefault(varname, set()).add(etype)
+    # XXX could be factorized with add_etypes_restriction from rql 0.31
     for varname in sorted(allpossibletypes):
         var = newroot.defined_vars[varname]
         stinfo = var.stinfo
--- a/server/repository.py	Wed Nov 09 17:34:08 2011 +0100
+++ b/server/repository.py	Wed Nov 09 18:41:12 2011 +0100
@@ -528,6 +528,8 @@
         This is a public method, not requiring a session id.
         """
         # XXX we may want to check we don't give sensible information
+        # XXX the only cube using 'foreid', apycot, stop used this, we probably
+        # want to drop this argument
         if foreid is None:
             return self.config[option]
         _, sourceuri, extid, _ = self.type_and_source_from_eid(foreid)