Re: [google-appengine] Re: How to create an empty model object

2010-12-26 Thread Jorge Guberte
By the way, if i use an Expando or a Polymodel on Python, will i be able to
access it using Java?

2010/12/26 Tim Hoffman zutes...@gmail.com

 Hi

 But you're using db.Model from appengine,  not django ;-)

 I suggest you have a read of the Property class documentation on
 appengine.
 http://code.google.com/appengine/docs/python/datastore/propertyclass.html
 It's pretty explicit about the semantics of the required parameter

 Rgds

 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.


-- 
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-appeng...@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.



Re: [google-appengine] Re: How to create an empty model object

2010-12-26 Thread Jorge Guberte
I see... to play safe i used string properties populated with JSON values,
whenever needed. I'll make some tests with these types, hopefully i'll get
it working.
Thanks. :)

2010/12/26 Tim Hoffman zutes...@gmail.com

 Hi

 You can always get the underlying raw entity. I wouldn't have a clue how
 you go about that in java.
 But the underlying datastore is the same for both environments.

 Rgds

 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.


-- 
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-appeng...@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.



Re: [google-appengine] Re: Request for Experimental App Feedback

2010-12-23 Thread Jorge Guberte
Hi Eric!
Some things aren't clear enough on the interface. I don't know what those
numbers on the side of the names mean, and apparently there's no explanation
anywhere.
Another thing ishaving the names above the image like that is a bit
confusing.
Other that what i've mentioned, it's really good. Runs fast and goes
straight to the point.

-- 
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-appeng...@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.



Re: [google-appengine] Re: my app has been disabled

2010-12-19 Thread Jorge Guberte
If that's the case, then the app i'm developing will be shut for sure,
because it extends the Google Contacts platform, making use of the API
Google provides.
Makes no sense, right?

2010/12/19 Philip philip.mates...@driggle.com

 There is no way that the app was disabled because Google fears
 competition. I'm currently developing a google news like service on
 app engine and I got access to the matcher api and prediction api
 without any problems even though I have told explicitly that I am
 doing this. I also got always help from Googlers like Ikai in the IRC
 channel.

 Besides, I'm pretty sure that it would be *highly* risky for Google to
 disable apps that are competing with their own services. They would
 abuse their online monopoly and this could result in astronomically
 huge judicial punishment.

 On Dec 18, 8:56 am, Nickolas Daskalou n...@daskalou.com wrote:
  It may have been disabled because it competes with Google's URL
  shortening offering (http://goo.gl/).
 
  Nick
 
  On 18/12/2010, at 1:21 PM, vrypan vry...@gmail.com wrote:
 
 
 
 
 
 
 
   Hi. I've been running my URL shortener, urlborg.com, on appengine
   since 2008. Suddenly, yesterday, the app was marked as DISABLED by
   google, and no one can access it. How do I get in contact with
   someone that can explain what's going on? I feel really bad for the
   users that relied on my service.
 
   I really, really like AppEngine, I mean, if you are offering a
   hosting environment, and people are paying for it, you can't just
   switch off an account, without a warning, or a notice or something...
 
   Panayotis
   --
   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-
   appeng...@googlegroups.com.
   To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
   .
   For more options, visit this group athttp://
 groups.google.com/group/google-appengine?hl=en
   .

 --
 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.



-- 
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-appeng...@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.



Re: [google-appengine] Re: Version 1.4.0 is out!

2010-12-02 Thread Jorge Guberte
Will i have any trouble with the app i'm developing if i upgrade to the
1.4.0 SDK? Or upgrading is recommended?

2010/12/2 Ikai Lan (Google)
ikai.l+gro...@google.comikai.l%2bgro...@google.com


 The documentation should be live. Example:

 Channel API:

 http://code.google.com/appengine/docs/java/channel/

 If you see an error, wait a few minutes and refresh again.


 --
 Ikai Lan
 Developer Programs Engineer, Google App Engine
 Blogger: http://googleappengine.blogspot.com
 Reddit: http://www.reddit.com/r/appengine
 Twitter: http://twitter.com/app_engine



 On Thu, Dec 2, 2010 at 1:09 PM, Ikai Lan (Google) 
 ikai.l+gro...@google.com ikai.l%2bgro...@google.com wrote:

 The admin console for version 1.4.0 is live. You should be able to enable
 Always On instances now if billing is enabled.


 --
 Ikai Lan
 Developer Programs Engineer, Google App Engine
 Blogger: http://googleappengine.blogspot.com
 Reddit: http://www.reddit.com/r/appengine
 Twitter: http://twitter.com/app_engine



 On Thu, Dec 2, 2010 at 1:04 PM, Ikai Lan (Google) 
 ikai.l+gro...@google.com ikai.l%2bgro...@google.com wrote:

 Thanks for the report. The fix for this bug will be deployed later in the
 day.


 --
 Ikai Lan
 Developer Programs Engineer, Google App Engine
 Blogger: http://googleappengine.blogspot.com
 Reddit: http://www.reddit.com/r/appengine
 Twitter: http://twitter.com/app_engine



 On Thu, Dec 2, 2010 at 12:44 PM, pdknsk pdk...@googlemail.com wrote:

 Thank you Google.

 However I've noticed what can only be a bug. According to the
 dashboard Task Queue Stored Task Bytes quota is 1,099,511,627,776,000
 bytes or about 1100TB. I doubt 100,000,000,000 for Task Queue Stored
 Task Count is correct either.

 --
 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.




  --
 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.


-- 
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-appeng...@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] Probably a bug with Contacts API in App Engine

