fixed some problems with new dal and SQLHTML
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
<tr>
|
||||
<td><a class="btn btn-180 btn-success" href="https://dl.dropbox.com/u/18065445/web2py/web2py_manual_5th.pdf">Manual</a></td>
|
||||
<td><a class="btn btn-180" href="{{=URL('changelog')}}">Change Log</a></td>
|
||||
<td><a class="btn btn-180" href="http://code.google.com/p/web2py/issues/list">Report a Bug</a></td>
|
||||
<td><a class="btn btn-180" href="https://github.com/web2py/web2py/issues">Report a Bug</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@ from gluon.html import FORM, INPUT, LABEL, OPTION, SELECT, COL, COLGROUP
|
||||
from gluon.html import TABLE, THEAD, TBODY, TR, TD, TH, STYLE, SCRIPT
|
||||
from gluon.html import URL, FIELDSET, P, DEFAULT_PASSWORD_DISPLAY
|
||||
from pydal.base import DEFAULT
|
||||
from pydal.objects import Table, Row, Expression
|
||||
from pydal.objects import Table, Row, Expression, Field
|
||||
from pydal.adapters.base import CALLABLETYPES
|
||||
from pydal.helpers.methods import smart_query, bar_encode
|
||||
from pydal.helpers.classes import Reference, SQLCustomType
|
||||
|
||||
@@ -57,8 +57,11 @@ def read_file(filename):
|
||||
finally:
|
||||
f.close()
|
||||
|
||||
file = sys.argv[1]
|
||||
if file[-4:] == '.css':
|
||||
print cleancss(read_file(file))
|
||||
if file[-5:] == '.html':
|
||||
print cleanhtml(read_file(file))
|
||||
for file in sys.argv[1:]:
|
||||
data = read_file(file)
|
||||
open(file+'.bak2', 'w').write(data)
|
||||
if file[-4:] == '.css':
|
||||
data = cleancss(data)
|
||||
if file[-5:] == '.html':
|
||||
data = cleanhtml(data)
|
||||
open(file, 'w').write(data)
|
||||
|
||||
Reference in New Issue
Block a user