Changeset 1035

Show
Ignore:
Timestamp:
07/26/10 19:38:58 (7 weeks ago)
Author:
vete
Message:

PG2 fix su sqlalchemy 0.6.3

Location:
trunk/core
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • trunk/core/promogest/dao/Dao.py

    r1024 r1035  
    4444        """ 
    4545        filter1 = filter2 = None 
    46         if complexFilter == True: 
     46        if complexFilter is not None: 
    4747            filter1 = complexFilter 
    4848        else: 
  • trunk/core/promogest/lib/HtmlHandler.py

    r1022 r1035  
    77import os 
    88import sys 
     9import gtk 
    910import gobject 
    1011try: 
    11     from webkit import WebView 
     12    from webkit import WebView, WebSettings 
    1213    WEBKIT = True 
    1314except: 
     
    140141#        print "OOOOOIJJJJJJJJJJJJJJJJJJJJJ", widget, title, uri, userdata 
    141142        a= WebView() 
     143#        print dir(a) 
    142144#    a.connect('hovering-over-link', _on_hovering_over_link,a) 
    143145        a.connect('navigation-requested', _on_navigation_requested,a) 
     
    201203 
    202204    if WEBKIT: 
    203         widget.load_string(html,"text/html","utf-8", "file:///"+sys.path[0]+os.sep) 
     205        c = WebSettings() 
     206        c.set_property("minimum_font_size", 8) 
     207        c.set_property("javascript-can-open-windows-automatically", True) 
     208        c.set_property("default-encoding", "Utf-8") 
     209        c.set_property("enable-file-access-from-file-uris", True) 
     210        widget.set_settings(c) 
     211#        framme =  widget.get_main_frame() 
     212#        print "PPPPPPPPPPPPPPPPPP", framme, dir(framme) 
     213#        framme.print_full(gtk.PrintOperation(), gtk.PRINT_OPERATION_ACTION_PRINT_PREVIEW) 
     214        widget.load_html_string(html, "file:///"+sys.path[0]+os.sep) 
     215#        print dir(widget) 
     216#        widget.web_frame_print_full(GTK_PRINT_OPERATION_ACTION_EXPORT, ) 
     217#        widget.load_string(html,"text/html","utf-8", "file:///") 
     218#        widget.set_editable(True) 
    204219        widget.show() 
    205220    else: 
  • trunk/core/promogest/ui/utils.py

    r1031 r1035  
    22262226    _key= str(tipo+".registro").strip() 
    22272227    registro = Setting().getRecord(id=_key) 
    2228     print "REGISTROOOOOOOOOOOOOOOOOOOOOOOOOOOO", registro, tipo, date 
     2228#    print "REGISTROOOOOOOOOOOOOOOOOOOOOOOOOOOO", registro, tipo, date 
    22292229    if not registro : 
    22302230        raise "ATTENZIONE , Registro numerazione non trovato" 
  • trunk/core/templates/articolo.html

    r1002 r1035  
    22 
    33{% block body %} 
    4 <!-- <div id="head"> --> 
    5 <!--        <div id="img" ><img src= "gui/articolo48x48.png"></div>--> 
     4<!--        <div id="img" ><img src= "http://blog.motane.lu/wp-content/uploads/2009/06/python_logo_without_textsvg.png"></div>--> 
    65    <div id="testo">{{ui|replace("_"," ")|capitalize()}}</div> 
    76  </div>  <div id="rigaheader"></div> 
    8 <!-- <div> --> 
    97 
    108<table cellpadding="0" cellspacing="0" border="0"> 
  • trunk/core/templates/index.html

    r658 r1035  
    1313Pagina Vuota 
    1414{% endblock %} 
    15  
    1615</div> 
    1716</body>