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
Yes.
def __setattr__( self, name, value ):
if name == 'orig':
# force value to string & kill whitespace
value = unicode(value).strip()
###### Lots more cleaning is necessary
# clean off ending characters
value = value.rstrip(' ,;:)(')
# Ps 3:1; cf. => Ps 3:1
if value[-3:] == 'and': value = value.replace('and','')
if value[-2:] == 'cf': value = value.replace('cf','')
# clean off ending characters again
value = value.rstrip(' ,;:)(')
self.__dict__[ 'orig'] = value
--
You received this message because you are subscribed to a topic in the Google Groups "Google App Engine" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/google-appengine/2d9UO1m0wV8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
google-appengi...@googlegroups.com.
To post to this group, send email to
google-a...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group and all its topics, send an email to google-appeng...@googlegroups.com.
To post to this group, send email to google-...@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to google-appeng...@googlegroups.com.
To post to this group, send email to google-...@googlegroups.com.
Neither, it is strictly a service which processes a string and spits back a result.
To unsubscribe from this group and all its topics, send an email to
google-appengi...@googlegroups.com.
To post to this group, send email to
google-a...@googlegroups.com.
I got rid of my __getattr__ and use @property for most of them. I didn’t touch the __setattr__ but memcache is working just fine now. Strange.
Brian
To unsubscribe from this group and all its topics, send an email to
google-appengi...@googlegroups.com.
To post to this group, send email to
google-a...@googlegroups.com.
Thanks for finding that thread btw, Tim.
To unsubscribe from this group and all its topics, send an email to
google-appengi...@googlegroups.com.
To post to this group, send email to
google-a...@googlegroups.com.