[google-appengine] test data for my model

2009-04-04 Thread Ronn Ross
I have a simple model like so:
class User(db.Model):
UserName = db.StringProperty(required=True)
Password = db.StringProperty(required=True)
FirstName = db.StringProperty(required=True)
LastName = db.StringProperty(required=True)

I would like there to be at least one default user in this table while
testing. How do I add test data to a class model?
Dankon

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: function call

2009-04-04 Thread Ronn Ross
If I use the one provided doesn't that mean the user would have to have a
google account before hand?

2009/4/3 Alkis Evlogimenos ('Αλκης Ευλογημένος) evlogime...@gmail.com

 You can use a decorator that is already provided:
 from google.appengine.ext.webapp.util import login_required

 class MyHandler(webapp.RequestHandler):
   @login_required
   def get(self):
 ...

 On Fri, Apr 3, 2009 at 8:02 PM, Ronn Ross ronn.r...@gmail.com wrote:

 How can I create a function that is run every time a page is loaded
 without adding an auth block in every method? This is so I can authenticate
 people. How would I do something like that in GAE?





 --

 Alkis

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Use my Google Apps account for app engine

2009-03-23 Thread Ronn Ross
Hello,
I subscribed to google apps premium addition. I attempt to sign in to google
apps to upload my app and it won't let me gain access. Are you allowed to
use your google apps account to create apps in app engine.

Thanks

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] receiving email

2009-03-20 Thread Ronn Ross
I would like people to email may app and it show up in the app. So that way
it can work like a help desk system. If there anyway to do that through app
engine? Can you pull data from a gmail account?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: receiving email

2009-03-20 Thread Ronn Ross
Ross, mas não é latin / Italiano

On Fri, Mar 20, 2009 at 1:15 PM, Matthew Page-Lieberman 
mateus.just...@gmail.com wrote:

 Não acho que esse Ross é brasileiro.

 On Fri, Mar 20, 2009 at 11:01 AM, Neves marcos.ne...@gmail.com wrote:


 Incoming email support
 http://code.google.com/intl/pt-BR/appengine/docs/roadmap.html

 On 20 mar, 11:12, Ronn Ross ronn.r...@gmail.com wrote:
  I would like people to email may app and it show up in the app. So that
 way
  it can work like a help desk system. If there anyway to do that through
 app
  engine? Can you pull data from a gmail account?




 --
 M. Page-Lieberman
 mateus.just...@gmail.com


 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Django template

2009-03-20 Thread Ronn Ross
I'm trying to use a conditional statement in django template. Like so:{% if
AccountData.AccountType == Current %}
   bAccount is current/b
{% endif %}

GAE is throwing this error:

TemplateSyntaxError: 'if' statement improperly formatted
{% if (AccountData.AccountType == Current) %}

Can someone help?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Charging for you app.

2009-03-19 Thread Ronn Ross
If I create an app in gae. Can I charge people for use. I didn't fully read
term of use.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Data model in folder

2009-03-18 Thread Ronn Ross
I have placed my data model in a separate folder. For example:
DataModels/AccountData.py

Now I want to import it into my main controller. I'm trying:
from DataModels.AccountData import Accounts

it give me this error when I try to run it:
*type 'exceptions.ImportError'*: No module named AccountData
  args = ('No module named AccountData',)
  message = 'No module named AccountData'

What am I doing wrong. Can someone help? thx

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Data model in folder

2009-03-18 Thread Ronn Ross
I added a blank __init__.py file in my DataModels folder and I receive this:
*type 'exceptions.TypeError'*: __init__() got an unexpected keyword
argument 'Required'
  args = (__init__() got an unexpected keyword argument 'Required',)
  message = __init__() got an unexpected keyword argument 'Required'

Do I have to add anything to the __init__.py file?

