Homec4science

BibFormat: format -> format_element API change

Authored by Jerome Caffaro <jerome.caffaro@cern.ch> on Nov 5 2010, 14:27.

Description

BibFormat: format -> format_element API change

  • Format elements (BFE_*) must now define function "format_element()" instead of function "format()", to avoid conflicts with Python "format()" built-in function. Updated guides. Updated provided elements. Backward-compatiblity implemented.
  • Renamed 'format' attribute of the BibFormatObject instances to 'output_format'.
  • Renamed 'format' parameter of the BibFormatObject init() method to 'output_format'.
  • Removed deprecated BibFormatObject attribute 'uid' (has been marked as deprecated already for quite some time).
  • Renamed 'format' parameter of the call_old_bibformat() function to 'of'.

Details

Committed
Tibor Simko <tibor.simko@cern.ch>Nov 5 2010, 15:00
Parents
R3600:f6581708e71c: WebStat: fix time range computation
Branches
Unknown
Tags
Unknown

Event Timeline

Tibor Simko <tibor.simko@cern.ch> committed R3600:406921134c9d: BibFormat: format -> format_element API change (authored by Jerome Caffaro <jerome.caffaro@cern.ch>).Nov 5 2010, 15:00