-
-
Save anonymous/56b35db38d8351a3cd6a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[rcopeland@sfi-eglue-1 ~]$ ssh sfn-web-1 | |
Last login: Thu May 6 16:48:23 2010 from sfi-eglue-1.v28.ch3.sourceforge.com | |
[sfeng2@sfn-web-1 ~]$ less /var/local/log/allura-httpd-error_log | |
[sfeng2@sfn-web-1 ~]$ cd /var/local/allura/pyforge | |
[sfeng2@sfn-web-1 pyforge]$ paster shell production.ini | |
19:27:48,476 INFO [ew.resource] Loading ep ew_resources = pyforge.config.resources:register_ew_resources | |
Python 2.6.2 (r262:71600, Jun 11 2009, 16:54:47) | |
Type "copyright", "credits" or "license" for more information. | |
IPython 0.10 -- An enhanced Interactive Python. | |
? -> Introduction and overview of IPython's features. | |
%quickref -> Quick reference. | |
help -> Python's own help system. | |
object? -> Details about 'object'. ?object also works, ?? prints more. | |
All objects from pyforge.lib.base are available | |
Additional Objects: | |
mapper - Routes mapper object | |
wsgiapp - This project's WSGI App instance | |
app - paste.fixture wrapped around wsgiapp | |
In [1]: from pyforge import model as M | |
In [2]: M.User.query.find(dict(username=None)) | |
Out[2]: <ming.orm.ormsession.ORMCursor object at 0x21baad90> | |
In [3]: M.User.query.find(dict(username=None)).all() | |
Out[3]: | |
[<User username=None tool_preferences={} | |
open_ids=[u'http://wolf.myvidoop.com/'] | |
display_name=u'http://wolf.myvidoop.com/' | |
preferences={u'email_format': None, u'email_address': | |
None} _id=ObjectId('4bec51e41be1ce2ee6000015') | |
projects=[ObjectId('4be2fafb898e33156f0000a8')] | |
password=None email_addresses=[]>] | |
In [4]: M.User.query.find(dict(username=None)).all()[0].username = 'wolf' | |
In [5]: from ming.orm import session | |
In [6]: session(M.User).flush() | |
In [7]: | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment