[web2py] Re: Ajax query

2010-03-03 Thread LB22
I don't actually know how to mark this as solved, but please consider it so. On Mar 3, 10:25 am, LB22 wrote: > OK, Thadeus was right on the money with regard to my problem. > > I don't know how I overlooked it, but I had a line of "legacy code" in > my function

[web2py] Re: Ajax query

2010-03-03 Thread LB22
t; > tweak I can do to get it working. > > > > > The plugin you mentioned seems a little more involved... don't want to > > > > get into it if there's an easy fix for the former method. > > > > > On Mar 2, 2:42 pm, mdipierro wrote: > > >

[web2py] Re: Ajax query

2010-03-02 Thread LB22
u can > > A) Return a view that does not extend layout > B) Return a string that represents the html instead of a dict > C) Call it with .json instead of .html so that your dict gets > serialized into JSON and returned. > > -Thadeus > > > > On Tue, Mar 2, 2010 at 3:

[web2py] Re: Ajax query

2010-03-02 Thread LB22
nd replace the existing image to reflect the current state (marked/ unmarked). Thanks On 2 Mar, 20:37, LB22 wrote: > Hmm...no I'm actually using 1.75.4. I'll try upgrading and report back > what happens. > > On 2 Mar, 19:24, mdipierro wrote: > > > > > Are you

[web2py] Re: Ajax query

2010-03-02 Thread LB22
Hmm...no I'm actually using 1.75.4. I'll try upgrading and report back what happens. On 2 Mar, 19:24, mdipierro wrote: > Are you using the latest web2py? > > On Mar 2, 11:57 am, LB22 wrote: > > > > > Hi there, > > > I'm having a small pr

[web2py] Ajax query

2010-03-02 Thread LB22
the returned one, it inserts the entire page again overlapped on the existing page. Does anyone know where I'm going wrong? Thanks in advance for any help. LB22 -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To po

[web2py] Re: response.stream problem

2010-01-12 Thread LB22
nt-type is not set or incorrect. > > Massimo > > On Jan 12, 12:10 pm, LB22 wrote: > > > Hi, > > > Last night I did an upgrade of web2py from 1.65.x to 1.74.5. Now, this > > piece of code: > > > return response.stream(open(path,'rb'),chuck_size=40

[web2py] Re: response.stream problem

2010-01-12 Thread LB22
Hi Massimo, The file type is .mp3. Can I pass the contenttype to response.stream () ? On Jan 12, 6:46 pm, mdipierro wrote: > What is the file format you are streaming? > It lookslike the Content-type is not set or incorrect. > > Massimo > > On Jan 12, 12:10 pm, LB22 wrote: &g

[web2py] response.stream problem

2010-01-12 Thread LB22
Hi, Last night I did an upgrade of web2py from 1.65.x to 1.74.5. Now, this piece of code: return response.stream(open(path,'rb'),chuck_size=4096) ...does not work. It was working fine before the upgrade. I've looked at the changes between versions but I don't see what could have caused this. Too

[web2py] Re: Upgrade problems

2010-01-12 Thread LB22
Sorry, I just realised I hadn't tried restarting apache. I did this and admin came back to life. I don't remember having to restart apache last time, but then it has been a while since I upgraded. Apologies for the unnecessary post. LB22 On Jan 12, 8:36 am, LB22 wrote: > Hi All, &

[web2py] Upgrade problems

2010-01-12 Thread LB22
Hi All, Last night I decided to upgrade web2py from version 1.65 (not entirely sure which build) to 1.74.5. I used the old upgrade method of unzipping web2py over the old installation. I checked the manual before doing this (both my copy and the one on the web2py site), to make sure I was doing th

[web2py:34592] Re: Retrieve URLs in redirect chain

2009-11-04 Thread LB22
nk this may help: > > http://stackoverflow.com/questions/301924/python-urllib-urllib2-httpl... > > On Nov 4, 10:23 am, LB22 wrote: > > > > > Hi, > > > OK to be a little less ambiguous (apologies for that), the redirects > > of the urls I'm probing happen withi

[web2py:34586] Re: Retrieve URLs in redirect chain

2009-11-04 Thread LB22
> done via HTTP 303/307? > > On Nov 4, 9:54 am, LB22 wrote: > > > > > Hi Everyone, > > > I'm not sure this is strictly a web2py question, but I figured I'd > > pose the question anyway, so here it goes. > > > I had a task of going through se

[web2py:34579] Retrieve URLs in redirect chain

2009-11-04 Thread LB22
equested URL in the journey to the end URL, given the start URL. Does anyone know how to achieve this? Thanks LB22 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this grou

[web2py:31658] Re: Name or service unknown

2009-09-25 Thread LB22
ssimo :o) On Sep 24, 6:51 am, LB22 wrote: > OK, so now I'm think again that it's not a web2py related issue. I was > in a console trying to get the latest version of web2py when I > received the same "nameorserviceunknown" problem: > > $ wgethttp://www.web2py.com/

[web2py:31591] Re: Name or service unknown

