[web2py] Well So long to Google App_Engine

2012-04-11 Thread chawk
I am going to be moving my application off of the Google App Engine cloud.  
I liked some of the things that app engine did for www.noobmusic.com, but 
it 
is clear that I will end up spending an ass load of money trying to host a 
resource hog like noobmusic.com.   I plan to put it on a dedicated 
Linux server through iweb with 10 tb of traffic and 500 gig of hard disk 
space.   The transition is planned for this weekend.  I am glad I did not 
get to deeply involved in app engine before deciding to move.My data 
models will need to be switched around, as I plan to use MySQL. 
Does anybody have an advice or heads up warnings with moving to a Linux 
server?  This will be a new experience for me. 

I don't know about anybody else, but the warnings about using app engine 
were pretty clear and not well heeded by me. Just like everybody said
you lock yourself into their bull crap.   they have so many gotchas in 
their billing it is unbelievable.  


[web2py] question about google app engine blob property

2011-12-17 Thread chawk
I am trying to build an app for google app engine.  I currently use
the auth_user for website registration.   I added some extra fields to
the registration.  I was trying to add an additional auth_user field
for avatar file upload.  it appears that this will conflict with
google blob property.  Does anybody have a suggestion on how I could
go about having a user upload a profile image through auth_user
without causing problems with app engine db?


chawk


[web2py] Re: question about google app engine blob property

2011-12-18 Thread chawk
This is testing on GAE Locally

extra fields:

auth.settings.extra_fields['auth_user']= [
  Field('City'),
  Field('State'),
  Field('Country'),
  Field('Profile_Name'),
  Field('Avatar', 'upload')]


When the user registers i get a "unrecoverable error message" after
submission.  I checked the db admin for GAE and it shows that all info
was received including the blob.  When i try form submission leaving
the upload field blank it works fine.  At first i thought that the
image files were too big, but they are all under a 1mb.


chawk


[web2py] Re: question about google app engine blob property

2011-12-18 Thread chawk
Massimo,

This seems to be a GAE file size issue.  i checked the error log and
even though the file is under 1 mb it was saying that it was too
large.  Maybe the dimensions of the photo were too large as opposed to
the actual disk space of the file? Either way it is not a problem with
Web2py, just a limitation that i did not run into until testing on
GAE.  I used a smaller 50px by 50px photo which was about 15kb and it
works fine.

Per Google docs, it says that the upload file size limits is one
gig.

this is what the development console looks like:

Profile_Name (string) amanda
Avatar (string)   auth_user.Avatar.a05d3cb080ce697d.
4a656c6c79666973682e6a7067.jpg
Avatar_blob (Blob)
password (string) eaa0c72ce4ea6949e14bfa4ad575cab6



[web2py] web2py & google app engine deployment

2011-12-29 Thread chawk
I recently registered updated my custom domain to display in the url
instead of the my google.appspot domain.   However the appspot.domain
still shows up on google searches, and i want them to show the custom
url.

it is probably best just to check the site.

if you type the url:

www.noobmusic.com it takes you to the right app.

if you type just noobmusic.com it takes you to the appspot app.

Is there a way to put code quick check in the controller or somewhere
else to see if the user is on the appspot domain and if so point them
to the correct one?


[web2py] Cant get emails to send from Google App Engine App

2012-01-06 Thread chawk
I have my db.py file setup this way

## configure email
mail=Mail()
mail.settings.server="gae"
mail.settings.sender="myaddress.com"
mail.settings.login="username:password"


I have been trying this for hours, I get no errors, when i call
functions to send emails they return true, so I am assuming they are
supposed to be working, but the messages never show up in my inbox.









[web2py] controller question

2012-01-12 Thread chawk
What is the largest advisable size for a controller file using Google
apparently engine?


[web2py] controller question

2012-01-12 Thread chawk
What is the largest advisable size for a controller file using Google
apparently engine?


[web2py] controller question

2012-01-12 Thread chawk
What is the largest advisable size for a controller file using Google
apparently engine?


[web2py] controller question

2012-01-12 Thread chawk
What is the largest advisable size for a controller file using Google
apparently engine?


[web2py] Re: controller question

2012-01-12 Thread chawk
Thanks for the reply.  Sorry about the duplicate post and incorrect
spelling, I was not trying to spam or bump the post, i was using a
stupid smartphone and it kept stating the post was not going
through.   So far I have experienced no slowdowns with a controller
file over 7 mb.  I am using the Google app_engine, and wanted to make
sure I was not consuming too much memory.   To be honest, I am not
even 100% sure memory has anything to do with the controller file.


[web2py] Is it me or what?

2012-01-12 Thread chawk
Some of the sites on the "gallery of sites" look good, but are not
being actively updated it seems.  Ourway looks good, but what does it
do, and why does it seem like it is not finished?

Web2py is the best framework out there, but it seems that some of our
pages are not representing it well enough.  Tenthrow looks okay, but
it has not been updated in years.   There was a wikipedia link to
web2py sites, but they looked like a horrible collection of late 90's
websites.   The gallery was much better collection of web2py sites.

