[google-appengine] Re: Querying GAE Datastore for TIME only values in a DATETIME field.

2009-03-20 Thread djidjadji

You probably want to sort based on the dateindex, your Model is named Trend24Hr.
Your best shot is to add a Integer property that just describes the
hour, values [0..23].
Expanding your schema is not hard. Follow the directions in [1].
Make sure you first update the code that adds new values to use the
new schema. Then you don't miss an object in the datastore. It's no
big deal to save objects multiple times.

[1] http://code.google.com/appengine/articles/update_schema.html

2009/3/20 Tim Bull tim.b...@binaryplex.com:

 Hi,

 I have a table that has values stored on the hour, stored in a
 DATETIME field.  I'm trying to write a query where the date is
 irrellevant, it's the time it was stored that matters (for example, to
 extract the value at midnight every day).

 I've tried the following with no success - dateindex is a DATETIME
 field.

 SELECT * FROM Trend24Hr WHERE dateindex = TIME('00:00:00')

 It returns no result when I know there are some.  Is there some way I
 can do this?

 If not, what options do I have?

 I could refactor all the values into seperate DATE and TIME fields
 (painful and annoying for several reasons) or I could extract ALL the
 values for the date ranges and only deal with the those that are the
 right hour in my result set (this seems very inefficient as I'll be
 ignoring 23 values for every 1 I need).  This second approach really
 limits me to only ever dealing with a months worth of data when I'd
 prefer three months as well.

 Thanks!

 Tim

--~--~-~--~~~---~--~~
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: Querying GAE Datastore for TIME only values in a DATETIME field.

2009-03-20 Thread Tim Bull

OK, thanks, I guess that is easier -- just extending the schema.  I'll
wait to see if anyone has any other ideas, but this could be the
easiest approach.

Appreciate the suggestion.

On Mar 20, 5:44 pm, djidjadji djidja...@gmail.com wrote:
 You probably want to sort based on the dateindex, your Model is named 
 Trend24Hr.
 Your best shot is to add a Integer property that just describes the
 hour, values [0..23].
 Expanding your schema is not hard. Follow the directions in [1].
 Make sure you first update the code that adds new values to use the
 new schema. Then you don't miss an object in the datastore. It's no
 big deal to save objects multiple times.

 [1]http://code.google.com/appengine/articles/update_schema.html

 2009/3/20 Tim Bull tim.b...@binaryplex.com:



  Hi,

  I have a table that has values stored on the hour, stored in a
  DATETIME field.  I'm trying to write a query where the date is
  irrellevant, it's the time it was stored that matters (for example, to
  extract the value at midnight every day).

  I've tried the following with no success - dateindex is a DATETIME
  field.

  SELECT * FROM Trend24Hr WHERE dateindex = TIME('00:00:00')

  It returns no result when I know there are some.  Is there some way I
  can do this?

  If not, what options do I have?

  I could refactor all the values into seperate DATE and TIME fields
  (painful and annoying for several reasons) or I could extract ALL the
  values for the date ranges and only deal with the those that are the
  right hour in my result set (this seems very inefficient as I'll be
  ignoring 23 values for every 1 I need).  This second approach really
  limits me to only ever dealing with a months worth of data when I'd
  prefer three months as well.

  Thanks!

  Tim


--~--~-~--~~~---~--~~
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] Sample based on non google accounts

2009-03-20 Thread arnie

I have seen the below given link
http://code.google.com/p/google-app-engine-samples/
that provides a lot of samples but all are using google accounts for
authentication. I am in search of samples that uses django user
authentication for google app engine based on user table in my
datastore

Thanks
Arnieterm
--~--~-~--~~~---~--~~
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] Help with Mail api

2009-03-20 Thread Nora

Hello,
In my application, I have a 'Contact Us' page for my users to fill in
if they want to send any feedback to me.  It requiers the user to
fill
in a number of fields and to provide his/her email address.  A button
'Send' is used to send the user's filled form to me.

I am using the mail api to perform this task.  The problem is: my
application only accepts the
administrator email address. It does not check (as is documented if
the user is signed in or not then redirect him to sign in and back to
my application url)


My code looks like this:
class ContactusHandler (webapp.RequestHandler):
@login_required

def __init__(self):
webapp.RequestHandler.__init__(self)
self.methods = ContactusMethods()

def get(self):
func = None
action = self.request.get('action')
args = ()
while True:
key = 'arg%d' % len(args)
val = self.request.get(key)
if val:
args = (simplejson.loads(val),)
else:
break
result = func(*args)
self.response.out.write(simplejson.dumps(result))


#--­
class ContactusMethods:

def Contactus(self, *args):

FName = str( args[0][0])   #first name
LName = str( args[0][1])#last name
Email = str( args[0][2])  # visitor email address
MessageBody = str( args[0][3])


message = mail.EmailMessage(sender = Email, subject=My
Website)
message.to = my email address
message.body = MessageBody
message.send()



Could you please advise me on what is going wrong here? Why does not
direct the user to the google login page?


Thank you very much,
Nora


--~--~-~--~~~---~--~~
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: raise NotImplementedError(Only tempfile.TemporaryFile is available for use)

2009-03-20 Thread Tim Hoffman

Hi Venkat

Did you read your traceback

See the line

return os.path.join(tempfile.gettempdir(), cache_directory)

Now go back to the docs url I included and notice it says tempfile
module does support anything except for TemporaryFile.

tempfile is disabled, except for TemporaryFile which is aliased to
StringIO.

You will need to look at the twitter library and look at changing it
not to use a cache (well at least a cache directory)
or you will need to change the caching implementation (not that I have
look at the twitter code)
to use memcache.

T


