User Profile

Collapse

Profile Sidebar

Collapse
Brontes
Brontes
Last Activity: Sep 22 '11, 09:03 AM
Joined: Jun 10 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Brontes
    replied to Sqlite3 trouble
    Now I tried this version:
    Code:
            #Here I connect to the database
            conn = orodja.povezava_na_bazo(self, "Nastavitve")
            #conn.execute("begin immediate transaction")
            c = conn.cursor()
            c.execute("Select nast_koda from Nastavitve where nast_koda = 'prof_%(naziv)s'" % {"naziv": naziv})
            dRez = c.fetchone()
            #cins
    ...
    See more | Go to post

    Leave a comment:


  • Brontes
    replied to Sqlite3 trouble
    Thanks for your answer. But unfortunately now is even worse. It happes more often, that the data doesn't saves.
    I originally have the code written with only one cursor. But because of this trouble I tried with separate cursors.

    Now I changed the code to:
    Code:
        def OnSaveProfile(self, event):
            print "Start" 
            naziv = self.edt_title.text
            if not naziv:
    ...
    See more | Go to post

    Leave a comment:


  • Brontes
    replied to Sqlite3 trouble
    Here is the code of povezava_na_baz o:
    Code:
    def povezava_na_bazo(self, baza=""):
        import sqlite3
        
        #baza is the name of database. I need this bacause I use application with more than one database.
        if baza:
            baza = "_"+baza
        if os.name == 'ce':
            #this is used for mobile device
            conn = sqlite3.connect('\\Program Files\\Python25\\Baza\\ANA_Mob_prod%(baza)s.db'
    ...
    See more | Go to post

    Leave a comment:


  • Brontes
    started a topic Sqlite3 trouble

    Sqlite3 trouble

    I'm having some trouble with sqlite3 on my windows mobile device. Sometimes it happens that commit is not working.

    Here is the code, that I'm using:
    Code:
        
    def OnSaveProfile(self, event):
            naziv = self.edt_title.text
            if not naziv:
                gui.Message.ok(u"Error!", u"Enter profile title!", icon='error', parent=self)
                return 0
            potnik
    ...
    See more | Go to post

  • Brontes
    started a topic How can I dial GPRS/EDGE in Win CE?

    How can I dial GPRS/EDGE in Win CE?

    Hello all.

    I am developing application in python on Windows CE which needs connection to the internet (via GPRS/EDGE). When I turn on the device, the internet connection is not active. It becomes active if I open internet explorer.

    I would like to activate connection in my application. I'm trying to do this with RasDial function over ctypes library, but I can't get it to work. Is this the right way or I should do something...
    See more | Go to post
No activity results to display
Show More
Working...