I am working on a site called www.noobmusic.com  it is hosted on the
app engine and still has a ways to go, so I appreciate any insight or
glaring problems that you may notice, when viewing it.  My content is
a monster to sort out which is what I am spending a majority of my
time on.

My point of this post is to have anybody point out glaring problems on
my site (not content related, as i am working this out already)


[web2py] Re: Very Confused: DAL query bug??

2012-01-12 Thread chawk

It seems that you are not querying right,

   last = db().select(db.distributors.ALL)

it seems it should be,

   ## this is how I usually grab the entire table ##
   last = db(db.distributors.id>0).select()

then display your object in the view like this,

{{for i in last:}}

{{=i.upline_id}}
{{=i.display_name}}

{{pass}}


Can somebody else correct me if I am wrong? i am used to having to
deal with the google datastore.


[web2py] Re: New Site for web2py poweredby

2012-01-12 Thread chawk
Your link is not working :(


[web2py] Re: Is it me or what?

2012-01-12 Thread chawk
Apparently none of the links to leave Google groups are working.


[web2py] Re: New Site for web2py poweredby

2012-01-12 Thread chawk

Okay, turns out I am not able to click on the anchor for this post or
another post I just put up myself.   Google is giving me a 404 error
page. The problem appears to be on my end.

Sorry,


[web2py] Re: New Site for web2py poweredby

2012-01-12 Thread chawk
Your footer should follow the same layout as the nav bar, meaning 100%
width across the screen.

I cant really see the forum without signing up first.

Your copyright symbol is not showing up.

It looks okay, but I will let some more technical members give their
comments.


[web2py] Re: New Site for web2py poweredby

2012-01-12 Thread chawk
I just checked it out again, the forum looks great!


[web2py] Re: Is it me or what?

2012-01-12 Thread chawk
Thanks for pointing that out, this is probably a stupid question, but
where do I change the metadata author?   I put in my own meta tags,
but the defaults that come with the app are showing up instea.  I kept
wondering why facebook would say "a cool new app" when trying to
include it in a comment.

As far as the plan, I am currently paying nothing through the free
quotas they allow. I have not come close to exceeding quota.  I am
curious to see how all this holds up if I start getting a lot of
traffic.  I am still learning how all their billing stuff works.


[web2py] Re: Is it me or what?

2012-01-13 Thread chawk
BTW, Joseph thank you for the advice of updating my meta author, and
Annet you were right, it is in the model/menu.py file.  I could not
figure out why those meta tags were showing up like that.  The fix
will be updated tonight.


[web2py] Can I pass a variable through an ajax load?

2012-01-17 Thread chawk
{{=LOAD('controller_name','function',ajax=True)}}

if so, where would I put it?

I am trying to grab that variable on the page that is being loaded.
Hope this makes sense I am completely worn out.


Chris


[web2py] Re: Can I pass a variable through an ajax load?

2012-01-17 Thread chawk
Thanks Anthony.



[web2py] Anybody want to join me

2012-02-01 Thread chawk
I am looking for a web2py/google app engine partner.  All good
websites have them.  I have completely created noobmusic.com myself. I
am burried in things to do and don't have time to do some of the added
features the site desperately needs.  Basically I just want to ask the
community if anybody is interested in helping me in exchange for
contributor status/business partner etc..  I cant make promises this
thing will take off, but I like the way it looks so far.   Basically I
am looking for somebody that can contribute programming code and
insight from a web2py google app engine prospective.   (probably to
tell me what I am doing wrong)

Anyways let me know, my email is ad...@noobmusic.com


[web2py] Re: in my IE 6.0 the layout is wrong.

2012-02-22 Thread chawk
I apologize to you on behalf of the web2py community.   I don't think
anybody meant to bash you, only Internet Explorer.  You're 100% right
about large companies using ancient browsers.  I work for a very large
fortune 500 company, and we are still using IE7 with no sign of an
upgrade in the works.

You have to admit, Lightdot is right in saying that Internet Explorer
6 is a big piece of garbage though?  :) I am also guilty of bashing
anything created by Microsoft.



[web2py] newbie question

2011-11-19 Thread chawk
db.define_table('discussion',
Field('comment', 'text'))

def comment():
form = SQLFORM(db.discussion, _class='test1')
if form.process().accepted:
redirect(URL('comment_results'))
return dict(form=form)

def comment_results():
items = db(db.discussion.id==db.discussion.id).select()

return dict(items=items, erase=erase)




[web2py] I cant get example in the book to work,

2011-11-20 Thread chawk
((book))

There a number of ways to customize auth. The simplest way is to add
extra fields:

# after auth = Auth(db)
auth.setting.extra_fields['auth_user']= [
  Field('address'),
  Field('city'),
  Field('zip'),
  Field('phone')]
# before auth.define_tables(username=True)

((my db.py file looks like this))

