Commits

March Liu  committed 658d463

debug

  • Participants
  • Parent commits 3bfc34d

Comments (0)

Files changed (1)

File src/socrates/core.py

                 if r.name != 'string':
                     self.registeType(r.name, storage=r.storage,)
         session.close()
-    session = property(lambda self:self.Session())
+        self.session = self.Session()
 
     def registeType(self, typename, storage=None, colType=None, create=False, ):
         """
 >>> print when.objType.name
 datetime
         """
-        session = self.session
+        session = self.Session()
         Subject = self.registed_type["subject"]
         subjects = Subject.table
         String = self.registed_type["string"]
 >>> print segment.subject_id
 12
         """
-        session=self.session
+        session=self.Session()
         subjects = self.registed_storage["subject"]
         strings = self.registed_storage["string"]
         if subject_id: