I followed the link given and used lxml package instead of xml and it
works. lxml does not add the prefixes that xmk does. The lxml API is a
superset of the xml API so I did not have to change the code much. BTW I
tried removing the ns0 prefix in the svg as per the suggestion the svg
displays
thats once per database I assume. Can I put it in db.py to have it executed
once?
On Friday, July 24, 2015 at 4:52:26 PM UTC-4, jackso...@quantachrome.com
wrote:
>
> The docs say that web2py locks a sqlite3 database file always...even if
> just reading. Is there a way to circumvent this so that
IN a controller if I return an svg that has full namspace prefixes (default
for the python xml package 'tostring' method )via the XML helper it is
mangled it beyond recognition. The same svg works in emacs as well as
loaded as a file in the bowser. ns0 ns1 etc namepsace prefixes are verbose
bu
In the web2py book chap 29: "Notice that in SQLite the database consists of
a single file. If it does not exist, it is created. This file is locked
every time it is accessed." I assume access meant reading or writing the
database
On Friday, July 24, 2015 at 4:52:26 PM UTC-4, jackso...@quantac
The docs say that web2py locks a sqlite3 database file always...even if
just reading. Is there a way to circumvent this so that my database writing
process does have to wait for web2py reading the database?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://gith
I tried to setup a simple websocket to try and learn the concept so I can
use it in my app. I took the instructions in websocket_messaging.py and
built the following minimal app. I am on debian squeeze using chromium and
tornado 4.2.. I started websocket_messaging.py as per the instructions: *p
Thank I must have missed that
On Wednesday, July 1, 2015 at 3:50:58 PM UTC-4, jackso...@quantachrome.com
wrote:
>
> I have a sqlform.grid, I would like to get rid of the view buttons at the
> end of each row. Unfortunately the grid has no attribute 'viewable' that
> you can set to False. Does a
I have a sqlform.grid, I would like to get rid of the view buttons at the
end of each row. Unfortunately the grid has no attribute 'viewable' that
you can set to False. Does anyone know how to do this??
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.c
Thanks that was it a typo in naming the respective view.
On Tuesday, June 30, 2015 at 3:30:28 AM UTC-4, jackso...@quantachrome.com
wrote:
>
> This what I have. I want to get rid of the row of buttons at the bottom
> of the form that says 'design request response session db tables db stats'
>
>
This what I have. I want to get rid of the row of buttons at the bottom of
the form that says 'design request response session db tables db stats'
*View*
{{extend 'layout.html'}}
Input form
{{=form}}
Submitted variables
{{=BEAUTIFY(request.vars)}}
Accepted variables
{{=BEAUTIFY(form.vars)}}
E
I changed the code to the following:
*was:*
*db3.define_table('station_analysis_parameters',*
* ...*
*Field('station_preset_file', 'reference analysis_presets',
requires=IS_IN_DB(db3, 'analysis_presets.filename')),*
*...*
*now:*
*db3.define_table('station_analysis_parameters',*
* ...*
*F
When I display a grid of the table 'station_analysis_parameters' and edit
either 'common_params_preset_file' or 'reference analysis_presets' a
dropdown list with the rows from analysis_presets.filename' appears
but choosing and entry from this list and clicking submit does not do save
anythin
This does not work. No image is displayed. The layout seems to lose it too,
the response menu now has 2 rows & this causes things to be obscured by
it. Should I be trying this at all? If the menu was designed for text only
ok but put it in the Docs. This was the only change I did to the menu.py
Is there anyway to make a SQLform.grid scroll instead of using page numbers.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message bec
That dee
On Friday, June 12, 2015 at 12:27:27 AM UTC-4, jackso...@quantachrome.com
wrote:
>
> I get the same truncated display for the log message text no matter what I
> set maxtextlengths...This app is rock+1 on the IQ simplicity scale and yet
> it does not work...BTW: I removed all layouts s
I can only get my grid field the width the width I want them in a
SQLFORM.grid by padding the headers w/non blank chars. I have tried
using maxtextlengths dictionary & maxtextlength to set all. Neither seems
to have any effect. I also removed my layout but the fields widths stayed
the same.
I get the same truncated display for the log message text no matter what I
set maxtextlengths...This app is rock+1 on the IQ simplicity scale and yet
it does not work...BTW: I removed all layouts stuff so its not some css
problem. The truncated fields are what the grid wants to display. Its like
I am a newbie. I am trying to build a web interface w/web2py that will have
a leftsidebar menu as part of the layout for all views. I know that you can
set a global via the controllers return dict. like:return dict(form=grid,
left_sidebar_enabled = True)But how do I get the menu there, that
I am a newbie. I want to have multiple sqlite3 databases accessible in my
application. The db variable confuses me ...in the context of a controller
it seems to have a value assigned to it upon entry...Is this just the last
value assigned in db.py(model file). If I create multiple databases in m
19 matches
Mail list logo