After upgrading to 1.8.5 (from 1.8.1) I instantly had Internal Server Error 
whenever my class was instantiated and placed in memcache:
  daRef = oRefFinder()
  memcache.set( 'theRef', daRef)

The last lines of the error trace says that the memcache.set command:

  File "/base/data/home/apps/s~refindservice/1.370602298270267557/main.py", 
line 117, in get
    memcache.set('theRef' , daRef )
  File 
"/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/api/memcache/__init__.py",
 line 763, in set
    namespace=namespace)
  File 
"/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/api/memcache/__init__.py",
 line 868, in _set_with_policy
    time, '', namespace)
  File 
"/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/api/memcache/__init__.py",
 line 947, in _set_multi_async_with_policy
    stored_value, flags = _validate_encode_value(value, self._do_pickle)
  File 
"/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/api/memcache/__init__.py",
 line 227, in _validate_encode_value
    stored_value = do_pickle(value)
  File 
"/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/api/memcache/__init__.py",
 line 392, in _do_pickle
    pickler.dump(value)
TypeError: 'NoneType' object is not callable



I finally traced it to __setattr__ and __getattr__. If I go into my class 
and change  __setattr__ and __getattr__ methods to something else like 
tabooset and tabooget -- Memcache error goes away. GRRRR.

If I delete all the content in my __setattr__ and just put "pass" -- it 
still bombs -- so this is specific to the name of those methods.

First, what is going on? 
Second, is there some other way I'm supposed to be setting and getting 
attributes in my classes in GAE?

And yes, this was operating fine before I upgraded from 1.8.1 to 1.8.5.

Brian
 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to