On Wed, 13 Jun 2012, Johnny MariƩthoz wrote:
> class BibRecDocs:
> def __init__(self, recid, deleted_too=False, human_readable=False):
> try:
> self.id = int(recid)
> except ValueError:
> raise ValueError("Invalid input parameter")
That's exactly what I meant when I spoke of forbidding the former :)
I've just committed a variant of this in your name:
<http://invenio-software.org/repo/invenio/commit/?h=maint-1.0&id=261a3f9126e203cfb71b5e5dced53477c9e4d15b>
Please consider submitting git-formatted patches directly the next time.
Helps for faster integration.
<https://twiki.cern.ch/twiki/bin/view/CDS/GitWorkflow#W7_b_Sending_patches_by_email>
Best regards
--
Tibor Simko