mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-26 09:11:54 +00:00
tidyup of image rotate
This commit is contained in:
parent
85487efee3
commit
1effc10e3f
@ -423,7 +423,7 @@ def expofilerename(request, filepath):
|
|||||||
)
|
)
|
||||||
message = f'! - ROTATE - Success: rotated this file {filename}.' + msgdata
|
message = f'! - ROTATE - Success: rotated this file {filename}.' + msgdata
|
||||||
print(message)
|
print(message)
|
||||||
DataIssue.objects.create(parser="mogrify", message=message)
|
# DataIssue.objects.create(parser="mogrify", message=message)
|
||||||
|
|
||||||
if rot.returncode != 0:
|
if rot.returncode != 0:
|
||||||
msgdata = (
|
msgdata = (
|
||||||
|
@ -36,9 +36,10 @@ def load_all_scans():
|
|||||||
|
|
||||||
SingleScan.objects.all().delete()
|
SingleScan.objects.all().delete()
|
||||||
Wallet.objects.all().delete()
|
Wallet.objects.all().delete()
|
||||||
print(" - deleting all Wallet and SingleScan objects")
|
print(" - deleting all Wallet and SingleScan objects, and resize error messages")
|
||||||
DataIssue.objects.filter(parser="scans").delete()
|
DataIssue.objects.filter(parser="scans").delete()
|
||||||
DataIssue.objects.filter(parser="wallets").delete()
|
DataIssue.objects.filter(parser="wallets").delete()
|
||||||
|
DataIssue.objects.filter(parser="mogrify").delete()
|
||||||
|
|
||||||
# These are valid old file types to be visible, they are not necessarily allowed to be uploaded to a new wallet.
|
# These are valid old file types to be visible, they are not necessarily allowed to be uploaded to a new wallet.
|
||||||
valids = [
|
valids = [
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
<br>
|
<br>
|
||||||
<input class="fancybutton2" style="padding: 0.5em 25px; margin-left: 110px "
|
<input class="fancybutton2" style="padding: 0.5em 25px; margin-left: 110px "
|
||||||
|
|
||||||
|
title="Type in the new name for this file here"
|
||||||
label = "Rename to" name = "renametoname" id="renameto"
|
label = "Rename to" name = "renametoname" id="renameto"
|
||||||
pattern="[A-Za-z][A-Za-z0-9_-\.]*"/>
|
pattern="[A-Za-z][A-Za-z0-9_-\.]*"/>
|
||||||
<label
|
<label
|
||||||
@ -31,14 +32,14 @@
|
|||||||
for="renametoname">type in the new name for this file<br></label>
|
for="renametoname">type in the new name for this file<br></label>
|
||||||
<br><br><br>
|
<br><br><br>
|
||||||
|
|
||||||
<button class="fancybutton2" style="padding: 0.5em 25px; margin-left: 110px" name="rename" type = "submit" value = "Rename" >
|
<button class="fancybutton2" style="padding: 0.5em 25px; margin-left: 110px" name="rename" type = "submit" title="Renames the file but disallows certain characters and replaces them, e.g. #, &, ?" value = "Rename" >
|
||||||
Rename it
|
Rename it
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
<br />
|
<br />
|
||||||
<form method ='post' >
|
<form method ='post' >
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<button class="fancybutton2" style="padding: 0.5em 25px; margin-left: 110px" name="rotate" type = "submit" value = "Rotate" >
|
<button class="fancybutton2" style="padding: 0.5em 25px; margin-left: 110px" name="rotate" type = "submit" title="Rotates 90 degrees clockwise. JPG and PNG files only." value = "Rotate" >
|
||||||
Rotate it
|
Rotate it
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
|
Loading…
Reference in New Issue
Block a user