On Mar 20, 8:21 pm, venkat rambotla venkatrambo...@gmail.com wrote:
 Hi Tim.

 here is the traceback

 *File C:\Program
 Files\Google\google_appengine\google\appengine\tools\dev_appserver.py, line
 2711, in _HandleRequest
 *

 base_env_dict=env_dict)

 *File C:\Program
 Files\Google\google_appengine\google\appengine\tools\dev_appserver.py, line
 380, in Dispatch
 *

 base_env_dict=base_env_dict)

 *File C:\Program
 Files\Google\google_appengine\google\appengine\tools\dev_appserver.py, line
 1998, in Dispatch
 *

 self._module_dict)

 *File C:\Program
 Files\Google\google_appengine\google\appengine\tools\dev_appserver.py, line
 1916, in ExecuteCGI
 *

 reset_modules = exec_script(handler_path, cgi_path, hook)

 *File C:\Program
 Files\Google\google_appengine\google\appengine\tools\dev_appserver.py, line
 1812, in ExecuteOrImportScript
 *

 exec module_code in script_module.__dict__

 *File D:\Projects\PythonTwitter\src\getnames.py, line 9, in module
 *

 api = twitter.Api()

 *File D:\Projects\PythonTwitter\src\twitter\twitter.py, line 888, in
 __init__
 *

 self._cache = _FileCache()

 *File D:\Projects\PythonTwitter\src\twitter\twitter.py, line 1430, in
 __init__
 *

 self._InitializeRootDirectory(root_directory)

 *File D:\Projects\PythonTwitter\src\twitter\twitter.py, line 1487, in
 _InitializeRootDirectory
 *

 root_directory = self._GetTmpCachePath()

 *File D:\Projects\PythonTwitter\src\twitter\twitter.py, line 1483, in
 _GetTmpCachePath
 *

 return os.path.join(tempfile.gettempdir(), cache_directory)

 *File C:\Program
 Files\Google\google_appengine\google\appengine\dist\tempfile.py, line 57,
 in PlaceHolder
 *

 raise NotImplementedError(Only tempfile.TemporaryFile is available for
 use)

 NotImplementedError: Only tempfile.TemporaryFile is available for use

 INFO 2009-03-20 11:19:28,875 dev_appserver.py] GET / HTTP/1.1 500 -
 Please Help me out
 thanks in advance..

 regards
 venkat

 On Fri, Mar 20, 2009 at 4:46 PM, Tim Hoffman zutes...@gmail.com wrote:

  Venkat

  You really need to start looking at code and docs
  (Also when you post errors include a little more of the traceback is
  more useful)

  What you will see is that some other code (ie maybe the twitter code)
  will be using tempfile.NamedTemporaryFile
  which is not supported in the restricted python environment.

  Have a look at
 http://code.google.com/appengine/docs/python/runtime.html#Pure_Python
  Which lists the restrictions of the python runtime
  and there is your answer.

  T

  On Mar 20, 7:15 pm, Venky venkatrambo...@gmail.com wrote:
   Hello,

   Hello I am running an twiter api  application using pydev

   when  iam running my application on localhost...

    raise NotImplementedError(Only tempfile.TemporaryFile is available
   for use) is getting displayed

   please help

   Regards
   venkat.
--~--~-~--~~~---~--~~
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: how to config gwt to work in app engine effective and productive

2009-03-20 Thread indra

Hi Pavel,

I too use a setup very similar to yours, with both GWT and appengine
projects in same workspace.
However I have also managed to setup my GWT environment so that I can
debug!
What I basically do is have GWT servlets which act as proxies to the
actual appengine handlers.
In these servlets I just forward the call to corresponding appengine
handler and send back the response received.
It works great and really saves a lot of time.

Regards,
Indraneel

www.wikiaata.com



On Mar 17, 6:50 pm, Pavel Byles pavelby...@gmail.com wrote:
 Coonay,
 I use GWT and GAE together and I think it's a pretty good setup.
 First, instead of using servlets you will use the request builder and
 pass data using JSON instead. 2nd I effectively just send my HTML
 output of my GWT project to my GAE project and configure my app.yaml
 accordingly.

 Using this method you will lose a really big part of GWT, which is the
 debugging feature since you will be running dev_appserver. Unless you
 can fix it such that u can get JSON responses from it.

 But I like my setup. I have pydev and cypal both in eclipse. I just
 wish i had debugging somehow.

 On Mar 17, 5:36 am, Coonay fla...@gmail.com wrote:

  Gwt featurs really attractive:quickly build and maintain complex yet
  highly performant JavaScript front-end applications in the Java
  programming language,and Test your code with JUnit.The example mail
  page is really awesome.

  As a many years java progammmer,it's not hard to get into gwt,but the
  app engine is a different web environment,the static page can be
  served to browser directly,
  the hype link in the geranated html are needed to change accordingly.

  could you give me some idea how to make they 2 work together
  effective and productive?thanks so much
--~--~-~--~~~---~--~~
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: raise NotImplementedError(Only tempfile.TemporaryFile is available for use)

2009-03-20 Thread venkat rambotla
Hi Tim.

here is the traceback


*File C:\Program
Files\Google\google_appengine\google\appengine\tools\dev_appserver.py, line
2711, in _HandleRequest
*

base_env_dict=env_dict)

*File C:\Program
Files\Google\google_appengine\google\appengine\tools\dev_appserver.py, line
380, in Dispatch
*

base_env_dict=base_env_dict)

*File C:\Program
Files\Google\google_appengine\google\appengine\tools\dev_appserver.py, line
1998, in Dispatch
*

self._module_dict)

*File C:\Program
Files\Google\google_appengine\google\appengine\tools\dev_appserver.py, line
1916, in ExecuteCGI
*

reset_modules = exec_script(handler_path, cgi_path, hook)

