Skip to content

Instantly share code, notes, and snippets.

@Visgean
Created May 4, 2010 08:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Visgean/389123 to your computer and use it in GitHub Desktop.
Save Visgean/389123 to your computer and use it in GitHub Desktop.
>>> from database import Pathject
>>> import urwid
>>> paths = map(str, list(Pathject.select()))
>>> paths = map(urwid.Text, paths)
>>> for path in paths: print path
...
<Text flow widget "<Pathject 1 path='/' pins='asx' comment=None lastTimeUsed=None timeLimit=1.0>">
<Text flow widget "<Pathject 2 path='/' pins='asx' comment=None lastTimeUsed=None timeLimit=1.0>">
<Text flow widget "<Pathject 3 path='/' pins='asx' comment=None lastTimeUsed=None timeLimit=1.0>">
<Text flow widget "<Pathject 4 path='/' pins='asx' comment=None lastTimeUsed=None timeLimit=1.0>">
<Text flow widget "<Pathject 5 path='/' pins='asx' comment=None lastTimeUsed=None timeLimit=1.0>">
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment