Exemplo n.º 1
0
Arquivo: Alue.py Projeto: spyy/Python
 def __alusta( self, mista, mihin ):
     mihin += 1
     for i in range( mista, mihin ):
         numero = str( i )
         if len( numero ) < 2: numero = "0" + numero
         asunto = Asunto( self.hakemisto, str( numero ) )
         asunto.alusta()
Exemplo n.º 2
0
Arquivo: Alue.py Projeto: spyy/Python
 def lue1( self ):
     itemList = os.listdir( self.hakemisto )
     asunnot = []        
     for item in itemList:
         a = Asunto( self.hakemisto, item )
         nimi = a.nimi()
         numero = unicode( item )
         if len( nimi ) < 1: nimi = u""            
         asunnot.append( ( item, numero, nimi ) )
     return asunnot
Exemplo n.º 3
0
Arquivo: Alue.py Projeto: spyy/Python
 def lue2( self ):
     itemList = os.listdir( self.hakemisto )
     numerot = []
     tiedot = []
     for item in itemList:
         a = Asunto( self.hakemisto, item )
         nimi = a.nimi()
         paivays = a.paivays()
         numero = unicode( item )
         if len( nimi ) < 1: nimi = u""
         tiedot.append( numero + u" " + nimi + u" " + paivays )
         numerot.append( item )
     return numerot, tiedot
Exemplo n.º 4
0
Arquivo: Alue.py Projeto: spyy/Python
 def poista( self ):
     itemList = os.listdir( self.hakemisto )
     for item in itemList:
         a = Asunto( self.hakemisto, item )
         a.poista()
     os.rmdir( self.hakemisto )