2009-09-23 Thread LB22
.web2py.com/examples/static/web2py_src.zip Resolving www.web2py.com... failed: Name or service not known. When I find out what the problem is I'll post it here in case anyone else runs into the same problem. On Sep 24, 6:21 am, LB22 wrote: > Does anyone have any ideas? Or should I just rei

[web2py:31590] Re: Name or service unknown

2009-09-23 Thread LB22
Does anyone have any ideas? Or should I just reinstall web2py? On Sep 23, 10:18 pm, LB22 wrote: > Sorry, I take that back, I just received the error again, please see > below: > > Traceback (most recent call last): >   File "gluon/restricted.py", line 178, in restr

[web2py:31569] Re: Name or service unknown

2009-09-23 Thread LB22
session.authorized = True session.last_time = time.time() else: raise HTTP(200, T('admin disabled because not supported on google apps engine')) else: raise HTTP(200, T('admin disabled because unable to access p

[web2py:/] Re: Name or service unknown

2009-09-23 Thread LB22
st waiting for my site to respond and return the requested page. The admin area is also extremely slow. Is there anything else I could do to resolve this? I have deadline on this site and its not even any half way finished. Thanks. On Sep 23, 9:47 pm, LB22 wrote: > Sorry, I just googled a

[web2py:31565] Re: Name or service unknown

2009-09-23 Thread LB22
area) > > On Wed, Sep 23, 2009 at 3:27 PM, LB22 wrote: > > > Hi, > > > Sorry, I can't seem to locate that file. In which folder should it be? > > > On Sep 23, 9:01 pm, mdipierro wrote: > > > As an experiment edit wsgiserver.py and replace

[web2py:31561] Re: Name or service unknown

2009-09-23 Thread LB22
It may be > an IPV6 issue. > > Massimo > > On Sep 23, 2:32 pm, LB22 wrote: > > > Hi, > > > I got some feedback from webfaction support (where my site is hosted), > > and he provided the below. Does anyone understand what is happening? > > Thanks in

[web2py:31553] Re: Name or service unknown

2009-09-23 Thread LB22
; I do not think this something you caused. I cannot completely rule it > out without looking at the code but it is unlikely. > Has anybody else had this problem? > > Massimo > > On Sep 23, 8:18 am, LB22 wrote: > > > Hi, thanks for responding. > > > I

[web2py:31525] Re: Name or service unknown

2009-09-23 Thread LB22
n not work again. I'm on webfaction and have a couple of apps working fine. I don't know what could have suddenly caused this problem. Could be something I did in the app? On Sep 23, 2:08 pm, mdipierro wrote: > Is it possible the DNS is not configured or not accessible? > > On

[web2py:31516] Name or service unknown

2009-09-23 Thread LB22
Hi, I wonder if anyone can help. The problem I'm experiencing is beyond the scope of my knowledge. For some reason I started receiving this error when trying access the front end of my application, and also using the backend. I don't get it every single time I try to navigate, but I get it MOST ti

[web2py:27664] Re: Help! URL rewrite using apache mod_rewrite

2009-07-30 Thread LB22
, but forgotten to remove it. Everything is now working as expected. Thanks again for all the help. Whenever I'm stuck, there are always people here to get me unstuck :o) On 31 July, 02:08, mdipierro wrote: > can you post your routes.py? as an attachment plaese. > > On Jul 30, 5:02

[web2py:27653] Re: Help! URL rewrite using apache mod_rewrite

2009-07-30 Thread LB22
handler.py' cannot be loaded as Python module. On Jul 30, 9:30 pm, Jonathan Lundell wrote: > On Jul 30, 2009, at 1:22 PM, LB22 wrote: > > > > > Use a named buffer... I'm not sure what you mean. Could you give me an > > example of how I could rewrite my code in

[web2py:27646] Re: Help! URL rewrite using apache mod_rewrite

2009-07-30 Thread LB22
30, 2009, at 12:56 PM, LB22 wrote: > > > > > > > After all of the above I was experimenting this afternoon with masking > > urls (not for anything dodgy, I assure you). I'm wondering though, why > > does the below provide the  work as designed on my local ma

[web2py:27644] Re: Help! URL rewrite using apache mod_rewrite

2009-07-30 Thread LB22
e is a trailing slash (or some other non- alphanumeric character) it fails to match and url remains as is. Like I said, I'm just experimenting here, but I'd like to understand what is going wrong. On Jul 30, 8:29 pm, LB22 wrote: > Sorry, please disregard the above question... >

[web2py:27643] Re: Help! URL rewrite using apache mod_rewrite

2009-07-30 Thread LB22
Sorry, please disregard the above question... Thanks you Fran for the help with apache mod_rewrite, and thank you Jonathan for your help on with that and routes.py. Much appreciated. :o) On Jul 30, 8:19 pm, LB22 wrote: > OK, another question regarding routes.py (since I've started

[web2py:27642] Re: Help! URL rewrite using apache mod_rewrite

2009-07-30 Thread LB22
value' , '/rewritten/path/to?variable=value') ) On Jul 30, 4:16 pm, Jonathan Lundell wrote: > On Jul 30, 2009, at 8:02 AM, LB22 wrote: > > > > > > > I appreciate the responses Fran, but I don't, I still feel like > > there's something crucial

[web2py:27623] Re: Help! URL rewrite using apache mod_rewrite

2009-07-30 Thread LB22
27;m trying to understand why it doesn't. On Jul 30, 3:15 pm, Jonathan Lundell wrote: > On Jul 30, 2009, at 5:33 AM, LB22 wrote: > > > > > > > Below is what I'm trying to achieve, followed by the rules I put in > > my .htaccess file. Could someone pl

[web2py:27624] Re: Help! URL rewrite using apache mod_rewrite

2009-07-30 Thread LB22
Hi, Thanks Jonathan, I'll take another look at the server log and see if I find any clues. On Jul 30, 3:15 pm, Jonathan Lundell wrote: > On Jul 30, 2009, at 5:33 AM, LB22 wrote: > > > > > > > Below is what I'm trying to achieve, followed by the rules I p

[web2py:27611] Re: Help! URL rewrite using apache mod_rewrite

2009-07-30 Thread LB22
y to achieve my goal? On Jul 30, 2:18 pm, Fran wrote: > On Jul 30, 1:33 pm, LB22 wrote: > > > I'm not sure in which directory I should be putting the .htaccess > > file. > > Can't you put it in httpd.conf? > e.g. on Ubuntu in /etc/apache2/sites-ava

[web2py:27605] Help! URL rewrite using apache mod_rewrite

2009-07-30 Thread LB22
Hi, I wonder if anyone could help, I've been battling with this for hours. What I thought was going to be fairly straightforward has become very time consuming. I've got web2py setup as a wsgi, and I want to rewrite URLs using Apache's mod_rewrite (I did try doing it via routes.py in web2py but

[web2py:26894] Re: upgrade instructions

2009-07-19 Thread LB22
> > Massimo > > On Jul 19, 4:29 am, LB22 wrote: > > > > > I second this. That was the first place I looked when trying to figure > > out how to update web2py, but didn't find anything I could use. > > > Of course, if I had the book I guess I wo

[web2py:26891] Re: upgrade instructions

2009-07-19 Thread LB22
I second this. That was the first place I looked when trying to figure out how to update web2py, but didn't find anything I could use. Of course, if I had the book I guess I wouldn't have this problem :o). Can anyone point me in the right direction? I haven't updated web2py since 1.56, but need t