On Wed, Mar 18, 2009 at 11:54 AM, Hilbert Markus
hilbert.mar...@gmail.comwrote:

 hi ronn,

 to access a folder in python (using import) you must place an empty
 __init__.py file inside that DataModels folder. this tells python that
 this folder as a package.

 regards iham

 On Mar 18, 2009, at 2:22 PM, Ronn Ross wrote:

 I have placed my data model in a separate folder. For example:
 DataModels/AccountData.py

 Now I want to import it into my main controller. I'm trying:
 from DataModels.AccountData import Accounts

 it give me this error when I try to run it:
 *type 'exceptions.ImportError'*: No module named AccountData
   args = ('No module named AccountData',)
   message = 'No module named AccountData'

 What am I doing wrong. Can someone help? thx





 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Data model in folder

2009-03-18 Thread Ronn Ross
I apologize for the previous message. I figure out the issue. Although I'm
am still receiving this error:
*type 'exceptions.ImportError'*: cannot import name Accounts
  args = ('cannot import name Accounts',)
  message = 'cannot import name Accounts'

I added the __init__.py file and I'm using this line to include it:
from DataModels.AccountData import Accounts

Thanks.

On Wed, Mar 18, 2009 at 12:37 PM, Ronn Ross ronn.r...@gmail.com wrote:

 I added a blank __init__.py file in my DataModels folder and I receive
 this:
 *type 'exceptions.TypeError'*: __init__() got an unexpected keyword
 argument 'Required'
   args = (__init__() got an unexpected keyword argument 'Required',)

   message = __init__() got an unexpected keyword argument 'Required'


 Do I have to add anything to the __init__.py file?

 On Wed, Mar 18, 2009 at 11:54 AM, Hilbert Markus hilbert.mar...@gmail.com
  wrote:

 hi ronn,

 to access a folder in python (using import) you must place an empty
 __init__.py file inside that DataModels folder. this tells python that
 this folder as a package.

 regards iham

 On Mar 18, 2009, at 2:22 PM, Ronn Ross wrote:

 I have placed my data model in a separate folder. For example:
 DataModels/AccountData.py

 Now I want to import it into my main controller. I'm trying:
 from DataModels.AccountData import Accounts

 it give me this error when I try to run it:
 *type 'exceptions.ImportError'*: No module named AccountData
   args = ('No module named AccountData',)
   message = 'No module named AccountData'

 What am I doing wrong. Can someone help? thx





 



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] What applications to developed on appengine?

2009-03-16 Thread Ronn Ross
I'm part of a small start up and we create an application similar to 37
signals Basecamp. It is a basic CRM app, but we have a lot of users. They
read and write a lot of data to the system per day. Would this be an ideal
candidate for an app engine project? Thanks

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Error sending email

2009-03-16 Thread Ronn Ross
Colin,
Thanks for the heads up. I guess it's a good idea for Google not to allow
app to send from made up addresses.

Thanks

On Sun, Mar 15, 2009 at 10:58 PM, Sargis Dallakyan food@gmail.comwrote:


 The sender must be the email address of a registered administrator for
 the application, or the address of the current signed-in user:
 http://code.google.com/appengine/docs/python/mail/emailmessagefields.html


 On Mar 15, 6:28 pm, Ronn Ross ronn.r...@gmail.com wrote:
  I'm trying to send an email using the following code:
message = mail.EmailMessage(sender=supp...@myappname.com,
  subject=this is the subject)
  message.to = John Doe john...@gmail.com
  message.body = this is the body
 
  message.send()
 
  and here is the error I'm getting from app engine:
 
  Traceback (most recent call last):
File
 /base/python_lib/versions/1/google/appengine/ext/webapp/__init__.py,
  line 503, in __call__
  handler.post(*groups)
File
 /base/data/home/apps/lavortaro/1.332099322772630499/lavortaro.py,
  line 40, in post
  message.send()
File /base/python_lib/versions/1/google/appengine/api/mail.py,
  line 477, in send
  raise ERROR_MAP[e.application_error](e.error_detail)
  InvalidSenderError
 
  I'm new to app engine and python. Can someone please help?
 
  Thanks
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Writing to the file system?

2009-03-16 Thread Ronn Ross
Can you write to the file system with app engine? My app requires people to
upload text documents.
Thanks

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Writing to the file system?

2009-03-16 Thread Ronn Ross
Does anyone know a work around for this type of task?

