Skip to content

Commit 4cc6054

Browse files
committed
fix some stuff
1 parent 2d2c140 commit 4cc6054

1 file changed

Lines changed: 4 additions & 41 deletions

File tree

dokuwikiBildIndex.py

Lines changed: 4 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,6 @@
11
#!/usr/bin/env python3
22
# -*- coding: utf-8 -*-
3-
"""
4-
write a DokuWike Page with Pictureinfos
5-
6-
********************************************
7-
GPL License
8-
********************************************
9-
This program is free software: you can redistribute it and/or modify
10-
it under the terms of the GNU General Public License as published by
11-
the Free Software Foundation, either version 3 of the License, or
12-
(at your option) any later version.
13-
14-
This program is distributed in the hope that it will be useful,
15-
but WITHOUT ANY WARRANTY; without even the implied warranty of
16-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17-
GNU General Public License for more details.
18-
19-
You should have received a copy of the GNU General Public License
20-
along with this program. If not, see <http://www.gnu.org/licenses/>.
21-
22-
Dieses Programm ist Freie Software: Sie können es unter den Bedingungen
23-
der GNU General Public License, wie von der Free Software Foundation,
24-
Version 3 der Lizenz oder (nach Ihrer Option) jeder späteren
25-
veröffentlichten Version, weiterverbreiten und/oder modifizieren.
26-
27-
Dieses Programm wird in der Hoffnung, dass es nützlich sein wird, aber
28-
OHNE JEDE GEWÄHRLEISTUNG, bereitgestellt; sogar ohne die implizite
29-
Gewährleistung der MARKTFÄHIGKEIT oder EIGNUNG FÜR EINEN BESTIMMTEN ZWECK.
30-
Siehe die GNU General Public License für weitere Details.
31-
32-
Sie sollten eine Kopie der GNU General Public License zusammen mit diesem
33-
Programm erhalten haben. Wenn nicht, siehe <http://www.gnu.org/licenses/>.
34-
35-
Author: Oerb
36-
e-mail: bjoern@oerb.de
37-
Date: 12.06.2013
38-
39-
"""
3+
""" write a DokuWike Page with Pictureinfos """
404

415

426
import os
@@ -50,8 +14,7 @@ def __init__(self, wikipath, picturepath):
5014
central = 084-koebenerstr-gruenewald:bilddokumentation:0084-2013-04-09-begehung:'
5115
picturepath = './'
5216
"""
53-
if self.isdir(wikipath):
54-
self.central = wikipath
17+
self.central = wikipath
5518
if self.isdir(picturepath):
5619
self.dirlist = os.listdir(picturepath)
5720
self.picsize = '500'
@@ -119,7 +82,7 @@ def write_dir_to_wikipicturelist(self, dirname):
11982
print('', file=datei)
12083
for element in fileinf[key]:
12184
text = '| {{:' + self.central + element + '?' + self.picsize + '|}} |'
122-
text2 = ' | | '
85+
text2 = '| | '
12386
print(text, file=datei)
12487
print(text2, file=datei)
12588

@@ -158,7 +121,7 @@ def main():
158121
PicHelper = Pictodokuwiki(wikipath, picturepath)
159122
if args.alldirectory:
160123
PicHelper.write_alldir_to_wikipicturelists()
161-
elif args.directory != "Nothing-to-dir":
124+
elif args.dirname != "Nothing-to-dir":
162125
# write one DokuWikipage to given parameters
163126
PicHelper.write_dir_to_wikipicturelist(dirname)
164127
else:

0 commit comments

Comments
 (0)