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
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
.
>
> 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
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
>
> 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
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
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
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
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
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:
>
> >
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
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
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
> 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
>
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
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
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
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
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
I get the same error? :(
On Aug 23, 3:50 am, Bruno Rocha wrote:
> This should work
>
> http://pastie.org/2412537
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
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))
>
> ???
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
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.
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,
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
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
(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
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
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
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
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
32 matches
Mail list logo