On Mon, Mar 16, 2009 at 9:10 AM, Sudhir sudhi...@gmail.com wrote:


 No, I don't believe you can... part of the security restrictions.

 Ronn Ross wrote:
  Can you write to the file system with app engine? My app requires people
 to
  upload text documents.
  Thanks
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Realease versions

2009-03-16 Thread Ronn Ross
Can you on use integers for version numbers? For example 1,2, and 3, or can
you uses floats e.g. 1.1,1.2,1.3?thanks

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Genshi on GAE

2009-03-16 Thread Ronn Ross
Has anyone use Genshi on GAE?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] sending email from your development server

2009-03-15 Thread Ronn Ross
Can you send email from your dev server? I'm trying to view the formatting
of my email before I upload, but no mail has come through yet.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Error sending email

2009-03-15 Thread Ronn Ross
I'm trying to send an email using the following code:
  message = mail.EmailMessage(sender=supp...@myappname.com,
subject=this is the subject)
message.to = John Doe john...@gmail.com
message.body = this is the body

message.send()

and here is the error I'm getting from app engine:

Traceback (most recent call last):
  File /base/python_lib/versions/1/google/appengine/ext/webapp/__init__.py,
line 503, in __call__
handler.post(*groups)
  File /base/data/home/apps/lavortaro/1.332099322772630499/lavortaro.py,
line 40, in post
message.send()
  File /base/python_lib/versions/1/google/appengine/api/mail.py,
line 477, in send
raise ERROR_MAP[e.application_error](e.error_detail)
InvalidSenderError

I'm new to app engine and python. Can someone please help?

Thanks

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: large imports/exports

2009-03-14 Thread Ronn Ross
What about exporting. Is it just as easy to export your data out of
appengine?

On Sat, Mar 14, 2009 at 6:25 AM, Let Delete My Apps 
davide.rogn...@gmail.com wrote:


 No I haven't.

 On Mar 13, 10:46 pm, Amr Ellafi amrl...@gmail.com wrote:
  really , great ! have you sliced your data or did the upload at once ??
 
  On Fri, Mar 13, 2009 at 10:47 PM, Let Delete My Apps
 
  davide.rogn...@gmail.com wrote:
 
   I've imported 87811 records using bulkload_client.py
   .
   .
   .
   On Mar 13, 7:53 pm, Ronn Ross ronn.r...@gmail.com wrote:
   Do you know if there's an easy way to do large imports/exports of data
 as
   needed for Google Appengine?
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Passing variables.

2009-03-13 Thread Ronn

I'm new to appengine. How would I pass a user id through the url, or
is that advised? In other frameworks I would do something like
www.something.com/page.xxx?var=12345. Now I want to keep my url clean,
but don't know any other way to pass the info along. Can someone
please help or point me in the right direction.

thanks in advance.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] large imports/exports

2009-03-13 Thread Ronn Ross
Do you know if there's an easy way to do large imports/exports of data as
needed for Google Appengine?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: sdk

2009-03-13 Thread Ronn Ross
Hey thanks, this is great. I couldn't find it anywhere in the the docs.

On Fri, Mar 13, 2009 at 4:50 PM, Let Delete My Apps 
davide.rogn...@gmail.com wrote:


 http://localhost:8080/_ah/admin

 See:
 http://code.google.com/appengine/docs/python/tools/devserver.html

 --
 http://pyoohtml.appspot.com/let-delete-my-apps/home

 On Mar 13, 9:44 pm, Ronn Ross ronn.r...@gmail.com wrote:
  Does the appengine sdk have something included where you can look at the
  datastore? For example I'm having trouble displaying data, and I want to
 see
  if I writing data to the datastore.
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Model

2009-03-10 Thread Ronn Ross
Great that worked thx

On Sun, Mar 8, 2009 at 7:10 PM, GregF g.fawc...@gmail.com wrote:


 Yes you can, and as you suggest, it is a very good idea. Just create
 one file called my_models.py with the model definitions (say Cat and
 Dog), and in your other files just use from my_models import Cat.


 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Model

2009-03-08 Thread Ronn

Can you house your model in separate file than your controller, and
just import it? Having the model in the logic gets clutter. Can anyone
help?

adiaŭ

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---