def get_choices(self, render=None):
if render:
print self._db
print self._collection
cur = self._conn[self._db]
[self._collection].find(self._query, fields=self._fields)
cur = cur.sort(self._sort) if self._sort else cur
return [render(i) for i in cur]
else: raise FieldException("no render method available")
The prints in the CollectionVhoice field type should be logs, or maybe
removed entirely
Christopher Coté
unread,
Mar 15, 2012, 11:41:09 AM3/15/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message