*File C:\Program
Files\Google\google_appengine\google\appengine\tools\dev_appserver.py, line
1812, in ExecuteOrImportScript
*

exec module_code in script_module.__dict__

*File D:\Projects\PythonTwitter\src\getnames.py, line 9, in module
*

api = twitter.Api()

*File D:\Projects\PythonTwitter\src\twitter\twitter.py, line 888, in
__init__
*

self._cache = _FileCache()

*File D:\Projects\PythonTwitter\src\twitter\twitter.py, line 1430, in
__init__
*

self._InitializeRootDirectory(root_directory)

*File D:\Projects\PythonTwitter\src\twitter\twitter.py, line 1487, in
_InitializeRootDirectory
*

root_directory = self._GetTmpCachePath()

*File D:\Projects\PythonTwitter\src\twitter\twitter.py, line 1483, in
_GetTmpCachePath
*

return os.path.join(tempfile.gettempdir(), cache_directory)

*File C:\Program
Files\Google\google_appengine\google\appengine\dist\tempfile.py, line 57,
in PlaceHolder
*

raise NotImplementedError(Only tempfile.TemporaryFile is available for
use)

NotImplementedError: Only tempfile.TemporaryFile is available for use

INFO 2009-03-20 11:19:28,875 dev_appserver.py] GET / HTTP/1.1 500 -
Please Help me out
thanks in advance..

regards
venkat


On Fri, Mar 20, 2009 at 4:46 PM, Tim Hoffman zutes...@gmail.com wrote:


 Venkat

 You really need to start looking at code and docs
 (Also when you post errors include a little more of the traceback is
 more useful)

 What you will see is that some other code (ie maybe the twitter code)
 will be using tempfile.NamedTemporaryFile
 which is not supported in the restricted python environment.

 Have a look at
 http://code.google.com/appengine/docs/python/runtime.html#Pure_Python
 Which lists the restrictions of the python runtime
 and there is your answer.

 T

 On Mar 20, 7:15 pm, Venky venkatrambo...@gmail.com wrote:
  Hello,
 
  Hello I am running an twiter api  application using pydev
 
  when  iam running my application on localhost...
 
   raise NotImplementedError(Only tempfile.TemporaryFile is available
  for use) is getting displayed
 
  please help
 
  Regards
  venkat.
 


--~--~-~--~~~---~--~~
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: raise NotImplementedError(Only tempfile.TemporaryFile is available for use)

2009-03-20 Thread venkat rambotla
hi tim,

sorry to disturb u again,i commented caching directory in twitter.py,but the
following error as
come


*File C:\Program
Files\Google\google_appengine\google\appengine\tools\dev_appserver.py, line
2711, in _HandleRequest
*

base_env_dict=env_dict)

*File C:\Program
Files\Google\google_appengine\google\appengine\tools\dev_appserver.py, line
380, in Dispatch
*

base_env_dict=base_env_dict)

*File C:\Program
Files\Google\google_appengine\google\appengine\tools\dev_appserver.py, line
1998, in Dispatch
*

self._module_dict)

*File C:\Program
Files\Google\google_appengine\google\appengine\tools\dev_appserver.py, line
1916, in ExecuteCGI
*

reset_modules = exec_script(handler_path, cgi_path, hook)

*File C:\Program
Files\Google\google_appengine\google\appengine\tools\dev_appserver.py, line
1812, in ExecuteOrImportScript
*

exec module_code in script_module.__dict__

*File D:\Projects\PythonTwitter\src\getnames.py, line 9, in module
*

api = twitter.Api()

*File D:\Projects\PythonTwitter\src\twitter\twitter.py, line 888, in
__init__
*

self._cache = _FileCache()

*File D:\Projects\PythonTwitter\src\twitter\twitter.py, line 1429, in
__init__
*

self._InitializeRootDirectory(root_directory)

*File D:\Projects\PythonTwitter\src\twitter\twitter.py, line 1488, in
_InitializeRootDirectory
*

if not os.path.exists(root_directory):

*File C:\Python25\lib\ntpath.py, line 255, in exists
*

st = os.stat(path)

TypeError: coercing to Unicode: need string or buffer, NoneType found
regards
venkat

