[web2py] Re: web2py 2.17.1

2018-08-20 Thread Bob St John
I just downloaded 2.17.1 and it works great... thankyou! However I am a bit confused with the pyDAL that came with it... _version_ = 17.11 Same version 17.11 when I downloaded pyDAL using pip Is this the latest pyDAL 18.08 only without the _version_ number updated? On Sunday, August 5, 2018 at

[web2py] Re: How to solve vertical alignment too high of SQLForm read-only field

2016-11-30 Thread Bob St John
see also https://groups.google.com/forum/?fromgroups#!searchin/web2py/misaligned%7Csort:relevance/web2py/6Qbcr8nuey8/nVzxMOxxt_gJ On Monday, November 21, 2016 at 7:42:54 AM UTC-8, Martin de Groot wrote: > > In a SQLForm all widget-controls of writable fields are nicely, correctly > vertically

[web2py] Looping over applications

2016-03-15 Thread Bob St John
This is not a problem, but I would like to confirm that this pseudo code is best practice. I have a single instance of web2py (2.13.4) with multiple applications, each application has its own MySQL database. 'init' is my control application which I use for administration. In 'init' I want to

[web2py] Form misalignment with bootstrap3_inline

2015-08-14 Thread Bob St John
Using web2py 2.12.2 with formstyle = bootstrap3_inline Problem: When displaying a SQLFORM with readonly=True the field labels and values do not line up horizontally. I have a screen image, but the following gives you an idea of what it looks like... Bob First Name

[web2py] Re: sessions piling up

2015-08-13 Thread Bob St John
On Monday, August 10, 2015 at 8:44:40 AM UTC-7, Massimo Di Pierro wrote: You seem to have an old version of session2strash.py. The new one only uses self.expiration and not expiration. On Sunday, 9 August 2015 10:15:57 UTC-5, Bob St John wrote: Using 2.12.1 I run a small site... about

[web2py] sessions piling up

2015-08-09 Thread Bob St John
Using 2.12.1 I run a small site... about 200 members who login (some using the 'Remember me for 30 days') plus about 1500 public visitors per day. The sessions are stored in the file system. I run the sessions2trash.py script once a day. I have noticed the sessions are increasing by about 1000

[web2py] form misalignment with bootstrap3_inline

2015-05-01 Thread Bob St John
Using web2py version 2.10.4 with response.formstyle=bootstrap3_inline Problem: When using SQLFORM or SQLFORM.grid(view) the form fields whose value is None or when writable=False do not line up horizontally with the label. Solution (or hack): In gluon.sqlhtml.py I added the following elif

[web2py] Controller for layout.html?

2013-05-09 Thread Bob Babby
Sorry if this is a repost. My last post wasn't showing up for some reason. I want to add a search bar to all my pages. To do this I plan on adding an input text to layout.html (all my pages extend layout.html). But where is the controller for layout.html so that I can build the htmlhelpers and

[web2py] Does layout.html have a corresponding controller?

2013-05-09 Thread Bob Babby
I want to add a search bar to my all my pages. I think the best way to do this is by adding it to the layout.html from which all my other html views extend from. The problem I can't figure out is where to put the corresponding controller function. For all the other views, the controller

[web2py] gluon.contenttype.contenttype

2013-01-12 Thread Bob St John
def contenttype(filename, default='text/plain'): Returns the Content-Type string matching extension of the given filename. i = filename.rfind('.') if i=0: default = CONTENT_TYPE.get(filename[i:].lower(),default) j = filename.rfind('.', 0, i) if j=0:

[web2py] pyFpdf supports gif images?

2012-06-13 Thread Bob St John
The documentation for pyFpdf indicates support for gif images, yet there does not seem to be any hooks for gif in the FPDF class. pyFpdf seems to be a nice way to create reports, but my project requires gif images with transparency

[web2py] Re: pyFpdf supports gif images?

2012-06-13 Thread Bob St John
Hi Mariano, Yes, binary transparency works with png... thanks. On Wednesday, June 13, 2012 12:37:29 PM UTC-7, Bob St John wrote: The documentation for pyFpdf indicates support for gif images, yet there does not seem to be any hooks for gif in the FPDF class. pyFpdf seems to be a nice way

Re: [web2py] Re: best practices for displaying a a subset of a tables columns?

2012-06-05 Thread bob
is only hit when you really want to access the records... Richard On Mon, Jun 4, 2012 at 4:00 PM, pbreit wrote: I might not quite understand the question but wouldn't readable/writable work? On Monday, June 4, 2012 5:56:40 AM UTC-7, bob wrote: In the old days I would just create

[web2py] Send push notifications to IOS devices?

2012-06-05 Thread bob
I can send an email from within web2py but am wondering if anyone has attempted to send an IOS notification and if so any pointers would be very helpful. What the Apple Push Notification service is:

[web2py] best practices for displaying a a subset of a tables columns?

2012-06-04 Thread bob
In the old days I would just create a database view on a subset of a table that I wanted to allow other developers to access (assuming read only), however I'm not sure if that's the best thing to do with web2py. I have a table that has: last_name first_name etc including some 'internal'

[web2py] How to never return html?

2012-05-25 Thread bob
as the default. thanks, bob

[web2py] Re: How to never return html?

2012-05-25 Thread bob
generic.xml Anthony On Friday, May 25, 2012 6:55:17 PM UTC-4, bob wrote: Probably a simple question and I searched both the docs and the group. I have a path /api and I never want to return a html reply, I'm ok with a .xml or .json reply and would like to have the default be .xml The big

[web2py] how to remove document from the foo.xml reply?

2012-05-18 Thread bob
locals() when I do a 'check.xml/foo' request I get back: document Status1/Status /document if foo exists.How do I change the XML that is being built? I would like to replace the document, etc. thanks much for a very nice framework. bob

[web2py] Re: how to remove document from the foo.xml reply?

2012-05-18 Thread bob
, if you're in the need of overcustomizing your xml Il giorno venerdì 18 maggio 2012 06:57:02 UTC+2, bob ha scritto: Great app, but I'm stuck on how to build custom XML. I have the following: @request.restful() def check(): def GET(id): count = db(db.users.user_name==id).count

[web2py] SQLFORM.grid behavior with an empty table

2011-10-27 Thread Bob St John
using 1.99.2 SQLFORM.grid... I don't see the need for this statement... line 1641: if not searchable and not rows: return DIV(T('No records found')) If it was removed a user would see an empty grid rather than just a div, no matter what the value of 'searchable' was. An empty grid allows the

[web2py] SQLFORM.grid ondelete possible bug

2011-10-26 Thread Bob St John
using 1.99.2 in gluon.sqlhtml.SQLFORM.grid: line 1489: return ondelete(table,request.args[-2],ret) I think it should be: return ondelete(table,request.args[-1],ret) As it is now, ondelete gets (table, table, ret), whereas I believe it should get (table, record_id, ret) to work properly... I

[web2py] html comments within conditional comments

2011-10-07 Thread Bob St John
Using 1.99.2 'layout.html' has the following conditional comment... !--[if IE] !-- Always force latest IE rendering engine (even in intranet) Chrome Frame Remove this if you use the .htaccess -- meta http-equiv=X-UA-Compatible content=IE=edge,chrome=1 ![endif]--

[web2py] Re: change colnames export_to_csv_file

2011-06-02 Thread Bob
Thanks! On 1 Юни, 19:12, Massimo Di Pierro massimo.dipie...@gmail.com wrote: yes rows.export_to_csv_file(open(),colnames=[]) On Jun 1, 8:38 am, Bob handzh...@gmail.com wrote: Is there any way to change colnames before exporting to CSV? Now I have a query like

[web2py] Re: error on crud.update delete

2011-06-01 Thread Bob
You'll need to show your code as well. On 31 Май, 23:46, selecta gr...@delarue-berlin.de wrote: ERROR:web2py:Traceback (most recent call last):   File /home/select/Dev/web2py/gluon/restricted.py, line 181, in restricted     exec ccode in environment   File

[web2py] change colnames export_to_csv_file

2011-06-01 Thread Bob
Is there any way to change colnames before exporting to CSV? Now I have a query like this: students=db().select(db.students.email, db.students.name) And I'm getting the excel with columns like: students.email | students.name Would be nice to change that to Email and Name, but can't find any

[web2py] What if Massimo got hit by a Bus?

2011-05-26 Thread Bob Blanchett
to Massimo (God Forbid) ? The Technology Selection Risks etc etc.. Yours in no way Gruesomely, Bob

[web2py] Re: Mail.Attachment and Blob

2011-04-20 Thread Bob
) It will be nice if Mail.Attachment can attach files right from blob fields On 19 Апр, 15:42, Bob handzh...@gmail.com wrote: Can Mail.Attachment work with blob field data instead of a file path? I guess I can just write the file and give the path then but wondered if there is more elegant solution like

[web2py] Mail.Attachment and Blob

2011-04-19 Thread Bob
Can Mail.Attachment work with blob field data instead of a file path? I guess I can just write the file and give the path then but wondered if there is more elegant solution like passing the blob data directly to Mail Thanks

[web2py] auth_user manually insert/update the password

2011-04-12 Thread Bob
Hello, could someone answer a couple of questions: 1. Is it possible to manually crypt the password in the same way that crud() does it? The reason is that I need to manually update the user with db().update() and can't use crud 2. In similar situation using SQLFORM. When updating the user it's

[web2py] Re: auth_user manually insert/update the password

2011-04-12 Thread Bob
Thanks Anthony Hiding with javascript will not work because it will get submitted with javascript. But I will try the readable/writable trick, thanks Bob

[web2py] Re: Is there a way to remove application name from URL()?

2011-01-18 Thread Bob
Thanks mates, I'm going to just use init for now, will wait for the new routing for the future On 18 Ян, 00:47, Jonathan Lundell jlund...@pobox.com wrote: On Jan 17, 2011, at 1:06 PM, Bob wrote: In attempt to get some response I'll try to clarify/simplify my question. After

[web2py] Is there a way to remove application name from URL()?

2011-01-17 Thread Bob
I'm using a routing file which makes my app load by default on localhost. It works well, but everywhere I have used the URL() function it prepends the application name to the URL. This of course no longer works, because my real URLs no longer need the name. So is there any configuration that will

[web2py] Re: Is there a way to remove application name from URL()?

2011-01-17 Thread Bob
In attempt to get some response I'll try to clarify/simplify my question. After rewriting with routes.py I have my app accessible as: http://127.0.0.1/ But all the internal links, created with the URL() function come as: http://127.0.0.1/myapp/ And obviously they don't work. Is there no way

[web2py] Re: Why the need of return dict() in controller?

2011-01-14 Thread Bob
I see no downsides and seems that Massimo confirmed that. I already tried using return locals() and it works without issues. On 14 Ян, 07:37, pbreit pbreitenb...@gmail.com wrote: Wait, so are you saying that instead of return dict(items=items, blah=blah, etc) we can just use return locals() on

[web2py] Why the need of return dict() in controller?

2011-01-13 Thread Bob
Is there anything I am missing? Why would you want to manually create a dictionary of all the vars you need in Web2py views when you simpli can write return locals() and all the variables will be available in the view