Skip to content

Instantly share code, notes, and snippets.

@hub-cap
Created April 26, 2013 18:53
Show Gist options
  • Save hub-cap/5469523 to your computer and use it in GitHub Desktop.
Save hub-cap/5469523 to your computer and use it in GitHub Desktop.
MF507ZDF8X:reddwarf mbasnigh$ .tox/py27/bin/python
Python 2.7.2 (default, Mar 19 2012, 17:26:47)
[GCC 4.2.1 Compatible Apple Clang 3.0 (tags/Apple/clang-211.10.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from reddwarf.db import models; models.DatabaseModelBase._uuid_strategy
<function generate_uuid at 0x10912dcf8>
<unbound method DatabaseModelBase.generate_uuid>
>>> from reddwarf.db import models; models.DatabaseModelBase._uuid_strategy()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unbound method generate_uuid() must be called with DatabaseModelBase instance as first argument (got nothing instead)
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment