[web2py] clearing session files with 'remember me'

2010-10-21 Thread Bob_in_Comox
using 1.87.3 The script to remove old session files assumes a 1 hour expiration. Sessions with 'remember me' have 30 day expirations. The following unpacks the session data from the file to check for this (no logging): EXPIRATION_MINUTES=60 import os, time, stat, cPickle path = os.path.join(reque

[web2py] list:string with empty list is not reversible

2010-10-15 Thread Bob_in_Comox
Using web2py 1.87.2 with sqlite I need to store and retrieve a list of strings from a multple select. I have a case where the list can be the empty list []. It will encode to the datebase as '||', but will decode to ['|'], not []. The current gluon.sql.py is: def bar_encode(items): return '|

[web2py] Delete error in SQLFORM with marked up labels

2010-07-04 Thread Bob_in_Comox
Using web2py version 1.79.2 In building a form using SQLFORM I use: form = SQLFORM(db.table, record, fields=myfields, labels=mylabels, col3=mycol3, deletable=True) where mylabels and mycol3 use XML() to wrap some HTML markup PROBLEM: Works fine, except when I try to delete a record I get: Fil

[web2py] Re: email attachments not seen on Macs

2010-06-09 Thread Bob_in_Comox
e 'multipart/related' consists of a root part which references other parts inline. Content-Type 'multipart/mixed' is used for sending files with different "Content-Type" headers inline or as attachments. Whatever, it works for all my users now. Bob On Jun 9, 1

[web2py] email attachments not seen on Macs

2010-06-09 Thread Bob_in_Comox
I send email out to 150 club members. No problems with simple emails. However with attachments only PC users can see and download them, while Mac uses cannot even see the attachments. using web2py 1.79.1 on webfaction with webfaction email servers My code (simplified): from gluon.tools import Ma

[web2py] Submenus and IE6

2010-02-08 Thread Bob_in_Comox
Boring, useless time-waster of a subject, but I do have a significant number if IE6 users on my site who cannot view my submenus. I used the base.css, layout, and response.menu system that came with the welcome application. The base.css is not easy to follow, at least for me, but I did notice that

[web2py:37475] bug in tools.py class Mail

2009-12-17 Thread Bob_in_Comox
There is a typo error in line 257 of tools.py (latest version 1.74.3): 256.if reply_to != None: 257.payload['Reply-To'] = reply_to.encode(ecoding) should be: 257.payload['Reply-To'] = reply_to.encode(encoding) Web2py is such a great framework this is the only