2010-11-19 Thread Jorge Guberte
Hi.
Sorry if this is not the right place to post this, but since it
happened on App Engine, i thought it would be ok to post here.
I was fetching a feed from the Contacts API and i tried to do the
following, inside a loop to walk through the feed entries:


if entry.content:
print entry.content.text


Instead of printing the content text, it printed the whole element.
When i did the following, it printed the content text:

if entry.content:
print 'ya', content.text


Then when i erased the first string and printed only the content text,
the content text appeared.

I'm using Windows XP, SDK 1.3.8 and Python 2.5.

-- 
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-appeng...@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: Can Java and Python coexist in the same app?

2010-11-13 Thread Jorge Guberte
Thank you!

On 12 nov, 17:34, Alexander Mills alexander.mi...@psycle.com wrote:
 I am currently doing this - as long as you reflect the Python model in
 the Java, it will be fine.

 Version 1 of my app is Java, Version 2 is Python - I have had issues
 with the Java model being slightly different to the Python model and
 overwriting (then Python can't read the updated model)

 Typically, when you have two versions, the first (or non-default)
 version is only accessible via 1.latest.appid.appspot.com

 Hope this helps,

 Alexander

 On Nov 12, 2:55 pm, Jorge Guberte jorgegube...@gmail.com wrote:







  I need to have a Java instance fetching data directly from the
  Python's instance datastore. I don't know if that's possible at all.
  Is the datastore transparent/unique, or each instance (if they can
  indeed coexist) has its separate datastore? Suming it up: how can a
  Java app fetch data from the datastore of a Python app, and vice-versa?

-- 
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-appeng...@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] Can Java and Python coexist in the same app?

2010-11-12 Thread Jorge Guberte
I need to have a Java instance fetching data directly from the
Python's instance datastore. I don't know if that's possible at all.
Is the datastore transparent/unique, or each instance (if they can
indeed coexist) has its separate datastore? Suming it up: how can a
Java app fetch data from the datastore of a Python app, and vice-versa?

-- 
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-appeng...@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] _ah login page failing on devapp / Python

2010-11-08 Thread Jorge Guberte
Hi.
On the localhost, users.create_login_url('/') redirects me to a page
where i get a bunch of errors:
-- -- --
Traceback (most recent call last):
  File C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py, line 3211, in _HandleRequest
self._Dispatch(dispatcher, self.rfile, outfile, env_dict)
  File C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py, line 3154, in _Dispatch
base_env_dict=env_dict)
  File C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py, line 527, in Dispatch
base_env_dict=base_env_dict)
  File C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py, line 2452, in Dispatch
CGIDispatcher.Dispatch(self, *args, **kwargs)
  File C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py, line 2404, in Dispatch
self._module_dict)
  File C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py, line 2441, in curried_exec_cgi
return ExecuteCGI(*args, **kwargs)
  File C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py, line 2312, in ExecuteCGI
logging.debug('Executing CGI with env:\n%s', pprint.pformat(env))
  File C:\Python27\lib\pprint.py, line 60, in pformat
return PrettyPrinter(indent=indent, width=width,
depth=depth).pformat(object)
  File C:\Python27\lib\pprint.py, line 119, in pformat
self._format(object, sio, 0, 0, {}, 0)
  File C:\Python27\lib\pprint.py, line 137, in _format
rep = self._repr(object, context, level - 1)
  File C:\Python27\lib\pprint.py, line 230, in _repr
self._depth, level)
  File C:\Python27\lib\pprint.py, line 242, in format
