I hereby claim:
- I am rbpasker on github.
- I am rbpasker (https://keybase.io/rbpasker) on keybase.
- I have a public key whose fingerprint is 436F 0E40 E8DC 7756 B2F7 E99B B1F0 C48F 7A6C A8D3
To claim this, I am signing this object:
| class Foo(object): | |
| def a(*args): | |
| return 'a', args | |
| def b(*args): | |
| return 'b', args | |
| def __init__(self): |
I hereby claim:
To claim this, I am signing this object:
| import time | |
| class uTimer(object): | |
| def __enter__(self): | |
| self.begin_time=time.time() | |
| self.end_time=0.0 | |
| self.delta=0.0 | |
| def __exit__(self, type, value, tb): |
| counts = Metadata.group(key={'metadata_type':1}, | |
| condition={"owner" : self.owner.id, | |
| "attributes.attribute_type" : {"$in", self.md_fields} | |
| }, | |
| initial={"count":0}, | |
| reduce_f="""function (current, result) { result.count++}""", | |
| finalize_f=None) |
| class mybase: | |
| derived_from = None | |
| def set_derived_from(self, derived): | |
| this.derived_from = derived | |
| def derived(fn): | |
| def wrapped(self, other): | |
| att = fn(self, other) |
| { "_id" : ObjectId( "5191651568f1f6000282b81f" ), | |
| "updated_at" : "2013-05-16T09:46:16.199660", | |
| "activities" : [ | |
| { "worker_name" : "image", | |
| "worker_version" : 1, | |
| "completed_at" : "2013-05-13T21:34:59.293711" }, | |
| { "worker_name" : "image", | |
| "worker_version" : 1, | |
| "completed_at" : "2013-05-16T07:33:22.550405" }, | |
| { "worker_name" : "image", |
| text-align: left; | |
| .table th, .table td - left | |
| .table th, .table td - left | |
| .text-right - right | |
| .stat-freq - right | |
| .text-right - right | |
| table - start user agent stylesheet |
| cat Worker.py | |
| class Worker(object): | |
| def work(self): | |
| pass | |
| (tengahdb)rbp-imac-3:tengahdb rbp$ python | |
| Python 2.7.2 (default, Jun 16 2012, 12:38:40) | |
| [GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin | |
| Type "help", "copyright", "credits" or "license" for more information. | |
| >>> module = __import__("Worker") | |
| >>> print module, dir(module) |
| ERROR: push failed while processing /Users/rbp/Projects/tengahdb/tengah: {'EXIT',{{badmatch,{error,{ok,"400", | |
| [{"X-Couch-Request-ID","db7588bf"}, | |
| {"Server","CouchDB/1.0.2 (Erlang OTP/R14B)"}, | |
| {"Date","Wed, 27 Feb 2013 16:20:40 GMT"}, | |
| {"Content-Type","application/json"}, | |
| {"Content-Length","72"}, | |
| {"Cache-Control","must-revalidate"}], | |
| <<"{\"error\":\"bad_request\",\"reason\":\"Attachment name can't start with '_'\"}\n">>}}}, |
| There is no crud in play 2. Here are your options: Sample Code. The samples like "ZenTasks" for front end, "Computer Database" for backend, and "Forms" for form stuff contain example code that can … be quickly manipulated. Not as nice as real crud but you take what you can get. http://www.playframework.org/documentation/2.0/Samples glitter8. Current recommendations from forums are to use … |