2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-13 22:17:07 +00:00

[svn] Add photos wiki syntaxes: e.g.

[[display:centre photo:andyc.jpg]] where centre is a class applied to image, and andyc.jpg is the filename of a Photo model instance. Image will be displayed as thumbnail with link to full size image.
[[photo:andyc.jpg]] will produce a link to the admin page for the andyc.jpg Photo model instance.
[[photo:andyc.jpg Title of the link]] will produce a link to the admin page for the andyc.jpg Photo model instance with link text "Title of the link"
This commit is contained in:
substantialnoninfringinguser
2009-07-02 04:10:51 +01:00
parent 620040bde1
commit c0b274767b
3 changed files with 45 additions and 19 deletions

View File

@@ -82,9 +82,9 @@ def parseCaveQMs(cave,inputFile):
except KeyError: #check on this one
continue
# except IndexError:
# print "Index error in " + str(line)
# continue
except IndexError:
print "Index error in " + str(line)
continue
def parse_KH_QMs(kh, inputFile):
"""import QMs from the 1623-161 (Kaninchenh<6E>hle) html pages