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:
- h
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):
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 "/data-current/programming/python/web2py/gluon/global
I meant "a simplified version which acts the same way"
",session.defManager
session.defManager.add_def("AddFromTest")
session.counter = 0
session.counter2 = 0
On Friday, 30 March 2012 23:55:59 UTC+11, Massimo Di Pierro wrote:
>
> Can I see the object that you are storing in session?
>
> On Friday, 30 March 2012 01:09
session doesn't seem to have a "force an update to me" method, so I am just
incrementing a counter.
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?
>
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 t
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 insta
posts = db().select(db.bookmarks.ALL)
return response.render('posts/index.html', locals())
On Jun 16, 12:58 pm, Massimo Di Pierro
wrote:
> please show us your code.
>
> On Jun 15, 2:25 am, Web2py Newbie
>
> wrote:
> > As a follow up:
>
> > I want to us
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
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?
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 argument).
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 jus
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 particu
On Jun 9, 3:42 am, Massimo Di Pierro
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
> upload',next=URL()))
Wow. I wo
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:
db.define_table('uploade
On Mar 24, 7:16 pm, Arbie Samong 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
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 dev_appse
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 ju
20 matches
Mail list logo