Changeset 1035
- Timestamp:
- 07/26/10 19:38:58 (7 weeks ago)
- Location:
- trunk/core
- Files:
-
- 5 modified
-
promogest/dao/Dao.py (modified) (1 diff)
-
promogest/lib/HtmlHandler.py (modified) (3 diffs)
-
promogest/ui/utils.py (modified) (1 diff)
-
templates/articolo.html (modified) (1 diff)
-
templates/index.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/promogest/dao/Dao.py
r1024 r1035 44 44 """ 45 45 filter1 = filter2 = None 46 if complexFilter == True:46 if complexFilter is not None: 47 47 filter1 = complexFilter 48 48 else: -
trunk/core/promogest/lib/HtmlHandler.py
r1022 r1035 7 7 import os 8 8 import sys 9 import gtk 9 10 import gobject 10 11 try: 11 from webkit import WebView 12 from webkit import WebView, WebSettings 12 13 WEBKIT = True 13 14 except: … … 140 141 # print "OOOOOIJJJJJJJJJJJJJJJJJJJJJ", widget, title, uri, userdata 141 142 a= WebView() 143 # print dir(a) 142 144 # a.connect('hovering-over-link', _on_hovering_over_link,a) 143 145 a.connect('navigation-requested', _on_navigation_requested,a) … … 201 203 202 204 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) 204 219 widget.show() 205 220 else: -
trunk/core/promogest/ui/utils.py
r1031 r1035 2226 2226 _key= str(tipo+".registro").strip() 2227 2227 registro = Setting().getRecord(id=_key) 2228 print "REGISTROOOOOOOOOOOOOOOOOOOOOOOOOOOO", registro, tipo, date2228 # print "REGISTROOOOOOOOOOOOOOOOOOOOOOOOOOOO", registro, tipo, date 2229 2229 if not registro : 2230 2230 raise "ATTENZIONE , Registro numerazione non trovato" -
trunk/core/templates/articolo.html
r1002 r1035 2 2 3 3 {% 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>--> 6 5 <div id="testo">{{ui|replace("_"," ")|capitalize()}}</div> 7 6 </div> <div id="rigaheader"></div> 8 <!-- <div> -->9 7 10 8 <table cellpadding="0" cellspacing="0" border="0"> -
trunk/core/templates/index.html
r658 r1035 13 13 Pagina Vuota 14 14 {% endblock %} 15 16 15 </div> 17 16 </body>
