[google-appengine] Datastore weirdness

2009-01-15 Thread Ryan W

I've been running into numerous issues with the datastore today,
wondering if others have as well:

- GAE Admin DataViewer frequently encountering "server error"
- occasionally queries fail to return entities that do actually exist

I have a model, Post, with a property "status_id" and a reference
property, "user",  to a User model.  When I query for a specific
entity by status_id, the datastore cannot find it.  But, if I pull up
the posts by user, User.posts, it is there.  Also if I pull up the
entity by its string encoded key value, the datastore returns it.

This returns nothing in this case:
q = db.Query(Post)
q.filter('status_id = ', status_id)
post = q.get()

This contains the post:
user.posts contains the post plain as day

This also returns the post, key is obtained from looping through
user.posts:
post = Post.get(db.Key(key))


It's quite maddening.  In 99% of the cases the query by status_id is
working fine, but for this one post, the datastore is failing.  Seen
anything like it?
--~--~-~--~~~---~--~~
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 weirdness

2009-01-15 Thread Ryan W

One more thing.  The entity was being returned in the query by
status_id earlier today, as I see activity registered, that is only
registered when the entity is found.  Then it just stopped being
returned.  Baffling.

On Jan 15, 12:06 am, Ryan W  wrote:
> I've been running into numerous issues with the datastore today,
> wondering if others have as well:
>
> - GAE Admin DataViewer frequently encountering "server error"
> - occasionally queries fail to return entities that do actually exist
>
> I have a model, Post, with a property "status_id" and a reference
> property, "user",  to a User model.  When I query for a specific
> entity by status_id, the datastore cannot find it.  But, if I pull up
> the posts by user, User.posts, it is there.  Also if I pull up the
> entity by its string encoded key value, the datastore returns it.
>
> This returns nothing in this case:
>     q = db.Query(Post)
>     q.filter('status_id = ', status_id)
>     post = q.get()
>
> This contains the post:
>     user.posts contains the post plain as day
>
> This also returns the post, key is obtained from looping through
> user.posts:
>     post = Post.get(db.Key(key))
>
> It's quite maddening.  In 99% of the cases the query by status_id is
> working fine, but for this one post, the datastore is failing.  Seen
> anything like it?
--~--~-~--~~~---~--~~
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] #00ff00 in with Get method

2009-01-15 Thread thebrianschott

The "#" in hex color codes is giving me fits for colored markers. Any
help would be appreciated.

Brian in Atlanta
--~--~-~--~~~---~--~~
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: WYSIWYG Editor for App Engine

2009-01-15 Thread Alexander Kojevnikov

The thing is, there's no substitute for a solid html/css knowledge. No
visual html editor, and there are lots of them floating around, will
produce a consistently valid and cross-browser compatible mark-up.

Your best bet is to learn the basics, or to hire someone else to do
the job.

On Jan 15, 6:05 pm, Ashu  wrote:
> Ok, so I am writing my application in
> 1) Python
> 2) Using the Default WebApp Framework (app engine).
> 3) Initially used Notepad++ (also configured Eclipse IDE) as the
> Editor
>
> I also downloaded a free html template from the web and currently
> using that to display my data/content. However, I also need to
> customize some of the pages to take user input(aka add HTML Form
> elements). I did add them up, but it kind of screws up the look and
> feel of the page. I am still trying to work with CSS/HTML. So, I was
> wondering if there was a Visual Tool/plugin that I could use to design
> my pages by drag/drop and then connect it with my Python code.
>
> On Jan 13, 3:54 am, Roberto Saccon  wrote:
>
> > there are tools and plugins for everything available on the Internet.
> > Make your question more precise. Is the editor for natural language or
> > programming language (which one) ? If the later is the case, I
> > recommend CodeMirror, it has pluggable parsers, is framework
> > independent and if you look at the source code, it is one of the most
> > amazing pieces of JavaScript I have seen in the last years (and it is
> > also used at Google, but I forgot which project)
>
> > regards
> > Roberto
>
> > On Jan 13, 7:21 am, Ashu  wrote:
>
> > > I have coded up the necessary logic, but now I am stuck trying to come
> > > with a descent looking Form to take input from the user. Are there any
> > > plugins or tools available to get the HTML part coded with ease.
>
> > > 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] Canwe share?

2009-01-15 Thread arnie

Hi all
Can we share same datastore tables [2 tables with 1-to many
relationships] between more than one wsgi applications on GAE?
Thanks
Arnie
--~--~-~--~~~---~--~~
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] Entities question

2009-01-15 Thread Chen Harel

Hi, In case I want to represent a music album datastore,
I wish the user can add a cd that he likes (no need for information
other than cd name and genres)
Now, at first I looked at it as a RDBMS even in BigTable, meaning I
had
User entity
CD entity
Genre entity
With list of refrences keys...
Now after playing with it, I realized (at least I think so) that I am
killing my application,
Since I need to be able to supply the aggregations on "how many R&B
cd's user XXX has"
this query can't be optimized (at least with my current knowledge) on
BigTable,
So I need to start putting up counters... but I am questioning you
about the number of properties allowed (or make sense)
If I support 50 genres, can I simply do an entity that has:
User:
  id
  name
  cds (list of refrences)
  total_cd_counter
  trance_cd_counter
  house_cd_counter
  rnb_cd_counter
  .. (47 more counters)

And when I add / remove a cd for a user, I shall update the
appropriate counter ...
This will make query for the favorite genre (which is the main goal :)
- Sorry I got to it only here) of the application...