return _safe_repr(object, context, maxlevels, level)
  File C:\Python27\lib\pprint.py, line 284, in _safe_repr
for k, v in _sorted(object.items()):
  File C:\Python27\lib\pprint.py, line 75, in _sorted
with warnings.catch_warnings():
  File C:\Python27\lib\warnings.py, line 327, in __init__
self._module = sys.modules['warnings'] if module is None else
module
KeyError: 'warnings'

When deployed, the link works fine.
Here's my code:

import random
import os
from google.appengine.api import users
from google.appengine.ext import webapp, db
from google.appengine.ext.webapp import util, template
from google.appengine.ext.webapp.util import run_wsgi_app


class MainHandler(webapp.RequestHandler):
def get(self):
url = users.create_login_url('/')
link = 'a href=%sLogin/a' % url
self.response.out.write(link)

Any help is appreciated.

-- 
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-appeng...@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: _ah login page failing on devapp / Python

2010-11-08 Thread Jorge Guberte
That's it. Thanks!

On 8 nov, 15:53, Robert Kluin robert.kl...@gmail.com wrote:
 You might want to try installing and running with Python 2.5.  Seems
 to clear up quite a few of these issues.

 Robert







 On Sat, Nov 6, 2010 at 17:04, Jorge Guberte jorgegube...@gmail.com wrote:
  Hi.
  On the localhost, users.create_login_url('/') redirects me to a page
  where i get a bunch of errors:
  -- -- --
  Traceback (most recent call last):
   File C:\Program Files\Google\google_appengine\google\appengine\tools
  \dev_appserver.py, line 3211, in _HandleRequest
     self._Dispatch(dispatcher, self.rfile, outfile, env_dict)
   File C:\Program Files\Google\google_appengine\google\appengine\tools
  \dev_appserver.py, line 3154, in _Dispatch
     base_env_dict=env_dict)
   File C:\Program Files\Google\google_appengine\google\appengine\tools
  \dev_appserver.py, line 527, in Dispatch
     base_env_dict=base_env_dict)
   File C:\Program Files\Google\google_appengine\google\appengine\tools
  \dev_appserver.py, line 2452, in Dispatch
     CGIDispatcher.Dispatch(self, *args, **kwargs)
   File C:\Program Files\Google\google_appengine\google\appengine\tools
  \dev_appserver.py, line 2404, in Dispatch
     self._module_dict)
   File C:\Program Files\Google\google_appengine\google\appengine\tools
  \dev_appserver.py, line 2441, in curried_exec_cgi
     return ExecuteCGI(*args, **kwargs)
   File C:\Program Files\Google\google_appengine\google\appengine\tools
  \dev_appserver.py, line 2312, in ExecuteCGI
     logging.debug('Executing CGI with env:\n%s', pprint.pformat(env))
   File C:\Python27\lib\pprint.py, line 60, in pformat
     return PrettyPrinter(indent=indent, width=width,
  depth=depth).pformat(object)
   File C:\Python27\lib\pprint.py, line 119, in pformat
     self._format(object, sio, 0, 0, {}, 0)
   File C:\Python27\lib\pprint.py, line 137, in _format
     rep = self._repr(object, context, level - 1)
   File C:\Python27\lib\pprint.py, line 230, in _repr
     self._depth, level)
   File C:\Python27\lib\pprint.py, line 242, in format
     return _safe_repr(object, context, maxlevels, level)
   File C:\Python27\lib\pprint.py, line 284, in _safe_repr
     for k, v in _sorted(object.items()):
   File C:\Python27\lib\pprint.py, line 75, in _sorted
     with warnings.catch_warnings():
   File C:\Python27\lib\warnings.py, line 327, in __init__
     self._module = sys.modules['warnings'] if module is None else
  module
  KeyError: 'warnings'

  When deployed, the link works fine.
  Here's my code:

  import random
  import os
  from google.appengine.api import users
  from google.appengine.ext import webapp, db
  from google.appengine.ext.webapp import util, template
  from google.appengine.ext.webapp.util import run_wsgi_app

  class MainHandler(webapp.RequestHandler):
     def get(self):
         url = users.create_login_url('/')
         link = 'a href=%sLogin/a' % url
         self.response.out.write(link)

  Any help is appreciated.

  --
  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-appeng...@googlegroups.com.
  To unsubscribe from this group, send email to 
  google-appengine+unsubscr...@googlegroups.com.
  For more options, visit this group 
  athttp://groups.google.com/group/google-appengine?hl=en.

-- 
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-appeng...@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.