示例#1
0
文件: dbsdd.py 项目: whitten/vavista
    def new_indices(self):
        """
            TODO: Merge with indices to make something more useful.

            New style indices are stored in an INDEX table
            There is an index "B" which links to the File Id

            GTM>zwrite ^DD("IX","B",200,*)
            ^DD("IX","B",200,3)=""
            ^DD("IX","B",200,5)=""

            GTM>zwrite ^DD("IX",3,*)
            ^DD("IX",3,0)="200^AVISIT^This is a regular index of the remote DUZ and Station number.^R^^R^IR^W^200.06^^^^^S"
        """
        if self._new_indices is None:
            from vavista.fileman import connect
            c = connect("0", "")
            f = c.get_file("INDEX")
            self._new_indices = list(
                f.traverser("B", from_value=self.fileid, to_value=self.fileid))
        return self._new_indices
示例#2
0
文件: dbsdd.py 项目: rmurray1/vavista
    def new_indices(self):
        """
            TODO: Merge with indices to make something more useful.

            New style indices are stored in an INDEX table
            There is an index "B" which links to the File Id

            GTM>zwrite ^DD("IX","B",200,*)
            ^DD("IX","B",200,3)=""
            ^DD("IX","B",200,5)=""

            GTM>zwrite ^DD("IX",3,*)
            ^DD("IX",3,0)="200^AVISIT^This is a regular index of the remote DUZ and Station number.^R^^R^IR^W^200.06^^^^^S"
        """
        if self._new_indices is None:
            from vavista.fileman import connect

            c = connect("0", "")
            f = c.get_file("INDEX")
            self._new_indices = list(f.traverser("B", from_value=self.fileid, to_value=self.fileid))
        return self._new_indices
示例#3
0
    def setUp(self):
        self.dbs = connect("0", "")

        self._cleanupFile()
        self._createFile()
    def setUp(self):
        self.dbs = connect("0", "")

        self._cleanupFile()
        self._createFile()
 def setUp(self):
     self.dbs = connect("0", "")
示例#6
0
 def setUp(self):
     self.dbs = connect("0", "")