Cargando
 

Recursos

Qué es un Recurso

Un recurso en Vazaar es cualquier cosa a la que puedas hacer referencia: notas, ficheros, enlaces a web, etc… Basado en la descripción de Recurso hecha por el RFC 3986: URI Generic Syntax

Identificando Recursos

Según la documentación de python, se puede crear un identificador único y aleatorio con la clase UUID basada en el RFC 4122:

18.16 uuid -- UUID objects according to RFC 4122
This module provides immutable UUID objects (the UUID class) and the functions 
uuid1(), uuid3(), uuid4(), uuid5() for generating version 1, 3, 4, and 5 UUIDs 
as specified in RFC 4122.
If all you want is a unique ID, you should probably call uuid1() or uuid4(). 
Note that uuid1() may compromise privacy since it creates a UUID containing the 
computer's network address. uuid4() creates a random UUID. 

Por lo tanto, creo que la solución mas elegante es usar la función uuid4 y generar un id único y aleatorio de la siguiente forma: cf602bba-a7c6-430c-99ac-d32acd1089ad

 
vazaar-doc/vazaarrecursos.txt · Última modificación: 22/12/2007 06:52 por kaskaras     Subir
Get Firefox! Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
Translations of this page?: