[web2py] Re: XML helper mangles svg file with namespace prefixes

2015-07-29 Thread jackson . read
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

[web2py] Re: sqlite3 locking

2015-07-29 Thread jackson . read
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

[web2py] XML helper mangles svg file with namespace prefixes

2015-07-28 Thread jackson . read
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

[web2py] Re: sqlite3 locking

2015-07-27 Thread jackson . read
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

[web2py] sqlite3 locking

2015-07-24 Thread jackson . read
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

[web2py] websocket_messaging.py does not work out of the box

2015-07-15 Thread jackson . read
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

[web2py] Re: grid: get rid of view buttons

2015-07-03 Thread jackson . read
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

[web2py] grid: get rid of view buttons

2015-07-01 Thread jackson . read
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

[web2py] Re: How do I get rid design request response session db tables db stats buttons in a sqlform

2015-07-01 Thread jackson . read
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' > >

[web2py] How do I get rid design request response session db tables db stats buttons in a sqlform

2015-06-30 Thread jackson . read
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

[web2py] Re: reference will not set value in table

2015-06-23 Thread jackson . read
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

[web2py] reference will not set value in table

2015-06-23 Thread jackson . read
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

[web2py] response.menu will not display an image

2015-06-16 Thread jackson . read
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

[web2py] grid

2015-06-16 Thread jackson . read
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

[web2py] Re: sqlform.grid maxtextlengths shoots blanks

2015-06-12 Thread jackson . read
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

[web2py] Web2py SQLFORM.grid & maxtextlengths etc

2015-06-12 Thread jackson . read
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.

[web2py] sqlform.grid maxtextlengths shoots blanks

2015-06-11 Thread jackson . read
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

[web2py] wish to display a leftsidebar menu

2015-06-09 Thread jackson . read
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

[web2py] Want to access multiple sqlite3 databases in the same app

2015-06-08 Thread jackson . read
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