On Fri, Mar 20, 2009 at 5:03 PM, Tim Hoffman zutes...@gmail.com wrote:


 Hi Venkat

 Did you read your traceback

 See the line

 return os.path.join(tempfile.gettempdir(), cache_directory)

 Now go back to the docs url I included and notice it says tempfile
 module does support anything except for TemporaryFile.

 tempfile is disabled, except for TemporaryFile which is aliased to
 StringIO.

 You will need to look at the twitter library and look at changing it
 not to use a cache (well at least a cache directory)
 or you will need to change the caching implementation (not that I have
 look at the twitter code)
 to use memcache.

 T


 On Mar 20, 8:21 pm, venkat rambotla venkatrambo...@gmail.com wrote:
  Hi Tim.
 
  here is the traceback
 
  *File C:\Program
  Files\Google\google_appengine\google\appengine\tools\dev_appserver.py,
 line
  2711, in _HandleRequest
  *
 
  base_env_dict=env_dict)
 
  *File C:\Program
  Files\Google\google_appengine\google\appengine\tools\dev_appserver.py,
 line
  380, in Dispatch
  *
 
  base_env_dict=base_env_dict)
 
  *File C:\Program
  Files\Google\google_appengine\google\appengine\tools\dev_appserver.py,
 line
  1998, in Dispatch
  *
 
  self._module_dict)
 
  *File C:\Program
  Files\Google\google_appengine\google\appengine\tools\dev_appserver.py,
 line
  1916, in ExecuteCGI
  *
 
  reset_modules = exec_script(handler_path, cgi_path, hook)
 
  *File C:\Program
  Files\Google\google_appengine\google\appengine\tools\dev_appserver.py,
 line
  1812, in ExecuteOrImportScript
  *
 
  exec module_code in script_module.__dict__
 
  *File D:\Projects\PythonTwitter\src\getnames.py, line 9, in module
  *
 
  api = twitter.Api()
 
  *File D:\Projects\PythonTwitter\src\twitter\twitter.py, line 888, in
  __init__
  *
 
  self._cache = _FileCache()
 
  *File D:\Projects\PythonTwitter\src\twitter\twitter.py, line 1430, in
  __init__
  *
 
  self._InitializeRootDirectory(root_directory)
 
  *File D:\Projects\PythonTwitter\src\twitter\twitter.py, line 1487, in
  _InitializeRootDirectory
  *
 
  root_directory = self._GetTmpCachePath()
 
  *File D:\Projects\PythonTwitter\src\twitter\twitter.py, line 1483, in
  _GetTmpCachePath
  *
 
  return os.path.join(tempfile.gettempdir(), cache_directory)
 
  *File C:\Program
  Files\Google\google_appengine\google\appengine\dist\tempfile.py, line
 57,
  in PlaceHolder
  *
 
  raise NotImplementedError(Only tempfile.TemporaryFile is available for
  use)
 
  NotImplementedError: Only tempfile.TemporaryFile is available for use
 
  INFO 2009-03-20 11:19:28,875 dev_appserver.py] GET / HTTP/1.1 500 -
  Please Help me out
  thanks in advance..
 
  regards
  venkat
 
   On Fri, Mar 20, 2009 at 4:46 PM, Tim Hoffman zutes...@gmail.com
 wrote:
 
   Venkat
 
   You really need to start looking at code and docs
   (Also when you post errors include a little more of the traceback is
   more useful)
 
   What you will see is that some other code (ie maybe the twitter code)
   will be using tempfile.NamedTemporaryFile
   which is not supported in the restricted python environment.
 
   Have a look at
  http://code.google.com/appengine/docs/python/runtime.html#Pure_Python
   Which lists the restrictions of the python runtime
   and there is your answer.
 
   T
 
   On Mar 20, 7:15 pm, Venky venkatrambo...@gmail.com wrote:
Hello,
 
Hello I am running an twiter api  application using pydev
 
when  iam running my application on localhost...
 
 raise 

[google-appengine] Re: Reading from a static text file

2009-03-20 Thread Wooble

The way to do it is to not upload them as static files, but as program
files.  If you really need to serve them as static to users as well,
include 2 copies in your project.  The overhead of using urlopen
instead of opening the file directly is going to be comparatively
enormous.

On Mar 20, 1:48 am, jeffkyjin jeffky...@gmail.com wrote:
 Ok.
 Now I found a method to do it.

 instead of reading a static file use os.file.
 We can use the urllib.urlopen or urllib2.urlopen to get the static
 file, then read it.
 url = 'http://xxx.appspot.com/myfile.txt'
 raw = urlopen(url).read()

 or how to change the url to a local address ? 'localhost' ? it seems
 not wok.
 anyway, it works!

 On Mar 20, 1:10 am, Matthew Page-Lieberman mateus.just...@gmail.com
 wrote:

  :) I was kidding. You are using Gmail, so it should already be notifying you
  of misspelled words (by underlining them in red - assuming you are using a
  browser and sending in rich text/html form).

  Good Luck with the app.

  Peace Hugs

  On Thu, Mar 19, 2009 at 11:34 AM, jeffkyjin jeffky...@gmail.com wrote:

   Can you show me how to do this?
   Thanks!

   On Mar 17, 2:14 am, Nash-t timna...@gmail.com wrote:
if all you really have to do is read the file you could just put it in
a .py file and import it.
Store it as a dictionary or an array or an object. Whatever works.

On Mar 16, 12:31 am, djidjadji djidja...@gmail.com wrote:

 Why don't you put the file in the datastore.

 You can put it on a word basis, one object for every word,
   db.StringProperty.
 Use the datastore index to find the word. Use bulk_upload to fill the
   datastore.

 Or split it up in parts, each part starting with a different
 character. Put it in db.TextProperty.

 2009/3/16 prasy prasanna2...@gmail.com:

  Hi..

  Im abt to create a spell check application.. I have a text file
   called
  wordlist.txt' containing english words. I will be getting a wrd 
  from
  user and checks its spelling wit de help of the text file.

  I simply need to read de file.. Is it possible for me to run tis app
  in appengine.. Bcz i heard tat its not possible to read de contents
   of
  a static file in app engine. Moreover de file is around 2 MB so i
   cant
  simply make it as list or dict type and use..

  Regards,
  Prasy..

  --
  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] Re: raise NotImplementedError(Only tempfile.TemporaryFile is available for use)

2009-03-20 Thread Tim Hoffman


Hi Venkat

I am sorry I don't have time to work on this for you.

I would look at implementing an alternative to _FileCache and then set
it with a call to SetCache and pass an instance of you new caching
scheme.
If you have a look it will be pretty simple to replace _FileCache with
a cache based on memcache, you only have to reimplement all the
methods
without the leading '_'

ie Get, Set  etc...

Good luck,

T
--~--~-~--~~~---~--~~
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: Charging for you app.

2009-03-20 Thread Big Stu

I'm not absolutely sure myself (I haven't read the terms yet either),
but from some of the previous questions/answers I've seen on here it
sounds like you're good to go.

Good luck!

Stu

On Mar 19, 10:38 am, Ronn Ross ronn.r...@gmail.com wrote:
 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] Re: Dynamic Code Within Templates

2009-03-20 Thread Big Stu

