[web2py] web2py exe

2015-08-14 Thread web2py newbie
Hi I recently started coding a python app and decided to explore web2py. however, when I download the windows exe and run it, I see neither the admin console nor the webpage when I connect to 127.0.0.1:8000 I even tried web2py.exe -S welcome, and still nothing. Regards Raji -- Resources: -

[web2py] Re: Trouble with pickling session

2012-08-12 Thread Web2py Newbie
It seems to be caused by the presence of: nlIter = re.finditer('\n',self.raw) in one of the methods of one of the class methods. So, I moved the work to a separate function (not method): def initNewLines(self): self.newLines = findNewLines(self.raw) def findNewLines( searchIn):

[web2py] Trouble with pickling session

2012-08-11 Thread Web2py Newbie
My app doesn't want to pickle my session for some reason. I get: Traceback (most recent call last): File /data-current/programming/python/web2py/gluon/main.py, line 523, in wsgibase session._try_store_on_disk(request, response) File

[web2py] Re: Storing class instances in sessions... or somewhere

2012-03-30 Thread Web2py Newbie
On Friday, 30 March 2012 14:38:39 UTC+11, Limedrop wrote: M. Picking might not be the issue. I would try to take javascript out of the equation first. What if you simulated the javascript in a second server-side controller? See if it can retrieve, update and save the session? I

[web2py] Re: Storing class instances in sessions... or somewhere

2012-03-30 Thread Web2py Newbie
session doesn't seem to have a force an update to me method, so I am just incrementing a counter.

[web2py] Re: Storing class instances in sessions... or somewhere

2012-03-30 Thread Web2py Newbie
I meant a simplified version which acts the same way

[web2py] Storing class instances in sessions... or somewhere

2012-03-29 Thread Web2py Newbie
I have an existing application that I am trying to get running as AJAX with web2py (locally, but eventually to run on GAE). The application makes use of class instances to store much of the data which would be used for user sessions. I understand that session can't be used to store class

[web2py] Re: Storing class instances in sessions... or somewhere

2012-03-29 Thread Web2py Newbie
On Friday, 30 March 2012 12:04:05 UTC+11, Limedrop wrote: If instances are pickable then you should be okay. Have you tried saving them to the session and seeing what happens? Note that sometimes you can pickle things okay but the unpickle throws the error. Have you tried saving them to

[web2py] Re: More Details on RESTful web2py?

2011-06-16 Thread Web2py Newbie
(db.bookmarks.ALL) return response.render('posts/index.html', locals()) On Jun 16, 12:58 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: please show us your code. On Jun 15, 2:25 am, Web2py Newbie swiawte...@garrifulio.mailexpire.com wrote: As a follow up: I want to use

[web2py] Re: More Details on RESTful web2py?

2011-06-15 Thread Web2py Newbie
As a follow up: I want to use something like: /myapp/api/show_comment/id to show comment at id and /myapp/api/show_comment/ To show all comments However, when I try this it complains (invalid arguments). I try to test id against None, but id is apparently a server object. Any ideas or do I just

[web2py] Re: More Details on RESTful web2py?

2011-06-15 Thread Web2py Newbie
H it seems to have just dropped my supplementary question. Apologies if this arrives twice. I want to do something like: /myapp/api/get_comment/id to return the comment at id and /myapp/api/get_comment/ to return a list of all comments However, it complains when I try this (invalid

[web2py] Spello in @request.restful() parsed.error

2011-06-15 Thread Web2py Newbie
Version 1.96.4 (2011-06-07 21:08:15) If there's no matching pattern: no mathcing pattern - no matching pattern ^^ Is there a bug tracker somewhere I'm supposed to use?

[web2py] Re: More Details on RESTful web2py?

2011-06-15 Thread Web2py Newbie
Apparently: wait for a pattern failure and work with that? if parsed.status==200: return parsed.response.json() else: maybe some test for kind of parse error print out the whole

[web2py] More Details on RESTful web2py?

2011-06-14 Thread Web2py Newbie
I am trying to find more details on @request.restful() in Web2py. I have found a vimeo video: http://vimeo.com/21133657 And a post on reddit: http://www.reddit.com/r/programming/comments/g5hxq/web2py_trunk_has_a_new_restful_api_that_writes_db/c1l2ykg Is there any other documentation? In

[web2py] Uploading file

2011-06-08 Thread Web2py Newbie
I want to expose a method which will accept a file POSTed to it and save the file to the database. I have found php examples all over the place (one below). How do i do this in web2py? I don't want to use a form as I don't want to upload interactively. My model is this:

[web2py] Re: Uploading file

2011-06-08 Thread Web2py Newbie
On Jun 9, 3:42 am, Massimo Di Pierro massimo.dipie...@gmail.com wrote: I responded 2hr ago but comment did not show up. It happens all the time. :-( Here is it a again and hope it shows up. def upload():       return dict(form=crud.create(db.uploadedFiles,message='Successful

[web2py] Re: Problems with Google App Engine

2011-03-24 Thread Web2py Newbie
On Mar 24, 7:16 pm, Arbie Samong phek...@gmail.com wrote: I'm not sure if my reply was posted so I'm posting again. It happened to me because I tried to set handlers.script in app.yaml to web2py.py. I used gaehandler.py instead and it worked. Wow! It worked! Thanks Brendan

[web2py] Problems with Google App Engine

2011-03-23 Thread Web2py Newbie
Hi I have done a short app (actually just a couple of web pages strung together) that I wanted to load to the google app engine. When I try to hook up web2py: python2.5 dev_appserver.py web2py the app starts, but fails when I load the page in a browser: ERROR2011-03-23 23:00:16,549

[web2py] Help with setting up Web2py environment

2010-10-11 Thread Web2py Newbie
Hi I have migrated an existing application onto web2py as a proof of concept and I'm looking at how I take it/web2py further. The main things I'm wondering about are: * what's the right way to do logging in web2py? My test server is running apache2/wsgi. * what's the right way to use svn (do I