Example #1
0
File: models.py Project: IDCH/lha
 def get_by_id(short_id):
     """ Returns the FileRecord with the specified unique id. This is 
         assumed to be the short form URL returned by 'uid()' rather than
         the raw numeric URL.
     """
     record_id = short_url.decode_url(short_id)
     return FileRecord.objects.get(id=record_id)
Example #2
0
File: models.py Project: IDCH/lha
 def get_by_id(short_id):
     authid = short_url.decode_url(short_id)
     return Person.objects.get(id=authid)
Example #3
0
File: models.py Project: IDCH/lha
 def get_by_id(short_id):
     docid = short_url.decode_url(short_id)
     return Document.objects.get(id=docid)