If I understand you correctly you should be fine.  You'd have a
base.html template with a {% block %} for your navigation, and then a
separate {%block%} for your content.  In the navigation block you'd
use some dictionary entry (e.g., navbar_dict) to populate your various
entries in the navigation bar.  Then whenever you render some child
template that inherits from the base.html template you need to make
sure you pass that navbar_dict element as well as any other dictionary
elements needed by the child template, and the navbar block should
pick up on those values and render appropriately.

On Mar 19, 3:31 am, dicko d...@mothdesign.com.au wrote:
 Hi there

 Just wondering if there is a way to dynamically include content from
 within a global template like index.html.  I'm hoping to serve
 navigation elements from the database to this template while rendering
 page specific content through another template.  Does this make sense?

 If there isn't a method to achieve this, could I use something like
 URL Fetch to achieve the same objective or is this a really bad idea?

 thanks heaps.
--~--~-~--~~~---~--~~
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: Datastore newbie question

2009-03-20 Thread Big Stu

I'm guessing you're just getting your app off the ground and you're
referring to some test data you want to play with?

You have datastore data available to your application after your
application puts some in there itself.  So you'd have your application
running on the server (local development, or the full production
google setup), and forming instances of db Models and calling the
various datastore operations on those models is what puts your data
into the datastore.  This is done through the logic of your
application.  For example, someone hits your link for registration,
which gives them a form in their browser to fill out personal data.
When they hit submit your browser hits the app engine server with a
particularly formed link.  The app server uses that link to figure out
which view handler to call and sends the form data to that handler.
The View handler then takes that data and puts it into a db.Model
(e.g., User).  Then the view handler calls put on that data model
instance, and at that point the data is in the datastore.

if you just want to make some simulation data to play around with
viewing, you could write up a straight python script that uses your
own data models to populate the datastore for you.  I followed
mahmouds instructions here and they work great for my needs:
http://groups.google.com/group/google-appengine/browse_thread/thread/2667c30d1726722e/a16ce7be0ab57c59?hl=enlnk=gstq=python+script+load+data#a16ce7be0ab57c59


I'd suggest you just work in the development server locally on your PC
first.

On Mar 19, 1:57 pm, Nora noorhanab...@yahoo.co.uk wrote:
 Hello,
 As I haven't used data stores before, I am unable to imagine how it is
 going to behave:)  I have some text files and I want to store its
 contents in datastores.  Do I load the datastore at the beginning and
 then upload my application and use the data in the datastore from
 there? Or do we fill the datastore up every time my applicaiton gets a
 request for it?  Is the data saved in a certain file so when the
 application is uploaded on the google server, this file is transfered
 on the server and I start to use it from there?

 Thank you very much,
 N.
--~--~-~--~~~---~--~~
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: App Engine Patch - dumpdata then loaddata

2009-03-20 Thread Big Stu

Hi Waldemar,
  Thanks for following up, and thanks for all your hard work with App
Engine Patch.  I'm having a lot of fun learning about app engine and
django in my spare time, and hope to one day move my full time career
into this stuff.  Django, GAE, and your stuff will have a huge hand in
that.

Anyway, the property I'm tryign to dump is DateTimeProperty:
date = db.DateTimeProperty()

I'll have a look at that file you refer to and see if I can figure
something out.

Stu
On Mar 19, 2:00 pm, Waldemar Kornewald wkornew...@gmail.com wrote:
 On Mar 18, 6:19 pm, Big Stu stu.dohe...@gmail.com wrote:

  I'm having a problem with my App Engine Patch project where if I
  dumpdata from my app engine server using:
  ./manage.py dumpdata --format json  data.json

  Then reset the servers data:
  ./manage.py reset

  And then try to reload that data:
  ./manage.py loaddata data.json

  I get complaints about Date properties not being datetime objects.

 Currently, we only support DateTimeProperty and I don't know when I'll
 get to the other properties. I've got a lot of other stuff on my
 plate. If it's critical to you I'd suggest that you have a look at
 django/core/serializers/python.py and extend the deserializer.

 Bye,
 Waldemar Kornewald
--~--~-~--~~~---~--~~
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 Neves

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?
--~--~-~--~~~---~--~~
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: Downside of the Google App Engine relying on Google Apps - Horror Story

2009-03-20 Thread Lawrence Fitzpatrick



On Mar 18, 2:58 pm, Brett Slatkin brett-appeng...@google.com wrote:
 In the future, customers should be notified 48 hours
 in advance of any detected abuse.

Wow. I knew you guys were good, now I'm really impressed. :)


--~--~-~--~~~---~--~~
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 Viewer error after deleting all entities of a certain kind

2009-03-20 Thread apr3...@gmail.com

Hello,

I tried to delete all entities of a certain kind with the Data Viewer
and now I always get an error message.

To be more precise: I tried to delete all entities of the kind
Searchable. I selected all Entities in
the Data Viewer and clicked on delete. After clicking on delete i
got the following Error:

Server Error
A server error has occurred.
Return to Applications screen.

The Entity Searchable still apears in the list of kinds in the Data
Viewer but everytime when I try to open the Entity
in the Data Viewer I get the same error again.

When I run a remote script trying to get one Entity of the kind
Searchable i get a server timeout exception:

Server Exception :: ', 'type': class
'google.appengine.api.datastore_errors.Timeout'

What can I do to solve this problem?
What I want to do is to delete all Entities of the kind Searchable
and then recreate them with a script

thanks,

Alex


--~--~-~--~~~---~--~~
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: quick data upload?

2009-03-20 Thread Kugutsumen

Out of curiosity what is your upload bandwidth? Have you ever tried
uploading a video on youtube or Google Video for example.

