webmaven / appengine-todos-morepath Goto Github PK
View Code? Open in Web Editor NEWTodoMVC-API backend for Google App Engine using Morepath
License: Apache License 2.0
TodoMVC-API backend for Google App Engine using Morepath
License: Apache License 2.0
GET, PUT, and DELETE tests for Todos have the Todo id 42 hard-coded, so the tests can't pass.
@faassen, can you help debug this? I am implementing an App Engine TodoMVC-API backend that will be part of a collection.
I am POSTing the following:
{
"title": "do this"
}
Which should result in the creation of a new Todo item, but instead I get the following error on the console:
ERROR 2014-10-26 02:15:15,869 wsgi.py:278]
Traceback (most recent call last):
File "/home/webmaven/projects/google-cloud-sdk/platform/google_appengine/google/appengine/runtime/wsgi.py", line 266, in Handle
result = handler(dict(self._environ), self._StartResponse)
File "/home/webmaven/projects/appengine-todos-morepath/lib/morepath/app.py", line 130, in __call__
return self._app_mount(environ, start_response)
File "/home/webmaven/projects/appengine-todos-morepath/lib/morepath/mount.py", line 35, in __call__
response = self.app.publish(request)
File "/home/webmaven/projects/appengine-todos-morepath/lib/morepath/core.py", line 201, in excview_tween
response = handler(request)
DEBUG: Handled logservice.Flush in 0.0006
File "/home/webmaven/projects/appengine-todos-morepath/lib/morepath/publish.py", line 68, in publish
return resolve_response(request, model)
File "/home/webmaven/projects/appengine-todos-morepath/lib/morepath/publish.py", line 48, in resolve_response
lookup=request.lookup)
File "/home/webmaven/projects/appengine-todos-morepath/lib/reg/generic.py", line 33, in wrapper
return lookup.call(wrapper, args, **kw)
File "/home/webmaven/projects/appengine-todos-morepath/lib/reg/lookup.py", line 137, in call
result = lookup_mapply(func, self, *args, **kw)
File "/home/webmaven/projects/appengine-todos-morepath/lib/reg/mapply.py", line 33, in lookup_mapply
return func(*args, **kw)
File "/home/webmaven/projects/appengine-todos-morepath/lib/morepath/core.py", line 110, in get_response
default=None)
File "/home/webmaven/projects/appengine-todos-morepath/lib/reg/generic.py", line 43, in component
return get_lookup(kw).component(wrapper, args, **kw)
File "/home/webmaven/projects/appengine-todos-morepath/lib/reg/lookup.py", line 99, in component
result = next(self.all(key, args, class_method, predicates), None)
File "/home/webmaven/projects/appengine-todos-morepath/lib/reg/lookup.py", line 184, in all
found = found(*args, **predicates)
File "/home/webmaven/projects/appengine-todos-morepath/lib/reg/predicate.py", line 109, in __call__
return self.reg.get(k)
DEBUG: Request handled by <Instance 51ffb2a9bfa12e6fd1ebaa5f12d2988bfa70: 1/8, total: 1> in 0.2366s
INFO: default: "POST /todos HTTP/1.1" 500 -
File "/home/webmaven/projects/appengine-todos-morepath/lib/reg/predicate.py", line 83, in get
result = self.get_specific(p)
File "/home/webmaven/projects/appengine-todos-morepath/lib/reg/predicate.py", line 78, in get_specific
"Multiple matches for: %r" % key)
PredicateRegistryError: Multiple matches for: {'request_method': <ANY>, 'name': u''}
I must not understand something about the specificity rules for predicates.
Upgrading to Morepath 0.7 causes this error.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.