Please tell me if this will work, and will have sufficient
performance / scaling capabilities...

--~--~-~--~~~---~--~~
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: exceptions.SystemError

2009-01-15 Thread Микола

In one place in app i change

def WrapperType_Lookup(_type, name):
for base in _type.__mro__[:-1]:
if base != ProxyBase:
try:
return base.__dict__[name]
except:
pass

return None


to

def WrapperType_Lookup(_type, name):
for base in _type.__mro__[:-1]:
if base is not ProxyBase:
try:
return base.__dict__[name]
except:
pass

return None

And i receive exceptions.SystemError . When i has "if base !=
ProxyBase " in log i receive RuntimeWarning: tp_compare didn't return
-1 or -2 for exception



On Jan 15, 12:36 pm, Микола  wrote:
> My app at GAE raise this exception:
>
> type 'exceptions.SystemError'>: NULL result without error in
> PyObject_Call
> Traceback (most recent call last):
>   File "/base/data/home/apps/gae-rp/1.330716401851788358/zwrcl.py",
> line 166, in 
>     from zope.security.management import endInteraction,
> newInteraction
>   File "/base/data/home/apps/gae-rp/1.330716401851788358/
> py_zimport.py", line 262, in load_module
>     exec code in mod.__dict__
>   File "/base/data/home/apps/gae-rp/1.330716401851788358/eggs/
> zope.security-3.4.1-py2.5-linux-i686.egg/zope/security/management.py",
> line 23, in 
>
> At sdk-1.1.7 Fedora-10 python-2.5.2 32bit app works fine. Is it GAE
> python bug or it is bug in my app?
--~--~-~--~~~---~--~~
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] exceptions.SystemError

2009-01-15 Thread Микола

My app at GAE raise this exception:

type 'exceptions.SystemError'>: NULL result without error in
PyObject_Call
Traceback (most recent call last):
  File "/base/data/home/apps/gae-rp/1.330716401851788358/zwrcl.py",
line 166, in 
from zope.security.management import endInteraction,
newInteraction
  File "/base/data/home/apps/gae-rp/1.330716401851788358/
py_zimport.py", line 262, in load_module
exec code in mod.__dict__
  File "/base/data/home/apps/gae-rp/1.330716401851788358/eggs/
zope.security-3.4.1-py2.5-linux-i686.egg/zope/security/management.py",
line 23, in 

At sdk-1.1.7 Fedora-10 python-2.5.2 32bit app works fine. Is it GAE
python bug or it is bug in my app?
--~--~-~--~~~---~--~~
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] How can I login with my Team Edition account through create_login_url

2009-01-15 Thread himoji

I have Team Edition account with my company's domain additional to the
account I'm using to post this question.
I want to access Calendar data using Team Edition account through
Calendar Data API.

I'm trying feedfetcher example.
However, when I tried to login through create_login_url page, it was
failed saying "Username and password do not match.".

Of course, I can login through the domain's login page: 
www.google.com/a/.

Is it possible to login with Team Edition account through
create_login_url page?
--~--~-~--~~~---~--~~
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 can I login with my Team Edition account through create_login_url

2009-01-15 Thread Alexander Kojevnikov

When you create an App Engine account, you have an option to restrict
access to your app only for the members of a certain Google Apps
domain:
http://code.google.com/appengine/articles/auth.html

As far as I know you cannot have both the Google accounts and the
Google Apps accounts to authenticate on the same app, you also cannot
edit the authentication settings after the App Engine account is
created.

On Jan 15, 9:59 pm, himoji  wrote:
> I have Team Edition account with my company's domain additional to the
> account I'm using to post this question.
> I want to access Calendar data using Team Edition account through
> Calendar Data API.
>
> I'm trying feedfetcher example.
> However, when I tried to login through create_login_url page, it was
> failed saying "Username and password do not match.".
>
> Of course, I can login through the domain's login 
> page:www.google.com/a/.
>
> Is it possible to login with Team Edition account through
> create_login_url page?
--~--~-~--~~~---~--~~
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: Having trouble with Django model.objects

2009-01-15 Thread Waldemar Kornewald

Hi Dave,

