+ end
+
+ ### Convert a shortname or id into a QuickVote
+ def self.ident_to_quickvote(ident)
+ return nil unless ident
+ if ident.match(/^\d+$/)
+ quickvote = QuickVote.find(ident)
+ else
+ quickvote = QuickVote.find(:all, :conditions => ["name = ?", ident])[0]
+ end