google-code-export / cocoslive

Automatically exported from code.google.com/p/cocoslive
GNU General Public License v3.0
0 stars 0 forks source link

Game names cannot start with a number. #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Go to cocoslive.net
2. Click "Add a new game". Sign in if required.
3. Name your new game something beginning with a number (I used 
8TrackMind...the name of 
my upcoming app)

What is the expected output? What do you see instead?
I get an error page with the following text:

Traceback (most recent call last):
  File "/base/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 503, in 
__call__
    handler.post(*groups)
  File "/base/data/home/apps/cocoslive/1.332962953395056789/user.py", line 234, in post
    if not self.validate_game_name( name ):
  File "/base/data/home/apps/cocoslive/1.332962953395056789/user.py", line 263, in 
validate_game_name
    g = Game.get_by_key_name(name)
  File "/base/python_lib/versions/1/google/appengine/ext/db/__init__.py", line 845, in 
get_by_key_name
    for name in key_names]
  File "/base/python_lib/versions/1/google/appengine/api/datastore_types.py", line 253, in 
from_path
    'Names may not begin with a digit; received %s.' % id_or_name)
BadArgumentError: Names may not begin with a digit; received 8TrackMind.

Please provide any additional information below.
If this is a limitation of the GAE, you should warn users in the FAQ, or at 
least in "Add a new 
game" page. Currently, an acceptable work around is to simply spell out the 
number, for 
example: EightTrackMind.

Original issue reported on code.google.com by krist...@gmail.com on 25 Apr 2009 at 7:34

GoogleCodeExporter commented 9 years ago
Yes, it is more a python limitation than a GAE one.
I'll add it in the help.

Original comment by ricardoq...@gmail.com on 13 May 2009 at 9:00