Ejemplo n.º 1
0
    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
Ejemplo n.º 2
0
    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
Ejemplo n.º 3
0
    def setUp(self):
        self.dbs = connect("0", "")

        self._cleanupFile()
        self._createFile()
Ejemplo n.º 4
0
    def setUp(self):
        self.dbs = connect("0", "")

        self._cleanupFile()
        self._createFile()
Ejemplo n.º 5
0
 def setUp(self):
     self.dbs = connect("0", "")
Ejemplo n.º 6
0
 def setUp(self):
     self.dbs = connect("0", "")