[web2py] Re: GAE select all does not iterate

2011-08-28 Thread Jarrod Cugley
Here is my actual controller, it iterates perfectly on a web2py server, but as soon as upload the exact same files to GAE it doesn't iterate. *** def livesearch(): '''Auto completes the search query''' partialstr = request.vars.partialstr query = db.listing.title.li

[web2py] Re: GAE select all does not iterate

2011-08-27 Thread Jarrod Cugley
I am actually having the same problem, my select(db.listing.ALL) is working fine on the web2py server but as soon as I run it on GAE it doesn't work. I'm using the latest web2py (1.98.2) and I'm also using the latest version of GAE Launcher (1.5.3) On Aug 28, 7:36 am, howesc wrote: > i do this a

[web2py] Re: GAE deployment problem

2011-08-27 Thread Jarrod Cugley
. > > On Aug 27, 12:52 am, Jarrod Cugley wrote: > > > > > > > > > Oh interesting! Both great tips guys thanks Anthony and Bruno :) > > > On Aug 27, 3:37 pm, Bruno Rocha wrote: > > > > Go to GAE dashboard and manage "versions" choose

[web2py] Re: GAE deployment problem

2011-08-26 Thread Jarrod Cugley
Oh interesting! Both great tips guys thanks Anthony and Bruno :) On Aug 27, 3:37 pm, Bruno Rocha wrote: > Go to GAE dashboard and manage "versions" choose the default version. > > rename your app to 'init' > > Then you have now myapp.appspot.com

[web2py] Re: GAE deployment problem

2011-08-26 Thread Jarrod Cugley
> > On Saturday, August 27, 2011 1:22:53 AM UTC-4, Jarrod Cugley wrote: > > > One more thing, right now my URL is: > > >    http://1.myapp.appspot.com/myapp/default/index > > > How would I make this: > > >    http://myapp.appspot.com/ > > > Witho

[web2py] Re: GAE deployment problem

2011-08-26 Thread Jarrod Cugley
t; > > > > > > > On Saturday, August 27, 2011 1:22:53 AM UTC-4, Jarrod Cugley wrote: > > > One more thing, right now my URL is: > > >    http://1.myapp.appspot.com/myapp/default/index > > > How would I make this: > > >    http://myapp.appspot.com

[web2py] Re: GAE deployment problem

2011-08-26 Thread Jarrod Cugley
One more thing, right now my URL is: http://1.myapp.appspot.com/myapp/default/index How would I make this: http://myapp.appspot.com/ Without breaking everything? On Aug 27, 3:15 pm, Jarrod Cugley wrote: > Ok after hours of fiddling (yes it somehow took me that long HAHAHA

[web2py] Re: GAE deployment problem

2011-08-26 Thread Jarrod Cugley
Ok after hours of fiddling (yes it somehow took me that long HAHAHA) I figured it out, thanks for the assistance Mass and Jon :) On Aug 27, 2:08 pm, Jarrod Cugley wrote: > Massimo, I watched the video, it was very helpful thank you, but I'm > still confused with how to upload my a

[web2py] Re: GAE deployment problem

2011-08-26 Thread Jarrod Cugley
On Aug 26, 9:51 pm, Jarrod Cugley wrote: > > > > > > > > > Ok, I've done that, but now what am I meant to do with the GAE > > launcher settings? The documentation in the web2py book makes no > > sense, I've done what it says but it doesn

[web2py] Re: GAE deployment problem

2011-08-26 Thread Jarrod Cugley
ory = ? when I set the directory to be web2py it just creates a new folder and then I copy everything from web2py/applications/myapp into web2py/ myapp? I'm so confused... On Aug 27, 11:41 am, Jonathan Lundell wrote: > On Aug 26, 2011, at 6:32 PM, Jarrod Cugley wrote: > > >

[web2py] Re: GAE deployment problem

2011-08-26 Thread Jarrod Cugley
GAE. Perhaps you > accidentally deleted it? > > massimo > > On Aug 25, 11:07 pm, Jarrod Cugley wrote: > > > > > > > > > Oh I didn't know GAE had logs too whoops. > > > It gives me the warning: > > > File referenced by handler not

[web2py] Re: How do I import modules?

2011-08-26 Thread Jarrod Cugley
f your model: > > if request.is_local: #disable in production enviroment    from > gluon.custom_import import track_changes    track_changes() > > Another: Last web2py is 1.98.2 > > 2011/8/26 Jarrod Cugley > > > > > > > > > > > Wow. Don't ask

[web2py] Re: How do I import modules?

2011-08-26 Thread Jarrod Cugley
Mulone wrote: > You have the last version?, You have _init_.py in module?, You try changing > objects to another name, pehaps a name-conflict?. > > 2011/8/26 Jarrod Cugley > > > > > > > > > > > I've tried local_import().. Which seems to be deprec

[web2py] Re: How do I import modules?

2011-08-26 Thread Jarrod Cugley
> You have the last version?, You have _init_.py in module?, You try changing > objects to another name, pehaps a name-conflict?. > > 2011/8/26 Jarrod Cugley > > > > > > > > > > > I've tried local_import().. Which seems to be deprecated from what >

[web2py] How do I import modules?

2011-08-26 Thread Jarrod Cugley
I've tried local_import().. Which seems to be deprecated from what I've read in this group I've tried from mymodule import class, and this doesn't seem to work either? Is there any documentation on this? Cause I can't really find anything that helps me. This is my code: ### controller/default.py

[web2py] Re: GAE deployment problem

2011-08-26 Thread Jarrod Cugley
ont page and nothing else (which is not my app) On Aug 26, 2:07 pm, Jarrod Cugley wrote: > Oh I didn't know GAE had logs too whoops. > > It gives me the warning: > > File referenced by handler not found: gaehandler.py > > Any idea what that means? > > On Aug 26, 1

[web2py] Re: GAE deployment problem

2011-08-25 Thread Jarrod Cugley
Oh I didn't know GAE had logs too whoops. It gives me the warning: File referenced by handler not found: gaehandler.py Any idea what that means? On Aug 26, 1:58 pm, Massimo Di Pierro wrote: > Check the GAE logs on the dashboard. > > On Aug 25, 10:32 pm, Jarrod

[web2py] GAE deployment problem

2011-08-25 Thread Jarrod Cugley
So I've created a basic website that works on the web2py server, so I wanted to test it on the GAE, these are my steps so far: 1. read: http://web2py.com/book/default/chapter/11#Google-App-Engine 2. copied the app.example.yaml into my app.yaml and changed the id to the same id I used to create my

[web2py] Re: Nesting functions inside functions in controllers

2011-08-22 Thread Jarrod Cugley
I just noticed when I try and use that class inside my search function (in controllers/default.py) it works fine. So it must be something to do with importing and using it? On Aug 23, 3:50 am, Bruno Rocha wrote: > This should work > > http://pastie.org/2412537

[web2py] Re: Nesting functions inside functions in controllers

2011-08-22 Thread Jarrod Cugley
I get the same error? :( On Aug 23, 3:50 am, Bruno Rocha wrote: > This should work > > http://pastie.org/2412537

[web2py] Re: Nesting functions inside functions in controllers

2011-08-22 Thread Jarrod Cugley
Module: http://pastie.org/2411032 Controller: http://pastie.org/2411038 View: http://pastie.org/2411047 That should be everything, thanks for the help man, I really appreciate it! :) On Aug 22, 9:27 pm, Bruno Rocha wrote: > share your whole code in some pastie, gist or send the .py files I wil

[web2py] Re: Nesting functions inside functions in controllers

2011-08-22 Thread Jarrod Cugley
Yep just tried it then, same error unfortunately :( On Aug 22, 8:15 pm, Bruno Rocha wrote: > did you imported in this way: > > from objects import Search > > return dict(search=Search.show(db)) > > ???

[web2py] Re: Nesting functions inside functions in controllers

2011-08-22 Thread Jarrod Cugley
args(0)).select(db.listing.ALL) > >        items = [] > >        for person in search: > >            items.append(DIV(A(person.first_name, _href=URL('listing', > > args=person.id > > >        return TAG[''](*items) > > # modules/objects.p

[web2py] Re: Nesting functions inside functions in controllers

2011-08-22 Thread Jarrod Cugley
sed as to why that won't work, it's returning the error: AttributeError: type object 'Search' has no attribute 'show' On Aug 22, 5:57 pm, Jarrod Cugley wrote: > 1 more thing, could you explain these lines please: > > from gluon import * > request = current.

[web2py] Re: Nesting functions inside functions in controllers

2011-08-22 Thread Jarrod Cugley
t.py > > def search(): >     from myobjects import Myobjects >     return dict(showsearch=Myobjects.showsearch(db)) > > # controllers/deafault.py > > Note that you need to pass 'db' instance to the module > > I think the controller code looks much better in this way,

[web2py] Re: Nesting functions inside functions in controllers

2011-08-22 Thread Jarrod Cugley
s import Myobjects >     return dict(showsearch=Myobjects.showsearch(db)) > > # controllers/deafault.py > > Note that you need to pass 'db' instance to the module > > I think the controller code looks much better in this way, needs web2py > 1.97+ > > > > &g

[web2py] Nesting functions inside functions in controllers

2011-08-21 Thread Jarrod Cugley
Is there anything wrong with doing this inside default.py controller?: def search(): def showsearch(): search = db(db.listing.title==request.args(0)).select(db.listing.ALL) items = [] for person in search: items.append(DIV(A(person.first_name, _href=URL('lis

[web2py] Re: Table is corrupted, how do I fix this?

2011-08-18 Thread Jarrod Cugley
(SOLVED) Simply had to put migrate=False,fake_migrate=True into the table. See: http://www.web2py.com/book/default/chapter/06#Migrations On Aug 19, 3:38 pm, Jarrod Cugley wrote: > I think I broke it by accidentally creating an infinite loop... Hehe. > > The error is this: > &g

[web2py] Table is corrupted, how do I fix this?

2011-08-18 Thread Jarrod Cugley
I think I broke it by accidentally creating an infinite loop... Hehe. The error is this: RuntimeError: File /Users/jcugley/Documents/pycoding/web2py.app/ Contents/Resources/applications/sel/databases/ c8b669d15150d7109e5f7ab36744a5b7_listing.table appears corrupted Any ideas on how to fix, I did

[web2py] Re: I keep getting the error: invalid literal for int() with base 10: 'Plumber'

2011-08-16 Thread Jarrod Cugley
eld('reset_password_key', length=512, writable=False, readable=False, default=''), Field('registration_id', length=512, writable=False, readable=False, default=''), ) I've got to be missi

[web2py] Re: I keep getting the error: invalid literal for int() with base 10: 'Plumber'

2011-08-14 Thread Jarrod Cugley
tor anyway. > Seehttp://web2py.com/book/default/chapter/07#Database-Validatorsandhttp://web2py.com/book/default/chapter/06#Record-Representation. > > Anthony > > > > > > > > > > On Sunday, August 14, 2011 5:39:27 AM UTC-4, Jarrod Cugley wrote: > > Hi g

[web2py] I keep getting the error: invalid literal for int() with base 10: 'Plumber'

2011-08-14 Thread Jarrod Cugley
Hi guys this is my first post so just let me know if I'm doing anything wrong :) (Massimo recommended I ask questions here about web2py rather than on Stack Overflow) As the title says: I keep getting the error: invalid literal for int() with base 10: 'Plumber' I've done searching and it seems to