Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /home/ift/52_procpy/fibu/

Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Upload File :
Current File : //home/ift/52_procpy/fibu/caller.py

#  coding: utf8

import os,re,sys,sqlite3,time
import procpy
import procpy.fibu.kto
import procpy.fibu.sync
import procpy.test.account_examples

#**************************************************************************

class Caller (object):

    def __init__ (self,*pars):
        
        self.__class__.__dict__[pars[0]](self,pars[1:])


    def mark (self,remark=""):
    
        t = time.clock()
        if 't0' in vars(self):
            print ( ("%9.2f" % ((t-self.t0)*1000)) + " ms for:  " + remark )
        self.t0 = t


    def compute_kto (self,pars):
    
        kto = procpy.fibu.kto.Kto("10-1202")

        ukto  = pars[0]
        kto1  = pars[1]
        uniqu = []
        
        ktox  = kto.parse_ktotext_compute_kto(ukto,kto1,uniqu)
        
        print (ktox,uniqu)           


    def parse_ktotext (self,pars):
    
        
        kto.mark("100")
        kto.parse_ktotext(procpy.test.account_examples.beispiel2)
        kto.mark("110")

#        print( kto.buchungen )

    def parse_ktotext1 (self,pars):
    
        kto = procpy.fibu.kto.Kto("10-1202")
        
        kto.mark("100")
        kto.parse_ktotext(procpy.test.account_examples.beispiel2)
        kto.mark("110")

        kto.write_ktotext(0.00,3,4)

#        print( kto.buchungen )

    def write_ktotext (self,pars):
    
        kto = procpy.fibu.kto.Kto("10-1202")
        
        kto.mark("100")
        kto.parse_ktotext(procpy.test.account_examples.beispiel3)
        kto.mark("111")

        kto.write_ktotext(0.00,3,4)
        kto.write_ktotext(0.00,kto.maxa,kto.maxb)
        
        print(kto.ktotext)


    def import_to_db (self,pars):
    
#        os.unlink("kto1.db")
        kto = procpy.fibu.kto.Kto("10-1202")
        
        kto.mark("100")
        kto.parse_ktotext(procpy.test.account_examples.beispiel3)
        kto.mark("111")

        dbh  = sqlite3.connect("kto1.db")
        sync = procpy.fibu.sync.Sync(dbh)

        kto.delete_from_db(dbh)

        kto.import_to_db(dbh)

        dbh.commit()
        
#        print(kto.ktotext)

    def import_export (self,pars):
    
#        os.unlink("kto1.db")
        kto = procpy.fibu.kto.Kto("10-1202")
        
        kto.mark("100")
        kto.parse_ktotext(procpy.test.account_examples.beispiel3)
        kto.mark("111")

        dbh  = sqlite3.connect("kto1.db")
        sync = procpy.fibu.sync.Sync(dbh)

        kto.delete_from_db(dbh)

        kto.import_to_db(dbh)
        kto.export_from_db(dbh)
        dbh.commit()

        kto.write_ktotext(0.00)
        kto.write_ktotext(0.00)
        
        kto1 = procpy.fibu.kto.Kto("10-1202-a")

        kto1.export_from_db(dbh)
        kto1.write_ktotext(0.00)
        kto1.write_ktotext(0.00)
        print(kto1.ktotext)

        
#        print(kto.ktotext)

    def make_addtext (self,pars):
    
#        os.unlink("kto1.db")
        kto = procpy.fibu.kto.Kto("10-1202")
        
        kto.mark("100")
        kto.parse_ktotext(procpy.test.account_examples.beispiel3)
        kto.mark("111")

        a = kto.make_addtext(".")
        print (a)
        
#        print(kto.ktotext)

    def find_ukto_and_interval (self,pars):
    
        kto = procpy.fibu.kto.Kto("10-1202")
        kto.find_ukto_and_interval(["/home/cgabriel/O.1004__Finance/17/gesamt/10-1204__Flessabank_l/_LL.kto",
                                    "/home/cgabriel/O.1004__Finance/17/gesamt"])
        print (kto.ukto,kto.startdatum,kto.enddatum)
    

    def synctest1 (self,pars):
    
        try:
            os.unlink("kto3.db")
        except:
            pass
        dbh  = sqlite3.connect("kto3.db")
        sync = procpy.fibu.sync.Sync(dbh)
        
        sync.sync1(["x/home/cgabriel/O.1004__Finance/25/10-1202__Sparkasse",
                   "x/home/cgabriel/O.1004__Finance/25/10-1204__Flessabank",
                   "/home/cgabriel/O.1004__Finance/25/11-1500__Lohnkonten/AN-swonneberger",
                   "/home/cgabriel/O.1004__Finance/25/11-1500__Lohnkonten",
                   "/home/cgabriel/O.1004__Finance/25/11-1500__Lohnkonten/AN-hparfuss",
                   "x"])
        
        dbh.commit()        


    def synctest2 (self,pars):
    
        self.mark("A")
        try:
            os.unlink("kto3.db")
        except:
            pass
        dbh  = sqlite3.connect(":memory:")
        sync = procpy.fibu.sync.Sync(dbh)
        
        self.mark("B")
        sync.sync(["/home/cgabriel/O.1004__Finance/26/10-1202__Sparkasse",
                   "x/home/cgabriel/O.1004__Finance/26/10-1204__Flessabank",
                   "x/home/cgabriel/O.1004__Finance/26/11-1500__Lohnkonten/AN-swonneberger",
                   "x/home/cgabriel/O.1004__Finance/26/11-1500__Lohnkonten",
                   "x/home/cgabriel/O.1004__Finance/26/11-1500__Lohnkonten/AN-hparfuss",
                   "x"])
        self.mark("C")
        
        dbh.commit()        
        self.mark("D")


    def kto_id (self,pars):
    
        kto     = procpy.fibu.kto.Kto()
        ktofile = "/home/cgabriel/O.1004__Finance/26/10-1204__Flessabank"
        kto.find_ukto_and_interval(ktofile)
        print(kto.kto_id(ktofile))

    def sync_template (self,pars):
    
        sync = procpy.fibu.sync.Sync(sqlite3.connect(":memory:"))
        print( sync.sync_template("/home/cgabriel/O.1004__Finance/26/10-1204__Flessabank.kto","abcdefgh") )
        print( sync.sync_template("/home/cgabriel/O.1004__Finance/26/10-1204__Flessabank__klrzhfuj.kto","abcdefgh") )


#**************************************************************************     

if __name__ == "__main__":
    
    Kto(*tuple(sys.argv[1:]))

bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped)
Email: contact@elmoujehidin.net bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped) Email: contact@elmoujehidin.net