Commits

March Liu committed 1fc8f7a

debug finish

  • Participants
  • Parent commits a1e1aee

Comments (0)

Files changed (1)

File src/socrates/core.py

 >>> from sqlalchemy import DateTime
 >>> storage = Storage("sqlite://", create=True)
 >>> retype = storage.registeType("datetime", colType=DateTime, create=True)
->>> pid = storage.newPredicate('kssoid', 'string')
->>> segment = storage.writeSegment(500, 'kssoid', 'liuxin2')
+>>> pid = storage.newPredicate('ssoid', 'string')
+>>> segment = storage.writeSegment(500, 'ssoid', 'liuxin2')
 >>> print segment.id
 15
 >>> print segment.subject_id
 500
->>> segment = storage.writeSegment(None, 'kssoid', 'nobody')
+>>> segment = storage.writeSegment(None, 'ssoid', 'nobody')
 >>> print segment.predicate_id==pid
 True
 >>> print segment.obj