On Jan 14, 6:34 pm, Dave  wrote:
> I'm trying like crazy to use Django's model.object manager but
> struggling to find good documentation. Anybody have good links for
> this.
>
> Specifically what is killing me right now is understanding the
> exceptions. I currently have:
>
>   69.  from models import ConfirmUserRegistration
>   70.
>   71. try:
>   72. ConfirmUserRegistration.objects.get(key=key)
>
>   73. except ConfirmUserRegistration.DoesNotExist: ...
>
>   74. return username
>   75. raise forms.ValidationError(_("A user with that username already
> exists."))
>   76.
>
> and I get an exception on line 73 of 'type object
> 'ConfirmUserRegistration' has no attribute 'DoesNotExist'. I've
> searched as much django docs & google to figure out the problem but at
> a loss. The Django docs I've reviewed on Django site show the use of
> DoesNotExist: but for some reason it's not working for me.
>
> Also I am using django authentication and it's successfully using this
> structure, including the DoesNotExist:, in  the UserCreationForm clean
> routine. I've tried to set everything up the same way but  must have
> missed something.

Django's Model class isn't supported and can't be fully supported on
App Engine. You have to use Google's Model class. The Django code you
see isn't really executed, but replaced at runtime with versions that
use db.Model.

http://code.google.com/appengine/docs/datastore/modelclass.html

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] Please help me upload my app. Using authenticated proxy server. ( urllib2 doesn't support https connection ) .

2009-01-15 Thread ramu

Sorry for the 2nd post with similar topic, but this seems to be the
final answer with my limited python knowledge. I access internet
through my institute basic authentication proxy. It took me a lot to
figureout how to input my username and password. As the documentation
only says how to input the proxy, which also seems not to be working .
It dosen't tell where to put proxy username and password.


The method I found out to use authentication proxy is :

http://stackoverflow.com/questions/34079/how-to-specify-an-authenticated-proxy-for-a-python-http-connection

Appended the lines from above at the top of appcfg.py. Even than it
would not work. Again searching on net .. and the horrible truth seems
to invade me ... """Currently urllib2 does not support fetching of
https locations through a proxy. This can be a problem.""". Https is
necessary for google username and password communication.

above quote at :

http://www.voidspace.org.uk/python/articles/urllib2.shtml#proxies


I request google app engine developers to device any other method to
upload the files .I web browser based method should work for all.

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] How to map URL containing commas to webapp handler

2009-01-15 Thread Jesse Grosjean

This is a pretty basic question, but I can't seem to figure it out.
I'd like to map a URL that contains commas to a handler using the
webapp framework. Something like this:

application = webapp.WSGIApplication([
('/versions/1,2', VersionsDifferenceHandler),
], debug=True)

But that just gives me a 404. I've tried escaping the comma with a
single or double \, but that doesn't help. Can someone give me a hint
as to what I'm doing wrong?

Thanks,
Jesse
--~--~-~--~~~---~--~~
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: #00ff00 in with Get method

2009-01-15 Thread Barry Hunter

# symbols in URLs denote the hash - which is uses to reference an
anchor in the page. So the web browser doesnt send to to the server,
effectively cutting of such urls at the # symbol

If you are using input fields it should be encoded for you, but if say
you are using them in the action of the form, you may need to url
encode them
http://www.w3schools.com/TAGS/ref_urlencode.asp

But it sounds like you are going then to be printing that value back
into the html of your page. I dont know anything of your application,
but it possible you will have to be weary of html injection
http://www.google.com/search?q=html+injection



2009/1/15 thebrianschott :
>
> The "#" in hex color codes is giving me fits for colored markers. Any
> help would be appreciated.
>
> Brian in Atlanta
> >
>



-- 
Barry

- www.nearby.org.uk - www.geograph.org.uk -

--~--~-~--~~~---~--~~
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] Mathematical calculations in query

2009-01-15 Thread arnie