For example in Indonesia, the best internet access you can get is via
cable. They give you  3 mbit downstream but the upload bandwidth is
ridiculously slow, only 128kbit or 256kbit. It takes forever to upload
anything. To avoid this problem, I usually rsync everything on one of
my dedicated host in Germany then upload from there.

I'm about to upload 8 gig of data to App Engine; I'll share my
results.


--~--~-~--~~~---~--~~
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 Browser

2009-03-20 Thread Chad

Is there a way to visually navigate the datastore?  Is there a GUI
provided or an opensource project for navigating and managing
datastore data?  I guess I'm looking for something like phpMyAdmin for
datastore... any ideas?  Maybe I've been looking in the wrong places,
but I can't seem to find anything.

--~--~-~--~~~---~--~~
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] Better solution

2009-03-20 Thread linsk

Better solution is to:
1.Supporting independent IP(choose).
2.To the regulatory body to submit a website record

更好的解决方法是,
1.GAE为用户提供独立IP解析,用户可以选择为自己的应用购买独立IP(让自己的应用共用一个IP或者每个应用各自拥有一个IP)。而不是指向
ghs.google.com。
2.用户向中国的管理机构提交网站备案。

懂英文的翻译上去。谢谢




On 3月18日, 上午7时26分, John C johnmcourt...@gmail.com wrote:
 GAE Team:

 I am a developer considering using AppEngine for a new web based
 business aimed at the Chinese market.  I've recently spent a lot of
 time getting up to speed on Python and learning absolutely everything
 about AppEngine so can I dive head first into building my app, which I
 expect to take several months.  GAE seems pretty awesome and I can't
 wait to get going.

 However in the last  few days access in Guangzhou, China (where I
 live) has been spotty, I assume because the gov't is for whatever
 reason is blocking the GAE IP addresses.  Should my app become popular
 I was hoping to turn it into my primary source of income.  Given the
 problems recently,  it seems like I might not be able to use GAE. If
 have a lot of users who depend on my site to do mission critical
 business (which is what cloud computing is all about!), and then one
 day I wake up to find GAE is arbitrarily blocked, that would be
 disastrous.

 I know Google must have relationships with high level officials in the
 Chinese gov't and could use influence to make sure GAE never gets
 blocked.  I've never once had problems getting on Baidu.com, so there
 must be a way to make sure it won't be blocked.  I'm from America and
 I know we never think about these kind of issues, but over here its a
 complete reality, and now for me its turned into a business
 decision.

 What gaurantee do I have that GAE won't be blocked in the future?
 Should I use it to build a web based business?

 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] Multilingual i18n -- django, any problems w/ it? roll your own?

2009-03-20 Thread Adrian Scott . com

Hi, i'm looking at doing i18n / multilingual  for my apps.


For those using Django, have you run into any problems w/ Django's
approach? or any stuff that just seems weird etc?

For others doing i18n / multilingual, what approaches have you been
taking and what factors have influenced you or been most important to
you.

Been looking at Django i18n ( http://docs.djangoproject.com/en/dev/topics/i18n/
), but it just seems weird to me...


http://code.google.com/p/adrianremembersme/source/browse/trunk/main.py


Any links to any write-ups on this topic would be much-appreciated
also. I've done a bit of research, but haven't found a lot of
illuminating info...

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: Downside of the Google App Engine relying on Google Apps - Horror Story

2009-03-20 Thread Brett Slatkin

On Thu, Mar 19, 2009 at 5:22 PM, Lawrence Fitzpatrick
fitzp...@gmail.com wrote:



 On Mar 18, 2:58 pm, Brett Slatkin brett-appeng...@google.com wrote:
 In the future, customers should be notified 48 hours
 in advance of any detected abuse.

 Wow. I knew you guys were good, now I'm really impressed. :)

Haha, yeah sorry this sounds like we can see into the future. =) What
I meant is once we detect abuse, we will notify customers and give
them a few days to respond before we take any action.

--~--~-~--~~~---~--~~
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] Does anybody know how to run sitemap_gen.py from app engine?

2009-03-20 Thread Jillian

I have a site built on app engine, and i'd like to sitemap_gen to
automatically generate site maps. Is it possible?
--~--~-~--~~~---~--~~
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 Matthew Page-Lieberman
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] Please helppppp with the mail api

2009-03-20 Thread Nora

Hi,
I have developed an application that has a contact us page.  It
collects the visitor's details and sends them to me(the administrator)
and then I use them to send me an email using the mail api.

Now, at the server side, I get all the information about the user and
then I need to validate that this is a registered user and direct him/
her to the login page.  I am unable to do this bit!
Is there any function that gets an email address and checks whether
this email belongs to a registered user or not?

the user.get_Current_user() is not working in my code because the user
does not exist on the server side as the details are sent
asynchronously to me!

Any clues please?

Thanks  a lot.
--~--~-~--~~~---~--~~
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: Multilingual i18n -- django, any problems w/ it? roll your own?

2009-03-20 Thread Olemis Lang

On Fri, Mar 20, 2009 at 11:31 AM, Adrian Scott . com
goo...@adrianscott.com wrote:

 Hi, i'm looking at doing i18n / multilingual  for my apps.

 For others doing i18n / multilingual, what approaches have you been
 taking and what factors have influenced you or been most important to
 you.


