source: dc_util.py @ 0:2f43cb89e87c

Revision 0:2f43cb89e87c, 392 bytes checked in by andre.hagenbruch@rub.de, 7 years ago (diff)

Initial commit for version 0.2

Line 
1#!/usr/bin/env python
2# encoding: utf-8
3"""
4dc_util.py
5
6Created by Andre Hagenbruch on 2009-03-26.
7Copyright (c) 2009 University Library Bochum. All rights reserved.
8"""
9
10def dc(name, content):
11        return '<dc:%s>%s</dc:%s>' % (name, content, name)
12
13def dc2cdata(elements):
14        return '<![CDATA[\n%s]]>' % elements
15
16def main():
17        print dc('creator', 'Test, Theo')
18
19if __name__ == '__main__':
20        main()
Note: See TracBrowser for help on using the repository browser.