defvalidate_v2_token(self, token_id, belongs_to=None):unique_id = utils.generate_unique_id(token_id)ifself._needs_persistence:# NOTE(morganfainberg): Ensure we never use the long-form token_id# (PKI) as part of the cache_key.token_ref = self._persistence.get_token(unique_id)else: ...
This function generates a new unique id for a biopax modelfkramer
MediaWiki might parse the parser function more than once per save, so the function output might go from 1 to 3. You are guaranteed to get a higher ID on every generation. Usage is not tracked, so there is no reuse. Example A page with{{#next_number:}} {{#next_number:}}will output...