from gluon.tools import Auth, Crud, Service, PluginManager, prettydate
auth = Auth(db, hmac_key=Auth.get_or_create_key())
crud, service, plugins = Crud(db), Service(), PluginManager()

## create all tables needed by auth if not custom tables
auth.define_tables()
from gluon.tools import Auth
auth = Auth(globals(), db)
auth.define_tables(username=False)


I tried inserting the example from the book inside the designated
area, but i receive this error.

 Traceback (most recent call last):
 File "gluon/restricted.py", line 194, in restricted
 File "C:/Projects/web2py/applications/noobmusic/models/db.py",
line 42, in 
 AttributeError: 'Auth' object has no attribute 'setting'

All i am trying to do is add extra registration fields


Thank you


[web2py] Re: I cant get example in the book to work,

2011-11-20 Thread chawk
Oh, thank you.There is a typo in the book, but that was retarded
of me for not trying settings though.  :)


[web2py] I cant start the web2py shell

2011-11-27 Thread chawk
I have tried to start the shell through windows dos prompt by typing:

 python web2py.py -s test -m

and i get this: python cant open file web2py.py no such file or
directory

not sure why i cannot get this working.







[web2py] Re: I cant start the web2py shell

2011-11-27 Thread chawk
I must be missing something, i have always run web2py by downloading
and extracting to a directory.  i then double click the web2py.exe and
it starts the server, but i cannot ever get the shell to work, so that
i can practice with the DAL.   is there more to installing it then
this?


[web2py] Re: I cant start the web2py shell

2011-11-27 Thread chawk
I don't understand, i am using windows 7, python 2.7, python is added
to my enviroment variables, I even downloaded another copy of web2py,
extracted it to the c directory, i cd into web2py directory, i ran the
exact thing shown and i get the error:

   python: cant open file 'web2py.py' : [Errno 2] No such file or
directory

i downloaded the web2py stable version dedicated for everybody.


[web2py] Re: I cant start the web2py shell

2011-11-27 Thread chawk
Thanks Anthony!

that was the problem, i was not aware that python 2.5 comes with the
standard web2py version.

i downloaded the source and the problem is solved.




[web2py] question with db.requires

2011-11-30 Thread chawk
this should be simple but it is not working right.   All i am trying
to do is insert form variables into the database and make sure
duplicates are not inserted.   I would imagine the controller is
bypassing the db.requires, but i am a newbie and don't understand why
it is being bypassed.   What is happening is that my controller inputs
the form.vars.name even if it is already in the database.   I know
that i can use the SQLFORM, but i am practicing the lower level form
stuff to get a better understanding of forms and databases.


Thanks in advance for any help,


Chawk

p.s.  Should i be adding something to my post to show that a question
is solved, like they do on stackoverflow?  i saw somebody do that on
this forum and did not know if I should be doing the same.

MODEL:

db.define_table('president',
Field('name', 'string'))

db.president.name.requires = IS_NOT_IN_DB(db, 'president.name')


CONTROLLER:

def test():
message = ""
form = FORM('Join President?', INPUT(_name='join',
_type='radio'),
INPUT(_name="name"), INPUT(_type='submit'))
if form.process().accepted:
db.president.insert(name=form.vars.name)
return dict(form=form, message=message)

VIEW:

{{=form}}
{{pass}}
{{=message}}



[web2py] Re: question with db.requires

2011-11-30 Thread chawk
Thanks Anthony!

I must have skimmed over this part of the book. I got it now.

chawk


"" > Note, the 'requires' argument to Field sets validators for form
submissions
> -- it does not affect regular insert() or update() methods on the table.
> The validate_and_insert() and validate_and_update() methods were created to
> enable use of the form validators without actual form processing. ""


[web2py] Re: web2py for dummies

2011-12-03 Thread chawk
I started web building 2 years ago, i have a full time job in
Automobile Insurance, and limited time at home to learn.  Your
question seems to indicate that you don't have any knowledge of HTML,
CSS or Javascript/jQuery? forgive me if I am wrong, but if that is the
case you definitely need to start there, especially CSS.   It did not
take me very long to get very good at creating great looking static
webpages with dynamic javascript/jQuery.  However I have struggled a
lot with the database and server side of things.  With the recent help
of Anthony explaining how to properly create forms and query the
information I am looking for, I am flying along with the creation my
music website.

The best web books that have helped me in my 2 year process are:

Web2py book (just started web2py 5 months ago)
CSS 3.0 the missing manual
jQuery in action 2nd edition
(i would mention python books, but you already know Python which is
huge)

I also want to mention that having Adobe Photoshop, Illustrator are
huge, when it comes to getting the website to look really nice.  In
fact it is nearly a must have when it comes to creating 100%
professional sites, if not them something that does something similar
to what they do.  Although they are the best when it comes to
Photoshop.

By the way, long live Python & Web2py, i love the this framework more
than any other. I have spent time with Django, Zend, CodeIgniter, Yii
and Catalyst, Web2py is the best, period.

I hope that i can build a game changing application that puts Web2py
at the top of the list for web frameworks.  alright.. back to work
now.


chawk