Yes, Me too,
I get same problem.
1.3.1 current production env in /base/python_lib/versions/1/google/
appengine/ext/db/__init__.py in __init__ raises the error
672: if key_name and key_name != key.name():
673: raise BadArgumentError('Cannot use key and key_name at the
same time'
674: ' with different values')
but 1.3.0 was like this
if key_name is not None:
raise BadArgumentError('Cannot use key and key_name at the same
time')
My app uses OpenID GAE, and
-------------
class Session(db.Expando):
# the logged in person
person = db.ReferenceProperty(Person)
# OpenID library session stuff
openid_stuff = db.TextProperty()
def __init__(self, parent=None, key_name=None, **kw):
"""if key_name is None, generate a random key_name so that
session_id cookies are not guessable
"""
if key_name is None:
import uuid
key_name = uuid.uuid4()
import binascii
key_name = binascii.unhexlify(key_name.hex)
import base64
key_name = "S" + base64.urlsafe_b64encode(key_name).rstrip('=')
super(db.Expando, self).__init__(parent=parent, key_name=key_name,
**kw) <<-----here raise the error
------------
I cannot solve the problem....
On Feb 10, 6:04 am, Tonny <[email protected]> wrote:
> I'm getting this error this morning (CET)
>
> "Cannot use key and key_name at the same time with different values"
>
> The error happens when an Entity is loaded from the store.
>
> The app worked fine until recently (unfortunately I do not have an
> exact time, since it's a non default verison which is not visited
> every day.
>
> We haven't made any updates since the last time we saw it working, so
> what's changed?
>
> I noticed the server version says 1.3.1 in the log, but the latest
> stable download is 1.3.0 - i that correct?
>
> Regards
> Tonny
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.