server/test/data/schema.py
changeset 10285 d14db30b90d6
parent 10114 6f4b4567b77d
child 10303 593e63a68429
child 10640 17bdc485c5b2
--- a/server/test/data/schema.py	Mon Mar 23 14:28:48 2015 +0100
+++ b/server/test/data/schema.py	Wed Mar 25 07:57:38 2015 +0100
@@ -16,7 +16,7 @@
 # You should have received a copy of the GNU Lesser General Public License along
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
 
-from yams.buildobjs import (EntityType, RelationType, RelationDefinition,
+from yams.buildobjs import (EntityType, RelationType, RelationDefinition, ComputedRelation,
                             SubjectRelation, RichString, String, Int, Float,
                             Boolean, Datetime, TZDatetime, Bytes)
 from yams.constraints import SizeConstraint
@@ -274,3 +274,7 @@
     object = 'CWUser'
     inlined = True
     cardinality = '?*'
+
+
+class user_login(ComputedRelation):
+    rule = 'O login_user S'