summaryrefslogtreecommitdiffstats
path: root/share/extensions/Barcode/Base.py
diff options
context:
space:
mode:
Diffstat (limited to 'share/extensions/Barcode/Base.py')
-rw-r--r--share/extensions/Barcode/Base.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/share/extensions/Barcode/Base.py b/share/extensions/Barcode/Base.py
index 866d80e9e..4ba89d2d6 100644
--- a/share/extensions/Barcode/Base.py
+++ b/share/extensions/Barcode/Base.py
@@ -15,10 +15,10 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
'''
-
+
import itertools
import sys
-from lxml import etree
+from lxml import etree
class Barcode:
def __init__(self, param={}):
@@ -46,7 +46,7 @@ class Barcode:
self.width = len(self.string)
self.data = self.graphicalArray(self.string)
- def generate(self):
+ def generate(self):
svg_uri = u'http://www.w3.org/2000/svg'
if not self.string or not self.data:
return
@@ -60,12 +60,12 @@ class Barcode:
if not self.document:
sys.stderr.write("No document defined to add barcode to\n")
return
-
- # Collect document ids
- doc_ids = {}
- docIdNodes = self.document.xpath('//@id')
- for m in docIdNodes:
- doc_ids[m] = 1
+
+ # Collect document ids
+ doc_ids = {}
+ docIdNodes = self.document.xpath('//@id')
+ for m in docIdNodes:
+ doc_ids[m] = 1
# We don't have svg documents so lets do something raw:
name = 'barcode'