This is not based on concrete experience with GAE ... but anyway
perhaps this can help somehow. I use Babel ... [1]_ + Genshi [2]_ (...
in fact, I'm not a fan of Django templates , ...). There is also some
kind of django-genshi package (dont know about GAE ... :-/ ...) ...
Babel integrates with gettext + distutils ...


 Any links to any write-ups on this topic would be much-appreciated
 also. I've done a bit of research, but haven't found a lot of
 illuminating info...


Well ... at least here [3]_ you can find why I dont like Django
templates ... (in Spanish or the Google Translate version -see gadget
in top/left corner- )

Good luck ...

.. [1] Babel
 (http://babel.edgewall.com)

.. [2] Genshi
 (http://genshi.edgewall.com)

.. [1] No me gustan los templates de Django
 
(http://simelo-es.blogspot.com/2009/03/no-me-gustan-los-templates-de-django.html)

-- 
Regards,

Olemis.

Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/

Featured article:
Avanza el Clásico de Baseball ... entre records y sorpresas

--~--~-~--~~~---~--~~
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] Regular Expresison

2009-03-20 Thread lucas.fais...@gmail.com

Hey,  can I use regular expression in my URL'S like Django? If i can,
how i do it?

Thank's

--~--~-~--~~~---~--~~
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: Charging for you app.

2009-03-20 Thread Adrian Scott . com

YES!

On Mar 20, 9:04 am, Big Stu stu.dohe...@gmail.com wrote:
 I'm not absolutely sure myself (I haven't read the terms yet either),
 but from some of the previous questions/answers I've seen on here it
 sounds like you're good to go.

 Good luck!

 Stu

 On Mar 19, 10:38 am, Ronn Ross ronn.r...@gmail.com wrote:



  If I create an app in gae. Can I charge people for use. I didn't fully read
  term of use.- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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] Re: receiving email

2009-03-20 Thread Matthew Page-Lieberman
Como? O que quer dizer?

On Fri, Mar 20, 2009 at 1:38 PM, Ronn Ross ronn.r...@gmail.com wrote:

 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





 



-- 
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] Re: how to config gwt to work in app engine effective and productive

2009-03-20 Thread Pavel Byles

Hi indra,
yes. I could do this.

Thanks

On Mar 20, 6:23 am, indra b.indran...@gmail.com wrote:
 Hi Pavel,

 I too use a setup very similar to yours, with both GWT and appengine
 projects in same workspace.
 However I have also managed to setup my GWT environment so that I can
 debug!
 What I basically do is have GWT servlets which act as proxies to the
 actual appengine handlers.
 In these servlets I just forward the call to corresponding appengine
 handler and send back the response received.
 It works great and really saves a lot of time.

 Regards,
 Indraneel

 www.wikiaata.com

 On Mar 17, 6:50 pm, Pavel Byles pavelby...@gmail.com wrote:



  Coonay,
  I use GWT and GAE together and I think it's a pretty good setup.
  First, instead of using servlets you will use the request builder and
  pass data using JSON instead. 2nd I effectively just send my HTML
  output of my GWT project to my GAE project and configure my app.yaml
  accordingly.

  Using this method you will lose a really big part of GWT, which is the
  debugging feature since you will be running dev_appserver. Unless you
  can fix it such that u can get JSON responses from it.

  But I like my setup. I have pydev and cypal both in eclipse. I just
  wish i had debugging somehow.

  On Mar 17, 5:36 am, Coonay fla...@gmail.com wrote:

   Gwt featurs really attractive:quickly build and maintain complex yet
   highly performant JavaScript front-end applications in the Java
   programming language,and Test your code with JUnit.The example mail
   page is really awesome.

   As a many years java progammmer,it's not hard to get into gwt,but the
   app engine is a different web environment,the static page can be
   served to browser directly,
   the hype link in the geranated html are needed to change accordingly.

   could you give me some idea how to make they 2 work together
   effective and productive?thanks so much- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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: Datastore newbie question

2009-03-20 Thread Pavel Byles

You can use the bulkloader to initialize your data:
http://code.google.com/appengine/docs/python/tools/uploadingdata.html

-Pavel

On Mar 19, 1:57 pm, Nora noorhanab...@yahoo.co.uk wrote:
 Hello,
 As I haven't used data stores before, I am unable to imagine how it is
 going to behave:)  I have some text files and I want to store its
 contents in datastores.  Do I load the datastore at the beginning and
 then upload my application and use the data in the datastore from
 there? Or do we fill the datastore up every time my applicaiton gets a
 request for it?  Is the data saved in a certain file so when the
 application is uploaded on the google server, this file is transfered
 on the server and I start to use it from there?

 Thank you very much,
 N.
--~--~-~--~~~---~--~~
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 Browser

2009-03-20 Thread Amr Ellafi

Good Idea,
I'm not sure if remote_api allows fetching data

On Fri, Mar 20, 2009 at 7:11 AM, Chad cup...@gmail.com wrote:

 Is there a way to visually navigate the datastore?  Is there a GUI
 provided or an opensource project for navigating and managing
 datastore data?  I guess I'm looking for something like phpMyAdmin for
 datastore... any ideas?  Maybe I've been looking in the wrong places,
 but I can't seem to find anything.

 


--~--~-~--~~~---~--~~
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] Internationalization in GAE using webapp

2009-03-20 Thread bca...@albendas.com

Hello,

I have been reading across the posts, and have not found any with
instructions on how to make translations of the different application
messages to different languages.

 I have read some about using other frameworks like django dating
from 2008, but wonder if there is no other way than using these
platforms for such thing.

 Any documentation available on this?.

Thanks a lot for your help,
Benigno.

--~--~-~--~~~---~--~~
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: @login_required usage

2009-03-20 Thread Waldemar Kornewald

On Mar 19, 2:00 pm, arnie parvez...@rediffmail.com wrote:
 Hi all
 I am using google app engine patch sample [latest]. I want to use
 django user authentication with the user table in my datastore so for
 this do I need to use
 @login_Required attribute on my views.py functions? I have given a try
 for this and when I invoke the url related to this particular views's
 function it takes me tohttp://localhost:8080/accounts/login/?next=/myurl
 How can I modify this sample so that I can direct the user to a page
 containing login section?
 And correspondingly how can I maintain session of a looged in user in
 the google app engine patch sample

