[web2py] Re: Ajax query

2010-03-03 Thread LB22
and I'm getting a similar issue with the page overlapping. On Mar 2, 2:26 pm, LB22 latn.bl...@googlemail.com wrote: Hi Thadeus, Thanks for your input. Perhaps you could provide a couple of examples, as I'm a little confused. In my example, I

[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 latn.bl...@googlemail.com 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 that requested

[web2py] Ajax query

2010-03-02 Thread LB22
])}}', [], 'test');ClickMe/span Instead of replacing the existing image (XML(button)) with 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

[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 mdipie...@cs.depaul.edu wrote: Are you using the latest web2py? On Mar 2, 11:57 am, LB22 latn.bl...@googlemail.com wrote: Hi there, I'm having a small problem and am not sure

[web2py] Re: Ajax query

2010-03-02 Thread LB22
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:03 PM, LB22 latn.bl...@googlemail.com wrote: OK, so I tried upgrading, but still the same result I'm afraid. I figured I must

[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

[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 latn.bl...@googlemail.com wrote

[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.

[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 mdipie...@cs.depaul.edu 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 latn.bl

[web2py] Re: response.stream problem

2010-01-12 Thread LB22
is not set or incorrect. Massimo On Jan 12, 12:10 pm, LB22 latn.bl...@googlemail.com 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=4096) ...does not work. It was working fine before

[web2py:34579] Retrieve URLs in redirect chain

2009-11-04 Thread LB22
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 group, send email to web2py@googlegroups.com

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

2009-11-04 Thread LB22
via HTTP 303/307? On Nov 4, 9:54 am, LB22 latn.bl...@googlemail.com 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 several hundred urls to find out where they lead, so I

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

2009-11-04 Thread LB22
help: http://stackoverflow.com/questions/301924/python-urllib-urllib2-httpl... On Nov 4, 10:23 am, LB22 latn.bl...@googlemail.com wrote: Hi, OK to be a little less ambiguous (apologies for that), the redirects of the urls I'm probing happen within scripts, like those used in affiliate

[web2py:31658] Re: Name or service unknown

2009-09-25 Thread LB22
:o) On Sep 24, 6:51 am, LB22 latn.bl...@googlemail.com 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/examples/static

[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

[web2py:31525] Re: Name or service unknown

2009-09-23 Thread LB22
:33 am, LB22 latn.bl...@googlemail.com wrote: 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

[web2py:31553] Re: Name or service unknown

2009-09-23 Thread LB22
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 latn.bl...@googlemail.com wrote: Hi, thanks for responding. I've considered this but I don't know why it would suddenly become inaccessible. It was working fine

[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 latn.bl...@googlemail.com 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 advance. Please see the support email

[web2py:31565] Re: Name or service unknown

2009-09-23 Thread LB22
) On Wed, Sep 23, 2009 at 3:27 PM, LB22 latn.bl...@googlemail.com wrote: Hi, Sorry, I can't seem to locate that file. In which folder should it be? On Sep 23, 9:01 pm, mdipierro mdipie...@cs.depaul.edu wrote: As an experiment edit wsgiserver.py and replace     socket.AF_UNSPEC

[web2py:/] Re: Name or service unknown

2009-09-23 Thread LB22
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 latn.bl...@googlemail.com wrote: Sorry, I just

[web2py:31569] Re: Name or service unknown

2009-09-23 Thread LB22
disabled because not supported on google apps engine')) else: raise HTTP(200, T('admin disabled because unable to access password file')) On Sep 23, 10:09 pm, LB22 latn.bl...@googlemail.com wrote: I think switching from AF_UNSPEC to AF_INET helped in that after attempting several

[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 latn.bl...@googlemail.com 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 restricted

[web2py:31591] Re: Name or service unknown

2009-09-23 Thread LB22
/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 latn.bl...@googlemail.com wrote: Does anyone have any ideas? Or should I just reinstall

[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:27611] Re: Help! URL rewrite using apache mod_rewrite

2009-07-30 Thread LB22
? On Jul 30, 2:18 pm, Fran francisb...@googlemail.com wrote: On Jul 30, 1:33 pm, LB22 latn.bl...@googlemail.com 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-available/mysite or on RedHat: /etc

[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 jlund...@pobox.com 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

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

2009-07-30 Thread LB22
:15 pm, Jonathan Lundell jlund...@pobox.com 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 please tell me where I'm going wrong, and in which directory I need to put the .htaccess file

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

2009-07-30 Thread LB22
/path/to?variable=value') ) On Jul 30, 4:16 pm, Jonathan Lundell jlund...@pobox.com 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 missing here, something that I'm missing. I'm sure it shouldn't

[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 latn.bl...@googlemail.com wrote: OK, another question regarding routes.py (since

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

2009-07-30 Thread LB22
- 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 latn.bl...@googlemail.com wrote: Sorry, please disregard the above question... Thanks you Fran for the help

[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 machine (localhost), but not work when on the remote

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

2009-07-30 Thread LB22
' cannot be loaded as Python module. On Jul 30, 9:30 pm, Jonathan Lundell jlund...@pobox.com 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 a more prudent way? My way clearly

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

2009-07-30 Thread LB22
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 mdipie...@cs.depaul.edu wrote: can you post your routes.py? as an attachment plaese. On Jul 30, 5:02 pm, LB22 latn.bl

[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

[web2py:26894] Re: upgrade instructions

2009-07-19 Thread LB22
Massimo On Jul 19, 4:29 am, LB22 latn.bl...@googlemail.com 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 wouldn't have this problem :o). Can anyone

[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/

[web2py:17510] Re: web2py / wsgi

2009-03-04 Thread LB22
/mod_authz_host.so instead of access_module on line 11 On Mar 4, 5:56 pm, LB22 latn.bl...@googlemail.com 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 an error when I try to start up

[web2py:15010] Re: Handling Sessions

2009-01-15 Thread LB22
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, storing and retrieving is handled for you. Massimo On Jan 15, 1:10 am, LB22

[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: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

[web2py:14437] Re: Help with KeyError

2009-01-02 Thread LB22
in the controllers, so you should not define dk2 in the controller, its already available. Robin On Jan 2, 3:41 pm, LB22 latn.bl...@googlemail.com wrote: Sorry, you're right. db(dk2,'jusers).insert was one of many desperate attempts at a solution. I forgot I hadn't changed it back. So, i'll post

[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 latn.bl...@googlemail.com 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. If I had, I wouldn't