[web2py] Re: Error on importing twisted

2012-05-22 Thread Hugh Barker
not name.startswith(".") and level <= 0 \ and not name.startswith("applications.") \ and isinstance(globals, dict) and globals.get("__file__"): The twisted import then works and everything is good.. On Wednesday, May 23, 2012 1

[web2py] Re: Error on importing twisted

2012-05-22 Thread Hugh Barker
Just tried an upgrade to web2py 1.99.7, same issue. On Wednesday, May 23, 2012 1:07:16 PM UTC+10, Hugh Barker wrote: > > Hi, > I need to run some code that uses the Twisted library from within web2py > (listening to multicast events on the network, parsing the data and then > in

[web2py] Error on importing twisted

2012-05-22 Thread Hugh Barker
Hi, I need to run some code that uses the Twisted library from within web2py (listening to multicast events on the network, parsing the data and then inserting it into the web2pt DB for integration into a webapp). I get the following error upon importing Twisted. In the interests of reproducibi

Re: [web2py] Re: DAL Connection String

2012-02-07 Thread Hugh Barker
Excellent, thanks very much. This solved my issue. 2012/2/8 Niphlod : > PS : final DAL initiation code is > > db = DAL('postgres://hello:p%40ssword@localhost:5432/bbb', > decode_credentials=True)

Re: [web2py] Re: DAL Connection String

2012-02-06 Thread Hugh Barker
odec='UTF-8', check_reserved=None, >                 migrate=True, fake_migrate=False, >                 migrate_enabled=True, fake_migrate_all=False, >                 decode_credentials=False, driver_args=None, >                 adapter_args=None, attempts=5, auto_import=False):

[web2py] DAL Connection String

2012-02-05 Thread Hugh Barker
Hi, I have a bit of a problem with my connection string in db.py - specifically, the database password has a '@' symbol, and so web2py chokes because it assumes this is the delimiter between password and host. I had a look at dal.py and I guess the regex needs modifying to take this case into a

[web2py] Re: Returning a dict from a controller

2011-09-12 Thread Hugh Barker
Yeah, copying the default generic.html to getsensors.html (and ditto for *.json) worked. I'll try the debugging steps you suggested, see what I come up with. On Sep 13, 12:08 pm, Jonathan Lundell wrote: > On Sep 12, 2011, at 6:45 PM, Hugh Barker wrote: > > > This is my

[web2py] Re: Returning a dict from a controller

2011-09-12 Thread Hugh Barker
This is my db.py: from gluon.tools import Service db = DAL('postgres://postgres:@server/geospatial') response.generic_patterns = ['*'] service = Service() On Sep 13, 11:13 am, Jonathan Lundell wrote: > On Sep 12, 2011, at 6:10 PM, Bruno Rocha wrote: > > > do you have response.generic_patterns