Sorry, I don't quite get your question. What kind of login section do
you want? You can simply take registration/templates/login.html and
modify it to suit your needs (indeed, the default templates aren't
good, but this is just quick-n-dirty a demo).

The user's session is automatically maintained in Django and can be
accessed via request.session.

You should really read the Django documentation:
http://docs.djangoproject.com/en/dev/

Bye,
Waldemar Kornewald
--~--~-~--~~~---~--~~
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 does Model.to_xml() returns?

2009-03-20 Thread Marcelo Sena

I know what the docs say, but what kind of xml is that, is a string or
a object and what is the type of that object? I tried  using type() on
it and it returned nothing.
I need to turn my model into a XML to use it in a javascript.
Regards,
Marcelo Sena.
--~--~-~--~~~---~--~~
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] Re: Django template

2009-03-20 Thread Jyoti Shete-Javadekar
use ifequal

{% ifequal AccountData.AccountType Current %}
...{% endifequal %}


please rever to
http://docs.djangoproject.com/en/dev/ref/templates/builtins/?from=olddocs for
more details

On Fri, Mar 20, 2009 at 1:12 PM, Ronn Ross ronn.r...@gmail.com wrote:

 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?

 



-- 
-Jyoti
www.videonym.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] bulkloader Nulls and Defaults

2009-03-20 Thread Mat

Hi,

Here is my model class:

class Listing(db.Model):
name = db.StringProperty()
value = db.FloatProperty()
createdDate = db.DateTimeProperty(auto_now_add=True)
createdBy = db.UserProperty(auto_current_user_add=True)


and here is my loader class:

class ListingLoader(Loader):
def __init__(self):
Loader.__init__(self, 'Listing',
[('name', str),
 ('value', float),
 ('createdDate', datetime.datetime),
 ('createdBy', db.users.User),
 ])


1) How can I define a Null float value in the csv file? I tried
writing an empty field in the csv file but I get an error ValueError:
empty string for float()

2) How can I tell the loader to use the current user and current time
for the createdBy and createdDate fields? When using a save query I
don't need to provide those fields, how can do the same thing with the
loader?
Again, I tried writing an empty field in the csv file but I get this
error: TypeError: function takes at least 3 arguments (1 given)

Thank you,
Mathieu
--~--~-~--~~~---~--~~
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: Datastore usage goes up over time?

2009-03-20 Thread C. Scott Ananian

On Mar 20, 1:58 pm, C. Scott Ananian canan...@gmail.com wrote:
 Your suggestion seems to work.  Changing from StringProperty to
 TextProperty did bloat the size of the entities -- I went from about
 0.16G after initial import to about .80G -- but the datastore storage
 doesn't seem to balloon further when I leave it alone and the indexes
 get created.  (Or at least, it hasn't yet: fingers crossed!)

I take it back: a few hours after import the datastore usage ballooned
and I'm over quota again.  So it's not only related to indexes, or
there are some indexes I didn't manage to disable?  I have no clue.
 --scott
--~--~-~--~~~---~--~~
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] Is any way to set os.environ['USER_EMAIL'] in app engine ?

2009-03-20 Thread Tom Wu

Hi all,

The USER_EMAIL of META is empty after I got the access_token.

Is any way to set os.environ['USER_EMAIL'], os.environ
['USER_IS_ADMIN'], os.environ['USER_NICKNAME'] in app engine ?

So I can use the google.appengine.api.users.get_current_user()
natively without building another scripts.

Thanks in advance.



Best Regards
Tom Wu
--~--~-~--~~~---~--~~
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: This application ID or version is already in use. Why?

2009-03-20 Thread K_Reverter

Because GAE's custom domain server is fobbiden by Great Firewall of
China

On Mar 19, 9:50 am, Hu Hailin i...@h2l.name wrote:
 why not use the domain (dituren.cn/dituren.com) accessing your app
 directly?

 On Mar 18, 2:48 pm, K_Reverter kunhua...@gmail.com wrote:

  I hope to use dituren.appspot.com as my app id very much.Because I
  already registered dituren-mapplet.appspot.com,dituren-
  service.appspot.com and dituren-www.appspot.com.

  Also I'm the owner of domain dituren.cn and dituren.com.

  I tried send mail to ditu...@gmail.com and d1tu...@gmail.com and
  the Gmail server return a error.

  So I think I can use this appid,

  Can you tell me why dituren was reserved?

  On Mar 11, 12:13 am, Marzia Niccolai ma...@google.com wrote:

   Hi,

   Yes, it has already been reserved.

   -Marzia

   On Tue, Mar 10, 2009 at 6:04 AM, K_Reverter kunhua...@gmail.com wrote:

But I don't think anyone already reserved d1turen or dituren as
Gmail username or Appspot Id.

Can anyone tell me why dituren is reserved?

On 3月10日, 上午2时43分, Marzia Niccolai ma...@google.com wrote:
 Hi,

 This is a known issue with the 'Check availability' functionality.  
 Gmail
 and App Engine share the same namespace, but in Gmail when you 
 reserve eg
 d1turen, dituren is also reserved. The Check availability function 
 does
not
 correctly check for this case.

 So if you get the message 'This application ID or version is already 
 in
use'
 you will not be able to reserve the id.

 -Marzia

 On Mon, Mar 9, 2009 at 6:11 AM, K_Reverter kunhua...@gmail.com 
 wrote:

  When I create create an application as dituren.appspot.com

  I got a 400 error This application ID or version is already in 
  use.

  But when I click the Check availability ,
   I got a message Yes, dituren is available!

  Why? Please help me!- 隐藏被引用文字 -

 - 显示引用的文字 -- Hide quoted text -

  - Show quoted text -
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---