Hi
I have to create a query similar to the below given one
SELECT id, place_name,
ROUND( SQRT( POW((69.1 * (#Val(arguments.latitude)# - latitude)), 2) +
POW((53 * (#Val(arguments.longitude)# - longitude)), 2)), 1) AS
distance
FROM places
but it seems to me that we cannot select individual elements of table
in select statement
I am being a newbie at python so can anybody tell about creating
dynaic collections so that I can store the calculated distance along
with ID of row and then arrange the collection in ascending order
--~--~-~--~~~---~--~~
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] How to share it

2009-01-15 Thread arnie

Can we share same datastore tables between multiple wsgi applications?
--~--~-~--~~~---~--~~
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: Mathematical calculations in query

2009-01-15 Thread Barry Hunter

App Engine (well the Datastore) can't run queries like that.

Remember App Engine is designed with scaling in mind, the application
should function the same if 1 person is using the app or a million
(performance wise), tradional database systems and sql in particular,
make it very easy to define very complex queries simply. They hide the
implementation details - but in particular many queries are just
terrible performance wise - with small datasets this isnt noticeable.

Now think you have 6 million results in your table (the size of the
geonames.org dump iirc) - running that query would requite the
mathermatical calculation to be run for *every single row* - its going
to bring most database systems to its knees. (even, or in particular,
the datastore)

An important consideration is you are probably only going to be using
a very small result set, say the closest 15 results. Calculating the
distance on every row, sorting the *whole lot*, then choosing which
want (results 1-15) is quickly going to breakdown.

So an important optimization is to cutdown the resultset with a index,
and only sort the very small subset. Have a look in the group for
geohash - that is a way of making a 2dimensional index in one field
(which is a limitation of the datastore). Admittedly the theory is
easy, but the implementation is not trival - mainly as you have to be
able to define your area of interest in a square grid

 - which means your Point of interest might near a grid boundary so
you might have to search multiple grids and combine the results.

- also you have to be able to define the size of the grid, which
doesnt fit with "15 nearest results" - too big and get too many
results to sort, too small and you miss results.



*what many hosting and application enviroment make you only think
about once you start needing to scale - AppEngine effectivly makes you
think about from the outset.*




2009/1/15 arnie :
>
> Hi
> I have to create a query similar to the below given one
> SELECT id, place_name,
> ROUND( SQRT( POW((69.1 * (#Val(arguments.latitude)# - latitude)), 2) +
> POW((53 * (#Val(arguments.longitude)# - longitude)), 2)), 1) AS
> distance
> FROM places
> but it seems to me that we cannot select individual elements of table
> in select statement
> I am being a newbie at python so can anybody tell about creating
> dynaic collections so that I can store the calculated distance along
> with ID of row and then arrange the collection in ascending order
> >
>



-- 
Barry

- www.nearby.org.uk - www.geograph.org.uk -

--~--~-~--~~~---~--~~
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: memcache get_stats(), what do they mean?

2009-01-15 Thread Marzia Niccolai

Hi,

A cache miss is when you make a get() call for a key, and the object
is not in the cache, either because it is expired or has been ejected.

I'm not aware of any current issues that would cause memcache items to
stick around after they have expired, so would you mind providing some
information?  The code used to set and retrieve the key with which you
have noticed this would be helpful, the key name, and also, the app
id.

-Marzia

On Wed, Jan 14, 2009 at 8:02 PM, ten_foot_ninja  wrote:
>
> The docs say:
> misses: Number of cache get requests resulting in a cache miss.
> What is a "cache miss" exactly?
>
> As well, I set an expiration time to 3600 and get_stats reports the
> oldest accessed item is 19477 seconds old. The exact same code on my
> dev server worked as expected.
>
> >
>

--~--~-~--~~~---~--~~
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] xml.sax

2009-01-15 Thread Микола

Hi. My application works fine at SDK, but when i try to run it at GAE:
I recieve
: File "/
base/data/home/apps/gae-rp/1.330722291465389060/parts/app/site.zcml",
line 1.0,  no element found
Traceback (most recent call last):
  File "/base/data/home/apps/gae-rp/1.330722291465389060/zwrcl.py",
line 202, in 
load()
  File "/base/data/home/apps/gae-rp/1.330722291465389060/zwrcl.py",
line 197, in load
xmlconfig.include(context, **ZCML)
  File "/base/data/home/apps/gae-rp/1.330722291465389060/eggs/
zope.configuration-3.4.0-py2.5.egg/zope/configuration/xmlconfig.py",
line 548, in include
  File "/base/data/home/apps/gae-rp/1.330722291465389060/eggs/
zope.configuration-3.4.0-py2.5.egg/zope/configuration/xmlconfig.py",
line 380, in processxmlfile
  File "/base/python_dist/lib/python2.5/xml/sax/expatreader.py", line
107, in parse
xmlreader.IncrementalParser.parse(self, source)
  File "/base/python_dist/lib/python2.5/xml/sax/xmlreader.py", line
125, in parse
self.close()
  File "/base/python_dist/lib/python2.5/xml/sax/expatreader.py", line
217, in close
self.feed("", isFinal = 1)
  File "/base/python_dist/lib/python2.5/xml/sax/expatreader.py", line
211, in feed
self._err_handler.fatalError(exc)
  File "/base/python_dist/lib/python2.5/xml/sax/handler.py", line 38,
in fatalError
raise exception

What meen error ~line 1.0,  no element found~ ? Is it difference
between standart xml.sax and GAE xml.sax?
--~--~-~--~~~---~--~~
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: Looking for help to finish a new model to catch datastore timeouts

2009-01-15 Thread bowman.jos...@gmail.com



On Jan 14, 11:11 pm, Alexander Kojevnikov 
wrote:
> > Is there any way to catch the timeout error specifically? That way it
> > doesn't bother to retry if something else is the problem.
>
> Sure, just replace "except" with "except db.Timeout"


Oh ok.. so it is possible to catch that. It's datastore.Timeout and
not db.Timeout, right? I was confused because when I see it in the
logs I saw: raise _ToDatastoreError(err), so I wasn't sure how to
catch it since that exception covers pretty much any issue with
writing to the datastore, not just timeouts. (Sorry, I didn't start
using python until I started using appengine, so still learning here)

example:

: datastore
timeout: operation took too long.
Traceback (most recent call last):
  File "/base/data/home/apps/fanatasticweb/1.330570312771074300/common/
appenginepatch/main.py", line 26, in real_main
util.run_wsgi_app(application)
  File "/base/python_lib/versions/1/google/appengine/ext/webapp/
util.py", line 76, in run_wsgi_app
result = application(env, _start_response)
  File "/base/data/home/apps/fanatasticweb/1.330570312771074300/common/
zip-packages/django.zip/django/core/handlers/wsgi.py", line 239, in
__call__
  File "/base/data/home/apps/fanatasticweb/1.330570312771074300/common/
zip-packages/django.zip/django/core/handlers/base.py", line 67, in
get_response
  File "/base/data/home/apps/fanatasticweb/1.330570312771074300/common/
appengine_utilities/django-middleware/middleware.py", line 12, in
process_request
request.session = sessions.Session()
  File "/base/data/home/apps/fanatasticweb/1.330570312771074300/common/
appengine_utilities/sessions.py", line 207, in __init__
self.session.put()
  File "/base/python_lib/versions/1/google/appengine/ext/db/
__init__.py", line 657, in put
return datastore.Put(self._entity)
  File "/base/python_lib/versions/1/google/appengine/api/
datastore.py", line 162, in Put
raise _ToDatastoreError(err)
  File "/base/python_lib/versions/1/google/appengine/api/
datastore.py", line 1637, in _ToDatastoreError
raise errors[err.application_error](err.error_detail)
--~--~-~--~~~---~--~~
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 weirdness

2009-01-15 Thread Marzia Niccolai

Hi Ryan,

>From your description, I would guess the issue is the same as the
underlying cause of:
http://code.google.com/p/googleappengine/issues/detail?id=901

We are actively working on a fix for this issue, but in the meantime,
this should be resolved if you call put() on the entity that is not
showing up for the query.

-Marzia

On Thu, Jan 15, 2009 at 12:13 AM, Ryan W  wrote:
>
> One more thing.  The entity was being returned in the query by
> status_id earlier today, as I see activity registered, that is only
> registered when the entity is found.  Then it just stopped being
> returned.  Baffling.
>
> On Jan 15, 12:06 am, Ryan W  wrote:
>> I've been running into numerous issues with the datastore today,
>> wondering if others have as well:
>>
>> - GAE Admin DataViewer frequently encountering "server error"
>> - occasionally queries fail to return entities that do actually exist
>>
>> I have a model, Post, with a property "status_id" and a reference
>> property, "user",  to a User model.  When I query for a specific
>> entity by status_id, the datastore cannot find it.  But, if I pull up
>> the posts by user, User.posts, it is there.  Also if I pull up the
>> entity by its string encoded key value, the datastore returns it.
>>
>> This returns nothing in this case:
>> q = db.Query(Post)
>> q.filter('status_id = ', status_id)
>> post = q.get()
>>
>> This contains the post:
>> user.posts contains the post plain as day
>>
>> This also returns the post, key is obtained from looping through
>> user.posts:
>> post = Post.get(db.Key(key))
>>
>> It's quite maddening.  In 99% of the cases the query by status_id is
>> working fine, but for this one post, the datastore is failing.  Seen
>> anything like it?
> >
>

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

2009-01-15 Thread Ryan W

Yes, that did it.  It's now showing up again.  Good to know!  Thanks.

On Jan 15, 9:43 am, Marzia Niccolai  wrote:
> Hi Ryan,
>
> From your description, I would guess the issue is the same as the
> underlying cause 
> of:http://code.google.com/p/googleappengine/issues/detail?id=901
>
> We are actively working on a fix for this issue, but in the meantime,
> this should be resolved if you call put() on the entity that is not
> showing up for the query.
>
> -Marzia
>
> On Thu, Jan 15, 2009 at 12:13 AM, Ryan W  wrote:
>
> > One more thing.  The entity was being returned in the query by
> > status_id earlier today, as I see activity registered, that is only
> > registered when the entity is found.  Then it just stopped being
> > returned.  Baffling.
>
> > On Jan 15, 12:06 am, Ryan W  wrote:
> >> I've been running into numerous issues with the datastore today,
> >> wondering if others have as well:
>
> >> - GAE Admin DataViewer frequently encountering "server error"
> >> - occasionally queries fail to return entities that do actually exist
>
> >> I have a model, Post, with a property "status_id" and a reference
> >> property, "user",  to a User model.  When I query for a specific
> >> entity by status_id, the datastore cannot find it.  But, if I pull up
> >> the posts by user, User.posts, it is there.  Also if I pull up the
> >> entity by its string encoded key value, the datastore returns it.
>
> >> This returns nothing in this case:
> >>     q = db.Query(Post)
> >>     q.filter('status_id = ', status_id)
> >>     post = q.get()
>
> >> This contains the post:
> >>     user.posts contains the post plain as day
>
> >> This also returns the post, key is obtained from looping through
> >> user.posts:
> >>     post = Post.get(db.Key(key))
>
> >> It's quite maddening.  In 99% of the cases the query by status_id is
> >> working fine, but for this one post, the datastore is failing.  Seen
> >> anything like it?
--~--~-~--~~~---~--~~
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: polish locale in app engine

2009-01-15 Thread Alexander Konovalenko

On Mon, Jan 12, 2009, Brett Slatkin  wrote:
> [...]
> Please file an issue on the issue tracker if you would like to see
> this addressed (though I'm not sure what the priority would be):
> http://code.google.com/p/googleappengine/issues/list

I have filed a request for locale support here:
http://code.google.com/p/googleappengine/issues/detail?id=992

--~--~-~--~~~---~--~~
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] Ideas for hands-on AppEngine demo?

2009-01-15 Thread Faber Fedor
Hi guys,

The New York City Cloud Computing
Grouphas asked me to put on
a presentation about AppEngine for next month's
meeting.  A couple of people have asked for it to be "hands on" meaning they
would like to put together an actual Appengine app.

Does anyone have an idea for a simple but impressive app we can put
together?  The crowd is pretty evenly split amongst tech types and business
types, although I expect mostly tech types at my presentation.

Also, I think actually putting the code up on AppEngine is going to be a bit
of pain because of the registration issue, so I'm NOT planning on doing
that.  Do y'all agree with my thought on that?

Any other thoughts?


-- 

Faber Fedor
Cloud Computing New Jersey
http://cloudcomputingnj.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] What is Data Storage Limit in GAE DataStore

2009-01-15 Thread anand

How much data can I store in GAE datastore per application? I have a
requirement to store a large volume of data (a lot of pics) in
datastore. Is there any limit?

Thanks for your help.

Regards,
Anand
--~--~-~--~~~---~--~~
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: What is Data Storage Limit in GAE DataStore

2009-01-15 Thread Jyoti Shete-Javadekar
please refer to http://code.google.com/appengine/articles/quotas.html

On Thu, Jan 15, 2009 at 11:34 AM, anand  wrote:

>
> How much data can I store in GAE datastore per application? I have a
> requirement to store a large volume of data (a lot of pics) in
> datastore. Is there any limit?
>
> Thanks for your help.
>
> Regards,
> Anand
> >
>


-- 
-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] Re: What is Data Storage Limit in GAE DataStore

2009-01-15 Thread Qian Qiao

On Fri, Jan 16, 2009 at 03:34, anand  wrote:
>
> How much data can I store in GAE datastore per application? I have a
> requirement to store a large volume of data (a lot of pics) in
> datastore. Is there any limit?
>
> Thanks for your help.
>
> Regards,
> Anand

The storage quota is 500MB, you can do 2,500,000 datastore API calls per day.[1]

They do allow you to apply for extra quota.[2]

HTH.

-- Joe

1. http://code.google.com/appengine/articles/quotas.html
2. http://code.google.com/support/bin/request.py?contact_type=AppEngineContact

--~--~-~--~~~---~--~~
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] App Engine Gurus

2009-01-15 Thread Daniel O'Brien (Google)

Hello everyone,

Some of you may have noticed the recent addition of a "guru" listing
at the top of our main groups page. We've selected a few top
contributors to the App Engine community to act as App Engine Gurus.
Gurus will continue to post normally in the group, but are now
officially noted for their excellent contributions. The gurus were
selected based on their eagerness to participate in the App Engine
community as a whole and their advanced knowledge of the API.

The newly appointed Gurus are:

  - Alexander Kojevnikov
  - Bill Katz

Google will continue posting normally alongside the gurus. Our primary
focus is to help developers using the API, and the gurus will help
with that focus by continuing to help provide knowledge and answers to
those who ask. Remember that this list isn't fixed. Gurus who stop
participating may be removed, and others who demonstrate the level of
expertise and willingness to participate may be added.

If anyone has any questions, feel free to reply, contact me directly,
or send a message to the group's owners list.

Daniel O'Brien
--~--~-~--~~~---~--~~
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: What is Data Storage Limit in GAE DataStore

2009-01-15 Thread anand

Thanks all for such a quick reply!

On Jan 15, 12:42 pm, "Qian Qiao"  wrote:
> On Fri, Jan 16, 2009 at 03:34, anand  wrote:
>
> > How much data can I store in GAE datastore per application? I have a
> > requirement to store a large volume of data (a lot of pics) in
> > datastore. Is there any limit?
>
> > Thanks for your help.
>
> > Regards,
> > Anand
>
> The storage quota is 500MB, you can do 2,500,000 datastore API calls per 
> day.[1]
>
> They do allow you to apply for extra quota.[2]
>
> HTH.
>
> -- Joe
>
> 1.http://code.google.com/appengine/articles/quotas.html
> 2.http://code.google.com/support/bin/request.py?contact_type=AppEngineC...
--~--~-~--~~~---~--~~
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: Ideas for hands-on AppEngine demo?

2009-01-15 Thread Nash-t

Looks like an interesting meeting. I would show them the registration
and upload process. It is one of the things I like about GAE because
it is well done. (I use the Mac app engine launcher). Also, it will
help them when they go to upload their own apps in the future if they
have seen you do it in your presentation.

I don't really have a simple or impressive app idea but I would like
to point out that GAE is an especially good platform for emergency
services because of its ability to sit unused (no cost ) and then
scale to meet sudden demand. Maybe users text message their location
to your application for immediate tally?

Good luck back there in NYC, (my old hometown)
-Tim


On Jan 15, 11:28 am, "Faber Fedor"  wrote:
> Hi guys,
>
> The New York City Cloud Computing
> Grouphas asked me to put on
> a presentation about AppEngine for next month's
> meeting.  A couple of people have asked for it to be "hands on" meaning they
> would like to put together an actual Appengine app.
>
> Does anyone have an idea for a simple but impressive app we can put
> together?  The crowd is pretty evenly split amongst tech types and business
> types, although I expect mostly tech types at my presentation.
>
> Also, I think actually putting the code up on AppEngine is going to be a bit
> of pain because of the registration issue, so I'm NOT planning on doing
> that.  Do y'all agree with my thought on that?
>
> Any other thoughts?
>
> --
>
> Faber Fedor
> Cloud Computing New Jerseyhttp://cloudcomputingnj.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: Ideas for hands-on AppEngine demo?

2009-01-15 Thread Faber Fedor
On Thu, Jan 15, 2009 at 5:05 PM, Nash-t  wrote:

>
> Looks like an interesting meeting.


It's one of the interactive ones I've ever been to!


> I would show them the registration and upload process.


I'd have to register one of them, since I can'tregister again (unless I get
another cell phone!).

It is one of the things I like about GAE because
> it is well done. (I use the Mac app engine launcher).


I should be able to do it from the CLI on the Mac too, right?


> I don't really have a simple or impressive app idea but I would like
> to point out that GAE is an especially good platform for emergency
> services because of its ability to sit unused (no cost ) and then
> scale to meet sudden demand.


Really good point!  That's going into the presentation.


> Maybe users text message their location to your application for immediate
> tally?


How does my application receive text messages?

-- 

Faber Fedor
Cloud Computing New Jersey
http://cloudcomputingnj.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] google mashup editor shutdown and GAE

2009-01-15 Thread Nash-t

So the mashup editor will be gone in 6 months and it's users are being
sent to GAE. Since the GME was one of the first app engine
applications, I'm wondering if the source can be released. I just
started using GME and II was learning to do things (eg. use ATOM feeds
from spreadsheets) that I don't really know how to do in GAE.

Why doesn't Google release GME as a framework for GAE applications?
Oh, I just realized why you might not want to do that...your next
language for GAE is php!
pleeezz...say it ain't so!
:)
-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: OSX Leopard "NotImplementedError: Unable to find the Python PIL library."

2009-01-15 Thread Savraj

I got it working using this link as well. I tried the default
instructions but they complained that "system python 2.5" was not
installed.

On Jan 8, 8:38 am, "Rodrigo Moraes"  wrote:
> On Thu, Jan 8, 2009 at 7:11 AM, PatHaugen wrote:
> > Anyone get this to cleanly work as documented by Google?
>
> not me. this is how i got it working:
>
> http://appengine-cookbook.appspot.com/recipe/install-pil-in-mac-os-x
>
> -- rodrigo
--~--~-~--~~~---~--~~
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: Looking for help to finish a new model to catch datastore timeouts

2009-01-15 Thread Alexander Kojevnikov

> Oh ok.. so it is possible to catch that. It's datastore.Timeout and
> not db.Timeout, right? I was confused because when I see it in the
> logs I saw: raise _ToDatastoreError(err), so I wasn't sure how to
> catch it since that exception covers pretty much any issue with
> writing to the datastore, not just timeouts.
>
Actually google.appengine.ext.db.Timeout and
google.appengine.api.datastore_errors.Timeout is the same class, check
google/appengine/ext/db/__init__.py, line 105.

db.Timeout is documented here [1], the one from datastore_errors is
not a part of documented public API and thus can change. It's safer to
use db.Timeout in your code.

[1] http://code.google.com/appengine/docs/datastore/exceptions.html

> (Sorry, I didn't start using python until I started using
> appengine, so still learning here)
>
Neither did I :) You can skim through the chapter of the tutorial that
covers exceptions, it's pretty short and very well written:
http://www.python.org/doc/2.5.2/tut/node10.html

--~--~-~--~~~---~--~~
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: Ideas for hands-on AppEngine demo?

2009-01-15 Thread Alexander Kojevnikov

You can also host a "Hackathon In a Box", Google provides all
presentation materials for these events:
http://sites.google.com/site/hackathoninabox/Home


On Jan 16, 6:28 am, "Faber Fedor"  wrote:
> Hi guys,
>
> The New York City Cloud Computing
> Grouphas asked me to put on
> a presentation about AppEngine for next month's
> meeting.  A couple of people have asked for it to be "hands on" meaning they
> would like to put together an actual Appengine app.
>
> Does anyone have an idea for a simple but impressive app we can put
> together?  The crowd is pretty evenly split amongst tech types and business
> types, although I expect mostly tech types at my presentation.
>
> Also, I think actually putting the code up on AppEngine is going to be a bit
> of pain because of the registration issue, so I'm NOT planning on doing
> that.  Do y'all agree with my thought on that?
>
> Any other thoughts?
>
> --
>
> Faber Fedor
> Cloud Computing New Jerseyhttp://cloudcomputingnj.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: Ideas for hands-on AppEngine demo?

2009-01-15 Thread Nash-t

http://www.ozekisms.com/index.php?owpn=193&info=http_sms_gateway

> > it is well done. (I use the Mac app engine launcher).
>
> I should be able to do it from the CLI on the Mac too, right?
>

I have used the mac cli scripts and they work well but the initial
registration I did with the GUI. Go ahead and show em the GUI, make
them jealous.

> > Maybe users text message their location to your application for immediate
> > tally?
>
> How does my application receive text messages?
>
After googling around, this is the best I can find:
http://www.ozekisms.com/index.php?owpn=193&info=http_sms_gateway

basically there seems to be no low-cost way to receive SMS messages.
You may be able to do a SMS --> Jaiku, Jaiku API ---> app engine but
google is shutting jaiku down.

-Tim






>
> Faber Fedor
> Cloud Computing New Jerseyhttp://cloudcomputingnj.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: App Engine Gurus

2009-01-15 Thread boson

Yay!  Both Alexander & Bill have been very helpful and knowledgeable.
I'm glad to see the formal recognition and development of the GAE
community.

On Jan 15, 12:12 pm, "Daniel O'Brien (Google)" 
wrote:
> Hello everyone,
>
> Some of you may have noticed the recent addition of a "guru" listing
> at the top of our main groups page. We've selected a few top
> contributors to the App Engine community to act as App Engine Gurus.
> Gurus will continue to post normally in the group, but are now
> officially noted for their excellent contributions. The gurus were
> selected based on their eagerness to participate in the App Engine
> community as a whole and their advanced knowledge of the API.
>
> The newly appointed Gurus are:
>
>   - Alexander Kojevnikov
>   - Bill Katz
>
> Google will continue posting normally alongside the gurus. Our primary
> focus is to help developers using the API, and the gurus will help
> with that focus by continuing to help provide knowledge and answers to
> those who ask. Remember that this list isn't fixed. Gurus who stop
> participating may be removed, and others who demonstrate the level of
> expertise and willingness to participate may be added.
>
> If anyone has any questions, feel free to reply, contact me directly,
> or send a message to the group's owners list.
>
> Daniel O'Brien
--~--~-~--~~~---~--~~
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] app engine powered social search engine

2009-01-15 Thread mobil

http://youfindr.com/buzz

http://youfindr.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: Can not delete entity using Data Viewer and a GQL query.

2009-01-15 Thread kscott

I doing this:

list= db.GqlQuery(" SELECT * FROM UserUpdates  WHERE windAngle=328")

for entity in list:
  db.delete(entity)

On Jan 13, 6:54 am, "murexconsult...@googlemail.com"
 wrote:
> http://volvooceanracegamehelp.appspot.com/is the URL.
>
> I know I can delete programatically, but would rather use the tool you
> provide for one-off deletes.
>
> Thanks for the help.
>
> Robin
>
> PS I just tried again using gql:
> SELECT * FROM UserUpdates
> WHERE windAngle=328
>
> And it is still not working.
>
> On Jan 12, 9:39 pm, Marzia Niccolai  wrote:
>
> > Hi,
>
> > If you reply with your app id I can look in to it directly.
>
> > If you can find the data in the dataviewer, however, you can get the
> > key string (from the data's URL) and call db.delete() directly on that
> > key in your application (if, for instance, you included something like
> > shell with your application so you could run interactive commands).
>
> > -Marzia
>
> > On Sun, Jan 11, 2009 at 1:33 PM, murexconsult...@googlemail.com
>
> >  wrote:
>
> > > There was a bug in my app and some bad data got into the Datastore.
>
> > > So I want to delete some data. The models have a number of items so
> > > rather than paging through them all 20 at a time to find it I ran the
> > > GQL query:
> > > SELECT * FROM UserUpdates
> > > WHERE windAngle=328
>
> > > This returns one row as expected. I then click on the tickbox beside
> > > it and click on Delete.
>
> > > I then get a dialog box asking if I am sure to which I say yes.
>
> > > I then get the error displayed in a red box at the top saying "The URL
> > > to forward to once the request is fulfilled" - Yes the error is a
> > > partial sentence and makes no sense.
>
> > > The item is NOT deleted.
>
> > > This is happening to all 4 of my models. However 2 of them only have a
> > > few hundred entries, so I was able to page through, find the item and
> > > delete it. When I paged through, the deleting was successful.
>
> > > I think that there must be a bug in the data viewer when removing data
> > > found using a gql query.
>
> > > 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: How can I login with my Team Edition account through create_login_url

2009-01-15 Thread himoji

Thank you.

I have to restrict my application to my domain, right?
I've found it requires administrative account for the domain to do
that.

Unfortunately, my e-mail domain is not exposed to outside of the
company.
So, I can't do the confirmation of domain ownership even if I'm an
administrator of the (interval) sub-domain.

Umm, why Google requires internet access to e-mail domain?
That might become a certain barrier for not small companies to adopt
Google Apps.
It's often the case sub-domain is not exposed to outside, isn't it?
--
himoji
--~--~-~--~~~---~--~~
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] ZipImport may import the library or may decide not to do so... (?!)

2009-01-15 Thread Moritz Angermann

Hi,

Well I'm injecting zipped libraries into the sys.path like this:

import sys
from glob import glob
from os import path

# import the libraries

root_path = path.abspath(path.dirname(__file__))
libz  = glob(path.join(root_path, 'libz', '*.zip'))
for lib in libz:
sys.path.insert(0,lib)


# imports

from google.appengine.ext.webapp.util import run_wsgi_app
from werkzeug import BaseRequest, BaseResponse, responder


Now the weird part is that sometimes it works flawlessly and sometimes
it does not... and gives me the following
error:

zipimporter('/base/data/home/apps/journal-ma/
reflection-2.330732104263667843/libz/jinja2.zip', '')
zipimporter('/base/data/home/apps/journal-ma/
reflection-2.330732104263667843/libz/werkzeug.zip', '')
: cannot import name BaseRequest
Traceback (most recent call last):
  File "/base/data/home/apps/journal-ma/
reflection-2.330732104263667843/main.py", line 17, in 
from werkzeug import BaseRequest, BaseResponse, responder
: cannot import name BaseRequest

It looks like both libraries werkzeug and jinja2 got imported by the
zipimporter but trying to import from them
raises an ImportError.

Can someone shed some light into this, why it's happening and how to
fix it?

regards,
 Moritz
--~--~-~--~~~---~--~~
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] Google Android developer curious about app engine

2009-01-15 Thread madcoder

I've been developing for the Google Android platform for about 3
months now, and I think it's wonderful.  Before the Android Market
goes live, I would like to set up a web site for the apps I plan to
release.

I'm curious if learning Google App Engine (and Python) is the route I
should take.  I have only made simple web pages before in HTML, so I'm
a little bewildered about which direction I should go in.

Can I host web sites themselves with App Engine alone?  Or is the App
Engine tool something different?

Should I just make a simple website in a free web editor and find
someone to host it?

Heck, I've never even hosted the few simple pages I've made, because
they were for an intro to HTML class in college.  Up until now, I've
focused mainly on stand-alone applications, not the web.

ANY helpful advice would be greatly 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-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] How to match in query?

2009-01-15 Thread arnie

I am messing with google app engine queries being very new to it
how can we match a string with __key__
'SELECT * FROM Person WHERE __key__=:bkey', bkey=str(value)
This query is not working
What is wrong with this?
Arnie
--~--~-~--~~~---~--~~
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 match in query?

2009-01-15 Thread Alexander Kojevnikov

> I am messing with google app engine queries being very new to it
> how can we match a string with __key__
> 'SELECT * FROM Person WHERE __key__=:bkey', bkey=str(value)
> This query is not working
> What is wrong with this?
>
You need to pass an instance of db.Key class as a parameter.

Is 'value' a string representation of the key? If so, the code will
look like this:

query = db.GqlQuery('SELECT * FROM Person '
'WHERE __key__ = :bkey',
bkey=db.Key(value))

See also 
http://code.google.com/appengine/docs/datastore/queriesandindexes.html#Queries_on_Keys
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---