[web2py:17510] Re: web2py / wsgi

2009-03-04 Thread LB22
_authz_host.so > > instead of access_module on line 11 > > On Mar 4, 5:56 pm, LB22 wrote: > > > Hi, > > > I'm trying to setup my site which using the method found > > here:http://forum.webfaction.com/viewtopic.php?id=2373, but I keep running > > into

[web2py:17492] web2py / wsgi

2009-03-04 Thread LB22
Hi, I'm trying to setup my site which using the method found here: http://forum.webfaction.com/viewtopic.php?id=2373, but I keep running into an error when I try to start up (./webapps/apachewsgi/apache2/bin/ start): httpd: Syntax error on line 11 of /home/lnoir/webapps/apachewsgi/ apache2/conf/

[web2py:15010] Re: Handling Sessions

2009-01-15 Thread LB22
; you ma have cookies disabled. > > By default sessions are handled for you and stored in session/* > You should only use session.connect(...) if you prefer to have > sessions stored in database (slower but needed if you have multiple > servers). > Either case, session cookies,

[web2py:14985] Handling Sessions

2009-01-14 Thread LB22
Hi all, I've been using web2py for a couple of weeks and am slowly getting the hang of it, but I'm still pretty much a newbie to web programming. I've been trying to figure out how to handle sessions but have made little progress in the past couple of days. The manual, (and website) states that

[web2py:14438] Re: Help with KeyError

2009-01-02 Thread LB22
Just to update, that worked like a charm. Thanks again for your help! :o) On 2 Jan, 22:29, LB22 wrote: > OH man! That's makes sense! > > "FYI, all the models are executed in alphabetical order at the start > of > each request... > > I didn't realise this.

[web2py:14437] Re: Help with KeyError

2009-01-02 Thread LB22
ymbols from the models are automatically > available in the controllers, so you should not define dk2 in the > controller, its already available. > > Robin > > On Jan 2, 3:41 pm, LB22 wrote: > > > Sorry, you're right. db(dk2,'jusers).insert was one of many desperate &

[web2py:14435] Re: Help with KeyError

2009-01-02 Thread LB22
e variations, and actually originally started off using form(), but got the error, so switched to form_factory() instead, but still got the same error. I thought maybe I was referencing the table too early, but that was a problem I faced only briefly when first creating database models in web2py. Any

[web2py:14433] Help with KeyError

2009-01-02 Thread LB22
Hi there, I'm fairly new to both python and web2py, and I've run into a problem that I just can't seem to get around. I'm hoping someone can help. If anymore info is need, please let me know. So, I keep getting this error: Traceback (most recent call last): File "gluon\restricted.pyc", line 6